2025-09-20 22:17:09 +08:00
|
|
|
@tool
|
|
|
|
|
extends Weapon
|
|
|
|
|
|
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
2025-09-30 17:01:44 +08:00
|
|
|
origin["atk"] += 50 * to * soulLevel
|
|
|
|
|
origin["radius"] += 15 * to * soulLevel
|
2025-09-20 22:17:09 +08:00
|
|
|
return origin
|
|
|
|
|
func attack(entity: EntityBase):
|
|
|
|
|
var weaponPos = entity.findWeaponAnchor("normal")
|
2025-09-21 13:11:31 +08:00
|
|
|
for j in BulletBase.generate(ComponentManager.getBullet("NuclearBomb"), entity, weaponPos, weaponPos.angle_to_point(get_global_mouse_position())):
|
2025-09-20 22:17:09 +08:00
|
|
|
var bullet: NuclearBomb = j
|
2025-11-22 08:42:51 +08:00
|
|
|
bullet.baseDamage = readStore("atk")
|
2025-09-20 22:17:09 +08:00
|
|
|
bullet.radius = readStore("radius")
|
|
|
|
|
return true
|