mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-23 07:58:09 +00:00
Fix Extra Checkpoint option not doing anything + other checkpoint fixes (#649)
* Fix Extra Checkpoint option not doing anything + other checkpoint fixes * Remove redundancy
This commit is contained in:

committed by
GitHub

parent
b54c4b5913
commit
1e2d4d9404
@@ -27,7 +27,7 @@ func _enter_tree() -> void:
|
||||
LevelPersistance.active_nodes = old_state.duplicate(true)
|
||||
|
||||
func _ready() -> void:
|
||||
if [Global.GameMode.CHALLENGE, Global.GameMode.MARATHON_PRACTICE].has(Global.current_game_mode) or Global.current_campaign == "SMBANN":
|
||||
if [Global.GameMode.CHALLENGE, Global.GameMode.MARATHON_PRACTICE].has(Global.current_game_mode) or Global.current_campaign == "SMBANN" or (Settings.file.difficulty.extra_checkpoints == 0 and optional):
|
||||
queue_free()
|
||||
return
|
||||
if has_meta("is_flag") == false:
|
||||
@@ -71,6 +71,3 @@ func get_id() -> String:
|
||||
return str(Global.level_editor.sub_level_id) + "," + str(Vector2i(global_position)) + "," + get_parent().name
|
||||
else:
|
||||
return Global.current_level.scene_file_path + "," + str(Vector2i(global_position)) + "," + get_parent().name
|
||||
|
||||
func on_tree_exiting() -> void:
|
||||
pass # Replace with function body.
|
||||
|
Reference in New Issue
Block a user