Use established Vaerkring name in public claim tariffs
This commit is contained in:
parent
fcb61426f6
commit
c080311f82
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ const base=[
|
|||
['KC_T0',4,500],['KC_T1',6,800],['KC_T2',9,1200],['KC_T3',12,1600],['KC_T4',16,2200],
|
||||
['RC_T0',16,1800],['RC_T1',20,2400],['RC_T2',25,3000],['RC_T3',36,4400]
|
||||
];
|
||||
export const CLAIM_ORGANISATIONS=Object.freeze({clan:Object.freeze({name:'Clans',description:'Standard clan claim limits and fees.',sizeNumerator:1,costNumerator:2}),company:Object.freeze({name:'Companies',description:'1.5× claim capacity and 1.5× fees.',sizeNumerator:1.5,costNumerator:3}),protected:Object.freeze({name:'Protected Houses',description:'1.5× claim capacity and half the standard fees. Protected institutions such as Spacing Guild.',sizeNumerator:1.5,costNumerator:1})});
|
||||
export const CLAIM_ORGANISATIONS=Object.freeze({clan:Object.freeze({name:'Clans',description:'Standard clan claim limits and fees.',sizeNumerator:1,costNumerator:2}),company:Object.freeze({name:'Companies',description:'1.5× claim capacity and 1.5× fees.',sizeNumerator:1.5,costNumerator:3}),protected:Object.freeze({name:'Protected Houses',description:'1.5× claim capacity and half the standard fees. Protected institutions such as Vaerkring.',sizeNumerator:1.5,costNumerator:1})});
|
||||
export function claimTariffs(kind='clan'){
|
||||
const organisation=CLAIM_ORGANISATIONS[kind];if(!organisation)throw new TypeError('Unknown claim organisation');
|
||||
return base.map(([code,chunks,upkeepMinor],index)=>Object.freeze({code:kind==='company'?code.replace('C_','CO_'):kind==='protected'?'P'+code:code,stage:code.startsWith('BC')?'Basic':code.startsWith('KC')?'Keyed':'Royal',chunks:Math.floor(chunks*organisation.sizeNumerator),upkeepMinor:upkeepMinor*organisation.costNumerator/2,unlockMinor:index?(10*upkeepMinor+2000*(chunks-base[index-1][1]))*organisation.costNumerator/2:0,requirement:code==='KC_T0'?(kind==='company'?'COM-key':'CLAN-key'):code==='RC_T0'?'Political appointment + POL-key':null}));
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue

Staff