public FormationInfo GetFormationInfo(int id) { if (FormationInfoDictionary.ContainsKey(id)) { return(FormationInfoDictionary[id]); } return(null); }
//阵型战力加成 public float FormationPower(int formationId) { if (!FormationInfoDictionary.ContainsKey(formationId)) { return(0); } FormationInfo info = FormationInfoDictionary[formationId]; return(info.Power); }