Addnew sheets (armor, weapons, malefica) and v13 support

This commit is contained in:
2025-05-18 23:51:26 +02:00
parent 7672f861ff
commit 995d61e1c6
4478 changed files with 667857 additions and 620 deletions

42
node_modules/last-run/index.js generated vendored Normal file
View File

@@ -0,0 +1,42 @@
'use strict';
var assert = require('assert');
var runtimes = new WeakMap();
function isFunction(fn) {
return typeof fn === 'function';
}
function lastRun(fn, timeResolution) {
assert(isFunction(fn), 'Only functions can check lastRun');
var time = runtimes.get(fn);
if (time == null) {
return;
}
var resolution = parseInt(timeResolution, 10) || 1;
return time - (time % resolution);
}
function capture(fn, timestamp) {
assert(isFunction(fn), 'Only functions can be captured');
timestamp = timestamp || Date.now();
runtimes.set(fn, timestamp);
}
function release(fn) {
assert(isFunction(fn), 'Only functions can be captured');
runtimes.delete(fn);
}
lastRun.capture = capture;
lastRun.release = release;
module.exports = lastRun;