1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-27 22:41:56 +08:00

feat: 添加鸡蛋资源并实现字段显示优势功能

- 新增鸡蛋资源文件及导入配置
- 在FieldShow组件中添加showAdvantage属性控制优势显示
- 修正武器类默认名称错误
- 添加entityNegativeFields数组存储负数字段
This commit is contained in:
2025-09-30 17:51:22 +08:00
parent cab9ff9546
commit a6ab15618c
8 changed files with 86 additions and 4 deletions
+1
View File
@@ -86,6 +86,7 @@ func rebuildInfo():
var fieldShow: FieldShow = ComponentManager.getUIComponent("FieldShow").instantiate()
fieldShow.field = field
fieldShow.value = value
fieldShow.showAdvantage = true
if is_instance_valid(UIState.player):
fieldShow.maxed = value + UIState.player.fields[field] > FieldStore.entityMaxValueMap.get(field, INF)
fieldsBox.add_child(fieldShow)