protected override void add_commands(List <string> strs) { if (get_equipment() == null) { return; } int count = get_equipment().Count; var nodes = new List <CommandUINode>(); // Add default dance if (unit.dance_targets(true).Count > 0) { var dance_node = text_item(unit.dance_name(), 0); if (dance_node != null) { nodes.Add(dance_node); Index_Redirect.Add(-1); } } // Add rings for (int i = 0; i < count; i++) { var item_node = item("", i); if (item_node != null) { item_node.loc = item_loc(nodes.Count); nodes.Add(item_node); Index_Redirect.Add(i); } } set_nodes(nodes); }
protected override void add_commands(List <string> strs) { if (get_equipment() == null) { return; } int count = get_equipment().Count; var nodes = new List <CommandUINode>(); // Add siege engines for (int i = 0; i < count; i++) { var item_node = item("", i); if (item_node != null) { item_node.loc = item_loc(nodes.Count); nodes.Add(item_node); Index_Redirect.Add(i); } } set_nodes(nodes); }