1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 23:11:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/ChickSprint.gd
T
fallingshrimp b83273c812 feat(人物): 添加新角色cy的图片资源
fix(战斗): 调整Cat攻击伤害值从0.2降至0.01
refactor(动画): 简化EntityBase的受伤动画实现
perf(子弹): 优化ChickSprint伤害计算使用浮点数除法
2025-11-22 09:33:36 +08:00

17 lines
357 B
GDScript

extends BulletBase
class_name ChickSprint
var atk: float = 1
func register():
speed = 0
penerate = 1
func ai():
baseDamage = launcher.velocity.length() / 500.0 * atk
PresetBulletAI.lockLauncher(self, launcher, true)
if !launcher.sprinting:
tryDestroy()
func destroy(beacuseMap: bool):
if beacuseMap:
launcher.bulletHit(self, MathTool.rate(0.5))