Boosters (rateBooster items) now add to the settled battle as the stock client and the official wiki describe: each booster adds its percent of the base reward; boosters stack per event type and personal / all-allies group with the client's calc_public_boost factors; a battle uses one battle of a booster plus one per spentInSessionTimeMin span, and a booster with R battles left covers the first R spans; kill, ground kill and assist boosters add only to that event and end after their kill count. The debriefing table gets the booster columns, the session log lists affectedBoosters, the research breakdown carries boosterExpTotal, progress is saved and used-up boosters are removed with an EULT_REMOVE_ITEM log. The active wager now moves with each battle that meets its active conditions (lineup rank range, random battle, mission postfix): a stage when its win condition holds (battle won, players killed, or the listed battle awards, hidden ones included), otherwise a failed battle. It ends at maxWins or maxFails and pays a x stake x stages^b + c of the reached stage. Each counted battle logs EULT_CHARD_AWARD in the battle's room and the session log lists affectedWagers, which the stock debriefing shows. Hidden battle awards are now judged (not shown or logged) so wagers can name them; awards of mode missionsWon are supported, and "unlocks" awards honour num. The new GUI patch battle/match-settled-battle-room-logs matches the settled battle's logs by room id in isUserlogVisible, the one filter all "this battle's logs" queries use; it replaces the two per-call edits in use-settled-debriefing-stats. Not yet verified in game.
7 lines
417 B
Plaintext
7 lines
417 B
Plaintext
function gatherDebriefingResult() {
|
|
// WTOffline: while a LocalMP battle is being settled, nestdb wto.settled holds what the local
|
|
// service settled: { exp = the debriefing table, roomId = the battle's room id }
|
|
// (written by report-local-battle-settlement; the room id is read by match-settled-battle-room-logs).
|
|
let wtoSettled = require("nestdb").ndbTryRead(["wto", "settled"])
|
|
let gm = get_game_mode()
|