public override Definition ParseMain(BinaryReader f, int RecNo) { if (RConfig.Instance.DatVersionAsEnum >= DatVersion.Gracia_Final) { ItemNameInfo_Gracia_Final info = new ItemNameInfo_Gracia_Final(); info = (ItemNameInfo_Gracia_Final)ReadFieldValue(f, info, "id", "popup"); info = (ItemNameInfo_Gracia_Final)ReadFieldValue(f, info, "supercnt0"); info = (ItemNameInfo_Gracia_Final)ReadFieldValue(f, info, "set_ids"); info = (ItemNameInfo_Gracia_Final)ReadFieldValue(f, info, "set_bonus_desc"); info = (ItemNameInfo_Gracia_Final)ReadFieldValue(f, info, "supercnt1"); info = (ItemNameInfo_Gracia_Final)ReadFieldValue(f, info, "set_extra_ids"); info = (ItemNameInfo_Gracia_Final)ReadFieldValue(f, info, "set_extra_desc"); info = (ItemNameInfo_Gracia_Final)ReadFieldValue(f, info, "UNK1_1", "UNK1_9"); info = (ItemNameInfo_Gracia_Final)ReadFieldValue(f, info, "special_enchant_amount"); info = (ItemNameInfo_Gracia_Final)ReadFieldValue(f, info, "special_enchant_desc"); info = (ItemNameInfo_Gracia_Final)ReadFieldValue(f, info, "color_id"); String devString = " (id: " + info.id + ")"; 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); } else { ItemNameInfo info = new ItemNameInfo(); info = (ItemNameInfo)ReadFieldValue(f, info, "id", "popup"); if (RConfig.Instance.DatVersionAsEnum >= DatVersion.C5) { info = (ItemNameInfo)ReadFieldValue(f, info, "set_ids", "special_enchant_desc"); } if (RConfig.Instance.DatVersionAsEnum >= DatVersion.Gracia_1__Gracia_2) { info = (ItemNameInfo)ReadFieldValue(f, info, "UNK1"); } String devString = " (id: " + info.id + ")"; 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) { if (RConfig.Instance.DatVersionAsEnum >= DatVersion.Gracia_Final) { ItemNameInfo_Gracia_Final info = new ItemNameInfo_Gracia_Final(); info = (ItemNameInfo_Gracia_Final) ReadFieldValue(f, info, "id", "popup"); info = (ItemNameInfo_Gracia_Final) ReadFieldValue(f, info, "supercnt0"); info = (ItemNameInfo_Gracia_Final) ReadFieldValue(f, info, "set_ids"); info = (ItemNameInfo_Gracia_Final) ReadFieldValue(f, info, "set_bonus_desc"); info = (ItemNameInfo_Gracia_Final) ReadFieldValue(f, info, "supercnt1"); info = (ItemNameInfo_Gracia_Final) ReadFieldValue(f, info, "set_extra_ids"); info = (ItemNameInfo_Gracia_Final) ReadFieldValue(f, info, "set_extra_desc"); info = (ItemNameInfo_Gracia_Final) ReadFieldValue(f, info, "UNK1_1", "UNK1_9"); info = (ItemNameInfo_Gracia_Final) ReadFieldValue(f, info, "special_enchant_amount"); info = (ItemNameInfo_Gracia_Final) ReadFieldValue(f, info, "special_enchant_desc"); info = (ItemNameInfo_Gracia_Final) ReadFieldValue(f, info, "color_id"); String devString = " (id: " + info.id + ")"; 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; } else { ItemNameInfo info = new ItemNameInfo(); info = (ItemNameInfo) ReadFieldValue(f, info, "id", "popup"); if (RConfig.Instance.DatVersionAsEnum >= DatVersion.C5) info = (ItemNameInfo) ReadFieldValue(f, info, "set_ids", "special_enchant_desc"); if (RConfig.Instance.DatVersionAsEnum >= DatVersion.Gracia_1__Gracia_2) info = (ItemNameInfo) ReadFieldValue(f, info, "UNK1"); String devString = " (id: " + info.id + ")"; 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; } }