21 lines
950 B
Plaintext
21 lines
950 B
Plaintext
debriefingResult.country <- get_local_player_country()
|
|
debriefingResult.localTeam <- get_mp_local_team()
|
|
debriefingResult.friendlyTeam <- get_player_army_for_hud()
|
|
debriefingResult.chatLog <- getGameChatLogText()
|
|
debriefingResult.logForBanhammer <- getLogForBanhammer()
|
|
}
|
|
|
|
function gatherDebriefingResult() {
|
|
let wtoSettled = require("nestdb").ndbTryRead(["wto", "settled"])
|
|
if (wtoSettled == null || debriefingResult == null)
|
|
gatherDebriefingFlightState()
|
|
if (wtoSettled != null) {
|
|
// The LocalMP host and its player table are gone by the time the service replies.
|
|
debriefingResult.roomUserlogs = getDebriefingRoomLogs()
|
|
debriefingResult.roomEvent = debriefingResult.roomEvent ?? wtoSettled.roomEvent
|
|
debriefingResult.isSucceed = wtoSettled.win
|
|
debriefingResult.wtoSettled <- true
|
|
}
|
|
let gameType = debriefingResult.gameType
|
|
let exp = wtoSettled != null ? u.copy(wtoSettled.exp) : (stat_get_exp() ?? {})
|