From 002ff554b998196b1bb729872674008607394fb5 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Wed, 22 Jul 2020 18:19:43 -0400 Subject: [PATCH] Add a very large Lycanroc; fix some Vue warnings --- .eslintrc.js | 3 +- src/App.vue | 3 +- src/components/Combat.vue | 8 ++-- src/game/combat.ts | 36 +++--------------- src/game/combat/actions.ts | 69 ++++++++++++++++++++++++++--------- src/game/combat/conditions.ts | 26 ++++++++++++- src/game/creatures.ts | 3 +- src/game/creatures/kenzie.ts | 34 +++++++++++++++++ src/game/creatures/withers.ts | 39 ++++++++++++-------- src/game/vore.ts | 13 ++++--- 10 files changed, 155 insertions(+), 79 deletions(-) create mode 100644 src/game/creatures/kenzie.ts diff --git a/.eslintrc.js b/.eslintrc.js index f85257d..74a00a9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -16,6 +16,7 @@ module.exports = { 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off', 'no-useless-constructor': 'off', '@typescript-eslint/no-unused-vars': 'off', - 'quotes': 'off' + 'quotes': 'off', + 'function-paren-newline': ['error', 'multiline-arguments'] } } diff --git a/src/App.vue b/src/App.vue index 09c51d3..3d7d46a 100644 --- a/src/App.vue +++ b/src/App.vue @@ -73,7 +73,8 @@ export default class App extends Vue { this.left = fighter this.right = new Creatures.Withers() - this.combatants = [this.left, this.right, wizard, rogue, cleric] + const kenzie = new Creatures.Kenzie() + this.combatants = [this.left, this.right, wizard, rogue, cleric, kenzie] console.log(this.left) console.log(this.right) } diff --git a/src/components/Combat.vue b/src/components/Combat.vue index ab92981..8abba78 100644 --- a/src/components/Combat.vue +++ b/src/components/Combat.vue @@ -1,10 +1,10 @@