1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-30 16:01:53 +08:00

feat: 增强游戏保存系统并添加调试输出

扩展保存系统以包含更多游戏状态数据,包括库存和角色选择
添加调试打印语句以帮助排查保存问题
新增字典映射工具方法用于数据转换
修复新召唤实体未正确分组的问题
This commit is contained in:
2026-05-09 21:41:00 +08:00
parent b1cb089705
commit c31b3bdc4f
5 changed files with 30 additions and 5 deletions
+4
View File
@@ -94,6 +94,8 @@ func startSingleplayerGame():
UIState.setPanel("CompilingTip")
else:
UIState.setPanel("SelectInitialFeed")
if useTutorialBtn.button_pressed:
tutorialWatched = true
func _ready():
historyStack = Composables.useHistoryStack(playerNameInput)
@@ -206,6 +208,7 @@ func rebuildInfo():
func(newValue: float):
OutGameStorage.upgradableFieldsValue[fieldShow.field] = newValue
OutGameStorage.upgradableFieldsLevel[fieldShow.field] += 1
SaveEngine.save()
rebuildInfo()
)
upgradeFieldsBox.add_child(fieldShow)
@@ -219,6 +222,7 @@ func rebuildInfo():
getCurrentSelectedCharacter().animator.play("hide")
selectedCharacter = card.name
getCurrentSelectedCharacter().animator.play("show")
SaveEngine.save()
)
charactersBox.add_child(card)
if selectedCharacter == card.name: