8 public virtual bool IsKilled
12 return base.value <= 0;
26 public static T Create<T>(
int power = 100, Action<T> onCreate =
null) where T :
Condition
35 public static Condition Create(
string alias,
int power = 100, Action<Condition> onCreate =
null)
39 condition.power = power;
40 condition.id = row.id;
41 condition._source = row;
51 public virtual string TextDuration
58 if ((result = base.value.ToString()) ==
null)
72 public virtual void OnStacked(
int p)
74 base.value += this.EvaluateTurn(p);
79 public Condition SetPerfume(
int duration = 3)
81 base.isPerfume =
true;
82 base.value = duration;
87 public override void Tick()
93 public virtual void OnCalculateFov(
Fov fov, ref
int radius, ref
float power)
98 public virtual void OnCreateFov(
Fov fov)
103 public override void OnValueChanged()
112 public void Kill(
bool silent =
false)
115 this.owner.conditions.Remove(
this);
116 if (!silent && !this.owner.isDead && !base.source.textEnd.IsEmpty())
118 this.owner.Say(base.source.GetText(
"textEnd",
false),
this.owner,
this.RefString1,
null);
120 this.PlayEndEffect();
122 if (this.elements !=
null)
124 this.elements.SetParent(
null);
126 this.owner.SetDirtySpeed();
127 if (this.ShouldRefresh)
129 this.owner.Refresh(
false);
134 public static bool ignoreEffect;