From e2dfd5ec5fdc48aea4f8aeb001db7fb06b118fb1 Mon Sep 17 00:00:00 2001 From: ntr Date: Thu, 9 May 2019 00:23:05 +1000 Subject: [PATCH] add some names --- client/cryps.css | 1 + client/src/components/game.cryp.jsx | 9 ++++++--- server/src/names.rs | 22 ++++++++++++++++++++-- 3 files changed, 27 insertions(+), 5 deletions(-) diff --git a/client/cryps.css b/client/cryps.css index f0dd75c5..6259b3e6 100644 --- a/client/cryps.css +++ b/client/cryps.css @@ -20,6 +20,7 @@ html, body, .cryps { height: 99%; max-height: 99%; min-height: 99%; + /*padding: 0 20%;*/ } html { diff --git a/client/src/components/game.cryp.jsx b/client/src/components/game.cryp.jsx index c7e08c98..9715c8ed 100644 --- a/client/src/components/game.cryp.jsx +++ b/client/src/components/game.cryp.jsx @@ -62,12 +62,15 @@ function GameCryp(props) { const skills = range(0, 3) .map(i => ); - const stats = [STATS.greenLife, STATS.redLife, STATS.blueLife].map((s, j) => ( -
+ + const stats = [STATS.greenLife, STATS.redLife, STATS.blueLife].map((s, j) => { + // i've seen this happen ;/ + if (cryp[s.stat].value < 0) console.warn(cryp); + return
{s.svg(`stat-icon ${s.colour}`)}
{cryp[s.stat].value} / {cryp[s.stat].max}
- )); + }); function onClick(e) { diff --git a/server/src/names.rs b/server/src/names.rs index 6c5f748b..96280b92 100644 --- a/server/src/names.rs +++ b/server/src/names.rs @@ -1,7 +1,7 @@ use rand::prelude::*; use rand::{thread_rng}; -const FIRSTS: [&'static str; 17] = [ +const FIRSTS: [&'static str; 22] = [ "fierce", "obscure", "mighty", @@ -19,14 +19,32 @@ const FIRSTS: [&'static str; 17] = [ "lurking", "leafy", "nutritious", + "bristling", + "metallic", + "purified", + "organic", + "distorted", ]; -const LASTS: [&'static str; 16] = [ +const LASTS: [&'static str; 29] = [ "kaffe", + "foilage", + "wildlife", + "design", + "assembly", + "layout", + "transmitter", + "lens", + "artifact", + "frequency", + "entropy", + "console", + "insulator", "river", "oak", "replicant", "mechanism", + "construct", "function", "shape", "form",