Exemple #1
0
 private void loadMonsterNpcs(dynamic resource)
 {
     foreach (dynamic npcRes in resource.MonsterNPCList)
     {
         var npc = new MonsterNpc();
         loadMonsterNpc(npcRes, npc);
         _monsterNpcs.Add(npc.Index, npc);
     }
 }
Exemple #2
0
 private void loadMonsterNpc(dynamic npcRes, MonsterNpc npc)
 {
     npc.Index     = npcRes.Index;
     npc.Model     = npcRes.NpcModel;
     npc.Skin      = npcRes.NpcSkin;
     npc.AILevel   = npcRes.NpcAILevel;
     npc.Hitpoints = npcRes.HP;
     npc.Strength  = (byte)((int)npcRes.STR);
     npc.Stamina   = (byte)((int)npcRes.STA);
     npc.Dexterity = (byte)((int)npcRes.DEX);
     npc.Willpower = (byte)((int)npcRes.WIL);
 }