Elin Decompiled Documentation EA 23.241 Nightly
Loading...
Searching...
No Matches
BaseCondition Class Reference
Inheritance diagram for BaseCondition:
BaseStats EClass Condition BadCondition BaseDebuff BaseStance ConAwakening ConBuffStats ConDark ConFractured ConFreeze ConReload ConSmoking ConSuffocation ConVampire ConWait ConWet

Public Member Functions

virtual bool CanStack (Condition c)
 
virtual bool TryMove (Point p)
 
virtual ElementContainer GetElementContainer ()
 
void SetElement (int id)
 
void SetRefVal (int a, int b)
 
virtual Color GetSpriteColor ()
 
override string ToString ()
 
override string GetText ()
 
override int GetValue ()
 
override Color GetColor (Gradient g)
 
virtual void SetOwner (Chara _owner, bool onDeserialize=false)
 
SourceElement.Row GetElementSource (int i)
 
void Start ()
 
bool TryNullify (Condition c)
 
virtual void OnBeforeStart ()
 
virtual void OnStart ()
 
virtual void OnStartOrStack ()
 
virtual void PlayEffect ()
 
virtual void PlayEndEffect ()
 
virtual void OnRefresh ()
 
void SetPhase ()
 
bool IsNullPhase ()
 
override int GetPhase ()
 
void PhaseMsg (bool inc)
 
override string GetPhaseStr ()
 
virtual void Tick ()
 
void Mod (int a, bool force=false)
 
virtual void OnValueChanged ()
 
virtual void OnChangePhase (int lastPhase, int newPhase)
 
virtual void OnRemoved ()
 
virtual int EvaluatePower (int p)
 
virtual int EvaluateTurn (int p)
 
virtual BaseNotification CreateNotification ()
 
Element GetDefenseAttribute (Chara c=null)
 
override void _WriteNote (UINote n, bool asChild=false)
 
virtual void OnWriteNote (List< string > list)
 
virtual RendererReplacer GetRendererReplacer ()
 
- Public Member Functions inherited from BaseStats
virtual Color GetColor (Gradient gradient)
 
virtual Color GetColor (SkinColorProfile c)
 
Color GetColor ()
 
virtual string GetText ()
 
virtual string GetPhaseStr ()
 
virtual int GetValue ()
 
virtual int GetSortVal ()
 
virtual Sprite GetSprite ()
 
virtual void SetText (UIText t, SkinColorProfile cols=null)
 
virtual int GetPhase ()
 
void PopText ()
 
virtual void WriteNote (UINote n, Action< UINote > onWriteNote=null)
 
virtual void _WriteNote (UINote n, bool asChild=false)
 

Public Attributes

int[] _ints = new int[5]
 
int phase = -1
 
ElementContainer elements
 
Chara owner
 
- Public Attributes inherited from BaseStats
int id
 
SourceStat.Row _source
 

Properties

int value [get, set]
 
int power [get, set]
 
int refVal [get, set]
 
int refVal2 [get, set]
 
bool givenByPcParty [get, set]
 
bool isPerfume [get, set]
 
override Chara Owner [get]
 
virtual string Name [get]
 
virtual bool IsToggle [get]
 
virtual bool WillOverride [get]
 
virtual bool AllowMultipleInstance [get]
 
virtual bool ConsumeTurn [get]
 
virtual bool HasDuration [get]
 
virtual bool PreventRegen [get]
 
virtual bool ShouldRefresh [get]
 
virtual bool CancelAI [get]
 
virtual bool TimeBased [get]
 
virtual bool SyncRide [get]
 
virtual bool UseElements [get]
 
virtual int GainResistFactor [get]
 
virtual int P2 [get]
 
SourceElement.Row sourceElement [get]
 
virtual bool IsElemental [get]
 
virtual string RefString1 [get]
 
virtual bool CanManualRemove [get]
 
- Properties inherited from BaseStats
SourceStat.Row source [get]
 
virtual Emo2 EmoIcon [get]
 
virtual ConditionType Type [get]
 
virtual string idSprite [get]
 
virtual bool ShowInWidget [get]
 
virtual Chara Owner [get]
 
- Properties inherited from EClass
static Game game [get]
 
static bool AdvMode [get]
 
static Player player [get]
 
static Chara pc [get]
 
static UI ui [get]
 
static Map _map [get]
 
static Zone _zone [get]
 
static FactionBranch Branch [get]
 
static FactionBranch BranchOrHomeBranch [get]
 
static Faction Home [get]
 
static Faction Wilds [get]
 
static Scene scene [get]
 
static BaseGameScreen screen [get]
 
static GameSetting setting [get]
 
static GameData gamedata [get]
 
static ColorProfile Colors [get]
 
static World world [get]
 
static SourceManager sources [get]
 
static SourceManager editorSources [get]
 
static SoundManager Sound [get]
 
static CoreDebug debug [get]
 

Additional Inherited Members

- Static Public Member Functions inherited from EClass
static int rndSeed (int a, int seed)
 
static int rnd (long a)
 
static int rnd (int a)
 
static int curve (int _a, int start, int step, int rate=75)
 
static int rndHalf (int a)
 
static float rndf (float a)
 
static int rndSqrt (int a)
 
static void Wait (float a, Card c)
 
static void Wait (float a, Point p)
 
static int Bigger (int a, int b)
 
static int Smaller (int a, int b)
 
- Static Public Attributes inherited from BaseStats
static Chara CC
 
- Static Public Attributes inherited from EClass
static Core core
 

Detailed Description

Definition at line 6 of file BaseCondition.cs.

Member Function Documentation

◆ _WriteNote()

override void BaseCondition._WriteNote ( UINote  n,
bool  asChild = false 
)
inlinevirtual

Reimplemented from BaseStats.

Definition at line 428 of file BaseCondition.cs.

429 {
430 List<string> list = new List<string>();
431 Element defenseAttribute = GetDefenseAttribute();
432 if (defenseAttribute != null)
433 {
434 list.Add("hintDefenseAttb".lang(defenseAttribute.Name.ToTitleCase()));
435 }
436 OnWriteNote(list);
437 string[] nullify = base.source.nullify;
438 foreach (string key in nullify)
439 {
440 list.Add("hintNullify".lang(EClass.sources.stats.alias[key].GetName()));
441 }
442 for (int j = 0; j < base.source.elements.Length; j += 2)
443 {
444 Element e = Element.Create(GetElementSource(j).id, base.source.elements[j + 1].Calc(power, 0, P2));
445 if (e.IsFlag)
446 {
447 list.Add(e.Name.TagColorGoodBad(() => e.Value >= 0));
448 }
449 else if (elements != null && elements.Has(e.id) && elements.Value(e.id) != e.Value)
450 {
451 list.Add("modValue".lang(e.Name, ((e.Value < 0) ? "" : "+") + elements.Value(e.id) + (e.source.tag.Contains("ratio") ? "%" : "") + " (" + e.Value + ")").TagColor(() => e.Value >= 0));
452 }
453 else
454 {
455 list.Add("modValue".lang(e.Name, ((e.Value < 0) ? "" : "+") + e.Value + (e.source.tag.Contains("ratio") ? "%" : "")).TagColorGoodBad(() => e.Value >= 0));
456 }
457 }
458 if (list.Count <= 0)
459 {
460 return;
461 }
462 if (!asChild)
463 {
464 n.Space(8);
465 }
466 foreach (string item in list)
467 {
468 n.AddText("_bullet".lang() + item);
469 }
470 }
virtual void OnWriteNote(List< string > list)
SourceElement.Row GetElementSource(int i)
Element GetDefenseAttribute(Chara c=null)
virtual int P2
ElementContainer elements
Definition: EClass.cs:6
static SourceManager sources
Definition: EClass.cs:43
bool Has(int ele)
int Value(int ele)
int id
Definition: ELEMENT.cs:250
SourceElement.Row source
Definition: ELEMENT.cs:273
int Value
Definition: ELEMENT.cs:292
virtual string Name
Definition: ELEMENT.cs:304
static Element Create(int id, int v=0)
Definition: ELEMENT.cs:1105
bool IsFlag
Definition: ELEMENT.cs:302
SourceStat stats
UIItem AddText(string text, FontColor color=FontColor.DontChange)
Definition: UINote.cs:113
void Space(int sizeY=0, int sizeX=1)
Definition: UINote.cs:62

References Element.Create(), elements, GetDefenseAttribute(), GetElementSource(), ElementContainer.Has(), Element.id, Element.IsFlag, item, Element.Name, OnWriteNote(), P2, power, Element.source, EClass.sources, SourceManager.stats, Element.Value, and ElementContainer.Value().

Referenced by Element._WriteNote().

◆ CanStack()

virtual bool BaseCondition.CanStack ( Condition  c)
inlinevirtual

Reimplemented in BaseBuff, ConBuffStats, ConStrife, ConWeapon, ConWrath, and TimeDebuff.

Definition at line 137 of file BaseCondition.cs.

138 {
139 return true;
140 }

◆ CreateNotification()

virtual BaseNotification BaseCondition.CreateNotification ( )
inlinevirtual

Reimplemented in BaseDebuff, BaseStance, Condition, and ConSupress.

Definition at line 410 of file BaseCondition.cs.

411 {
412 return new BaseNotification();
413 }

◆ EvaluatePower()

virtual int BaseCondition.EvaluatePower ( int  p)
inlinevirtual

Definition at line 400 of file BaseCondition.cs.

401 {
402 return p;
403 }

Referenced by Chara.AddCondition().

◆ EvaluateTurn()

virtual int BaseCondition.EvaluateTurn ( int  p)
inlinevirtual

Reimplemented in ConBuffStats.

Definition at line 405 of file BaseCondition.cs.

406 {
407 return Mathf.Max(1, base.source.duration.Calc(p, 0, P2));
408 }

References P2.

Referenced by Element._WriteNote(), Chara.AddCondition(), and Condition.OnStacked().

◆ GetColor()

override Color BaseCondition.GetColor ( Gradient  g)
inlinevirtual

Reimplemented from BaseStats.

Definition at line 191 of file BaseCondition.cs.

192 {
193 return g.Evaluate((base.source.phase.LastItem() == 0) ? 0f : ((float)phase / (float)base.source.phase.LastItem()));
194 }

References phase.

Referenced by NotificationCondition.OnRefresh().

◆ GetDefenseAttribute()

Element BaseCondition.GetDefenseAttribute ( Chara  c = null)
inline

Definition at line 415 of file BaseCondition.cs.

416 {
417 if (base.source.defenseAttb.IsEmpty())
418 {
419 return null;
420 }
421 if (c == null)
422 {
423 return Element.Create(base.source.defenseAttb[0]);
424 }
425 return c.elements.GetOrCreateElement(base.source.defenseAttb[0]);
426 }
ElementContainerCard elements
Definition: Card.cs:41
Element GetOrCreateElement(Element ele)

References Element.Create().

Referenced by _WriteNote(), and Chara.AddCondition().

◆ GetElementContainer()

virtual ElementContainer BaseCondition.GetElementContainer ( )
inlinevirtual

Reimplemented in ConDisease, and ConVampire.

Definition at line 147 of file BaseCondition.cs.

148 {
149 return elements;
150 }

References elements.

Referenced by WidgetStatsBar.Refresh(), and Element.BonusInfo.WriteNote().

◆ GetElementSource()

SourceElement.Row BaseCondition.GetElementSource ( int  i)
inline

Definition at line 222 of file BaseCondition.cs.

223 {
224 string text = base.source.elements[i];
225 if (text == "res")
226 {
227 text = sourceElement.aliasRef;
228 }
229 else if (text == "ele")
230 {
231 text = sourceElement.alias;
232 }
233 return EClass.sources.elements.alias[text];
234 }
SourceElement.Row sourceElement
SourceElement elements

References SourceManager.elements, sourceElement, and EClass.sources.

Referenced by _WriteNote(), and SetOwner().

◆ GetPhase()

override int BaseCondition.GetPhase ( )
inlinevirtual

Reimplemented from BaseStats.

Reimplemented in BaseDebuff, BaseStance, ConAnorexia, ConAwakening, ConBlind, ConBuffStats, ConBurning, ConConfuse, ConDark, ConDrug, ConDrunk, ConEntangle, ConFaint, ConFear, ConFractured, ConGravity, ConParalyze, ConReload, ConSleep, ConSmoking, ConSuffocation, ConSuspend, ConVampire, ConWait, ConWet, and ConWrath.

Definition at line 336 of file BaseCondition.cs.

337 {
338 return base.source.phase[Mathf.Clamp(value, 0, 99) / 10];
339 }

References value.

Referenced by IsNullPhase(), SetOwner(), and SetPhase().

◆ GetPhaseStr()

override string BaseCondition.GetPhaseStr ( )
inlinevirtual

Reimplemented from BaseStats.

Reimplemented in ConBuffStats.

Definition at line 364 of file BaseCondition.cs.

365 {
366 string[] textArray = base.source.GetTextArray("strPhase");
367 if (textArray.Length == 0)
368 {
369 return Name;
370 }
371 return textArray[phase].IsEmpty("");
372 }
virtual string Name

References Name, and phase.

Referenced by GetText().

◆ GetRendererReplacer()

virtual RendererReplacer BaseCondition.GetRendererReplacer ( )
inlinevirtual

Reimplemented in ConBoost, ConTransmuteBat, ConTransmuteBroom, ConTransmuteCat, and ConTransmutePutit.

Definition at line 476 of file BaseCondition.cs.

477 {
478 return null;
479 }

Referenced by Chara._CreateRenderer().

◆ GetSpriteColor()

virtual Color BaseCondition.GetSpriteColor ( )
inlinevirtual

Definition at line 163 of file BaseCondition.cs.

164 {
165 if (!IsElemental)
166 {
167 return Color.white;
168 }
169 return EClass.setting.elements[EClass.sources.elements.map[refVal].alias].colorSprite;
170 }
virtual bool IsElemental
static GameSetting setting
Definition: EClass.cs:35
UD_String_ElementRef elements
Definition: GameSetting.cs:315

References Color, GameSetting.elements, SourceManager.elements, IsElemental, refVal, EClass.setting, and EClass.sources.

Referenced by NotificationBuff.OnInstantiate().

◆ GetText()

override string BaseCondition.GetText ( )
inlinevirtual

Reimplemented from BaseStats.

Reimplemented in ConBuffStats.

Definition at line 177 of file BaseCondition.cs.

178 {
179 if (!IsNullPhase())
180 {
181 return GetPhaseStr();
182 }
183 return "";
184 }
bool IsNullPhase()
override string GetPhaseStr()

References GetPhaseStr(), and IsNullPhase().

Referenced by NotificationBuff.OnRefresh(), and NotificationCondition.OnRefresh().

◆ GetValue()

override int BaseCondition.GetValue ( )
inlinevirtual

Reimplemented from BaseStats.

Definition at line 186 of file BaseCondition.cs.

187 {
188 return value;
189 }

References value.

◆ IsNullPhase()

bool BaseCondition.IsNullPhase ( )
inline

Definition at line 327 of file BaseCondition.cs.

328 {
329 if (base.source.strPhase.Length == 0)
330 {
331 return false;
332 }
333 return base.source.strPhase[GetPhase()] == "#";
334 }
override int GetPhase()

References GetPhase().

Referenced by GetText().

◆ Mod()

◆ OnBeforeStart()

virtual void BaseCondition.OnBeforeStart ( )
inlinevirtual

Reimplemented in ConSleep.

Definition at line 275 of file BaseCondition.cs.

276 {
277 }

Referenced by Start().

◆ OnChangePhase()

virtual void BaseCondition.OnChangePhase ( int  lastPhase,
int  newPhase 
)
inlinevirtual

Reimplemented in ConFreeze, and ConPoison.

Definition at line 392 of file BaseCondition.cs.

393 {
394 }

Referenced by SetOwner(), and SetPhase().

◆ OnRefresh()

virtual void BaseCondition.OnRefresh ( )
inlinevirtual

Reimplemented in ConExcommunication, ConGravity, ConInvisibility, ConLevitate, ConSeeInvisible, ConTelepathy, and ConWet.

Definition at line 311 of file BaseCondition.cs.

312 {
313 }

Referenced by Chara.Refresh().

◆ OnRemoved()

◆ OnStart()

virtual void BaseCondition.OnStart ( )
inlinevirtual

◆ OnStartOrStack()

virtual void BaseCondition.OnStartOrStack ( )
inlinevirtual

Reimplemented in ConNightVision.

Definition at line 283 of file BaseCondition.cs.

284 {
285 }

Referenced by Start().

◆ OnValueChanged()

virtual void BaseCondition.OnValueChanged ( )
inlinevirtual

Reimplemented in Condition.

Definition at line 388 of file BaseCondition.cs.

389 {
390 }

Referenced by Mod().

◆ OnWriteNote()

virtual void BaseCondition.OnWriteNote ( List< string >  list)
inlinevirtual

Reimplemented in ConBuffStats, ConHOT, ConMiasma, and ConStrife.

Definition at line 472 of file BaseCondition.cs.

473 {
474 }

Referenced by _WriteNote().

◆ PhaseMsg()

void BaseCondition.PhaseMsg ( bool  inc)
inline

Definition at line 341 of file BaseCondition.cs.

342 {
343 bool flag = (base.source.invert ? (!inc) : inc);
344 string[] array = (inc ? base.source.GetText("textPhase") : base.source.GetText("textPhase2")).Split(Environment.NewLine.ToCharArray());
345 if (array.Length > phase && !array[phase].IsEmpty())
346 {
347 if (Type == ConditionType.Stance)
348 {
349 Msg.SetColor("ono");
350 }
351 else if (!base.source.invert && flag)
352 {
353 Msg.SetColor("negative");
354 }
355 else if (base.source.invert && !flag)
356 {
357 Msg.SetColor("positive");
358 }
359 PopText();
360 owner.Say(array[phase].Split('|').RandomItem(), owner, RefString1);
361 }
362 }
ConditionType
Definition: ConditionType.cs:2
virtual string RefString1
virtual ConditionType Type
Definition: BaseStats.cs:19
void PopText()
Definition: BaseStats.cs:81
void Say(string lang, string ref1=null, string ref2=null)
Definition: Card.cs:6781
Definition: Msg.cs:5
static void SetColor()
Definition: Msg.cs:22

References owner, phase, BaseStats.PopText(), RefString1, Card.Say(), Msg.SetColor(), and BaseStats.Type.

Referenced by SetPhase().

◆ PlayEffect()

virtual void BaseCondition.PlayEffect ( )
inlinevirtual

Reimplemented in ConBuffStats.

Definition at line 287 of file BaseCondition.cs.

288 {
289 if (!Condition.ignoreEffect && base.source.effect.Length != 0)
290 {
291 if (!base.source.effect[0].IsEmpty())
292 {
293 owner.PlayEffect(base.source.effect[0]);
294 }
295 owner.PlaySound((base.source.effect.Length >= 2) ? base.source.effect[1] : base.source.effect[0]);
296 }
297 }
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:6129
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
Definition: Card.cs:6163
static bool ignoreEffect
Definition: Condition.cs:5

References Condition.ignoreEffect, owner, Card.PlayEffect(), and Card.PlaySound().

Referenced by Start().

◆ PlayEndEffect()

virtual void BaseCondition.PlayEndEffect ( )
inlinevirtual

Definition at line 299 of file BaseCondition.cs.

300 {
301 if (base.source.effect.Length >= 3)
302 {
303 if (!base.source.effect[2].IsEmpty())
304 {
305 owner.PlayEffect(base.source.effect[2]);
306 }
307 owner.PlaySound((base.source.effect.Length >= 4) ? base.source.effect[3] : base.source.effect[2]);
308 }
309 }

References owner, Card.PlayEffect(), and Card.PlaySound().

Referenced by Condition.Kill().

◆ SetElement()

void BaseCondition.SetElement ( int  id)
inline

Definition at line 152 of file BaseCondition.cs.

153 {
154 refVal = id;
155 }
int id
Definition: BaseStats.cs:11

References BaseStats.id, and refVal.

Referenced by Element._WriteNote(), ActEffect.Proc(), and ConMiasma.Tick().

◆ SetOwner()

virtual void BaseCondition.SetOwner ( Chara  _owner,
bool  onDeserialize = false 
)
inlinevirtual

Reimplemented in ConBerserk, ConBlind, ConBuffStats, ConConfuse, ConDisease, ConDrunk, ConFaint, ConHallucination, ConParalyze, ConSleep, ConSuspend, ConVampire, and ConWeapon.

Definition at line 196 of file BaseCondition.cs.

197 {
198 owner = _owner;
199 phase = GetPhase();
200 if (EmoIcon > owner.emoIcon)
201 {
202 owner.emoIcon = EmoIcon;
203 }
204 if (UseElements)
205 {
207 if (base.source.elements.Length != 0)
208 {
209 for (int i = 0; i < base.source.elements.Length; i += 2)
210 {
211 elements.SetBase(GetElementSource(i).id, base.source.elements[i + 1].Calc(power, 0, P2));
212 }
213 }
215 }
216 if (onDeserialize)
217 {
219 }
220 }
virtual void OnChangePhase(int lastPhase, int newPhase)
virtual bool UseElements
virtual Emo2 EmoIcon
Definition: BaseStats.cs:17
Emo2 emoIcon
Definition: Chara.cs:106
void SetParent(Card c)
Element SetBase(string alias, int v, int potential=0)

References elements, BaseStats.EmoIcon, Chara.emoIcon, GetElementSource(), GetPhase(), OnChangePhase(), owner, P2, phase, power, ElementContainer.SetBase(), ElementContainer.SetParent(), and UseElements.

Referenced by Chara.InitStats().

◆ SetPhase()

void BaseCondition.SetPhase ( )
inline

Definition at line 315 of file BaseCondition.cs.

316 {
317 int num = GetPhase();
318 if (phase != num)
319 {
320 int num2 = phase;
321 phase = num;
322 PhaseMsg(num > num2);
323 OnChangePhase(num2, num);
324 }
325 }
void PhaseMsg(bool inc)

References GetPhase(), OnChangePhase(), phase, and PhaseMsg().

Referenced by Mod(), Condition.OnStacked(), and Start().

◆ SetRefVal()

void BaseCondition.SetRefVal ( int  a,
int  b 
)
inline

Definition at line 157 of file BaseCondition.cs.

158 {
159 refVal = a;
160 refVal2 = b;
161 }

References refVal, and refVal2.

Referenced by Element._WriteNote(), and ActEffect.Proc().

◆ Start()

void BaseCondition.Start ( )
inline

Definition at line 236 of file BaseCondition.cs.

237 {
239 phase = -1;
240 SetPhase();
241 OnStart();
243 PlayEffect();
244 if (base.source.nullify.Length == 0)
245 {
246 return;
247 }
248 for (int num = owner.conditions.Count - 1; num >= 0; num--)
249 {
250 if (TryNullify(owner.conditions[num]))
251 {
252 owner.conditions[num].Kill();
253 }
254 }
255 }
virtual void OnStartOrStack()
virtual void PlayEffect()
virtual void OnStart()
bool TryNullify(Condition c)
virtual void OnBeforeStart()
List< Condition > conditions
Definition: Chara.cs:211

References Chara.conditions, OnBeforeStart(), OnStart(), OnStartOrStack(), owner, phase, PlayEffect(), SetPhase(), and TryNullify().

◆ Tick()

◆ ToString()

override string BaseCondition.ToString ( )
inline

Definition at line 172 of file BaseCondition.cs.

173 {
174 return Name + " " + value + " " + phase;
175 }

References Name, phase, and value.

Referenced by ConBuffStats.OnWriteNote(), and ConStrife.OnWriteNote().

◆ TryMove()

virtual bool BaseCondition.TryMove ( Point  p)
inlinevirtual

Reimplemented in ConEntangle.

Definition at line 142 of file BaseCondition.cs.

143 {
144 return true;
145 }

Referenced by Chara.TryMove().

◆ TryNullify()

bool BaseCondition.TryNullify ( Condition  c)
inline

Definition at line 257 of file BaseCondition.cs.

258 {
259 if (base.source.nullify.Length == 0)
260 {
261 return false;
262 }
263 string[] nullify = base.source.nullify;
264 foreach (string text in nullify)
265 {
266 if (c.source.alias == text)
267 {
268 owner.Say("nullify", owner, Name.ToLower(), c.Name.ToLower());
269 return true;
270 }
271 }
272 return false;
273 }
SourceStat.Row source
Definition: BaseStats.cs:15

References Name, owner, and Card.Say().

Referenced by Chara.AddCondition(), and Start().

Member Data Documentation

◆ _ints

int [] BaseCondition._ints = new int[5]

Definition at line 9 of file BaseCondition.cs.

◆ elements

◆ owner

◆ phase

int BaseCondition.phase = -1

Property Documentation

◆ AllowMultipleInstance

virtual bool BaseCondition.AllowMultipleInstance
get

Definition at line 97 of file BaseCondition.cs.

◆ CancelAI

virtual bool BaseCondition.CancelAI
get

Definition at line 107 of file BaseCondition.cs.

◆ CanManualRemove

virtual bool BaseCondition.CanManualRemove
get

Definition at line 135 of file BaseCondition.cs.

Referenced by NotificationCondition.OnClick().

◆ ConsumeTurn

virtual bool BaseCondition.ConsumeTurn
get

Definition at line 99 of file BaseCondition.cs.

Referenced by ConFear.Tick(), and Chara.TickConditions().

◆ GainResistFactor

virtual int BaseCondition.GainResistFactor
get

Definition at line 115 of file BaseCondition.cs.

Referenced by Chara.AddCondition(), and Chara.AddResistCon().

◆ givenByPcParty

bool BaseCondition.givenByPcParty
getset

Definition at line 65 of file BaseCondition.cs.

66 {
67 get
68 {
69 return (_ints[4] & 2) != 0;
70 }
71 set
72 {
73 _ints[4] = (value ? (_ints[4] | 2) : (_ints[4] & -3));
74 }
75 }

Referenced by TimeDebuff.CanStack().

◆ HasDuration

virtual bool BaseCondition.HasDuration
get

Definition at line 101 of file BaseCondition.cs.

Referenced by Element._WriteNote(), and NotificationBuff.OnRefresh().

◆ IsElemental

virtual bool BaseCondition.IsElemental
get

Definition at line 121 of file BaseCondition.cs.

Referenced by GetSpriteColor().

◆ isPerfume

bool BaseCondition.isPerfume
getset

Definition at line 77 of file BaseCondition.cs.

78 {
79 get
80 {
81 return (_ints[4] & 4) != 0;
82 }
83 set
84 {
85 _ints[4] = (value ? (_ints[4] | 4) : (_ints[4] & -5));
86 }
87 }

Referenced by Chara.Cure(), Mod(), and ActEffect.Proc().

◆ IsToggle

virtual bool BaseCondition.IsToggle
get

Definition at line 93 of file BaseCondition.cs.

Referenced by Chara.AddCondition().

◆ Name

virtual string BaseCondition.Name
get

◆ Owner

override Chara BaseCondition.Owner
get

Definition at line 89 of file BaseCondition.cs.

◆ P2

virtual int BaseCondition.P2
get

Definition at line 117 of file BaseCondition.cs.

Referenced by _WriteNote(), EvaluateTurn(), and SetOwner().

◆ power

int BaseCondition.power
getset

◆ PreventRegen

virtual bool BaseCondition.PreventRegen
get

Definition at line 103 of file BaseCondition.cs.

Referenced by AI_PassTime.Run(), and Chara.TickConditions().

◆ RefString1

virtual string BaseCondition.RefString1
get

Definition at line 123 of file BaseCondition.cs.

124 {
125 get
126 {
127 if (!IsElemental)
128 {
129 return "";
130 }
131 return sourceElement.GetName().ToLower();
132 }
133 }

Referenced by Condition.Kill(), and PhaseMsg().

◆ refVal

int BaseCondition.refVal
getset

Definition at line 41 of file BaseCondition.cs.

42 {
43 get
44 {
45 return _ints[2];
46 }
47 set
48 {
49 _ints[2] = value;
50 }
51 }

Referenced by Chara.GetBuffStats(), GetSpriteColor(), SetElement(), and SetRefVal().

◆ refVal2

int BaseCondition.refVal2
getset

Definition at line 53 of file BaseCondition.cs.

54 {
55 get
56 {
57 return _ints[3];
58 }
59 set
60 {
61 _ints[3] = value;
62 }
63 }

Referenced by SetRefVal().

◆ ShouldRefresh

virtual bool BaseCondition.ShouldRefresh
get

Definition at line 105 of file BaseCondition.cs.

Referenced by Condition.Kill().

◆ sourceElement

SourceElement.Row BaseCondition.sourceElement
get

Definition at line 119 of file BaseCondition.cs.

Referenced by GetElementSource(), and AttackProcess.Perform().

◆ SyncRide

virtual bool BaseCondition.SyncRide
get

Definition at line 111 of file BaseCondition.cs.

◆ TimeBased

virtual bool BaseCondition.TimeBased
get

Definition at line 109 of file BaseCondition.cs.

Referenced by Chara.TickConditions().

◆ UseElements

virtual bool BaseCondition.UseElements
get

Definition at line 113 of file BaseCondition.cs.

Referenced by SetOwner().

◆ value

int BaseCondition.value
getset

Definition at line 17 of file BaseCondition.cs.

18 {
19 get
20 {
21 return _ints[0];
22 }
23 set
24 {
25 _ints[0] = value;
26 }
27 }

Referenced by GetPhase(), GetValue(), Mod(), NotificationBuff.OnRefresh(), NotificationCondition.OnRefresh(), and ToString().

◆ WillOverride

virtual bool BaseCondition.WillOverride
get

Definition at line 95 of file BaseCondition.cs.


The documentation for this class was generated from the following file: