resolutions tick

This commit is contained in:
ntr
2019-04-11 11:51:22 +10:00
parent 419372b26f
commit c0303c5b61
8 changed files with 47 additions and 3 deletions
+8 -1
View File
@@ -10,6 +10,7 @@ const { STATS } = require('../utils');
function GamePanel(props) {
const {
game,
resolution,
activeSkill,
setActiveSkill,
setActiveCryp,
@@ -228,7 +229,13 @@ function GamePanel(props) {
);
}
const selectedSkills = playerTeam.cryps.map((c, i) => stackElement(c, i));
function resolutionEl(r) {
return <div>{JSON.stringify(resolution)}</div>;
}
const selectedSkills = resolution
? resolutionEl(resolution)
: playerTeam.cryps.map((c, i) => stackElement(c, i));
const mobileSkills = activeCryp
? range(0, 3).map(i => Skill(activeCryp, i, true))
+2
View File
@@ -15,6 +15,7 @@ const addState = connect(
ws,
game,
account,
resolution,
showLog,
activeSkill,
activeCryp,
@@ -36,6 +37,7 @@ const addState = connect(
game,
showLog,
account,
resolution,
activeSkill,
activeCryp,
selectSkillTarget,