1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Bullets/InfinitySword.gd
T

18 lines
487 B
GDScript
Raw Normal View History

extends BulletBase
class_name InfinitySwordBullet
var implused: Array[EntityBase] = []
func spawn():
CameraManager.shake(2000, 100)
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)
var eff = EffectController.create(ComponentManager.getEffect("ShootBlood"), entity.position)
eff.particles.hide()
eff.shot()