mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-27 22:41:56 +08:00
refactor: 优化参数命名并调整角色属性
- 将匿名函数参数从 `_who`, `_by` 简化为 `_w`, `_b` - 更新 HCN 角色的字段和数值配置 - 调整 MuyangDog 角色的数值和描述文本
This commit is contained in:
@@ -21,9 +21,8 @@ displayName = "氰化氢"
|
||||
slogan = "微量便可颠覆生机"
|
||||
avatar = ExtResource("2_1yfsg")
|
||||
description = "击杀敌人时储能。"
|
||||
fields = Array[int]([18, 1])
|
||||
fieldValues = Array[float]([3.0, -0.15])
|
||||
clickToRebuild = true
|
||||
fields = Array[int]([18, 10, 1])
|
||||
fieldValues = Array[float]([3.0, 0.15, -0.15])
|
||||
|
||||
[node name="avatarTexture" parent="wrapper" parent_id_path=PackedInt32Array(2023039659) index="0" unique_id=1334645594]
|
||||
texture = ExtResource("2_1yfsg")
|
||||
|
||||
@@ -21,7 +21,7 @@ slogan = "恪守使命不离不弃"
|
||||
avatar = ExtResource("2_fi2nw")
|
||||
description = "每隔3秒发动格挡。"
|
||||
fields = Array[int]([0, 8, 3])
|
||||
fieldValues = Array[float]([50.0, 0.15, -0.2])
|
||||
fieldValues = Array[float]([50.0, 0.15, -0.35])
|
||||
|
||||
[node name="avatarTexture" parent="wrapper" parent_id_path=PackedInt32Array(2023039659) index="0" unique_id=1334645594]
|
||||
texture = ExtResource("2_fi2nw")
|
||||
@@ -33,4 +33,4 @@ text = "牧羊犬"
|
||||
text = "“恪守使命不离不弃”"
|
||||
|
||||
[node name="descriptionLabel" parent="wrapper/infoContainer" parent_id_path=PackedInt32Array(143242635) index="1" unique_id=808054282]
|
||||
text = "每3秒发动格挡。"
|
||||
text = "每隔3秒发动格挡。"
|
||||
|
||||
@@ -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