2025-09-21 15:00:22 +08:00
|
|
|
@tool
|
|
|
|
|
extends Weapon
|
|
|
|
|
|
|
|
|
|
func update(to, origin, _entity):
|
2025-09-21 15:24:15 +08:00
|
|
|
origin["atk"] += 2 * to * soulLevel
|
2025-11-16 07:25:38 +08:00
|
|
|
origin["count"] = 1 * soulLevel
|
2026-01-18 14:12:34 +08:00
|
|
|
origin["split"] /= 1 + 0.005 * to * soulLevel
|
2025-09-21 15:00:22 +08:00
|
|
|
return origin
|
|
|
|
|
func attack(entity: EntityBase):
|
2025-09-21 15:24:15 +08:00
|
|
|
for i in BulletBase.generate(ComponentManager.getBullet("ChainGun"), entity, entity.texture.global_position, (get_global_mouse_position() - entity.texture.global_position).angle()):
|
2025-11-22 22:51:33 +08:00
|
|
|
if i is BulletBase:
|
|
|
|
|
i.baseDamage = readStore("atk")
|
|
|
|
|
i.count = floor(readStore("count"))
|
|
|
|
|
i.splits = readStore("split")
|
2026-01-18 14:12:34 +08:00
|
|
|
return true
|