2025-11-15 19:33:10 +08:00
|
|
|
@tool
|
|
|
|
|
extends Weapon
|
|
|
|
|
|
|
|
|
|
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
2025-11-15 20:18:04 +08:00
|
|
|
origin["atk"] += 3 * to * soulLevel
|
2025-11-16 12:43:20 +08:00
|
|
|
origin["rotate"] += 0.015 * to * soulLevel
|
2025-11-15 20:18:04 +08:00
|
|
|
origin["life"] += 0.1 * to * soulLevel
|
2025-11-15 19:33:10 +08:00
|
|
|
return origin
|
|
|
|
|
func attack(entity: EntityBase):
|
2025-11-16 12:43:20 +08:00
|
|
|
for j in BulletBase.generate(ComponentManager.getBullet("Volcano"), entity, entity.findWeaponAnchor("normal"), entity.position.angle_to_point(entity.get_global_mouse_position()), false, false, true, true):
|
|
|
|
|
var bullet: Volcano = j
|
|
|
|
|
bullet.damage = readStore("atk")
|
|
|
|
|
bullet.rotates = readStore("rotate")
|
|
|
|
|
bullet.lifeTime = readStore("life") * 1000
|