mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-12-06 03:30:22 -08:00
adjusted boo unlocking, since you could technically beat gold boo, on white boo, which i thought was a bit dumb and unfair
This commit is contained in:
parent
1711402a6a
commit
ac1c2eaf5b
1 changed files with 11 additions and 5 deletions
|
|
@ -65,11 +65,17 @@ func player_win_race() -> void:
|
|||
TimedBooBlock.can_tick = false
|
||||
|
||||
var cleared_boo: int = 0
|
||||
for boo_time in boo.time_needed:
|
||||
if SpeedrunHandler.timer < boo_time:
|
||||
cleared_boo += 1
|
||||
else:
|
||||
break
|
||||
|
||||
if boo_colour >= 4:
|
||||
cleared_boo = 5
|
||||
else:
|
||||
var idx := 0
|
||||
for boo_time in boo.time_needed:
|
||||
if SpeedrunHandler.timer < boo_time and idx < 4:
|
||||
cleared_boo += 1
|
||||
else:
|
||||
break
|
||||
idx += 1
|
||||
|
||||
if int(BooRaceHandler.cleared_boo_levels[level_id]) <= cleared_boo:
|
||||
BooRaceHandler.cleared_boo_levels[level_id] = str(cleared_boo)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue