public TriggeredEffect(EffectTriggers trigger, SkillPartBase effect = null) { this.trigger = trigger; if (effect != null) { AddEffect(effect); } }
public ExecuteEffectEvent(SkillPartBase effect, BattlePawnBase caster, BattlePawnBase target, bool fromSpell = false, int valueFromPrevious = -1) { this.effect = effect; this.caster = caster; this.target = target; this.fromSpell = fromSpell; this.valueFromPrevious = valueFromPrevious; }
public TileType(string name, string flavorText, bool blocksMelee = false, bool blocksRanged = false, SkillPartBase startOfTurn = null, SkillPartBase passOver = null, SkillPartBase stopOnTile = null, SkillPartBase endOfTurn = null) { this.name = name; this.flavorText = flavorText; blocksMeleeAttacks = blocksMelee; blocksRangedAttacks = blocksRanged; this.startOfTurn = startOfTurn; this.passOver = passOver; this.stopOnTile = stopOnTile; this.endOfTurn = endOfTurn; }
/// <summary> /// Adds an effect to be triggered by the given event /// </summary> /// <param name="effect">Effect to add</param> public void AddEffect(SkillPartBase effect) { effects.Add(effect); }