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 d3cc2f94c1 feat(子弹): 增强鸡毛箭和鸡毛弓效果
- 为 ChickSprint 子弹添加 atk 属性并调整伤害计算
- 猫角色攻击时设置 ChickSprint 子弹的 atk 为 0.2
- 调整 Bow 子弹的生成延迟和角度计算精度
- 将 Bow 的箭矢数量从 1 增加到 2
- 增强 Arrow 子弹的速度、射程和视觉效果
2025-11-17 22:38:06 +08:00

17 lines
351 B
GDScript

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