Пример #1
0
 public override void AppendNotifyOfDeath(Item corpse, Map gameMap)
 {
     AddLoot(corpse);
     gameMap.GetThingsInVicinity(CurrentPosition);
     //Give experience to all creatures who attacked
     foreach (AttackersInformation atkInfo in attackersInfoList) {
             if (atkInfo.Attacker.LogedIn) {
                 uint xp = FigureOutExperienceAmt(atkInfo.DamageByCreature, totalDamageDealt);
                 atkInfo.Attacker.AddExperienceGain(xp * Config.GetXPRate());
             }
     }
     if (IsSummon()) {
         Master.RemoveSummon(this);
     }
     World.AppendRemoveMonster(this);
 }