replace old iife by a simpler ones

This commit is contained in:
Azgaar 2021-08-04 23:49:02 +03:00
parent 37e5b803bc
commit 460bb29e49
15 changed files with 2430 additions and 1313 deletions

View file

@ -1,8 +1,6 @@
(function (global, factory) {
typeof exports === "object" && typeof module !== "undefined" ? (module.exports = factory()) : typeof define === "function" && define.amd ? define(factory) : (global.Military = factory());
})(this, function () {
"use strict";
"use strict";
window.Military = (function () {
const generate = function () {
TIME && console.time("generateMilitaryForces");
const cells = pack.cells,
@ -371,4 +369,4 @@
};
return {generate, getDefaultOptions, getName, generateNote, drawRegiments, drawRegiment, moveRegiment, getTotal, getEmblem};
});
})();