Skip to content

Commit

Permalink
Use str() to convert ints to strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kvel2D committed Mar 4, 2023
1 parent 6a6023b commit 3c65c97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Scenes/Towers/Instances/Felweed1.gd
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ func _on_damage(event: Event):
tower.user_real = 0

if event.damage > damage:
Utils.display_small_floating_text(int(event.damage) as String, tower, 255, 150, 150, 0)
Utils.display_small_floating_text(str(int(event.damage)), tower, 255, 150, 150, 0)
2 changes: 1 addition & 1 deletion Scenes/Towers/Instances/ThiefApprentice1.gd
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func _on_tower_init():
# called by tooltip i guess?
func on_tower_details() -> MultiboardValues:
var tower = self
m0ck_thief_multiboard.set_value(0, int(tower.user_real) as String)
m0ck_thief_multiboard.set_value(str(int(tower.user_real)))
return m0ck_thief_multiboard


Expand Down

0 comments on commit 3c65c97

Please sign in to comment.