1'use strict'; 2 3(function installSeasonPersistenceAdapter() { 4 function syncSeasonReport(player, report) { 5 const latestSeason = player?.seasons?.at(-1); 6 if (!latestSeason || !report) return false; 7 if (latestSeason.age !== report.age || latestSeason.year !== report.year) return false; 8 latestSeason.trophies = report.trophies; 9 return true; 10 } 11 12 const originalResolveSeasonMoment = Engine.resolveSeasonMoment; 13 Engine.resolveSeasonMoment = function resolveSeasonMoment(player, report, pending, optionId) { 14 const result = originalResolveSeasonMoment(player, report, pending, optionId); 15 syncSeasonReport(player, report); 16 return result; 17 }; 18 19 const originalTransferWindow = Engine.transferWindow; 20 Engine.transferWindow = function transferWindow(player, report) { 21 syncSeasonReport(player, report); 22 return originalTransferWindow(player, report); 23 }; 24 25 window.__DESTINY_LOCAL_SYNC_SEASON_REPORT__ = syncSeasonReport; 26}());
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.