From c930eb8a0cabaeb3651e2dc7f94a26310fb2dcf3 Mon Sep 17 00:00:00 2001 From: jacopograndi Date: Wed, 19 Jan 2022 20:08:32 +0100 Subject: turrets implementation finished --- scripts/resources.gd | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'scripts/resources.gd') diff --git a/scripts/resources.gd b/scripts/resources.gd index 2575cb3..53462a6 100644 --- a/scripts/resources.gd +++ b/scripts/resources.gd @@ -12,8 +12,11 @@ func get_names(): return "Tkads" func dict_to_str (cost): var st = "" + var i = 0 for n in cost.keys(): - st += str(cost[n]) + n + st += str(cost[n]) + n + if i <= cost.keys().size()-2: st += " " + i += 1 return st func add (cost): -- cgit v1.2.3-54-g00ecf