summaryrefslogtreecommitdiff
path: root/scripts/template_combine.gd
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/template_combine.gd')
-rw-r--r--scripts/template_combine.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/template_combine.gd b/scripts/template_combine.gd
index 9791703..2195e8a 100644
--- a/scripts/template_combine.gd
+++ b/scripts/template_combine.gd
@@ -7,4 +7,7 @@ func _init().("res://assets/combinator.json"):
func template(world):
var base = self.bases[randi() % self.bases.size()]
+ var d = Dictionary(self.data)
+ d["mass"] = str(world.mass) + " sextillion tons"
+ d["volume"] = str(world.volume)
return self.replace_all(base, self.data)