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

feat(武器): 调整鸡毛弓的伤害计算和属性配置

- 提高攻击伤害系数从0.05到0.075
- 降低自身伤害系数从0.05到0.025
- 更新基础生命值消耗从1.0到2.0
- 移除能量需求相关配置
- 更新描述文本以匹配当前数值
This commit is contained in:
2026-01-31 13:23:13 +08:00
parent 501e7cb48c
commit 74285b3ccc
2 changed files with 5 additions and 11 deletions
+3 -9
View File
@@ -13,7 +13,7 @@ costBeachball = 50
store = {
"atk": 5,
"count": 1,
"self": 1.0
"self": 2.0
}
storeType = {
"atk": 2,
@@ -21,24 +21,18 @@ storeType = {
"self": 1
}
descriptionTemplate = "消耗$self点生命值,发射$count支[b]鸡毛箭[/b],每支造成当前飞行速度的$atk伤害。"
needEnergy = 50.0
cooldown = 2000.0
debugRebuild = true
[node name="avatar" parent="container/info" index="0"]
texture = ExtResource("2_ex3jl")
[node name="energy" parent="container/info/infos/energyInfo" index="1"]
text = "15.0"
[node name="beachball" parent="container/info/infos" index="1"]
count = 50
[node name="soul" parent="container/info/infos" index="2"]
count = 1
[node name="name" parent="container/info" index="2"]
displayName = "鸡毛弓"
quality = 2
[node name="description" parent="container" index="2"]
text = "[center]消耗[color=cyan]1[/color]点生命值,发射[color=cyan]1[/color]支[b]鸡毛箭[/b],每支造成当前飞行速度的[color=cyan]500%[/color]伤害。[/center]"
text = "[center]消耗[color=cyan]2[/color]点生命值,发射[color=cyan]1[/color]支[b]鸡毛箭[/b],每支造成当前飞行速度的[color=cyan]500.0%[/color]伤害。[/center]"
+2 -2
View File
@@ -2,9 +2,9 @@
extends Weapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 0.05 * to * soulLevel
origin["atk"] += 0.075 * to * soulLevel
origin["count"] = 1 * soulLevel
origin["self"] += 0.05 * to
origin["self"] += 0.025 * to
return origin
func attack(entity: EntityBase):
entity.takeDamage(readStore("self"))