public static int getProp(int FigSpiritId, int lv, int place) { FightSpiritTemplateInfo spiritTemplateInfo = FightSpiritTemplateMgr.FindFightSpiritTemplateInfo(FigSpiritId, lv); switch (place) { case 2: return(spiritTemplateInfo.Attack); case 3: return(spiritTemplateInfo.Lucky); case 5: return(spiritTemplateInfo.Agility); case 11: return(spiritTemplateInfo.Defence); case 13: return(spiritTemplateInfo.Blood); default: return(0); } }
private static bool Load(Dictionary <int, FightSpiritTemplateInfo> consortiaLevel) { using (PlayerBussiness playerBussiness = new PlayerBussiness()) { FightSpiritTemplateInfo[] allFightSpiritTemplate = playerBussiness.GetAllFightSpiritTemplate(); FightSpiritTemplateInfo[] array = allFightSpiritTemplate; for (int i = 0; i < array.Length; i++) { FightSpiritTemplateInfo fightSpiritTemplateInfo = array[i]; if (!consortiaLevel.ContainsKey(fightSpiritTemplateInfo.ID)) { consortiaLevel.Add(fightSpiritTemplateInfo.ID, fightSpiritTemplateInfo); } } } return(true); }