| | |
| | |
|
| | | 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()
|
| | | {
|
| | |
| | | lv = skillUnlocks[i],
|
| | | });
|
| | | }
|
| | |
|
| | | itemUnlockPetMap[UnLockNeedItemID] = ID;
|
| | | }
|
| | |
|
| | | public static void GetPetSkills(int petId, int lv, bool onlyAcitve, ref List<int> skills)
|
| | |
| | | return false;
|
| | | }
|
| | |
|
| | | public static int GetItemUnLockPet(int itemId)
|
| | | {
|
| | | if (itemUnlockPetMap.ContainsKey(itemId))
|
| | | {
|
| | | return itemUnlockPetMap[itemId];
|
| | | }
|
| | |
|
| | | return 0;
|
| | | }
|
| | |
|
| | | public struct PetSkillLimit
|
| | | {
|
| | | public int skill;
|