mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(武器): 完善扶桑元神武器机制
- 调整格挡子弹的基础伤害为0 - 增加气力上限和格挡次数的可配置性 - 实现乾坤剑伤害随武器等级提升 - 更新武器描述文本以反映新机制 - 修复乾坤剑生命周期与生成速度的同步问题
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
@tool
|
||||
extends Weapon
|
||||
|
||||
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["atk"] += 5 * to * soulLevel
|
||||
origin["count"] += 1 * (soulLevel - 1)
|
||||
origin["max"] += 2 * (soulLevel - 1)
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
for bullet in BulletBase.generate(
|
||||
ComponentManager.getBullet("Parrier"),
|
||||
@@ -9,5 +14,7 @@ func attack(entity: EntityBase):
|
||||
entity.findWeaponAnchor("normal").angle_to_point(get_global_mouse_position()),
|
||||
):
|
||||
if bullet is ParrierBullet:
|
||||
pass
|
||||
bullet.atk = readStore("atk")
|
||||
bullet.maxParryTimes = readStore("count")
|
||||
bullet.maxBallCount = readStore("max")
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user