/* * onAfterHit?: EffectData["onAfterHit"] * onHit?: EffectData["onHit"] */ public SecondaryEffect(BoostsTable boosts = null, int chance = -1, string status = "", string volatileStatus = "") { this.boosts = boosts; this.chance = chance; this.status = status; this.volatileStatus = volatileStatus; }
public SelfEffect(BoostsTable boosts = null, int chance = 0, string sideConditionId = "", string volatileStatusId = "", Callbacks.EventCallback onHit = null) { this.boosts = boosts; this.chance = chance; this.sideConditionId = sideConditionId; this.volatileStatusId = volatileStatusId; this.onHit = onHit; }
public void SetAllBoosts(BoostsTable boosts) { this.hp = boosts.hp; this.atk = boosts.atk; this.def = boosts.def; this.spa = boosts.spa; this.spd = boosts.spd; this.spe = boosts.spe; this.accuracy = boosts.accuracy; this.evasion = boosts.evasion; }