Example #1
0
 // TODO : Сделать разную скорость атаки монстров.
 public virtual void Respawn(int level)
 {
     Attacker     = new MonsterAttackController(this);
     Level        = level;
     Damage       = MonsterStatsBalance.GetDefaultDPS(level);
     AttackSpeed  = 1.0;
     Accuracy     = MonsterStatsBalance.GetDefaultAccuracy(level);
     Evasion      = MonsterStatsBalance.GetDefaultEvasion(level);
     MaxHealth    = MonsterStatsBalance.GetDefaultHealth(level);
     Health       = MaxHealth;
     DroppedItems = DropFactory.Build(level, MonsterStatsBalance.GetDefaultDropValue(level));
     IsDead       = false;
     IsDropTaken  = false;
 }
Example #2
0
 /// Creates a single drop [Rarity].
 public static Rarity BuildRarity(int rarity, string name, int?level = null)
 {
     return(new Rarity(rarity, DropFactory.parseDrop(name, level)));
 }