mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 15:01:53 +08:00
7e90bd1c1c
实现道教石像武器,包含以下功能: - 添加天地之剑攻击逻辑,根据攻击速度、生命值和气层数计算伤害 - 新增无量斩子弹类型和特效 - 为公鸡角色添加新武器配置 - 更新相关动画和音效资源
13 lines
313 B
GDScript
13 lines
313 B
GDScript
extends BulletBase
|
|
class_name InfinitySwordBullet
|
|
|
|
var implused: Array[EntityBase] = []
|
|
|
|
func ai():
|
|
PresetBulletAI.forward(self , rotation)
|
|
func succeedToHit(_dmg: float, entity: EntityBase):
|
|
if implused.has(entity): return
|
|
else:
|
|
implused.append(entity)
|
|
entity.impluse(Vector2.from_angle(rotation) * 1500)
|