MC/website/scripts/claim-rates-section.mjs
2026-11-27 23:43:05 +00:00

5 lines
3.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import {CLAIM_ORGANISATIONS,CLAIM_TARIFF_VERSION,claimTariffs,claimMoney,BASIC_POLITICAL_NOTICE,ORGANISATION_TRANSFER_NOTICE} 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 &amp; 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><aside class="notice"><strong>Basic rights &amp; planned transfers</strong><p>${BASIC_POLITICAL_NOTICE}</p><p>${ORGANISATION_TRANSFER_NOTICE}</p><p>Claim upkeep and tier unlock fees go to the Tax treasury.</p></aside><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. A mother house controls its subordinate houses’ claim rights and management. Entitlement sources remain traceable and count only once. The original organisation remains responsible for upkeep and unlock costs, including upgrades performed by the mother house; a change in the mother’s tier does not transfer those costs.</p><p class="fine">Schedule ${CLAIM_TARIFF_VERSION}. The complete downloadable handbook includes this capacity and fee schedule.</p></section>`;
}