Esempio n. 1
0
    // controllable action constructor
    public Action(BattleNPC me)
    {
        thisNPC = me;

        if (myTargetList != null)
        {
            // clear target list in case myTargetList is the previous list
            myTargetList.Clear();
        }
        else
        {
            // initiate
            myTargetList = new List <BattleNPC>();
        }
        //reset defense point
        if (thisNPC.GetDefendBool() == true)
        {
            thisNPC.SetDefense(thisNPC.GetDefense() + 10);
            thisNPC.SetDefendBool(false);
        }
    }