Add hidden dev debug console (v0.5.0)
This commit is contained in:
1 parent
b8b5c360f2
commit
3f76998fab
22 files changed
+1161
-57
No files matched your search
+2
-2
@@ -243,9 +243,9 @@ const ACTIVES = {
|
||||
} },
|
||||
};
|
||||
|
||||
function useActive() {
|
||||
function useActive(force) {
|
||||
const p = G.player;
|
||||
if (!p.active || G.mode !== 'play') return;
|
||||
if (!p.active || (G.mode !== 'play' && !force)) return;
|
||||
const a = ACTIVES[p.active.iid];
|
||||
if (!a) return;
|
||||
if (p.active.charges < a.cost) {
|
||||
|
||||
Reference in new issue
Block a user