forked from unimatrix/web
Bind raid orders and recovery to atomic Postbank receipts
This commit is contained in:
parent
525be204dd
commit
23b1879de2
1 changed files with 451 additions and 4 deletions
|
|
@ -3,7 +3,7 @@ import {NATIVE_SERVERS} from './native-server-scope.mjs';
|
|||
|
||||
export const IMPERIAL_RAID_POLICY=Object.freeze({noticeMs:600000,durationMs:900000,baseRaiders:4,perDefender:1,maxRaiders:14,minDefendersOnline:0,ordererCooldownMs:86400000,targetCooldownMs:21600000,revengeMs:86400000,preparedMs:120000,baseFeeMinor:'2500000',feeStepMinor:'500000',warAfter:3});
|
||||
export const IMPERIAL_RAID_OUTCOMES=Object.freeze(['survived','commander_defeated','interrupted','spawn_failed','cancelled']);
|
||||
export const unpaidFinalStates=new Set(['cancelled','rejected','expired']);
|
||||
const unpaidFinalStates=new Set(['cancelled','rejected','expired']);
|
||||
const uuid=v=>typeof v==='string'&&/^[a-f0-9]{8}(?:-[a-f0-9]{4}){3}-[a-f0-9]{12}$/i.test(v);
|
||||
const digest=v=>typeof v==='string'&&/^[a-f0-9]{64}$/.test(v);
|
||||
const time=v=>Number.isSafeInteger(v)&&v>=0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue

Staff