Ejemplo n.º 1
0
 public override void CastSkill(LivingEntities target, LivingEntities self)
 {
     if (self.Manacheck(fireBallCost))
     {
         self.DeductMana(fireBallCost);
         self.Attack(target, (int)(self.AttackStat * 2));
     }
     else
     {
         MonoBehaviour.print("NOT ENOUGH MANA");
     }
 }
Ejemplo n.º 2
0
 public override void CastSkill(LivingEntities target, LivingEntities self)
 {
     if (DiceRoller.RollDice() < self.CalcCritChance())
     {
         MonoBehaviour.print("Greater Heal");
         target.HealHealth((int)(healAmount));
     }
     else
     {
         MonoBehaviour.print("Lesser Heal");
         target.HealHealth(healAmount);
     }
 }
Ejemplo n.º 3
0
    public override void CastSkill(LivingEntities target, LivingEntities self)
    {
        if (DiceRoller.PickpocketCheck(self))
        {
            int itemToSteal = Random.Range(1, 4);
            switch (itemToSteal)
            {
            case 1:
                MonoBehaviour.print("Potion Stolen");
                break;

            case 2:
                MonoBehaviour.print("Mana Potion Stolen");
                break;

            case 3:
                MonoBehaviour.print("LockPick Stolen");
                break;
            }
        }
    }
Ejemplo n.º 4
0
 public override void CastSkill(LivingEntities target, LivingEntities self)
 {
     self.AttackWithHitPenalty(target, (int)(self.AttackStat * 1.5), hitpenalty);
 }
Ejemplo n.º 5
0
 public static bool PickpocketCheck(LivingEntities entity)
 {
     return(DiceRoller.RollDice() < (entity.Motivation - 20));
 }
Ejemplo n.º 6
0
 public abstract void CastSkill(LivingEntities target, LivingEntities self);