From 6d101512ba4cb8e37a98ace6320a0b70c96efa2b Mon Sep 17 00:00:00 2001
From: client_linchunjie <461730578@qq.com>
Date: 星期三, 17 四月 2019 10:34:06 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
Core/GameEngine/Model/TelPartialConfig/PetInfoConfig.cs | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/Core/GameEngine/Model/TelPartialConfig/PetInfoConfig.cs b/Core/GameEngine/Model/TelPartialConfig/PetInfoConfig.cs
index 73e6d8f..b692904 100644
--- a/Core/GameEngine/Model/TelPartialConfig/PetInfoConfig.cs
+++ b/Core/GameEngine/Model/TelPartialConfig/PetInfoConfig.cs
@@ -3,7 +3,8 @@
public partial class PetInfoConfig : IConfigPostProcess
{
- public static Dictionary<int, List<PetSkillLimit>> petSkillDict = new Dictionary<int, List<PetSkillLimit>>();
+ static Dictionary<int, List<PetSkillLimit>> petSkillDict = new Dictionary<int, List<PetSkillLimit>>();
+ static Dictionary<int, int> itemUnlockPetMap = new Dictionary<int, int>();
public void OnConfigParseCompleted()
{
@@ -24,6 +25,8 @@
lv = skillUnlocks[i],
});
}
+
+ itemUnlockPetMap[UnLockNeedItemID] = ID;
}
public static void GetPetSkills(int petId, int lv, bool onlyAcitve, ref List<int> skills)
@@ -81,6 +84,16 @@
return false;
}
+ public static int GetItemUnLockPet(int itemId)
+ {
+ if (itemUnlockPetMap.ContainsKey(itemId))
+ {
+ return itemUnlockPetMap[itemId];
+ }
+
+ return 0;
+ }
+
public struct PetSkillLimit
{
public int skill;
--
Gitblit v1.8.0