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 06d01f0790 feat(武器): 为火山武器添加第四段攻击并调整动画参数
- 添加第四段伤害计算(dmg4)并更新伤害乘数数组
- 调整基础攻击力从15降至10,修改各段伤害比例
- 延长攻击动画时间从1.7秒增至2.0秒
- 更新动画关键帧和碰撞检测时机
- 修改武器描述文本以反映4段攻击特性
- 调整碰撞体大小和位置以适应新动画
2025-11-22 16:06:44 +08:00

23 lines
806 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["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")]