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

feat(武器): 调整HXD武器的属性和攻击逻辑

- 将子弹的生命周期从5000ms缩短至2500ms
- 提升攻击力加成系数从1.5调整为2
- 增加子弹数量加成从2调整为3
- 修改攻击循环使用count而非atk值
This commit is contained in:
2026-02-04 20:17:24 +08:00
parent 6a1ee8883d
commit 54b9bfccf9
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -41,7 +41,7 @@ script = ExtResource("2_4lnkm")
displayName = "茴香豆"
penerate = 1.0
penerateDamageReduction = 0.04
lifeTime = 5000.0
lifeTime = 2500.0
[node name="texture" parent="." index="0"]
scale = Vector2(0.2, 0.2)
+3 -3
View File
@@ -2,11 +2,11 @@
extends Weapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 1.5 * to * soulLevel
origin["count"] += 2 * (soulLevel - 1)
origin["atk"] += 2 * to * soulLevel
origin["count"] += 3 * (soulLevel - 1)
return origin
func attack(entity: EntityBase):
for i in readStore("atk"):
for i in readStore("count"):
for bullet in BulletBase.generate(
ComponentManager.getBullet("HXD"),
entity,