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 dc2c1aea70 fix(Volcano): 调整伤害计算并优化动画效果
- 降低武器升级时的伤害加成系数
- 减少火山幻影数量
- 移除调试标记debugRebuild
- 优化动画轨道和碰撞检测
- 添加新的矩形碰撞区域hitbox4
2025-11-29 18:20:18 +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.01 * to * soulLevel
origin["dmg2"] += 0.01 * to * soulLevel
origin["dmg3"] += 0.01 * to * soulLevel
origin["dmg4"] += 0.01 * to * soulLevel
origin["dmg5"] += 0.005 * to * soulLevel
origin["count"] = 1 * soulLevel
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")