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:
@@ -1,6 +0,0 @@
|
||||
extends BulletBase
|
||||
class_name FireScan
|
||||
|
||||
func ai():
|
||||
PresetBulletAI.forward(self, rotation)
|
||||
damage = (1 - lifeDistancePercent()) * originalDamage
|
||||
@@ -1 +0,0 @@
|
||||
uid://dlg4g03ppdd2x
|
||||
@@ -5,4 +5,4 @@ class_name FoxZhua
|
||||
|
||||
func ai():
|
||||
if canTrace:
|
||||
PresetBulletAI.lerpPosition(self, launcher.currentFocusedBoss.getTrackingAnchor() - Vector2(0, 200), speed)
|
||||
PresetBulletAI.lerpPosition(self, launcher.currentFocusedBoss.getTrackingAnchor() - Vector2(0, 200), speed)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
extends Weapon
|
||||
|
||||
func update(to: int, origin: Dictionary, _entity: EntityBase):
|
||||
origin["atk"] += 3 * to * soulLevel
|
||||
origin["rotate"] += 0.015 * to * soulLevel
|
||||
return origin
|
||||
func attack(entity: EntityBase):
|
||||
|
||||
Reference in New Issue
Block a user