mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-07-02 08:12:12 +08:00
feat(武器): 调整HXD武器的属性和攻击逻辑
- 将子弹的生命周期从5000ms缩短至2500ms - 提升攻击力加成系数从1.5调整为2 - 增加子弹数量加成从2调整为3 - 修改攻击循环使用count而非atk值
This commit is contained in:
@@ -41,7 +41,7 @@ script = ExtResource("2_4lnkm")
|
|||||||
displayName = "茴香豆"
|
displayName = "茴香豆"
|
||||||
penerate = 1.0
|
penerate = 1.0
|
||||||
penerateDamageReduction = 0.04
|
penerateDamageReduction = 0.04
|
||||||
lifeTime = 5000.0
|
lifeTime = 2500.0
|
||||||
|
|
||||||
[node name="texture" parent="." index="0"]
|
[node name="texture" parent="." index="0"]
|
||||||
scale = Vector2(0.2, 0.2)
|
scale = Vector2(0.2, 0.2)
|
||||||
|
|||||||
@@ -2,11 +2,11 @@
|
|||||||
extends Weapon
|
extends Weapon
|
||||||
|
|
||||||
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||||
origin["atk"] += 1.5 * to * soulLevel
|
origin["atk"] += 2 * to * soulLevel
|
||||||
origin["count"] += 2 * (soulLevel - 1)
|
origin["count"] += 3 * (soulLevel - 1)
|
||||||
return origin
|
return origin
|
||||||
func attack(entity: EntityBase):
|
func attack(entity: EntityBase):
|
||||||
for i in readStore("atk"):
|
for i in readStore("count"):
|
||||||
for bullet in BulletBase.generate(
|
for bullet in BulletBase.generate(
|
||||||
ComponentManager.getBullet("HXD"),
|
ComponentManager.getBullet("HXD"),
|
||||||
entity,
|
entity,
|
||||||
|
|||||||
Reference in New Issue
Block a user