mnml/client/src/constants.jsx
2019-10-30 18:02:50 +10:00

83 lines
3.4 KiB
JavaScript

const preact = require('preact');
const SOURCE_DURATION_MS = 1000; // Time for SOURCE ONLY
const TARGET_DELAY_MS = 500; // Used for Source + Target
const TARGET_DURATION_MS = 1500; // Time for TARGET ONLY
const POST_SKILL_DURATION_MS = 1000; // Time for all POST
const SOURCE_AND_TARGET_TOTAL_DURATION = TARGET_DELAY_MS + TARGET_DURATION_MS; // SOURCE + TARGET time
module.exports = {
TIMES: {
SOURCE_DURATION_MS,
TARGET_DELAY_MS,
TARGET_DURATION_MS,
POST_SKILL_DURATION_MS,
SOURCE_AND_TARGET_TOTAL_DURATION,
},
COLOURS: {
GREEN: '#1FF01F',
RED: '#a52a2a',
BLUE: '#3050f8',
WHITE: '#f5f5f5', // whitesmoke
PURPLE: '#9355b5', // 6lack - that far cover
},
INFO: {
vbox: {
item: 'VBOX',
description: <p><b>ITEMS</b> that are available to buy.<br />
The <b>VBOX</b> is refilled every round.<br />Click <b>REFILL</b> at the bottom to purchase a refill. </p>,
},
inventory: {
item: 'INVENTORY',
description: <p>Holds <b>ITEMS</b><br /><b>ITEMS</b> carry over each round.</p>,
},
bits: {
item: 'BITS',
description: <p>The VBOX currency.<br />
Colours - 1b<br />
Skills - 2b<br />
Specs - 3b<br />
At the beginning of each round you receive 18 bits increasing by 6 bits per round.</p>,
},
ready: {
item: 'READY',
description: 'Ends the VBOX PHASE. If your opponent is also ready the GAME PHASE begins.',
},
lobbyReady: {
item: 'READY',
description: 'Ready for the game to begin. When all players are ready the first VBOX PHASE begins.',
},
reclaim: {
item: 'RECLAIM',
description: <p>Reclaim items refunding the listed cost of the item.<br />
Click to enable and then click the item to reclaim.</p>,
},
refill: {
item: 'REFILL',
description: 'Refill the VBOX with new items.',
},
constructSkills: {
item: 'SKILLS',
description: 'Skills are used by constructs in the game phase.\nBase skills can be bought from the VBOX.\nEquip skills from the inventory. Double-click to unequip.',
},
constructSpecs: {
item: 'SPECS',
description: 'Specialisations increase the stats of a construct.\nIncreased effect when your team meets the colour threshold.\nDouble-click to unequip.',
},
powerStat: {
item: 'POWER',
description: 'Power determines the damage and healing of your construct skills.\nRed power RedPower is used by red skills.\nGreen power GreenPower is used by green skills.\nBlue power BluePower is used by blue skills.\nCombine coloured POWER specs to increase specific construct power.',
},
lifeStat: {
item: 'LIFE',
description: 'The life of your construct.\nWhen your construct reaches 0 GreenLife it is knocked out.\nRed life RedLife mitigates red damage.\nBlue life BlueLife mitigates blue damage.\nCombine coloured LIFE specs to increase specific construct life.',
},
speedStat: {
item: 'SPEED',
description: 'Speed determines the order in which skills resolve.\nCombine SPEED specs to increase speed.',
},
},
};