public AbilityEntry(string _name, List<string> keys) { name = new Pair("DOTA_Tooltip_ability_" + _name, getVal(_name)); description = new Pair(name.Key + "_Description", ""); note0 = new Pair(name.Key + "_Note0", ""); lore = new Pair(name.Key + "_Lore", ""); if (keys != null) { AbilitySpecials = new List<Pair>(keys.Count()); for (int i = 0; i < keys.Count(); i++) { string abilSpecial = keys.ElementAt(i); AbilitySpecials.Add(new Pair(name.Key + "_" + abilSpecial, getAbilSpecialVal(abilSpecial))); } } }
public UnitEntry(string _name) { name = new Pair(_name, getVal(_name)); }
public ModifierEntry(string _name) { // prevent modifier_modifier names name = new Pair("DOTA_Tooltip_" + _name, getVal(_name)); // Noya says modifier tooltips are like this DOTA_Tooltip_some_modifier /*if (_name.Length > 8) { if (_name.Substring(0, 8) == "modifier") { name = new Pair("DOTA_Tooltip_" + _name, getVal(_name)); } }*/ description = new Pair(name.Key + "_Description", ""); }
public HeroEntry(string _name) { try { // remove the npc_dota_hero part for the value. name = new Pair(_name, getVal(_name.Substring(14))); } catch (IndexOutOfRangeException) { name = new Pair(_name, ""); } }