1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-05-28 06:51:54 +08:00

refactor(武器系统): 重构火山武器和火扫弹攻击机制

移除火扫弹的独立脚本和火罐效果,改为直接在子弹中实现
火山武器改为三段伤害机制并调整基础伤害值
添加子弹基础伤害乘数数组支持多段伤害
更新相关场景和资源配置以匹配新机制
This commit is contained in:
2025-11-22 08:25:26 +08:00
parent b402f04ada
commit 7f52f4b805
10 changed files with 112 additions and 38 deletions
+1 -6
View File
@@ -1,8 +1,6 @@
extends EntityBase
class_name Chick
@onready var firepot = $"%firepot"
var played: bool = false
func register():
@@ -43,10 +41,7 @@ func attack(type):
BulletBase.generate(ComponentManager.getBullet("ChickLaser"), self, texture.global_position, deg_to_rad(360.0 / laserCount * i))
elif type == 2:
var weaponPos = findWeaponAnchor("normal")
var target = weaponPos.angle_to_point(currentFocusedBoss.getTrackingAnchor())
firepot.global_rotation = target
firepot.shot()
BulletBase.generate(ComponentManager.getBullet("FireScan"), self, weaponPos, target)
BulletBase.generate(ComponentManager.getBullet("FireScan"), self, weaponPos, weaponPos.angle_to_point(currentFocusedBoss.getTrackingAnchor()))
elif type == 3:
BulletBase.generate(ComponentManager.getBullet("ChickSprint"), self, position, 0)
trySprint()