Merge tag '1.12.3' into develop
1.12.3
This commit is contained in:
commit
1f76913e84
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mnml-client",
|
"name": "mnml-client",
|
||||||
"version": "1.12.2",
|
"version": "1.12.3",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -85,6 +85,10 @@
|
|||||||
.effects {
|
.effects {
|
||||||
align-self: flex-start;
|
align-self: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.highlight {
|
||||||
|
animation: highlight 1s infinite alternate;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.game-construct .name {
|
.game-construct .name {
|
||||||
@ -93,6 +97,15 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@keyframes highlight {
|
||||||
|
from {
|
||||||
|
background: @black;
|
||||||
|
}
|
||||||
|
to {
|
||||||
|
background: @silver;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.game-construct {
|
.game-construct {
|
||||||
display: grid;
|
display: grid;
|
||||||
|
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mnml-client",
|
"name": "mnml-client",
|
||||||
"version": "1.12.2",
|
"version": "1.12.3",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -15,6 +15,7 @@ const addState = connect(
|
|||||||
ws,
|
ws,
|
||||||
game,
|
game,
|
||||||
|
|
||||||
|
authenticated,
|
||||||
activeSkill,
|
activeSkill,
|
||||||
animFocus,
|
animFocus,
|
||||||
resolution,
|
resolution,
|
||||||
@ -28,6 +29,8 @@ const addState = connect(
|
|||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
game,
|
||||||
|
authenticated,
|
||||||
activeSkill,
|
activeSkill,
|
||||||
animFocus,
|
animFocus,
|
||||||
resolution,
|
resolution,
|
||||||
@ -51,6 +54,8 @@ class GameConstruct extends preact.Component {
|
|||||||
render() {
|
render() {
|
||||||
const {
|
const {
|
||||||
// Changing state variables
|
// Changing state variables
|
||||||
|
authenticated,
|
||||||
|
game,
|
||||||
activeSkill,
|
activeSkill,
|
||||||
animFocus,
|
animFocus,
|
||||||
resolution,
|
resolution,
|
||||||
@ -75,16 +80,18 @@ class GameConstruct extends preact.Component {
|
|||||||
|
|
||||||
const unfocus = animFocus && !animFocus.includes(construct.id) ? 'unfocus' : '';
|
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
|
const crypSkills = player
|
||||||
? <div class="skills"> {range(0, 3).map(j => <SkillBtn key={j} construct={construct} i={j} />)} </div>
|
? <div class="skills"> {range(0, 3).map(j => <SkillBtn key={j} construct={construct} i={j} />)} </div>
|
||||||
: <div></div>;
|
: <div></div>;
|
||||||
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
onClick={() => selectSkillTarget(construct.id)}
|
onClick={() => selectSkillTarget(construct.id)}
|
||||||
style={ activeSkill ? { cursor: 'pointer' } : {}}
|
style={ activeSkill ? { cursor: 'pointer' } : {}}
|
||||||
class={`game-construct ${ko} ${koEvent()} ${unfocus}`}>
|
class={`game-construct ${ko} ${koEvent()} ${unfocus} ${highlight}`}>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
{crypSkills}
|
{crypSkills}
|
||||||
<ConstructEffectBox construct={construct} />
|
<ConstructEffectBox construct={construct} />
|
||||||
|
|||||||
@ -86,7 +86,9 @@ function GameCtrlBtns(args) {
|
|||||||
quit();
|
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>;
|
const quitBtn = <button disabled={animating} class="quit" onClick={quitClick}>Back</button>;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -95,7 +95,7 @@ function Play(args) {
|
|||||||
type="submit">
|
type="submit">
|
||||||
Invite
|
Invite
|
||||||
</button>
|
</button>
|
||||||
<figcaption>Play against friend</figcaption>
|
<figcaption>Play against a friend</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "mnml_core"
|
name = "mnml_core"
|
||||||
version = "1.12.2"
|
version = "1.12.3"
|
||||||
authors = ["ntr <ntr@smokestack.io>", "mashy <mashy@mnml.gg>"]
|
authors = ["ntr <ntr@smokestack.io>", "mashy <mashy@mnml.gg>"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mnml-ops",
|
"name": "mnml-ops",
|
||||||
"version": "1.12.2",
|
"version": "1.12.3",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "mnml"
|
name = "mnml"
|
||||||
version = "1.12.2"
|
version = "1.12.3"
|
||||||
authors = ["ntr <ntr@smokestack.io>"]
|
authors = ["ntr <ntr@smokestack.io>"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|||||||
@ -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 shape_dist = WeightedIndex::new(shapes.iter().map(|v| v.1))?;
|
||||||
|
|
||||||
let n_shapes_items = [
|
let n_shapes_items = [
|
||||||
(1, 1),
|
|
||||||
(2, 2),
|
(2, 2),
|
||||||
(3, 5),
|
(3, 5),
|
||||||
(4, 10),
|
(4, 10),
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "mnml-studios",
|
"name": "mnml-studios",
|
||||||
"version": "1.12.2",
|
"version": "1.12.3",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user