1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-08 20:57:13 +08:00

feat: 添加水晶和钻石物品系统

- 在EntityBase中新增水晶和钻石物品类型
- 敌人在死亡时概率掉落水晶,BOSS额外掉落钻石
- 游戏结束时将水晶和钻石存入OutGameStorage
- 调整Starter面板中钻石升级成本为0
- 在UI场景中添加水晶和钻石显示节点
This commit is contained in:
2026-05-04 09:15:49 +08:00
parent e1c017bf3a
commit bd85129ecc
6 changed files with 38 additions and 3 deletions
+2
View File
@@ -25,6 +25,8 @@ func beforeOpen(args: Array = []):
audio.play()
var reasonTemplate = MathTool.randomChoiceFrom(GameRule.deadReasons)
deadreason.text = ("[color=gray]" + reasonTemplate + "凶手是[b]%s[/b]的[b]%s[/b]。[/color]") % args
OutGameStorage.inventory[ItemStore.ItemType.CRYSTAL] += UIState.player.inventory[ItemStore.ItemType.CRYSTAL]
OutGameStorage.inventory[ItemStore.ItemType.DIAMOND] += UIState.player.inventory[ItemStore.ItemType.DIAMOND]
func afterOpen(_args: Array = []):
returnBtn.disabled = false
exitBtn.disabled = false