mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-31 08:21:54 +08:00
feat(子弹): 增强鸡毛箭和鸡毛弓效果
- 为 ChickSprint 子弹添加 atk 属性并调整伤害计算 - 猫角色攻击时设置 ChickSprint 子弹的 atk 为 0.2 - 调整 Bow 子弹的生成延迟和角度计算精度 - 将 Bow 的箭矢数量从 1 增加到 2 - 增强 Arrow 子弹的速度、射程和视觉效果
This commit is contained in:
@@ -11,7 +11,9 @@ func ai():
|
||||
tryAttack(0, true)
|
||||
func attack(type: int):
|
||||
if type == 0:
|
||||
BulletBase.generate(ComponentManager.getBullet("ChickSprint"), self, position, 0)
|
||||
for bullet in BulletBase.generate(ComponentManager.getBullet("ChickSprint"), self, position, 0):
|
||||
if bullet is ChickSprint:
|
||||
bullet.atk = 0.2
|
||||
trySprint()
|
||||
return true
|
||||
func sprint():
|
||||
|
||||
Reference in New Issue
Block a user