1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 15:01:53 +08:00
Files
Dog-Lynx-And-HCN/scripts/Contents/Weapons/Volcano.gd
T
fallingshrimp 4a04c4ca01 feat(武器): 为火山武器添加幻影攻击功能
在火山武器的第4段攻击时发射多支火山幻影,造成额外伤害。修改了动画、伤害计算和武器描述,包括:
- 添加count和dmg5属性控制幻影数量和伤害
- 调整幻影动画效果和速度
- 更新武器描述模板和显示文本
2025-11-22 16:36:59 +08:00

27 lines
954 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.04 * to * soulLevel
origin["count"] = 1 * soulLevel + 1
origin["atk"] += 1 * 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")