summaryrefslogtreecommitdiff
path: root/resources/js/classes/Technique.js
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-08-19 13:18:54 +0200
committerDaniel Weipert <code@drogueronin.de>2023-08-19 13:18:54 +0200
commit218da95a4b387ee5ac25f168d1529419039f2e54 (patch)
tree21375d6aae287da413cbfc1002c2c8eeb7bba1ed /resources/js/classes/Technique.js
parent91d048ef0f994446aaee91e3afcbd99788e439d7 (diff)
refactor: enemy -> opponent, State.monsters~ -> State.Trainer.monsters
Diffstat (limited to 'resources/js/classes/Technique.js')
-rw-r--r--resources/js/classes/Technique.js10
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 () {