From 1b4b926c621bc86b685fa0537126c64d1a5349e2 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Wed, 8 Jul 2020 12:59:38 -0400 Subject: [PATCH] Add statblocks; fix title --- src/App.vue | 6 ++++- src/components/Combat.vue | 9 +++----- src/components/Statblock.vue | 44 ++++++++++++++++++++++++++++++++++++ src/game/combat.ts | 8 +++---- vue.config.js | 10 ++++++++ 5 files changed, 66 insertions(+), 11 deletions(-) create mode 100644 src/components/Statblock.vue create mode 100644 vue.config.js diff --git a/src/App.vue b/src/App.vue index 31ff36b..92345a1 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,6 +1,8 @@ @@ -8,12 +10,14 @@ + + + diff --git a/src/game/combat.ts b/src/game/combat.ts index 4a4de6d..355b30c 100644 --- a/src/game/combat.ts +++ b/src/game/combat.ts @@ -40,10 +40,10 @@ export enum Stat { export type Stats = {[key in Stat]: number} export enum State { - Normal, - Grappled, - Grappling, - Eaten + Normal = 'Normal', + Grappled = 'Grappled', + Grappling = 'Grappling', + Eaten = 'Eaten' } export interface Combatant { diff --git a/vue.config.js b/vue.config.js new file mode 100644 index 0000000..8ac021f --- /dev/null +++ b/vue.config.js @@ -0,0 +1,10 @@ +module.exports = { + chainWebpack: config => { + config + .plugin('html') + .tap(args => { + args[0].title = 'Feast' + return args + }) + } +}