Esempio n. 1
0
 public void Execute(object parameter)
 {
     data.Playerhealth += heal;
     if (data.Playerhealth > data.Playermaxhealth)
     {
         data.Playerhealth = data.Playermaxhealth;
     }
     data.Playermana -= manacost;
     EnemyControler.Attack(data);
 }
Esempio n. 2
0
 public void Execute(object parameter)
 {
     if (data.Playermana < manacost)
     {
     }
     else
     {
         data.Enemyhealth -= data.Playerint;
         data.Playermana  -= manacost;
         EnemyControler.Attack(data);
     }
 }
Esempio n. 3
0
        public void Execute(object parameter)
        {
            data.Enemydmg    = defense;
            data.Playermana += ManaUp;

            if (data.Playermana >= data.Playermaxmana)
            {
                data.Playermana = data.Playermaxmana;
            }


            //data.Playerdef += basedef * 0.6f;
            EnemyControler.Attack(data);
            data.Enemydmg = EnemyDamage;
            //data.Playerdef = basedef;
        }
Esempio n. 4
0
        public void Execute(object parameter)
        {
            if (data.Playerhealth >= data.Playermaxhealth)
            {
                data.Playerhealth = data.Playermaxhealth;
            }
            else if (data.Playermana < manacost)
            {
            }

            else
            {
                data.Playerhealth += heal;
                data.Playermana   -= manacost;
                EnemyControler.Attack(data);
            }
        }
Esempio n. 5
0
 public void Execute(object parameter)
 {
     data.Enemyhealth -= data.Playerdmg;
     EnemyControler.Attack(data);
 }
Esempio n. 6
0
 public void Execute(object parameter)
 {
     data.Playerdef += basedef * 0.6f;
     EnemyControler.Attack(data);
     data.Playerdef = basedef;
 }