2025-09-25 21:57:32 +08:00
|
|
|
@tool
|
|
|
|
|
extends Weapon
|
|
|
|
|
|
2026-03-07 09:08:39 +08:00
|
|
|
func update(to, origin, _entity):
|
|
|
|
|
origin["atk"] += 1 * to * soulLevel
|
|
|
|
|
origin["dmg"] += 0.02 * to * soulLevel
|
|
|
|
|
origin["heal"] += 0.1 * to * soulLevel
|
|
|
|
|
return origin
|
2025-09-25 21:57:32 +08:00
|
|
|
func attack(entity: EntityBase):
|
2025-09-25 22:41:04 +08:00
|
|
|
playSound("attack")
|
|
|
|
|
for i in 6:
|
2025-11-30 15:46:18 +08:00
|
|
|
for bullet in BulletBase.generate(ComponentManager.getBullet("SevenSoul"), entity, entity.texture.global_position, 0):
|
|
|
|
|
if bullet is SevenSoulBullet:
|
|
|
|
|
bullet.index = i
|
|
|
|
|
bullet.baseDamage = readStore("atk")
|
|
|
|
|
bullet.energyCollect = readStore("dmg")
|
|
|
|
|
bullet.healAmount = readStore("heal")
|
2025-09-26 22:29:28 +08:00
|
|
|
await TickTool.millseconds(15000 / 6.0)
|
2026-03-07 09:08:39 +08:00
|
|
|
return true
|