diff options
author | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-19 20:08:32 +0100 |
---|---|---|
committer | jacopograndi <jacopo.grandi@outlook.it> | 2022-01-19 20:08:32 +0100 |
commit | c930eb8a0cabaeb3651e2dc7f94a26310fb2dcf3 (patch) | |
tree | 5256261a9510a9ac8e1150c8902ffefbec32ddac /scripts/resources.gd | |
parent | 10d700152deeea4a8c6acea1124b9f9ea4905486 (diff) |
turrets implementation finished
Diffstat (limited to 'scripts/resources.gd')
-rw-r--r-- | scripts/resources.gd | 5 |
1 files changed, 4 insertions, 1 deletions
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): |