Skip to content

Commit

Permalink
change xml node name from life to lifeForm to make easier for MHQ int…
Browse files Browse the repository at this point in the history
…egration
  • Loading branch information
AaronGullickson committed Sep 26, 2019
1 parent 349e466 commit f428d2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions functions/data_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -354,12 +354,12 @@ write_system_xml <- function(system_node, system, id, x, y, primary_slot=0,
}

if(j==primary_slot & !is.na(life)) {
xml_add_child(planet_node, "life",
life,
xml_add_child(planet_node, "lifeForm",
life,
source="canon")
}
else if(!is.na(planet$life)) {
xml_add_child(planet_node, "life",
xml_add_child(planet_node, "lifeForm",
as.character(planet$life))
}

Expand Down

0 comments on commit f428d2b

Please sign in to comment.