Update Global.gd

This commit is contained in:
katorovitalo
2025-09-13 14:46:51 -04:00
parent d2b0c9e282
commit c8140f41f0

View File

@@ -76,7 +76,7 @@ var coins := 0:
if coins >= 100:# if coins >= 100:#
coins = coins % 100 coins = coins % 100
if Settings.file.difficulty.inf_lives == 0 and (Global.current_game_mode != Global.GameMode.CHALLENGE and Global.current_campaign != "SMBANN"): if Settings.file.difficulty.inf_lives == 0 and (Global.current_game_mode != Global.GameMode.CHALLENGE and Global.current_campaign != "SMBANN"):
lives += floor(coins / 100.0) lives += 1
AudioManager.play_sfx("1_up", get_viewport().get_camera_2d().get_screen_center_position()) AudioManager.play_sfx("1_up", get_viewport().get_camera_2d().get_screen_center_position())
var time := 300 var time := 300
var lives := 3 var lives := 3