From de6de6cd5eedce5a12d6442c61a5fc48dc27059a Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Mon, 13 Jul 2020 10:22:02 -0400 Subject: [PATCH] Add new stats; add tooltips --- src/App.vue | 1 + src/components/Statblock.vue | 52 ++++++++++++++++++++++++++++++------ src/game/combat.ts | 30 ++++++++++++--------- src/game/creatures/cafat.ts | 20 +++++++++----- src/game/creatures/player.ts | 2 +- src/game/creatures/wolf.ts | 10 +++---- src/game/entity.ts | 8 +++--- 7 files changed, 85 insertions(+), 38 deletions(-) diff --git a/src/App.vue b/src/App.vue index 6986f68..b898d41 100644 --- a/src/App.vue +++ b/src/App.vue @@ -44,6 +44,7 @@ body, html { background: #181818; width: 100%; height: 100%; + overflow-x: hidden; } #app { diff --git a/src/components/Statblock.vue b/src/components/Statblock.vue index e5f3d62..2702c74 100644 --- a/src/components/Statblock.vue +++ b/src/components/Statblock.vue @@ -2,14 +2,18 @@

You

{{subject.name.all.capital}}

-
{{ subject.vigors[vigor.Health].toFixed(0) }}
-
{{ subject.vigors[vigor.Stamina].toFixed(0) }}
-
{{ subject.vigors[vigor.Willpower].toFixed(0) }}
+
+
{{subject.vigors[vigor]}}
+

-
{{subject.stats[stat]}}
+
+
{{subject.stats[stat]}}
+

-
{{subject.bulk}}
-
{{ subject.containers.reduce((total, container) => total + container.contents.length, 0) }}
+
+
{{subject.bulk}}
+
{{ subject.containers.reduce((total, container) => total + container.contents.length, 0) }}
+

Status: {{subject.status}}
@@ -19,9 +23,8 @@