1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 23:11:54 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Weapons/Volcano.gd
T
fallingshrimp 5304541c9a feat(武器): 增强火山武器攻击力并替换公鸡角色的武器
将火山武器的攻击力加成从2倍提升至3倍,同时将公鸡角色的武器从紫水晶替换为火山武器
2025-12-04 22:37:50 +08:00

27 lines
951 B
GDScript

@tool
extends Weapon
func update(to: int, origin: Dictionary, _entity: EntityBase):
origin["rotate"] += 0.005 * to * soulLevel
origin["dmg1"] += 0.03 * to * soulLevel
origin["dmg2"] += 0.03 * to * soulLevel
origin["dmg3"] += 0.03 * to * soulLevel
origin["dmg4"] += 0.03 * to * soulLevel
origin["dmg5"] += 0.025 * to * soulLevel
origin["count"] = 1 * soulLevel
origin["atk"] += 3 * 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.baseDamage = readStore("atk")
bullet.rotates = readStore("rotate")
bullet.damageMultipliers = [readStore("dmg1"), readStore("dmg2"), readStore("dmg3"), readStore("dmg4")]
bullet.count = readStore("count")
bullet.dmg5 = readStore("dmg5")