Merge tag '1.12.3' into develop

1.12.3
This commit is contained in:
ntr 2020-01-19 12:33:53 +10:00
commit 1f76913e84
12 changed files with 33 additions and 12 deletions

View File

@ -1 +1 @@
1.12.2
1.12.3

View File

@ -1,6 +1,6 @@
{
"name": "mnml-client",
"version": "1.12.2",
"version": "1.12.3",
"description": "",
"main": "index.js",
"scripts": {

View File

@ -85,6 +85,10 @@
.effects {
align-self: flex-start;
}
&.highlight {
animation: highlight 1s infinite alternate;
}
}
.game-construct .name {
@ -93,6 +97,15 @@
}
}
@keyframes highlight {
from {
background: @black;
}
to {
background: @silver;
}
}
.game-construct {
display: grid;

View File

@ -1,6 +1,6 @@
{
"name": "mnml-client",
"version": "1.12.2",
"version": "1.12.3",
"description": "",
"main": "index.js",
"scripts": {

View File

@ -15,6 +15,7 @@ const addState = connect(
ws,
game,
authenticated,
activeSkill,
animFocus,
resolution,
@ -28,6 +29,8 @@ const addState = connect(
}
return {
game,
authenticated,
activeSkill,
animFocus,
resolution,
@ -51,6 +54,8 @@ class GameConstruct extends preact.Component {
render() {
const {
// Changing state variables
authenticated,
game,
activeSkill,
animFocus,
resolution,
@ -75,16 +80,18 @@ class GameConstruct extends preact.Component {
const unfocus = animFocus && !animFocus.includes(construct.id) ? 'unfocus' : '';
const targeted = game.stack.find(c => c.target === construct.id);
const highlight = !authenticated && !targeted && activeSkill ? 'highlight' : '';
const crypSkills = player
? <div class="skills"> {range(0, 3).map(j => <SkillBtn key={j} construct={construct} i={j} />)} </div>
: <div></div>;
return (
<div
onClick={() => selectSkillTarget(construct.id)}
style={ activeSkill ? { cursor: 'pointer' } : {}}
class={`game-construct ${ko} ${koEvent()} ${unfocus}`}>
class={`game-construct ${ko} ${koEvent()} ${unfocus} ${highlight}`}>
<div class="left">
{crypSkills}
<ConstructEffectBox construct={construct} />

View File

@ -86,7 +86,9 @@ function GameCtrlBtns(args) {
quit();
}
const readyBtn = <button disabled={animating} class="ready" onClick={() => sendReady()}>Ready</button>;
const noTargets = !authenticated && game.stack.length === 0;
const readyBtn = <button disabled={animating || noTargets} class="ready" onClick={() => sendReady()}>Ready</button>;
const quitBtn = <button disabled={animating} class="quit" onClick={quitClick}>Back</button>;
return (

View File

@ -95,7 +95,7 @@ function Play(args) {
type="submit">
Invite
</button>
<figcaption>Play against friend</figcaption>
<figcaption>Play against a friend</figcaption>
</figure>
);

View File

@ -1,6 +1,6 @@
[package]
name = "mnml_core"
version = "1.12.2"
version = "1.12.3"
authors = ["ntr <ntr@smokestack.io>", "mashy <mashy@mnml.gg>"]
[dependencies]

View File

@ -1,6 +1,6 @@
{
"name": "mnml-ops",
"version": "1.12.2",
"version": "1.12.3",
"description": "",
"main": "index.js",
"scripts": {

View File

@ -1,6 +1,6 @@
[package]
name = "mnml"
version = "1.12.2"
version = "1.12.3"
authors = ["ntr <ntr@smokestack.io>"]
[dependencies]

View File

@ -105,7 +105,6 @@ pub fn shapes_write(id: Uuid) -> Result<Uuid, Error> {
let shape_dist = WeightedIndex::new(shapes.iter().map(|v| v.1))?;
let n_shapes_items = [
(1, 1),
(2, 2),
(3, 5),
(4, 10),

View File

@ -1,6 +1,6 @@
{
"name": "mnml-studios",
"version": "1.12.2",
"version": "1.12.3",
"description": "",
"main": "index.js",
"scripts": {