public override string ExportArticle() { WikiTable table = new WikiTable(false, string.Empty, string.Empty, "Upgrades", "Success Rate", "Nanoshards", "Damage*", "Shields", "Armor", "Feed Cost**" ); DataTable itemUpgrade = Manager.GetDataTable("ITEMUPGRADE"); string style = "style=\"text-align:center\"| "; foreach (DataRow row in itemUpgrade.Rows) { table.AddRow( style + row["Index"].ToString(), style + "+" + row["damageMult"].ToString() + "%", style + "+" + row["shields"].ToString(), style + "+" + row["armor"].ToString(), style + "+" + row["feed"].ToString() ); } return(table.GetTableSyntax() + "\n\n" + @"<nowiki>* This number isn't a direct increase, but is used in a calculation that also takes item level and rarity into account</nowiki><br /> <nowiki>** The increased cost is split between each feed on the item</nowiki>"); }
public override string ExportArticle() { WikiTable table = new WikiTable(false, string.Empty, string.Empty, "Upgrades", "Success Rate", "Nanoshards", "Damage*", "Shields", "Armor", "Feed Cost**" ); DataTable itemUpgrade = Manager.GetDataTable("ITEMUPGRADE"); string style = "style=\"text-align:center\"| "; foreach (DataRow row in itemUpgrade.Rows) { table.AddRow( style + row["Index"].ToString(), style + "+" + row["damageMult"].ToString() + "%", style + "+" + row["shields"].ToString(), style + "+" + row["armor"].ToString(), style + "+" + row["feed"].ToString() ); } return table.GetTableSyntax() + "\n\n" + @"<nowiki>* This number isn't a direct increase, but is used in a calculation that also takes item level and rarity into account</nowiki><br /> <nowiki>** The increased cost is split between each feed on the item</nowiki>"; }
public override string ExportArticle() { var builder = new StringBuilder(); var achievements = Manager.GetDataTable("ACHIEVEMENTS"); var skills = Manager.GetDataTable("SKILLS"); WikiTable table = new WikiTable(false, string.Empty, string.Empty, "Name", "Description", "Reward Skill", "Reward Title" ); string name, desc, skill, title; foreach (DataRow row in achievements.Rows) { name = row["nameString_string"].ToString(); desc = row["descripFormatString_string"].ToString(); desc = desc.Replace("[completenum]", String.Format("{0:#,0}", row["completeNumber"])); desc = desc.Replace("[param1]", String.Format("{0:#,0}", (int)row["param1"] / 20)); if ((int)row["rewardSkill"] != -1) { var s = (int)row["rewardSkill"]; skill = skills.Rows[s]["effectString_string"].ToString(); var var = skills.Rows[s]["skillVar1"].ToString(); var icon = skills.Rows[s]["largeIcon"].ToString(); icon = GetImage(icon + ".png", 40);// "[[File:" + icon + ".png|40px]] "; var = var.Replace(";", ""); skill = skill.Replace("[string2]", var); skill = icon + " " + skill; } else { skill = string.Empty; } title = row["rewardTitle_string"].ToString(); title = title.Replace("[PLAYERNAME]", ""); table.AddRow(name, desc, skill, title); } return(table.GetTableSyntax()); }
public override string ExportArticle() { var builder = new StringBuilder(); var achievements = Manager.GetDataTable("ACHIEVEMENTS"); var skills = Manager.GetDataTable("SKILLS"); WikiTable table = new WikiTable(false, string.Empty, string.Empty, "Name", "Description", "Reward Skill", "Reward Title" ); string name, desc, skill, title; foreach (DataRow row in achievements.Rows) { name = row["nameString_string"].ToString(); desc = row["descripFormatString_string"].ToString(); desc = desc.Replace("[completenum]", String.Format("{0:#,0}", row["completeNumber"])); desc = desc.Replace("[param1]", String.Format("{0:#,0}", (int)row["param1"] / 20)); if ((int)row["rewardSkill"] != -1) { var s = (int)row["rewardSkill"]; skill = skills.Rows[s]["effectString_string"].ToString(); var var = skills.Rows[s]["skillVar1"].ToString(); var icon = skills.Rows[s]["largeIcon"].ToString(); icon = GetImage(icon + ".png", 40);// "[[File:" + icon + ".png|40px]] "; var = var.Replace(";", ""); skill = skill.Replace("[string2]", var); skill = icon + " " + skill; } else { skill = string.Empty; } title = row["rewardTitle_string"].ToString(); title = title.Replace("[PLAYERNAME]", ""); table.AddRow(name, desc, skill, title); } return table.GetTableSyntax(); }