public int DamageToDo(Creature creature) { //get the int finalDamage = 0; if (creature.Type == 0) { finalDamage = cc.GetBaseDamage(creature) + (int)Math.Ceiling((double)creature.Level / 4); } else { finalDamage = mc.GetBaseDamage(creature) + (int)Math.Ceiling((double)creature.Level / 4); } return(finalDamage); }
public int DamageToDo(Creature creature) //Damage done by the creature { //get the int finalDamage = 0; if (creature.Type == 0) { finalDamage = cc.GetBaseDamage(creature) + (int)Math.Ceiling((double)creature.Level / 4); //damage calculate for a character } else { finalDamage = mc.GetBaseDamage(creature) + (int)Math.Ceiling((double)creature.Level / 4);//damage calculate for a monster } return(finalDamage); }