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

refactor(Statemachine): 将FollowPosition重构为SyncTransform并增加缩放功能

feat(EnergyBlock): 添加新的攻击类型1并设置冷却时间
fix(Parrier): 修复子弹碰撞时的hitbox禁用问题
feat(Bullets): 添加新的SwingSword子弹资源
style(Wave): 调整调试配置使用测试小怪而非Boss
This commit is contained in:
2026-04-30 20:56:49 +08:00
parent 5f3002ad20
commit 0a9e5f328a
9 changed files with 397 additions and 4 deletions
+1 -2
View File
@@ -73,7 +73,7 @@ func hitBullet(bullet: BulletBase): # 当前子弹与其他子弹相撞
generateParryBall(targetBaseDamage)
elif bullet.motionType == BulletBase.MotionType.SWING:
parryEffect(bullet)
bullet.hitbox.disabled = true
bullet.hitbox.set_deferred("disabled", true)
generateParryBall(targetBaseDamage)
elif bullet.motionType == BulletBase.MotionType.SPRINT:
parryEffect(bullet)
@@ -82,7 +82,6 @@ func hitBullet(bullet: BulletBase): # 当前子弹与其他子弹相撞
generateParryBall(targetBaseDamage)
elif bullet.motionType == BulletBase.MotionType.BREATH:
penerateEffect(bullet.launcher)
bullet.hitbox.disable = true
bullet.launcher.impluse(Vector2.from_angle(bullet.rotation) * -500)
elif bullet.motionType == BulletBase.MotionType.SUMMON || bullet.motionType == BulletBase.MotionType.MAGIC:
penerateEffect(bullet.launcher)