28 lines
1.3 KiB
JavaScript
28 lines
1.3 KiB
JavaScript
import { GENE } from "../engine/catalog.js";
|
||
const summaries = {
|
||
intelligence: "1 gene for scoring; no special ability.",
|
||
movement1: "Swim: roll two dice and choose one.",
|
||
movement2: "Choose your swimming direction.",
|
||
spores: "Place new amoebas anywhere without your colour.",
|
||
speed: "A second swim costs no extra BP.",
|
||
defense: "Pay 1 BP to fight off an attack.",
|
||
escape: "Try to escape an attack for 1 BP.",
|
||
substitution: "Eat an extra cube to replace a colour.",
|
||
ray: "−2 mutation sensitivity; 0 genes for scoring.",
|
||
streamline: "Swimming and escaping cost 0 BP.",
|
||
holding: "Stay instead of drifting, or follow another amoeba.",
|
||
longevity: "Survive 2 injuries.",
|
||
frugality: "Eat one fewer food cube.",
|
||
struggle: "Phase 1: attack for 1 BP only when starving, to feed.",
|
||
parasitism: "An opponent here pays 1 BP; eat one fewer cube.",
|
||
division: "New amoebas cost 4 BP instead of 6 BP.",
|
||
persistence: "Retry a failed attack or defense for free.",
|
||
aggression:
|
||
"Keeps starvation attacks. Adds one colony attack in phase 5 for 1 BP, even when fed.",
|
||
armor: "Cannot be eaten; Aggression causes 1 injury.",
|
||
};
|
||
|
||
export const geneSummary = (id, playerCount) =>
|
||
id === "tentacle"
|
||
? `Carry up to ${playerCount === 3 ? 2 : 3} food cubes when moving.`
|
||
: (summaries[id] ?? GENE[id]?.text);
|