Update GaCy-GO

This commit is contained in:
CAtlas0784 committed 2026-10-28 18:54:43 +07:00
1 parent da8a32f60d
commit 0cbe460e49
345 files changed
+98202 -77559

No files matched your search

@@ -154,6 +154,7 @@ func decodeSetChallengeTierceLineupReq(payload []byte) (uint32, [][]uint32, []ui
// Build challenge configuration from the selected resource stage, never from
// Freesr custom monsters. Only the current session owns this configuration.
// Stage compositions and scoring come from the installed challenge resources.
func setChallengeBattleConfig(s *Session, avatars []uint32, challengeID, eventID uint32, buffs []uint32) error {
return setChallengeBattleConfigWithLimit(s, avatars, challengeID, eventID, buffs, "", 0)
}
@@ -229,6 +230,9 @@ func lineupInfoFromAvatars(avatars []uint32, planeID uint32, extraType goproto.E
custom[uint32(i)] = aid
}
lineup := common.ToLineupInfo(custom)
// Each Endgame room starts with its own team's full technique capacity.
// The capacity remains resource-derived; do not reuse overworld initial_mp.
lineup.Mp = lineup.MaxMp
lineup.PlaneId = planeID
lineup.ExtraLineupType = extraType
lineup.Index = index
@@ -300,7 +304,7 @@ func handleStartChallenge(s *Session, payload []byte) error {
return s.Send(&goproto.StartChallengeScRsp{Retcode: uint32(goproto.Retcode_RET_CHALLENGE_NOT_EXIST)})
}
sceneInfo, _, err := loadChallengeScene(s, entrance, group, monster, event, chosenAvatars)
sceneInfo, _, _, err := loadChallengeScene(s, entrance, group, monster, event, chosenAvatars)
if err != nil {
s.ChallengeBattleConfig = previousConfig
SceneDebugLog("[CHALLENGE] scene rejected: %v", err)
@@ -412,7 +416,7 @@ func handleStartChallengeTierce(s *Session, payload []byte) error {
return s.Send(&goproto.StartChallengeTierceScRsp{Retcode: uint32(goproto.Retcode_RET_CHALLENGE_NOT_EXIST)})
}
sceneInfo, _, err := loadChallengeScene(s, entrance, group, monster, event, chosenAvatars)
sceneInfo, _, _, err := loadChallengeScene(s, entrance, group, monster, event, chosenAvatars)
if err != nil {
s.ChallengeBattleConfig = previousConfig
SceneDebugLog("[CHALLENGE] tierce scene rejected: %v", err)