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

refactor: 优化参数命名并调整角色属性

- 将匿名函数参数从 `_who`, `_by` 简化为 `_w`, `_b`
- 更新 HCN 角色的字段和数值配置
- 调整 MuyangDog 角色的数值和描述文本
This commit is contained in:
2026-05-10 14:36:30 +08:00
parent 46d3816d9d
commit a0372f0867
4 changed files with 6 additions and 7 deletions
+1 -1
View File
@@ -3,6 +3,6 @@ extends PlayerBase
func register():
super.register()
killEnemy.connect(
func(_who, _by):
func(_w, _b):
storeEnergy(1)
)
+1 -1
View File
@@ -171,7 +171,7 @@ func _ready():
)
healthChanged.emit(health)
energyChanged.emit(energy, false)
killEnemy.connect(func(): return )
killEnemy.connect(func(_w, _b): return )
spawn()
func _process(_delta):
health = clamp(health, 0, fields.get(FieldStore.Entity.MAX_HEALTH))