1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/ChickSprint.gd
T
fallingshrimp 1d9c3fc466 fix(角色平衡): 调整小鸡角色的冲刺倍率和冲刺伤害计算
将小鸡的冲刺倍率从60降低到30以平衡游戏性
修改冲刺伤害计算方式,使其与角色速度相关
2025-09-07 12:37:23 +08:00

15 lines
305 B
GDScript

extends BulletBase
class_name ChickSprint
func register():
speed = 0
penerate = 1
func ai():
damage = launcher.velocity.length()
PresetBulletAI.lockLauncher(self, launcher, true)
if !launcher.sprinting:
tryDestroy()
func destroy(beacuseMap: bool):
if beacuseMap:
launcher.takeDamage(self, 0.5)