mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(武器): 调整HXD武器的属性和攻击逻辑
- 将子弹的生命周期从5000ms缩短至2500ms - 提升攻击力加成系数从1.5调整为2 - 增加子弹数量加成从2调整为3 - 修改攻击循环使用count而非atk值
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user