Add final progression to tiny sword, fixes and tweeks required
This commit is contained in:
@@ -6,7 +6,6 @@ var _game_root: Node = null
|
||||
func _ready() -> void:
|
||||
if not Engine.is_editor_hint():
|
||||
test_goals_prestige_reset()
|
||||
get_tree().quit()
|
||||
|
||||
func test_goals_prestige_reset() -> void:
|
||||
print("\n=== TEST: Goals Prestige Reset ===\n")
|
||||
@@ -15,6 +14,13 @@ func test_goals_prestige_reset() -> void:
|
||||
# Load the tiny_sword scene directly
|
||||
var scene = load("res://docs/gyms/tiny_sword/tiny_sword.tscn")
|
||||
_game_root = scene.instantiate()
|
||||
|
||||
# Use a unique save path to avoid contaminating the real game's save.
|
||||
var save_path: String = "user://test_goals_prestige_%d.json" % randi()
|
||||
DirAccess.remove_absolute(ProjectSettings.globalize_path(save_path))
|
||||
var gs: LevelGameState = _game_root.get_node("LevelGameState")
|
||||
gs.save_file_path = save_path
|
||||
|
||||
add_child(_game_root)
|
||||
|
||||
print("[TARGET] children_after_load: %d" % get_child_count())
|
||||
|
||||
Reference in New Issue
Block a user