Beispiel #1
0
        public virtual void Use(params Character[] target)
        {
            //example
            Console.WriteLine("USED ABILITY");
            StatValues health = target[0].Stats.Health;

            Console.WriteLine(health.Current);
            Console.WriteLine(power);
            target[0].Stats.Health =
                new StatValues(health.current - this.power, health.Base);
        }
Beispiel #2
0
 private void CopyStats(Stats stats)
 {
     this.health       = stats.health;
     this.mana         = stats.mana;
     this.attack       = stats.attack;
     this.aptitude     = stats.aptitude;
     this.defense      = stats.defense;
     this.speed        = stats.speed;
     this.poisoned     = stats.poisoned;
     this.weakened     = stats.weakened;
     this.strengthened = stats.strengthened;
 }
Beispiel #3
0
        public Stats()
        {
            //stats
            health = new StatValues();
            mana   = new StatValues();
            attack = new StatValues();

            //status effects
            poisoned     = new StatusEffect();
            weakened     = new StatusEffect();
            strengthened = new StatusEffect();
        }