1
1
mirror of https://github.com/Rundll86/Dog-Lynx-And-HCN.git synced 2026-06-12 14:47:13 +08:00

feat(子弹): 新增狐狸爪子弹及其相关功能

添加FoxZhua子弹类型,包含追踪功能
修改FireScan子弹伤害计算方式为基于距离百分比
扩展BulletBase添加原始伤害和距离计算功能
更新Chick角色使用新子弹和调整攻击逻辑
调整Wave生成逻辑添加Boss检测功能
优化FirePot粒子效果和参数
This commit is contained in:
2025-11-16 16:01:03 +08:00
parent 63a0d1bf4a
commit e47390333f
13 changed files with 331 additions and 42 deletions
+10 -2
View File
@@ -66,11 +66,19 @@ static func create(
wave.to = to_
wave.per = per_
return wave
static func hasBoss() -> bool:
for wave in data:
if canSpawn(wave):
if wave.isBoss:
return true
return false
static func canSpawn(wave: Wave) -> bool:
return wave.from <= current and wave.to >= current and int(current - wave.from) % wave.per == 0
static func entityCountOf(wave: Wave) -> int:
if wave.from <= current and wave.to >= current and int(current - wave.from) % wave.per == 0:
if canSpawn(wave):
if wave.isBoss:
return 1
else:
elif !hasBoss():
return randi_range(ceil(wave.minCount), floor(wave.maxCount * (1 + GameRule.entityCountBoostPerWave * current)))
return 0
static func spawn() -> Array: