fix(meta): 解锁面板 sid/scost 显式类型(get_all_ids 返回无类型 Array)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-21 11:52:22 +08:00
co-authored by Claude Opus 4.8
parent 8d9aa617df
commit 63431e170e
+2 -2
View File
@@ -419,8 +419,8 @@ func _rebuild_unlock() -> void:
else: else:
btn.text = tr("META_UNLOCK_BTN") % cost btn.text = tr("META_UNLOCK_BTN") % cost
btn.disabled = MetaProgress.aether < cost btn.disabled = MetaProgress.aether < cost
var sid := id var sid: String = id
var scost := cost var scost: int = cost
btn.connect("pressed", func(): btn.connect("pressed", func():
if MetaProgress.unlock(sid, scost): if MetaProgress.unlock(sid, scost):
AudioManager.play("buy") AudioManager.play("buy")