add some names

This commit is contained in:
ntr 2019-05-09 00:23:05 +10:00
parent e12e3e6c4b
commit e2dfd5ec5f
3 changed files with 27 additions and 5 deletions

View File

@ -20,6 +20,7 @@ html, body, .cryps {
height: 99%; height: 99%;
max-height: 99%; max-height: 99%;
min-height: 99%; min-height: 99%;
/*padding: 0 20%;*/
} }
html { html {

View File

@ -62,12 +62,15 @@ function GameCryp(props) {
const skills = range(0, 3) const skills = range(0, 3)
.map(i => <SkillBtn key={i} cryp={cryp} i={i} />); .map(i => <SkillBtn key={i} cryp={cryp} i={i} />);
const stats = [STATS.greenLife, STATS.redLife, STATS.blueLife].map((s, j) => (
<figure key={j} alt={s.stat}> 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 <figure key={j} alt={s.stat}>
{s.svg(`stat-icon ${s.colour}`)} {s.svg(`stat-icon ${s.colour}`)}
<figcaption>{cryp[s.stat].value} / {cryp[s.stat].max}</figcaption> <figcaption>{cryp[s.stat].value} / {cryp[s.stat].max}</figcaption>
</figure> </figure>
)); });
function onClick(e) { function onClick(e) {

View File

@ -1,7 +1,7 @@
use rand::prelude::*; use rand::prelude::*;
use rand::{thread_rng}; use rand::{thread_rng};
const FIRSTS: [&'static str; 17] = [ const FIRSTS: [&'static str; 22] = [
"fierce", "fierce",
"obscure", "obscure",
"mighty", "mighty",
@ -19,14 +19,32 @@ const FIRSTS: [&'static str; 17] = [
"lurking", "lurking",
"leafy", "leafy",
"nutritious", "nutritious",
"bristling",
"metallic",
"purified",
"organic",
"distorted",
]; ];
const LASTS: [&'static str; 16] = [ const LASTS: [&'static str; 29] = [
"kaffe", "kaffe",
"foilage",
"wildlife",
"design",
"assembly",
"layout",
"transmitter",
"lens",
"artifact",
"frequency",
"entropy",
"console",
"insulator",
"river", "river",
"oak", "oak",
"replicant", "replicant",
"mechanism", "mechanism",
"construct",
"function", "function",
"shape", "shape",
"form", "form",