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

Public Member Functions

virtual bool CanStack (Condition c)
 
virtual bool TryMove (Point p)
 
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 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 (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 423 of file BaseCondition.cs.

424 {
425 List<string> list = new List<string>();
426 Element defenseAttribute = GetDefenseAttribute();
427 if (defenseAttribute != null)
428 {
429 list.Add("hintDefenseAttb".lang(defenseAttribute.Name.ToTitleCase()));
430 }
431 OnWriteNote(list);
432 string[] nullify = base.source.nullify;
433 foreach (string key in nullify)
434 {
435 list.Add("hintNullify".lang(EClass.sources.stats.alias[key].GetName()));
436 }
437 for (int j = 0; j < base.source.elements.Length; j += 2)
438 {
439 Element element = Element.Create(GetElementSource(j).id, base.source.elements[j + 1].Calc(power, 0, P2));
440 if (elements != null && elements.Has(element.id) && elements.Value(element.id) != element.Value)
441 {
442 list.Add("modValue".lang(element.Name, ((element.Value < 0) ? "" : "+") + elements.Value(element.id) + " (" + element.Value + ")"));
443 }
444 else
445 {
446 list.Add("modValue".lang(element.Name, ((element.Value < 0) ? "" : "+") + element.Value));
447 }
448 }
449 if (list.Count <= 0)
450 {
451 return;
452 }
453 if (!asChild)
454 {
455 n.Space(8);
456 }
457 foreach (string item in list)
458 {
459 n.AddText("_bullet".lang() + item);
460 }
461 }
virtual void OnWriteNote(List< string > list)
SourceElement.Row GetElementSource(int i)
Element GetDefenseAttribute(Chara c=null)
virtual int P2
ElementContainer elements
Definition: EClass.cs:5
static SourceManager sources
Definition: EClass.cs:42
bool Has(int ele)
int Value(int ele)
int id
Definition: ELEMENT.cs:246
int Value
Definition: ELEMENT.cs:288
virtual string Name
Definition: ELEMENT.cs:300
static Element Create(int id, int v=0)
Definition: ELEMENT.cs:1094
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, item, Element.Name, OnWriteNote(), P2, power, 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 405 of file BaseCondition.cs.

406 {
407 return new BaseNotification();
408 }

◆ EvaluatePower()

virtual int BaseCondition.EvaluatePower ( int  p)
inlinevirtual

Definition at line 395 of file BaseCondition.cs.

396 {
397 return p;
398 }

Referenced by Chara.AddCondition().

◆ EvaluateTurn()

virtual int BaseCondition.EvaluateTurn ( int  p)
inlinevirtual

Reimplemented in ConBuffStats.

Definition at line 400 of file BaseCondition.cs.

401 {
402 return Mathf.Max(1, base.source.duration.Calc(p, 0, P2));
403 }

References P2.

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

◆ GetColor()

override Color BaseCondition.GetColor ( Gradient  g)
inlinevirtual

Reimplemented from BaseStats.

Definition at line 186 of file BaseCondition.cs.

187 {
188 return g.Evaluate((base.source.phase.LastItem() == 0) ? 0f : ((float)phase / (float)base.source.phase.LastItem()));
189 }

References phase.

Referenced by NotificationCondition.OnRefresh().

◆ GetDefenseAttribute()

Element BaseCondition.GetDefenseAttribute ( Chara  c = null)
inline

Definition at line 410 of file BaseCondition.cs.

411 {
412 if (base.source.defenseAttb.IsEmpty())
413 {
414 return null;
415 }
416 if (c == null)
417 {
418 return Element.Create(base.source.defenseAttb[0]);
419 }
420 return c.elements.GetOrCreateElement(base.source.defenseAttb[0]);
421 }
ElementContainerCard elements
Definition: Card.cs:37
Element GetOrCreateElement(Element ele)

References Element.Create().

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

◆ GetElementSource()

SourceElement.Row BaseCondition.GetElementSource ( int  i)
inline

Definition at line 217 of file BaseCondition.cs.

218 {
219 string text = base.source.elements[i];
220 if (text == "res")
221 {
222 text = sourceElement.aliasRef;
223 }
224 else if (text == "ele")
225 {
226 text = sourceElement.alias;
227 }
228 return EClass.sources.elements.alias[text];
229 }
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, ConDrug, ConDrunk, ConEntangle, ConFaint, ConFear, ConGravity, ConParalyze, ConReload, ConSleep, ConSmoking, ConSuffocation, ConSuspend, ConWait, ConWet, and ConWrath.

Definition at line 331 of file BaseCondition.cs.

332 {
333 return base.source.phase[Mathf.Clamp(value, 0, 99) / 10];
334 }

References value.

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

◆ GetPhaseStr()

override string BaseCondition.GetPhaseStr ( )
inlinevirtual

Reimplemented from BaseStats.

Reimplemented in ConBuffStats.

Definition at line 359 of file BaseCondition.cs.

360 {
361 string[] textArray = base.source.GetTextArray("strPhase");
362 if (textArray.Length == 0)
363 {
364 return Name;
365 }
366 return textArray[phase].IsEmpty("");
367 }
virtual string Name

References Name, and phase.

Referenced by GetText().

◆ GetRendererReplacer()

virtual RendererReplacer BaseCondition.GetRendererReplacer ( )
inlinevirtual

Reimplemented in ConBoost, ConTransmuteBroom, and ConTransmutePutit.

Definition at line 467 of file BaseCondition.cs.

468 {
469 return null;
470 }

Referenced by Chara._CreateRenderer().

◆ GetSpriteColor()

virtual Color BaseCondition.GetSpriteColor ( )
inlinevirtual

Definition at line 158 of file BaseCondition.cs.

159 {
160 if (!IsElemental)
161 {
162 return Color.white;
163 }
164 return EClass.setting.elements[EClass.sources.elements.map[refVal].alias].colorSprite;
165 }
virtual bool IsElemental
static GameSetting setting
Definition: EClass.cs:34
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 172 of file BaseCondition.cs.

173 {
174 if (!IsNullPhase())
175 {
176 return GetPhaseStr();
177 }
178 return "";
179 }
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 181 of file BaseCondition.cs.

182 {
183 return value;
184 }

References value.

◆ IsNullPhase()

bool BaseCondition.IsNullPhase ( )
inline

Definition at line 322 of file BaseCondition.cs.

323 {
324 if (base.source.strPhase.Length == 0)
325 {
326 return false;
327 }
328 return base.source.strPhase[GetPhase()] == "#";
329 }
override int GetPhase()

References GetPhase().

Referenced by GetText().

◆ Mod()

◆ OnBeforeStart()

virtual void BaseCondition.OnBeforeStart ( )
inlinevirtual

Reimplemented in ConSleep.

Definition at line 270 of file BaseCondition.cs.

271 {
272 }

Referenced by Start().

◆ OnChangePhase()

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

Reimplemented in ConFreeze, and ConPoison.

Definition at line 387 of file BaseCondition.cs.

388 {
389 }

Referenced by SetOwner(), and SetPhase().

◆ OnRefresh()

virtual void BaseCondition.OnRefresh ( )
inlinevirtual

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

Definition at line 306 of file BaseCondition.cs.

307 {
308 }

Referenced by Chara.Refresh().

◆ OnRemoved()

virtual void BaseCondition.OnRemoved ( )
inlinevirtual

◆ OnStart()

virtual void BaseCondition.OnStart ( )
inlinevirtual

Reimplemented in ConAwakening, ConBandage, ConBlind, ConBoost, ConDrunk, ConIncognito, ConInvisibility, ConSuffocation, ConTorch, and ConTransmute.

Definition at line 274 of file BaseCondition.cs.

275 {
276 }

Referenced by Start().

◆ OnStartOrStack()

virtual void BaseCondition.OnStartOrStack ( )
inlinevirtual

Reimplemented in ConNightVision.

Definition at line 278 of file BaseCondition.cs.

279 {
280 }

Referenced by Start().

◆ OnValueChanged()

virtual void BaseCondition.OnValueChanged ( )
inlinevirtual

Reimplemented in Condition.

Definition at line 383 of file BaseCondition.cs.

384 {
385 }

Referenced by Mod().

◆ OnWriteNote()

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

Reimplemented in ConBuffStats, ConHOT, ConMiasma, and ConStrife.

Definition at line 463 of file BaseCondition.cs.

464 {
465 }

Referenced by _WriteNote().

◆ PhaseMsg()

void BaseCondition.PhaseMsg ( bool  inc)
inline

Definition at line 336 of file BaseCondition.cs.

337 {
338 bool flag = (base.source.invert ? (!inc) : inc);
339 string[] array = (inc ? base.source.GetText("textPhase") : base.source.GetText("textPhase2")).Split(Environment.NewLine.ToCharArray());
340 if (array.Length > phase && !array[phase].IsEmpty())
341 {
342 if (Type == ConditionType.Stance)
343 {
344 Msg.SetColor("ono");
345 }
346 else if (!base.source.invert && flag)
347 {
348 Msg.SetColor("negative");
349 }
350 else if (base.source.invert && !flag)
351 {
352 Msg.SetColor("positive");
353 }
354 PopText();
355 owner.Say(array[phase].Split('|').RandomItem(), owner, RefString1);
356 }
357 }
ConditionType
Definition: ConditionType.cs:2
virtual string RefString1
virtual ConditionType Type
Definition: BaseStats.cs:19
void PopText()
Definition: BaseStats.cs:76
void Say(string lang, string ref1=null, string ref2=null)
Definition: Card.cs:6232
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 282 of file BaseCondition.cs.

283 {
284 if (!Condition.ignoreEffect && base.source.effect.Length != 0)
285 {
286 if (!base.source.effect[0].IsEmpty())
287 {
288 owner.PlayEffect(base.source.effect[0]);
289 }
290 owner.PlaySound((base.source.effect.Length >= 2) ? base.source.effect[1] : base.source.effect[0]);
291 }
292 }
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:5585
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
Definition: Card.cs:5619
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 294 of file BaseCondition.cs.

295 {
296 if (base.source.effect.Length >= 3)
297 {
298 if (!base.source.effect[2].IsEmpty())
299 {
300 owner.PlayEffect(base.source.effect[2]);
301 }
302 owner.PlaySound((base.source.effect.Length >= 4) ? base.source.effect[3] : base.source.effect[2]);
303 }
304 }

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

Referenced by Condition.Kill().

◆ SetElement()

void BaseCondition.SetElement ( int  id)
inline

Definition at line 147 of file BaseCondition.cs.

148 {
149 refVal = id;
150 }
int id
Definition: BaseStats.cs:11

References BaseStats.id, and refVal.

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

◆ SetOwner()

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

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

Definition at line 191 of file BaseCondition.cs.

192 {
193 owner = _owner;
194 phase = GetPhase();
195 if (EmoIcon > owner.emoIcon)
196 {
197 owner.emoIcon = EmoIcon;
198 }
199 if (UseElements)
200 {
202 if (base.source.elements.Length != 0)
203 {
204 for (int i = 0; i < base.source.elements.Length; i += 2)
205 {
206 elements.SetBase(GetElementSource(i).id, base.source.elements[i + 1].Calc(power, 0, P2));
207 }
208 }
210 }
211 if (onDeserialize)
212 {
214 }
215 }
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 310 of file BaseCondition.cs.

311 {
312 int num = GetPhase();
313 if (phase != num)
314 {
315 int num2 = phase;
316 phase = num;
317 PhaseMsg(num > num2);
318 OnChangePhase(num2, num);
319 }
320 }
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 152 of file BaseCondition.cs.

153 {
154 refVal = a;
155 refVal2 = b;
156 }

References refVal, and refVal2.

Referenced by Element._WriteNote().

◆ Start()

void BaseCondition.Start ( )
inline

Definition at line 231 of file BaseCondition.cs.

232 {
234 phase = -1;
235 SetPhase();
236 OnStart();
238 PlayEffect();
239 if (base.source.nullify.Length == 0)
240 {
241 return;
242 }
243 for (int num = owner.conditions.Count - 1; num >= 0; num--)
244 {
245 if (TryNullify(owner.conditions[num]))
246 {
247 owner.conditions[num].Kill();
248 }
249 }
250 }
virtual void OnStartOrStack()
virtual void PlayEffect()
virtual void OnStart()
bool TryNullify(Condition c)
virtual void OnBeforeStart()
List< Condition > conditions
Definition: Chara.cs:201

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

◆ Tick()

◆ ToString()

override string BaseCondition.ToString ( )
inline

Definition at line 167 of file BaseCondition.cs.

168 {
169 return Name + " " + value + " " + phase;
170 }

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 252 of file BaseCondition.cs.

253 {
254 if (base.source.nullify.Length == 0)
255 {
256 return false;
257 }
258 string[] nullify = base.source.nullify;
259 foreach (string text in nullify)
260 {
261 if (c.source.alias == text)
262 {
263 owner.Say("nullify", owner, Name.ToLower(), c.Name.ToLower());
264 return true;
265 }
266 }
267 return false;
268 }
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(), and Mod().

◆ 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: