public override Definition ParseMain(BinaryReader f, int RecNo) { var info = new SkillNameInfo(); info = (SkillNameInfo) ReadFieldValue(f, info, "id", "description"); if (RConfig.Instance.DatVersionAsEnum >= DatVersion.C5) info = (SkillNameInfo) ReadFieldValue(f, info, "desc_add1", "desc_add2"); String devString = " (id: " + info.Id + "; level: " + info.Level + ")"; if (RConfig.Instance.DevelopMode && !info.Name.EndsWith(devString)) { info.Name = info.Name + devString; } else if (!RConfig.Instance.DevelopMode && info.Name.EndsWith(devString)) { info.Name = info.Name.Replace(devString, ""); } return info; }
public override Definition ParseMain(BinaryReader f, int RecNo) { var info = new SkillNameInfo(); info = (SkillNameInfo)ReadFieldValue(f, info, "id", "description"); if (RConfig.Instance.DatVersionAsEnum >= DatVersion.C5) { info = (SkillNameInfo)ReadFieldValue(f, info, "desc_add1", "desc_add2"); } String devString = " (id: " + info.Id + "; level: " + info.Level + ")"; if (RConfig.Instance.DevelopMode && !info.Name.EndsWith(devString)) { info.Name = info.Name + devString; } else if (!RConfig.Instance.DevelopMode && info.Name.EndsWith(devString)) { info.Name = info.Name.Replace(devString, ""); } return(info); }