feat(save): extend GameState to v2 — outfit and held items persisted per character

- Add held_left/held_right fields to CharacterData
- Add get/set_character_outfit and get/set_character_held_item to GameState
- get_save_data now returns version:2 with character_outfits and character_held_items
- apply_save_data resets both dicts when keys absent (empty-dict reset safe)
- 11 new tests in test_game_state.gd — 147/147 passing
This commit is contained in:
Steven Wroblewski
2026-05-09 00:12:33 +02:00
parent 09033b9401
commit 07c3b996d7
3 changed files with 106 additions and 1 deletions
+2
View File
@@ -11,3 +11,5 @@ enum Species { BUNNY, KITTEN }
@export var current_floor: int = 0
@export var position: Vector2 = Vector2.ZERO
@export var outfit: Array[String] = ["", "", ""]
@export var held_left: String = ""
@export var held_right: String = ""