mirror of
https://github.com/Rundll86/Dog-Lynx-And-HCN.git
synced 2026-05-28 06:51:54 +08:00
feat(武器): 添加白色灵魂武器及相关资源
添加新的白色灵魂武器,包括脚本、场景和资源文件 修改公鸡角色配置以使用新武器 优化子弹工具类和白色灵魂子弹的行为 添加获取窗口大小的工具方法
This commit is contained in:
@@ -8,6 +8,6 @@ static func fromArea(area: Area2D) -> BulletBase:
|
||||
static func canDamage(bullet: BulletBase, target: EntityBase) -> bool:
|
||||
if target.currentInvinsible: return false
|
||||
if !bullet.canDamageSelf && target == bullet.launcher: return false
|
||||
if !bullet.is_node_ready() && !GameRule.allowFriendlyFire:
|
||||
if !GameRule.allowFriendlyFire:
|
||||
if target.isPlayer() == bullet.launcher.isPlayer() and bullet.launcher.currentFocusedBoss != target: return false
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user