示例#1
0
文件: MapNpc.cs 项目: Vorlent/OpenNos
 public void RunDeathEvent()
 {
     MapInstance.InstanceBag.NpcsKilled++;
     OnDeathEvents.ToList().ForEach(e =>
     {
         if (e.EventActionType == EventActionType.THROWITEMS)
         {
             Tuple <int, short, byte, int, int> evt = (Tuple <int, short, byte, int, int>)e.Parameter;
             e.Parameter = new Tuple <int, short, byte, int, int>(MapNpcId, evt.Item2, evt.Item3, evt.Item4, evt.Item5);
         }
         EventHelper.Instance.RunEvent(e);
     });
     OnDeathEvents.Clear();
 }