private static string GetMsgEntryName_SkillDesc(int skillID2, CUS.CUS_File.SkillType skillType) { string name; switch (skillType) { case CUS.CUS_File.SkillType.Super: name = String.Format("spe_skill_eff_{0}", skillID2.ToString("D4")); break; case CUS.CUS_File.SkillType.Ultimate: name = String.Format("ult_eff_{0}", skillID2.ToString("D4")); break; case CUS.CUS_File.SkillType.Evasive: name = String.Format("avoid_skill_eff_{0}", skillID2.ToString("D4")); break; case CUS.CUS_File.SkillType.Blast: throw new InvalidDataException("GetSkillDesc: Blast was passed in as skillType, but these skills dont have descriptions."); case CUS.CUS_File.SkillType.Awoken: name = String.Format("met_skill_eff_{0}", skillID2.ToString("D4")); break; default: throw new InvalidDataException("GetSkillDesc: Unknown skillType = " + skillType); } return(name); }
public string GetSkillDesc(int skillID2, CUS.CUS_File.SkillType skillType) { string name = GetMsgEntryName_SkillDesc(skillID2, skillType); foreach (var entry in MSG_Entries) { if (entry.Name == name) { return(WebUtility.HtmlDecode(entry.Msg_Content[0].Text)); } } return(null); }
public void SetSkillDesc(string desc, int skillID2, CUS.CUS_File.SkillType skillType) { string msgEntryName = GetMsgEntryName_SkillDesc(skillID2, skillType); var entry = MSG_Entries.FirstOrDefault(x => x.Name == msgEntryName); if (entry != null) { entry.Msg_Content[0].Text = desc; } else { AddEntry(msgEntryName, desc); } }
public string GetSkillDesc(int skillID2, CUS.CUS_File.SkillType skillType) { string name; switch (skillType) { case CUS.CUS_File.SkillType.Super: name = String.Format("spe_skill_eff_{0}", skillID2.ToString("D4")); break; case CUS.CUS_File.SkillType.Ultimate: name = String.Format("ult_eff_{0}", skillID2.ToString("D4")); break; case CUS.CUS_File.SkillType.Evasive: name = String.Format("avoid_skill_eff_{0}", skillID2.ToString("D4")); break; case CUS.CUS_File.SkillType.Blast: throw new InvalidDataException("GetSkillDesc: Blast was passed in as skillType, but these skills dont have descriptions."); case CUS.CUS_File.SkillType.Awoken: name = String.Format("met_skill_eff_{0}", skillID2.ToString("D4")); break; default: throw new InvalidDataException("GetSkillDesc: Unknown skillType = " + skillType); } foreach (var entry in MSG_Entries) { if (entry.Name == name) { return(WebUtility.HtmlDecode(entry.Msg_Content[0].Text)); } } return(null); }