forked from unimatrix/web
5 lines
3 KiB
JavaScript
5 lines
3 KiB
JavaScript
import {CLAIM_ORGANISATIONS,CLAIM_TARIFF_VERSION,claimTariffs,claimMoney} from '../control-panel/public/cp-v2/cp-v2-claim-tariffs.mjs';
|
||
export function claimRatesSection(){
|
||
const cards=Object.entries(CLAIM_ORGANISATIONS).map(([kind,group])=>`<article class="claim-rate-card claim-rate-${kind}"><header><h3>${group.name}</h3><p>${group.description}</p></header><div class="table-wrap" tabindex="0" role="region" aria-label="${group.name} claim tariffs"><table><caption>Per organisation · fictional DM</caption><thead><tr><th scope="col">Tier</th><th scope="col">Chunks</th><th scope="col">Monthly</th><th scope="col">Unlock</th></tr></thead><tbody>${claimTariffs(kind).map(row=>`<tr class="claim-stage-${row.stage.toLowerCase()}"><th scope="row">${row.code}${row.requirement?'<span class="claim-key-note">'+row.requirement+'</span>':''}</th><td>${row.chunks}</td><td>${claimMoney(row.upkeepMinor)}</td><td>${claimMoney(row.unlockMinor)}</td></tr>`).join('')}</tbody></table></div></article>`).join('');
|
||
return `<section id="claims" class="claim-rates"><div class="claim-rates-heading"><img src="/assets/nav-clan-v2.webp" width="80" height="80" alt=""><div><span class="eyebrow">LAND / ORGANISATION CLAIMS</span><h2>Land claims & upkeep</h2><p>One organisation. One total chunk budget.</p></div></div><aside class="notice"><strong>Published schedule · claims system coming soon</strong><p>These are planned claim limits and prices. This publication does not reserve land, assign a tier, unlock an upgrade or start billing.</p></aside><div class="claim-rules"><article><h3>Count chunks, not radius</h3><p>One chunk is 16 × 16 blocks. Nine chunks in a 3 × 3 square cover 48 × 48 blocks. Limits apply across all claims belonging to the organisation.</p></article><article><h3>Separate status and capacity</h3><p>Create a Basic organisation first. Its original key unlocks Keyed status; a political appointment and new POL-key are required for Royal status. Tier unlock fees are paid once, sequentially. Upgrade claim capacity ingame by right-clicking the Home Block; this guide does not apply upgrades.</p></article><article><h3>Clear multipliers</h3><p>Companies: capacity × 1.5 and fees × 1.5. Protected Houses: capacity × 1.5 and fees × 0.5. Round capacity down to whole chunks. Both upkeep and unlock fees use the cost multiplier.</p></article></div><div class="claim-rates-grid">${cards}</div><p class="fine">Unlock calculation: 20 DM per additional chunk of standard clan capacity, plus ten months of the new standard tier’s upkeep; then apply the organisation cost multiplier. BC_T0 is free. Scaled fees are not recalculated from rounded capacity. Standard RC_T3 is 36 chunks: a possible 96 × 96-block square, fitting the agreed 100 × 100-block ceiling. Shapes may vary. Subhouses retain their own claim budget and account.</p><p class="fine">Schedule ${CLAIM_TARIFF_VERSION}. Print this page to include claim tariffs; the downloadable bank tariff PDF currently covers bank rates, not this planned claim schedule.</p></section>`;
|
||
}
|

Staff