Update AA synchronization, CW progression and diagnostics

This commit is contained in:
CAtlas0784 committed 2026-10-30 19:19:05 +07:00
1 parent 67a819a4d3
commit 30bee81fe9
30 files changed
+1143 -55

No files matched your search

+11
View File
@@ -90,6 +90,17 @@ func getChallengeData() *ChallengeDataConfig {
Log("Failed to parse challenge_data.json: " + err.Error())
challengeData = ChallengeDataConfig{}
}
// The imported catalog stores Peak rows under peak.stages; the flat
// resource overlays below add Client-specific placement/group data.
// Do not turn the section names "stages" and "groups" into fake PeakIDs.
var imported struct {
Peak struct {
Stages map[string]PeakStageData `json:"stages"`
} `json:"peak"`
}
if json.Unmarshal(raw, &imported) == nil && len(imported.Peak.Stages) != 0 {
challengeData.Peak = imported.Peak.Stages
}
challengeData.Countdowns = map[uint32]uint32{}
challengeData.TargetRules = map[uint32]ChallengeTargetRule{}
if raw, err := common.ReadResourceFile("resources/ChallengeTargetConfig.json"); err == nil {