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

refactor(Wave): 重构波次配置逻辑以提升可维护性

将硬编码的测试模式配置提取为 waveConfig 数组,便于统一管理
修复 Parrier.gd 中子弹伤害计算变量名不一致的问题
This commit is contained in:
2026-03-28 10:45:46 +08:00
parent cedb79faf3
commit 826df79c45
2 changed files with 6 additions and 3 deletions
+4 -2
View File
@@ -49,8 +49,10 @@ static var WAVE_JUSTJOKE = [
Wave.create("Kernyr", 0, 0, true, 0, INF, 1),
]
static var WAVE_EMPTY = []
static var current: int = startWith(1) if WorldManager.isRelease() else startWith(10)
static var data = WAVE_NORMAL if WorldManager.isRelease() else WAVE_JUSTJOKE
static var waveConfig = [WAVE_JUSTJOKE, 10]
static var current: int = startWith(1) if WorldManager.isRelease() else startWith(waveConfig[1])
static var data = WAVE_NORMAL if WorldManager.isRelease() else waveConfig[0]
static func create(
entity_: String,