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:
@@ -3,6 +3,6 @@ extends PlayerBase
|
||||
func register():
|
||||
super.register()
|
||||
killEnemy.connect(
|
||||
func(_who, _by):
|
||||
func(_w, _b):
|
||||
storeEnergy(1)
|
||||
)
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user