From 218da95a4b387ee5ac25f168d1529419039f2e54 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 19 Aug 2023 13:18:54 +0200 Subject: refactor: enemy -> opponent, State.monsters~ -> State.Trainer.monsters --- resources/js/classes/Technique.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'resources/js/classes/Technique.js') diff --git a/resources/js/classes/Technique.js b/resources/js/classes/Technique.js index 39028be..74783a2 100644 --- a/resources/js/classes/Technique.js +++ b/resources/js/classes/Technique.js @@ -33,6 +33,10 @@ class Technique { return DB.techniques[this.slug].sfx; } + get healingPower() { + return DB.techniques[this.slug].healing_power; + } + /** * @returns {string[]} */ @@ -45,15 +49,15 @@ class Technique { } isRecharging () { - if (this.turnLastUse >= Game.turn) { + if (this.turnLastUse >= Memory.state.turn) { return false; } - return this.rechargeLength > Game.turn - this.turnLastUse; + return this.rechargeLength > Memory.state.turn - this.turnLastUse; } use () { - this.turnLastUse = Game.turn; + this.turnLastUse = Memory.state.turn; } get accuracy () { -- cgit v1.2.3