Ejemplo n.º 1
0
    protected override void DoEffect()
    {
        DoDamageNode damage = new DoDamageNode()
        {
            BaseDamage = DamagePerTurn
        };

        IEnumerable <Cell> adjacentCells = Pawn.Grid.GetRange(Pawn.Coordinate, 1, 1);

        foreach (Cell cell in adjacentCells)
        {
            Blackboard state = new Blackboard()
            {
                { "Actor", Pawn },
                { "Cell", cell }
            };

            damage.Do(state);
        }
    }
Ejemplo n.º 2
0
    public override void Setup(IBattleActionElement element)
    {
        DoDamageNode damageNode = element as DoDamageNode;

        amountText.text = damageNode.BaseDamage.ToString();
    }