Merge pull request #18 from katorovitalo/main

100 coins now give a one up
This commit is contained in:
Joe H 2025-09-13 19:52:49 +01:00 committed by GitHub
commit 6c5f57a9a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,7 +76,7 @@ var coins := 0:
if 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"):
lives += floor(coins / 100.0)
lives += 1
AudioManager.play_sfx("1_up", get_viewport().get_camera_2d().get_screen_center_position())
var time := 300
var lives := 3