Merge branch 'develop' of ssh://git.mnml.gg:40022/~/mnml into develop

This commit is contained in:
Mashy 2019-09-17 13:05:01 +10:00
commit d1b0072e63
4 changed files with 6 additions and 10 deletions

View File

@ -197,9 +197,6 @@
} }
.combat-anim { .combat-anim {
max-width: 100%;
max-height: 100%;
height: 100%;
width: 100%; width: 100%;
display: flex; display: flex;
flex-flow: column; flex-flow: column;
@ -300,7 +297,7 @@
pointer-events: none; pointer-events: none;
} }
.resolving .skills button { .animating .skills {
opacity: 0; opacity: 0;
} }

View File

@ -53,7 +53,6 @@ function createSocket(store) {
timeout - TIMES.POST_SKILL_DURATION_MS timeout - TIMES.POST_SKILL_DURATION_MS
); );
} }
return false;
return setTimeout(() => { return setTimeout(() => {
store.dispatch(actions.setAnimSource(null)); store.dispatch(actions.setAnimSource(null));
store.dispatch(actions.setAnimTarget(null)); store.dispatch(actions.setAnimTarget(null));

View File

@ -94,7 +94,7 @@ class GameConstruct extends Component {
.map(j => <SkillBtn key={j} construct={construct} i={j} j={i} animating={animating} />); .map(j => <SkillBtn key={j} construct={construct} i={j} j={i} animating={animating} />);
let crypSkills = <div> &nbsp; </div>; let crypSkills = <div> &nbsp; </div>;
if (player && !animating) crypSkills = (<div class="skills"> {skills} </div>); if (player) crypSkills = (<div class="skills"> {skills} </div>);
const effects = construct.effects.length const effects = construct.effects.length
? construct.effects.map(c => <div key={c.effect}>{c.effect} - {c.duration}T</div>) ? construct.effects.map(c => <div key={c.effect}>{c.effect} - {c.duration}T</div>)

View File

@ -12,7 +12,7 @@ const addState = connect(
ws, ws,
game, game,
account, account,
resolution, animating,
activeSkill, activeSkill,
activeConstruct, activeConstruct,
} = state; } = state;
@ -32,7 +32,7 @@ const addState = connect(
return { return {
game, game,
account, account,
resolution, animating,
activeSkill, activeSkill,
activeConstruct, activeConstruct,
selectSkillTarget, selectSkillTarget,
@ -57,7 +57,7 @@ function Game(props) {
const { const {
game, game,
account, account,
resolution, animating,
setActiveSkill, setActiveSkill,
setActiveConstruct, setActiveConstruct,
} = props; } = props;
@ -87,7 +87,7 @@ function Game(props) {
); );
} }
const gameClasses = `game ${resolution ? 'resolving': ''}`; const gameClasses = `game ${animating ? 'animating' : ''}`;
function gameClick(e) { function gameClick(e) {
e.stopPropagation(); e.stopPropagation();