2025-09-21 08:26:29 +08:00
|
|
|
@tool
|
|
|
|
|
extends Weapon
|
|
|
|
|
|
|
|
|
|
func update(to, origin, _entity):
|
2025-09-21 15:32:38 +08:00
|
|
|
origin["atk"] += 3 * to * soulLevel
|
2025-11-15 19:53:12 +08:00
|
|
|
origin["count"] = 1 * (soulLevel - 1)
|
2025-09-24 21:58:04 +08:00
|
|
|
origin["childatk"] += 1.25 * origin["atk"]
|
2025-09-21 16:17:49 +08:00
|
|
|
origin["reduce"] /= 1 + 0.05 * to * soulLevel
|
2025-09-21 08:26:29 +08:00
|
|
|
return origin
|
|
|
|
|
func attack(entity: EntityBase):
|
|
|
|
|
var weaponPos = entity.findWeaponAnchor("normal")
|
2025-09-21 13:11:31 +08:00
|
|
|
for i in BulletBase.generate(ComponentManager.getBullet("Meowmere"), entity, weaponPos, weaponPos.angle_to_point(get_global_mouse_position())):
|
2025-09-21 08:26:29 +08:00
|
|
|
i.damage = readStore("atk")
|
|
|
|
|
for i in readStore("count"):
|
2025-09-21 15:32:38 +08:00
|
|
|
for j in BulletBase.generate(ComponentManager.getBullet("RainbowCat"), entity, weaponPos, weaponPos.angle_to_point(get_global_mouse_position())):
|
|
|
|
|
j.damage = readStore("childatk")
|
2025-09-21 16:17:49 +08:00
|
|
|
j.penerateDamageReduction = readStore("reduce")
|