1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-30 16:01:53 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Weapons/SevenSoul.gd
T

13 lines
348 B
GDScript
Raw Normal View History

@tool
extends Weapon
func attack(entity: EntityBase):
playSound("attack")
for i in 6:
for j in BulletBase.generate(ComponentManager.getBullet("SevenSoul"), entity, entity.texture.global_position, 0):
j.index = i
await TickTool.millseconds(15000 / 6.0)
func update(to, origin, _entity):
origin["atk"] += 1 * to * soulLevel
return origin