diff options
author | Daniel Weipert <code@drogueronin.de> | 2023-08-19 13:18:54 +0200 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2023-08-19 13:18:54 +0200 |
commit | 218da95a4b387ee5ac25f168d1529419039f2e54 (patch) | |
tree | 21375d6aae287da413cbfc1002c2c8eeb7bba1ed /resources/js/classes/Technique.js | |
parent | 91d048ef0f994446aaee91e3afcbd99788e439d7 (diff) |
refactor: enemy -> opponent, State.monsters~ -> State.Trainer.monsters
Diffstat (limited to 'resources/js/classes/Technique.js')
-rw-r--r-- | resources/js/classes/Technique.js | 10 |
1 files changed, 7 insertions, 3 deletions
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 () { |