From f8443b0c273d5cdb44d58d0d04d3d56d9210b44b Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sun, 12 Jul 2020 19:32:13 -0400 Subject: [PATCH] Add bulk and prey counters --- src/components/Statblock.vue | 8 +++++++- src/game/creatures/cafat.ts | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/Statblock.vue b/src/components/Statblock.vue index f5bbb0e..e5f3d62 100644 --- a/src/components/Statblock.vue +++ b/src/components/Statblock.vue @@ -6,7 +6,11 @@
{{ subject.vigors[vigor.Stamina].toFixed(0) }}
{{ subject.vigors[vigor.Willpower].toFixed(0) }}

-
: {{subject.stats[stat]}}
+
{{subject.stats[stat]}}
+
+
{{subject.bulk}}
+
{{ subject.containers.reduce((total, container) => total + container.contents.length, 0) }}
+
Status: {{subject.status}}
@@ -61,5 +65,7 @@ a { font-size: 2vh; padding-top: 4pt; padding-bottom: 4pt; + display: flex; + justify-content: space-evenly; } diff --git a/src/game/creatures/cafat.ts b/src/game/creatures/cafat.ts index a0ab123..6e3bd35 100644 --- a/src/game/creatures/cafat.ts +++ b/src/game/creatures/cafat.ts @@ -24,6 +24,7 @@ class BellyCrushAction extends AttackAction { constructor (private _damage: Damage) { super(_damage) this.name = 'Belly Crush' + this.desc = 'Deal damage proportional to your bulk' } execute (user: Creature, target: Creature): LogEntry { @@ -51,6 +52,7 @@ class BelchAction extends AttackAction { constructor (damage: Damage) { super(damage) this.name = 'Belch' + this.desc = 'Drain your foe\'s willpower with a solid BELCH' } } class CrushAction extends EatenAction { @@ -66,6 +68,7 @@ class CrushAction extends EatenAction { constructor (container: Container) { super(container, "Crush", "Crush 'em!") + this.desc = "Crush somebody in your gut" } execute (user: Creature, target: Creature): LogEntry {