Ejemplo n.º 1
0
 //Monster update
 void MonsterUpdate(MonsterModel data)
 {
     health        = data.health;
     maxHealth     = data.maxHealth;
     speed         = data.speed;
     rangedDefense = data.rangedDefense;
     defense       = data.defense;
     attack        = data.attack;
     Description   = data.Description;
     Name          = data.Name;
     level         = data.level;
     if (level > 20)
     {
         level = 20;
     }
 }
Ejemplo n.º 2
0
        //Information available in the event of a monster being updated
        public bool Update(MonsterModel data)
        {
            Name          = data.Name;
            Description   = data.Description;
            level         = data.level;
            health        = data.health;
            maxHealth     = data.maxHealth;
            speed         = data.speed;
            attack        = data.attack;
            rangedDefense = data.rangedDefense;
            defense       = data.defense;

            healthMult        = data.healthMult;
            speedMult         = data.speedMult;
            defenseMult       = data.defenseMult;
            rangedDefenseMult = data.rangedDefense;
            attackMult        = data.attackMult;

            dead    = false;
            ability = null;
            return(true);
        }