Elin Decompiled Documentation EA 23.248 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 ShouldOverride (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 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 sqrt (int a)
 
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 431 of file BaseCondition.cs.

432 {
433 List<string> list = new List<string>();
434 Element defenseAttribute = GetDefenseAttribute();
435 if (defenseAttribute != null)
436 {
437 list.Add("hintDefenseAttb".lang(defenseAttribute.Name.ToTitleCase()));
438 }
439 OnWriteNote(list);
440 string[] nullify = base.source.nullify;
441 foreach (string key in nullify)
442 {
443 list.Add("hintNullify".lang(EClass.sources.stats.alias[key].GetName()));
444 }
445 for (int j = 0; j < base.source.elements.Length; j += 2)
446 {
447 Element e = Element.Create(GetElementSource(j).id, base.source.elements[j + 1].Calc(power, 0, P2));
448 if (e.IsFlag)
449 {
450 list.Add(e.Name.TagColorGoodBad(() => e.Value >= 0));
451 }
452 else if (elements != null && elements.Has(e.id) && elements.Value(e.id) != e.Value)
453 {
454 list.Add("modValue".lang(e.Name, ((e.Value < 0) ? "" : "+") + elements.Value(e.id) + (e.source.tag.Contains("ratio") ? "%" : "") + " (" + e.Value + ")").TagColor(() => e.Value >= 0));
455 }
456 else
457 {
458 list.Add("modValue".lang(e.Name, ((e.Value < 0) ? "" : "+") + e.Value + (e.source.tag.Contains("ratio") ? "%" : "")).TagColorGoodBad(() => e.Value >= 0));
459 }
460 }
461 if (list.Count <= 0)
462 {
463 return;
464 }
465 if (!asChild)
466 {
467 n.Space(8);
468 }
469 foreach (string item in list)
470 {
471 n.AddText("_bullet".lang() + item);
472 }
473 }
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:1102
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 135 of file BaseCondition.cs.

136 {
137 return true;
138 }

◆ CreateNotification()

virtual BaseNotification BaseCondition.CreateNotification ( )
inlinevirtual

Reimplemented in BaseDebuff, BaseStance, Condition, and ConSupress.

Definition at line 413 of file BaseCondition.cs.

414 {
415 return new BaseNotification();
416 }

◆ EvaluatePower()

virtual int BaseCondition.EvaluatePower ( int  p)
inlinevirtual

Definition at line 403 of file BaseCondition.cs.

404 {
405 return p;
406 }

Referenced by Chara.AddCondition().

◆ EvaluateTurn()

virtual int BaseCondition.EvaluateTurn ( int  p)
inlinevirtual

Reimplemented in ConBuffStats.

Definition at line 408 of file BaseCondition.cs.

409 {
410 return Mathf.Max(1, base.source.duration.Calc(p, 0, P2));
411 }

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

195 {
196 return g.Evaluate((base.source.phase.LastItem() == 0) ? 0f : ((float)phase / (float)base.source.phase.LastItem()));
197 }

References phase.

Referenced by NotificationCondition.OnRefresh().

◆ GetDefenseAttribute()

Element BaseCondition.GetDefenseAttribute ( Chara  c = null)
inline

Definition at line 418 of file BaseCondition.cs.

419 {
420 if (base.source.defenseAttb.IsEmpty())
421 {
422 return null;
423 }
424 if (c == null)
425 {
426 return Element.Create(base.source.defenseAttb[0]);
427 }
428 return c.elements.GetOrCreateElement(base.source.defenseAttb[0]);
429 }
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 150 of file BaseCondition.cs.

151 {
152 return elements;
153 }

References elements.

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

◆ GetElementSource()

SourceElement.Row BaseCondition.GetElementSource ( int  i)
inline

Definition at line 225 of file BaseCondition.cs.

226 {
227 string text = base.source.elements[i];
228 if (text == "res")
229 {
230 text = sourceElement.aliasRef;
231 }
232 else if (text == "ele")
233 {
234 text = sourceElement.alias;
235 }
236 return EClass.sources.elements.alias[text];
237 }
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 339 of file BaseCondition.cs.

340 {
341 return base.source.phase[Mathf.Clamp(value, 0, 99) / 10];
342 }

References value.

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

◆ GetPhaseStr()

override string BaseCondition.GetPhaseStr ( )
inlinevirtual

Reimplemented from BaseStats.

Reimplemented in ConBuffStats.

Definition at line 367 of file BaseCondition.cs.

368 {
369 string[] textArray = base.source.GetTextArray("strPhase");
370 if (textArray.Length == 0)
371 {
372 return Name;
373 }
374 return textArray[phase].IsEmpty("");
375 }
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 479 of file BaseCondition.cs.

480 {
481 return null;
482 }

Referenced by Chara._CreateRenderer().

◆ GetSpriteColor()

virtual Color BaseCondition.GetSpriteColor ( )
inlinevirtual

Definition at line 166 of file BaseCondition.cs.

167 {
168 if (!IsElemental)
169 {
170 return Color.white;
171 }
172 return EClass.setting.elements[EClass.sources.elements.map[refVal].alias].colorSprite;
173 }
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 180 of file BaseCondition.cs.

181 {
182 if (!IsNullPhase())
183 {
184 return GetPhaseStr();
185 }
186 return "";
187 }
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 189 of file BaseCondition.cs.

190 {
191 return value;
192 }

References value.

◆ IsNullPhase()

bool BaseCondition.IsNullPhase ( )
inline

Definition at line 330 of file BaseCondition.cs.

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

References GetPhase().

Referenced by GetText().

◆ Mod()

◆ OnBeforeStart()

virtual void BaseCondition.OnBeforeStart ( )
inlinevirtual

Reimplemented in ConSleep.

Definition at line 278 of file BaseCondition.cs.

279 {
280 }

Referenced by Start().

◆ OnChangePhase()

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

Reimplemented in ConFreeze, and ConPoison.

Definition at line 395 of file BaseCondition.cs.

396 {
397 }

Referenced by SetOwner(), and SetPhase().

◆ OnRefresh()

virtual void BaseCondition.OnRefresh ( )
inlinevirtual

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

Definition at line 314 of file BaseCondition.cs.

315 {
316 }

Referenced by Chara.Refresh().

◆ OnRemoved()

◆ OnStart()

virtual void BaseCondition.OnStart ( )
inlinevirtual

◆ OnStartOrStack()

virtual void BaseCondition.OnStartOrStack ( )
inlinevirtual

Reimplemented in ConNightVision.

Definition at line 286 of file BaseCondition.cs.

287 {
288 }

Referenced by Start().

◆ OnValueChanged()

virtual void BaseCondition.OnValueChanged ( )
inlinevirtual

Reimplemented in Condition.

Definition at line 391 of file BaseCondition.cs.

392 {
393 }

Referenced by Mod().

◆ OnWriteNote()

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

Reimplemented in ConBuffStats, ConHOT, ConMiasma, and ConStrife.

Definition at line 475 of file BaseCondition.cs.

476 {
477 }

Referenced by _WriteNote().

◆ PhaseMsg()

void BaseCondition.PhaseMsg ( bool  inc)
inline

Definition at line 344 of file BaseCondition.cs.

345 {
346 bool flag = (base.source.invert ? (!inc) : inc);
347 string[] array = (inc ? base.source.GetText("textPhase") : base.source.GetText("textPhase2")).Split(Environment.NewLine.ToCharArray());
348 if (array.Length > phase && !array[phase].IsEmpty())
349 {
350 if (Type == ConditionType.Stance)
351 {
352 Msg.SetColor("ono");
353 }
354 else if (!base.source.invert && flag)
355 {
356 Msg.SetColor("negative");
357 }
358 else if (base.source.invert && !flag)
359 {
360 Msg.SetColor("positive");
361 }
362 PopText();
363 owner.Say(array[phase].Split('|').RandomItem(), owner, RefString1);
364 }
365 }
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:6830
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 290 of file BaseCondition.cs.

291 {
292 if (!Condition.ignoreEffect && base.source.effect.Length != 0)
293 {
294 if (!base.source.effect[0].IsEmpty())
295 {
296 owner.PlayEffect(base.source.effect[0]);
297 }
298 owner.PlaySound((base.source.effect.Length >= 2) ? base.source.effect[1] : base.source.effect[0]);
299 }
300 }
SoundSource PlaySound(string id, float v=1f, bool spatial=true)
Definition: Card.cs:6177
Effect PlayEffect(string id, bool useRenderPos=true, float range=0f, Vector3 fix=default(Vector3))
Definition: Card.cs:6211
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 302 of file BaseCondition.cs.

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

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

Referenced by Condition.Kill().

◆ SetElement()

void BaseCondition.SetElement ( int  id)
inline

Definition at line 155 of file BaseCondition.cs.

156 {
157 refVal = id;
158 }
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 199 of file BaseCondition.cs.

200 {
201 owner = _owner;
202 phase = GetPhase();
203 if (EmoIcon > owner.emoIcon)
204 {
205 owner.emoIcon = EmoIcon;
206 }
207 if (UseElements)
208 {
210 if (base.source.elements.Length != 0)
211 {
212 for (int i = 0; i < base.source.elements.Length; i += 2)
213 {
214 elements.SetBase(GetElementSource(i).id, base.source.elements[i + 1].Calc(power, 0, P2));
215 }
216 }
218 }
219 if (onDeserialize)
220 {
222 }
223 }
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 318 of file BaseCondition.cs.

319 {
320 int num = GetPhase();
321 if (phase != num)
322 {
323 int num2 = phase;
324 phase = num;
325 PhaseMsg(num > num2);
326 OnChangePhase(num2, num);
327 }
328 }
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 160 of file BaseCondition.cs.

161 {
162 refVal = a;
163 refVal2 = b;
164 }

References refVal, and refVal2.

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

◆ ShouldOverride()

virtual bool BaseCondition.ShouldOverride ( Condition  c)
inlinevirtual

Reimplemented in BaseDebuff, ConBuffStats, ConDark, ConParalyze, ConStrife, and ConWait.

Definition at line 140 of file BaseCondition.cs.

141 {
142 return false;
143 }

◆ Start()

void BaseCondition.Start ( )
inline

Definition at line 239 of file BaseCondition.cs.

240 {
242 phase = -1;
243 SetPhase();
244 OnStart();
246 PlayEffect();
247 if (base.source.nullify.Length == 0)
248 {
249 return;
250 }
251 for (int num = owner.conditions.Count - 1; num >= 0; num--)
252 {
253 if (TryNullify(owner.conditions[num]))
254 {
255 owner.conditions[num].Kill();
256 }
257 }
258 }
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 175 of file BaseCondition.cs.

176 {
177 return Name + " " + value + " " + phase;
178 }

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

146 {
147 return true;
148 }

Referenced by Chara.TryMove().

◆ TryNullify()

bool BaseCondition.TryNullify ( Condition  c)
inline

Definition at line 260 of file BaseCondition.cs.

261 {
262 if (base.source.nullify.Length == 0)
263 {
264 return false;
265 }
266 string[] nullify = base.source.nullify;
267 foreach (string text in nullify)
268 {
269 if (c.source.alias == text)
270 {
271 owner.Say("nullify", owner, Name.ToLower(), c.Name.ToLower());
272 return true;
273 }
274 }
275 return false;
276 }
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 95 of file BaseCondition.cs.

◆ CancelAI

virtual bool BaseCondition.CancelAI
get

Definition at line 105 of file BaseCondition.cs.

◆ CanManualRemove

virtual bool BaseCondition.CanManualRemove
get

Definition at line 133 of file BaseCondition.cs.

Referenced by NotificationCondition.OnClick().

◆ ConsumeTurn

virtual bool BaseCondition.ConsumeTurn
get

Definition at line 97 of file BaseCondition.cs.

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

◆ GainResistFactor

virtual int BaseCondition.GainResistFactor
get

Definition at line 113 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 99 of file BaseCondition.cs.

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

◆ IsElemental

virtual bool BaseCondition.IsElemental
get

Definition at line 119 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 115 of file BaseCondition.cs.

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

◆ power

int BaseCondition.power
getset

◆ PreventRegen

virtual bool BaseCondition.PreventRegen
get

Definition at line 101 of file BaseCondition.cs.

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

◆ RefString1

virtual string BaseCondition.RefString1
get

Definition at line 121 of file BaseCondition.cs.

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

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

Referenced by Condition.Kill().

◆ sourceElement

SourceElement.Row BaseCondition.sourceElement
get

Definition at line 117 of file BaseCondition.cs.

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

◆ SyncRide

virtual bool BaseCondition.SyncRide
get

Definition at line 109 of file BaseCondition.cs.

◆ TimeBased

virtual bool BaseCondition.TimeBased
get

Definition at line 107 of file BaseCondition.cs.

Referenced by Chara.TickConditions().

◆ UseElements

virtual bool BaseCondition.UseElements
get

Definition at line 111 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().


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