1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

fix: 修复死亡原因显示和游戏结束逻辑

修正死亡原因文本格式并移除重复条目
重构游戏结束面板的消息生成逻辑
调整牧羊犬角色描述和移除调试属性
清理猞猁角色的多余武器节点
修复字段应用器的逻辑判断错误
This commit is contained in:
2026-05-08 17:13:51 +08:00
parent c1143d5f71
commit 972a8494b5
6 changed files with 10 additions and 17 deletions
+5 -1
View File
@@ -436,7 +436,11 @@ func tryDie(by: BulletBase = null):
)
if isPlayer():
if UIState.player == self:
UIState.setPanel("GameOver", [displayName, by.launcher.displayName, by.displayName])
var reasonTemplate = MathTool.randomChoiceFrom(GameRule.deadReasons)
if is_instance_valid(by):
UIState.setPanel("GameOver", ["%s凶手是[b]%s[/b]的[b]%s[/b]。" % [reasonTemplate, by.launcher.displayName, by.displayName] % displayName])
else:
UIState.setPanel("GameOver", ["%s凶手是[b]%s[/b]。" % [reasonTemplate, "*刻意的游戏设计*"] % displayName])
EffectController.create(ComponentManager.getEffect("DeadBlood"), texture.global_position).shot()
await die()
died.emit()