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

18 lines
532 B
GDScript
Raw Normal View History

@tool
extends Weapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["atk"] += 3 * to * soulLevel
origin["rotate"] += 0.015 * to * soulLevel
return origin
func attack(entity: EntityBase):
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")