summaryrefslogtreecommitdiff
path: root/resources/js/classes/Technique.js
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-08-18 23:19:13 +0200
committerDaniel Weipert <code@drogueronin.de>2023-08-18 23:19:13 +0200
commit91d048ef0f994446aaee91e3afcbd99788e439d7 (patch)
tree30063656343d7c3c0f9ebd37b2eb1896bfa76820 /resources/js/classes/Technique.js
parentf9b00e47e04eac414d892a08136a90833abeefd6 (diff)
item effects,conditions
Diffstat (limited to 'resources/js/classes/Technique.js')
-rw-r--r--resources/js/classes/Technique.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/resources/js/classes/Technique.js b/resources/js/classes/Technique.js
index 7558748..39028be 100644
--- a/resources/js/classes/Technique.js
+++ b/resources/js/classes/Technique.js
@@ -44,12 +44,12 @@ class Technique {
return DB.techniques[this.slug].recharge;
}
- isUsable () {
+ isRecharging () {
if (this.turnLastUse >= Game.turn) {
- return true;
+ return false;
}
- return Game.turn - this.turnLastUse >= this.rechargeLength;
+ return this.rechargeLength > Game.turn - this.turnLastUse;
}
use () {