1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-10 13:47:12 +08:00

feat(武器): 完善扶桑元神武器机制

- 调整格挡子弹的基础伤害为0
- 增加气力上限和格挡次数的可配置性
- 实现乾坤剑伤害随武器等级提升
- 更新武器描述文本以反映新机制
- 修复乾坤剑生命周期与生成速度的同步问题
This commit is contained in:
2026-03-21 14:37:46 +08:00
parent 0395019d5f
commit 32f1f545e2
6 changed files with 30 additions and 12 deletions
+2
View File
@@ -2,6 +2,7 @@ extends BulletBase
class_name ParryBallBullet
var cycler: CycleTimer
var atk: float = 0
func spawn():
cycler = launcher.getOrCreateCycleTimer("parry")
@@ -20,6 +21,7 @@ func succeedToHit(_dmg: float, entity: EntityBase): # 当撞到敌人时
0
):
if bullet is QKSwordBullet:
bullet.baseDamage = atk
bullet.position = entity.texture.global_position + MathTool.sampleInRing(200, 500)
bullet.tracer = entity
bullet.look_at(entity.getTrackingAnchor()) # 生成的乾坤剑面向敌人