summaryrefslogtreecommitdiff
path: root/resources/js/classes/Technique.js
diff options
context:
space:
mode:
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 () {