Пример #1
0
 public int GetSpiderKills(ZombieInstanceSerial uid)
 {
     if (SpiderKills.ContainsKey(uid))
     {
         return(SpiderKills[uid]);
     }
     return(0);
 }
Пример #2
0
 public void AddKill(BaseCreature mob)
 {
     if (mob is ZombieZEvent)
     {
         if (ZombieKills.ContainsKey(mob.ZombieSerial))
         {
             ZombieKills[mob.ZombieSerial]++;
         }
         else
         {
             ZombieKills.Add(mob.ZombieSerial, 1);
         }
         OverallScore++;
         SpendablePoints++;
     }
     else if (mob is DaemonZombieEvent)
     {
         if (DaemonKills.ContainsKey(mob.ZombieSerial))
         {
             DaemonKills[mob.ZombieSerial]++;
         }
         else
         {
             DaemonKills.Add(mob.ZombieSerial, 1);
         }
         OverallScore    += 5;
         SpendablePoints += 5;
     }
     else if (mob is FeyWarrior)
     {
         if (FeyKills.ContainsKey(mob.ZombieSerial))
         {
             FeyKills[mob.ZombieSerial]++;
         }
         else
         {
             FeyKills.Add(mob.ZombieSerial, 1);
         }
         OverallScore    += 10;
         SpendablePoints += 10;
     }
     else if (mob is GoreFiendZombieEvent)
     {
         if (GoreFiendKills.ContainsKey(mob.ZombieSerial))
         {
             GoreFiendKills[mob.ZombieSerial]++;
         }
         else
         {
             GoreFiendKills.Add(mob.ZombieSerial, 1);
         }
         OverallScore    += 10;
         SpendablePoints += 10;
     }
     else if (mob is HorrifyingTentacle)
     {
         if (TentacleKills.ContainsKey(mob.ZombieSerial))
         {
             TentacleKills[mob.ZombieSerial]++;
         }
         else
         {
             TentacleKills.Add(mob.ZombieSerial, 1);
         }
         OverallScore    += 1;
         SpendablePoints += 1;
     }
     else if (mob is TreeFellow)
     {
         if (TreefellowKills.ContainsKey(mob.ZombieSerial))
         {
             TreefellowKills[mob.ZombieSerial]++;
         }
         else
         {
             TreefellowKills.Add(mob.ZombieSerial, 1);
         }
         OverallScore    += 10;
         SpendablePoints += 10;
     }
     else if (mob is Vitriol)
     {
         if (VitriolKills.ContainsKey(mob.ZombieSerial))
         {
             VitriolKills[mob.ZombieSerial]++;
         }
         else
         {
             VitriolKills.Add(mob.ZombieSerial, 1);
         }
         OverallScore    += 20;
         SpendablePoints += 20;
     }
     else if (mob is ZombieSpider)
     {
         if (SpiderKills.ContainsKey(mob.ZombieSerial))
         {
             SpiderKills[mob.ZombieSerial]++;
         }
         else
         {
             SpiderKills.Add(mob.ZombieSerial, 1);
         }
         OverallScore    += 2;
         SpendablePoints += 2;
     }
 }