feat(rust): ZLevels Remastered on the servers page (PLAN_REDESIGNS §14.3.6)
Stage 7 of the §14.3 integration plan (D374): Server settings' plugin line says whether ZLevels is loaded and that an event may lend its XP boosts as permissions. The integrations schema gains zLevels; the swagger fragment is regenerated. No leaderboard change, nothing stored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E14m6SuuY6i1vASFeGDBeY
This commit is contained in:
@@ -265,7 +265,18 @@ export function integrationsLine(r) {
|
||||
const withTruePve = r.integrations.truePve ? `${withBackpacks} ${truePveLine(r.integrations.truePve)}` : withBackpacks
|
||||
const withDynamicPvp = r.integrations.dynamicPvp ? `${withTruePve} ${dynamicPvpLine(r.integrations.dynamicPvp)}` : withTruePve
|
||||
const withDt = r.integrations.dangerousTreasures ? `${withDynamicPvp} ${dangerousTreasuresLine(r.integrations.dangerousTreasures, r.console)}` : withDynamicPvp
|
||||
return r.integrations.guardedCrate ? `${withDt} ${guardedCrateLine(r.integrations.guardedCrate, r.console)}` : withDt
|
||||
const withGc = r.integrations.guardedCrate ? `${withDt} ${guardedCrateLine(r.integrations.guardedCrate, r.console)}` : withDt
|
||||
return r.integrations.zLevels ? `${withGc} ${zLevelsLine(r.integrations.zLevels)}` : withGc
|
||||
}
|
||||
|
||||
/**
|
||||
* ZLevels Remastered (PLAN_REDESIGNS §14.3.6), from protocol 14. Only whether it is
|
||||
* loaded: its levels never reach the site (D374), and its XP boosts are permissions
|
||||
* an event lends like any other.
|
||||
*/
|
||||
export function zLevelsLine(z) {
|
||||
if (!z.loaded) return 'ZLevels is not loaded — there are no XP boosts for an event to lend.'
|
||||
return `${`ZLevels ${z.version || ''}`.trim()} is loaded — an event may lend its XP boosts (zlevelsremastered.vip1 to vip3) as permissions.`
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user