1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-10 05:37:12 +08:00

refactor(Characters/Rooster): 调整子弹折射和分裂参数

移除子弹分裂参数,将子弹折射次数从2增加到3
更新武器从ChainGun到PurpleCrystal
优化子弹折射逻辑,避免重复目标
使用call_deferred安全添加子节点
This commit is contained in:
2026-01-17 13:22:10 +08:00
parent ef6e21de78
commit 6e7272d7d9
4 changed files with 19 additions and 8 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ static func fromHurtbox(node: Node) -> EntityBase:
if entity is EntityBase:
return entity as EntityBase
return null
static func findClosetEntity(to: Vector2, fromTree: SceneTree, player: bool = false, mob: bool = false, excludes: Array[EntityBase] = [], allowSummon: bool = false) -> EntityBase:
static func findClosetEntity(to: Vector2, fromTree: SceneTree, player: bool = false, mob: bool = false, excludes: Array = [], allowSummon: bool = false) -> EntityBase:
var result = null
var lastDistance = INF
var nodes = []