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

fix(武器): 调整武器参数和修复弹反逻辑

- 修改Tree武器的攻击速率从0.25提升到1.0
- 移除Tree和PurpleCrystal的debugRebuild标志
- 修正Parrier弹反时的冲量计算公式
- 更新弹反子弹的目标定位为追踪锚点
- 完善PurpleCrystal场景结构和属性配置
This commit is contained in:
2026-04-29 22:09:59 +08:00
parent e2da3ec86e
commit 33192fbf8d
3 changed files with 16 additions and 12 deletions
+2 -2
View File
@@ -38,11 +38,11 @@ func hitBullet(bullet: BulletBase): # 当前子弹与其他子弹相撞
eff.modulate = bullet.modulate.blend(bullet.texture.modulate)
eff.rotation = position.angle_to_point(bullet.position)
eff.shot()
launcher.impluse((position - bullet.position).normalized() * (bullet.speed * bullet.getDamage()) ** (1.0 / 3) * 250)
launcher.impluse((position - bullet.position).normalized() * bullet.speed ** (1.0 / 2) * 250)
var targetBaseDamage = bullet.baseDamage
# 弹反 还是 格挡?
if MathTool.rate(reflectRate):
bullet.look_at(bullet.launcher.position)
bullet.look_at(bullet.launcher.getTrackingAnchor())
bullet.launcher = launcher
bullet.baseDamage *= atk
bullet.baseDamage *= reflectRate