From 1763bdf368386a06199ef480a9bd193818e1881c Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Sun, 19 Jul 2020 17:30:53 -0400 Subject: [PATCH] Add titles and descriptions (and some familiar D&D names) --- src/App.vue | 12 ++++++++---- src/components/Statblock.vue | 20 +++++++++++++++++--- src/game/creatures/human.ts | 3 +++ src/game/creatures/withers.ts | 3 +++ src/game/entity.ts | 6 +++++- src/game/vore.ts | 2 ++ 6 files changed, 38 insertions(+), 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index e98f9b1..9168128 100644 --- a/src/App.vue +++ b/src/App.vue @@ -25,7 +25,7 @@ export default class App extends Vue { constructor () { super() - const fighter = new Creatures.Human(new ImproperNoun('fighter'), TheyPronouns, { + const fighter = new Creatures.Human(new ProperNoun("Redgar"), MalePronouns, { stats: { Toughness: 40, Power: 50, @@ -34,7 +34,8 @@ export default class App extends Vue { Charm: 20 } }) - const rogue = new Creatures.Human(new ImproperNoun('wizard'), MalePronouns, { + fighter.title = "Lv. 6 Fighter" + const rogue = new Creatures.Human(new ProperNoun('Lidda'), FemalePronouns, { stats: { Toughness: 25, Power: 40, @@ -43,7 +44,8 @@ export default class App extends Vue { Charm: 80 } }) - const wizard = new Creatures.Human(new ImproperNoun('rogue'), FemalePronouns, { + rogue.title = "Lv. 5 Rogue" + const wizard = new Creatures.Human(new ProperNoun('Mialee'), FemalePronouns, { stats: { Toughness: 30, Power: 20, @@ -52,7 +54,8 @@ export default class App extends Vue { Charm: 60 } }) - const cleric = new Creatures.Human(new ImproperNoun('cleric'), FemalePronouns, { + wizard.title = "Lv. 6 Wizard" + const cleric = new Creatures.Human(new ProperNoun('Jozan'), MalePronouns, { stats: { Toughness: 35, Power: 40, @@ -61,6 +64,7 @@ export default class App extends Vue { Charm: 50 } }) + cleric.title = "Lv. 5 Wizard" this.left = fighter this.right = new Creatures.Withers() diff --git a/src/components/Statblock.vue b/src/components/Statblock.vue index a329c76..51cec39 100644 --- a/src/components/Statblock.vue +++ b/src/components/Statblock.vue @@ -1,7 +1,19 @@