libram 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/Clan.js +268 -485
  2. package/dist/Copier.js +11 -48
  3. package/dist/Dungeon.js +77 -157
  4. package/dist/Kmail.d.ts +3 -1
  5. package/dist/Kmail.js +92 -243
  6. package/dist/Path.js +68 -120
  7. package/dist/ascend.js +153 -172
  8. package/dist/combat.d.ts +84 -0
  9. package/dist/combat.js +294 -387
  10. package/dist/console.js +13 -36
  11. package/dist/diet/index.d.ts +23 -8
  12. package/dist/diet/index.js +320 -426
  13. package/dist/diet/knapsack.d.ts +1 -1
  14. package/dist/diet/knapsack.js +90 -100
  15. package/dist/dungeons/Dreadsylvania.d.ts +4 -0
  16. package/dist/dungeons/Dreadsylvania.js +14 -0
  17. package/dist/dungeons/Dungeon.d.ts +28 -0
  18. package/dist/dungeons/Dungeon.js +99 -0
  19. package/dist/dungeons/Hobopolis.d.ts +4 -0
  20. package/dist/dungeons/Hobopolis.js +14 -0
  21. package/dist/dungeons/SlimeTube.d.ts +4 -0
  22. package/dist/dungeons/SlimeTube.js +14 -0
  23. package/dist/freerun.d.ts +16 -4
  24. package/dist/freerun.js +88 -99
  25. package/dist/index.d.ts +3 -1
  26. package/dist/index.js +21 -300
  27. package/dist/lib.d.ts +2 -0
  28. package/dist/lib.js +264 -515
  29. package/dist/logger.js +23 -63
  30. package/dist/maximize.js +289 -562
  31. package/dist/modifier.js +35 -46
  32. package/dist/modifierTypes.js +8 -22
  33. package/dist/mood.js +220 -531
  34. package/dist/property.d.ts +2 -0
  35. package/dist/property.js +96 -242
  36. package/dist/propertyTypes.d.ts +2 -2
  37. package/dist/propertyTypes.js +1 -0
  38. package/dist/propertyTyping.js +42 -53
  39. package/dist/resources/2007/CandyHearts.d.ts +9 -0
  40. package/dist/resources/2007/CandyHearts.js +24 -0
  41. package/dist/resources/2008/DivineFavors.d.ts +9 -0
  42. package/dist/resources/2008/DivineFavors.js +27 -0
  43. package/dist/resources/2009/Bandersnatch.js +37 -112
  44. package/dist/resources/2009/LoveSongs.d.ts +9 -0
  45. package/dist/resources/2009/LoveSongs.js +24 -0
  46. package/dist/resources/2009/SpookyPutty.js +20 -46
  47. package/dist/resources/2010/Brickos.d.ts +9 -0
  48. package/dist/resources/2010/Brickos.js +21 -0
  49. package/dist/resources/2010/CrownOfThrones.d.ts +9 -0
  50. package/dist/resources/2010/CrownOfThrones.js +550 -374
  51. package/dist/resources/2011/Gygaxian.d.ts +9 -0
  52. package/dist/resources/2011/Gygaxian.js +24 -0
  53. package/dist/resources/2011/ObtuseAngel.js +21 -63
  54. package/dist/resources/2012/RainDoh.js +14 -40
  55. package/dist/resources/2012/Resolutions.d.ts +9 -0
  56. package/dist/resources/2012/Resolutions.js +28 -0
  57. package/dist/resources/2013/Florist.d.ts +1 -0
  58. package/dist/resources/2013/Florist.js +137 -207
  59. package/dist/resources/2013/PulledTaffy.d.ts +9 -0
  60. package/dist/resources/2013/PulledTaffy.js +33 -0
  61. package/dist/resources/2014/WinterGarden.js +15 -43
  62. package/dist/resources/2015/ChateauMantegna.js +52 -86
  63. package/dist/resources/2015/MayoClinic.d.ts +1 -0
  64. package/dist/resources/2015/MayoClinic.js +30 -65
  65. package/dist/resources/2016/SourceTerminal.d.ts +1 -0
  66. package/dist/resources/2016/SourceTerminal.js +114 -237
  67. package/dist/resources/2016/Witchess.js +33 -59
  68. package/dist/resources/2017/TunnelOfLove.js +62 -111
  69. package/dist/resources/2018/SongBoom.js +32 -68
  70. package/dist/resources/2019/BeachComb.js +26 -44
  71. package/dist/resources/2019/Snapper.d.ts +28 -0
  72. package/dist/resources/2019/Snapper.js +70 -0
  73. package/dist/resources/2020/Guzzlr.js +79 -163
  74. package/dist/resources/LibramSummon.d.ts +12 -0
  75. package/dist/resources/LibramSummon.js +66 -0
  76. package/dist/resources/index.d.ts +3 -1
  77. package/dist/resources/index.js +19 -105
  78. package/dist/resources/putty-likes.js +15 -30
  79. package/dist/since.d.ts +1 -0
  80. package/dist/since.js +56 -112
  81. package/dist/template-string.js +40 -132
  82. package/dist/utils.js +36 -134
  83. package/package.json +2 -2
package/dist/since.js CHANGED
@@ -1,76 +1,23 @@
1
- "use strict";
2
-
3
- require("core-js/modules/es.object.to-string.js");
4
-
5
- require("core-js/modules/es.regexp.to-string.js");
6
-
7
- require("core-js/modules/es.reflect.construct.js");
8
-
9
- require("core-js/modules/es.array.iterator.js");
10
-
11
- Object.defineProperty(exports, "__esModule", {
12
- value: true
13
- });
14
- exports.sinceKolmafiaRevision = sinceKolmafiaRevision;
15
- exports.sinceKolmafiaVersion = sinceKolmafiaVersion;
16
- exports.KolmafiaVersionError = void 0;
17
-
18
- require("core-js/modules/es.array.concat.js");
19
-
20
- require("core-js/modules/es.regexp.exec.js");
21
-
22
- var _kolmafia = require("kolmafia");
23
-
24
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
25
-
26
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
27
-
28
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
29
-
30
- function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
31
-
32
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
33
-
34
- function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
35
-
36
- function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct; } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
37
-
38
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
39
-
40
- function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
41
-
42
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
43
-
44
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
45
-
1
+ /**
2
+ * Provides functions for checking KoLmafia's version and revision.
3
+ * @packageDocumentation
4
+ */
5
+ import { getRevision, getVersion } from "kolmafia";
46
6
  /**
47
7
  * Represents an exception thrown when the current KoLmafia version does not
48
8
  * match an expected condition.
49
9
  */
50
- var KolmafiaVersionError = /*#__PURE__*/function (_Error) {
51
- _inherits(KolmafiaVersionError, _Error);
52
-
53
- var _super = _createSuper(KolmafiaVersionError);
54
-
55
- function KolmafiaVersionError(message) {
56
- var _this;
57
-
58
- _classCallCheck(this, KolmafiaVersionError);
59
-
60
- _this = _super.call(this, message); // Explicitly set the prototype, so that 'instanceof' still works in Node.js
61
- // even when the class is transpiled down to ES5
62
- // See: https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
63
- // Note that this code isn't needed for Rhino.
64
-
65
- Object.setPrototypeOf(_assertThisInitialized(_this), KolmafiaVersionError.prototype);
66
- return _this;
67
- }
68
-
69
- return KolmafiaVersionError;
70
- }( /*#__PURE__*/_wrapNativeSuper(Error)); // Manually set class name, so that the stack trace shows proper name in Rhino
71
-
72
-
73
- exports.KolmafiaVersionError = KolmafiaVersionError;
10
+ export class KolmafiaVersionError extends Error {
11
+ constructor(message) {
12
+ super(message);
13
+ // Explicitly set the prototype, so that 'instanceof' still works in Node.js
14
+ // even when the class is transpiled down to ES5
15
+ // See: https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work
16
+ // Note that this code isn't needed for Rhino.
17
+ Object.setPrototypeOf(this, KolmafiaVersionError.prototype);
18
+ }
19
+ }
20
+ // Manually set class name, so that the stack trace shows proper name in Rhino
74
21
  KolmafiaVersionError.prototype.name = "KolmafiaVersionError";
75
22
  /**
76
23
  * Returns the currently executing script name, suitable for embedding in an
@@ -78,13 +25,10 @@ KolmafiaVersionError.prototype.name = "KolmafiaVersionError";
78
25
  * @returns Path of the main script wrapped in single-quotes, or `"This script"`
79
26
  * if the path cannot be determined
80
27
  */
81
-
82
28
  function getScriptName() {
83
- var _require$main;
84
-
85
- // In Rhino, the current script name is available in require.main.id
86
- var scriptName = (_require$main = require.main) === null || _require$main === void 0 ? void 0 : _require$main.id;
87
- return scriptName ? "'".concat(scriptName, "'") : "This script";
29
+ // In Rhino, the current script name is available in require.main.id
30
+ const scriptName = require.main?.id;
31
+ return scriptName ? `'${scriptName}'` : "This script";
88
32
  }
89
33
  /**
90
34
  * If KoLmafia's revision number is less than `revision`, throws an exception.
@@ -102,17 +46,15 @@ function getScriptName() {
102
46
  * sinceKolmafiaRevision(20500);
103
47
  * ```
104
48
  */
105
-
106
-
107
- function sinceKolmafiaRevision(revision) {
108
- if (!Number.isInteger(revision)) {
109
- throw new TypeError("Invalid revision number ".concat(revision, " (must be an integer)"));
110
- } // Based on net.sourceforge.kolmafia.textui.Parser.sinceException()
111
-
112
-
113
- if ((0, _kolmafia.getRevision)() < revision) {
114
- throw new KolmafiaVersionError("".concat(getScriptName(), " requires revision r").concat(revision, " of kolmafia or higher (current: ").concat((0, _kolmafia.getRevision)(), "). Up-to-date builds can be found at https://ci.kolmafia.us/."));
115
- }
49
+ export function sinceKolmafiaRevision(revision) {
50
+ if (!Number.isInteger(revision)) {
51
+ throw new TypeError(`Invalid revision number ${revision} (must be an integer)`);
52
+ }
53
+ // Based on net.sourceforge.kolmafia.textui.Parser.sinceException()
54
+ const currentRevision = getRevision();
55
+ if (currentRevision > 0 && currentRevision < revision) {
56
+ throw new KolmafiaVersionError(`${getScriptName()} requires revision r${revision} of kolmafia or higher (current: ${getRevision()}). Up-to-date builds can be found at https://ci.kolmafia.us/.`);
57
+ }
116
58
  }
117
59
  /**
118
60
  * If KoLmafia's version is less than `majorVersion.minorVersion`, throws an
@@ -122,6 +64,7 @@ function sinceKolmafiaRevision(revision) {
122
64
  * This behaves like the `since X.Y;` statement in ASH.
123
65
  * @param majorVersion Major version number
124
66
  * @param minorVersion Minor version number
67
+ * @deprecated Point versions are no longer released by KoLmafia
125
68
  * @throws {KolmafiaVersionError}
126
69
  * If KoLmafia's major version is less than `majorVersion`, or if the major
127
70
  * versions are equal but the minor version is less than `minorVersion`
@@ -134,29 +77,30 @@ function sinceKolmafiaRevision(revision) {
134
77
  * sinceKolmafiaVersion(20, 7);
135
78
  * ```
136
79
  */
137
-
138
-
139
- function sinceKolmafiaVersion(majorVersion, minorVersion) {
140
- if (!Number.isInteger(majorVersion)) {
141
- throw new TypeError("Invalid major version number ".concat(majorVersion, " (must be an integer)"));
142
- }
143
-
144
- if (!Number.isInteger(minorVersion)) {
145
- throw new TypeError("Invalid minor version number ".concat(minorVersion, " (must be an integer)"));
146
- }
147
-
148
- var versionStr = (0, _kolmafia.getVersion)();
149
- var versionStrMatch = /v(\d+)\.(\d+)/.exec(versionStr);
150
-
151
- if (!versionStrMatch) {
152
- // This is not something the user should handle
153
- throw new Error("Unexpected KoLmafia version string: \"".concat(versionStr, "\". You may need to update the script."));
154
- }
155
-
156
- var currentMajorVersion = Number(versionStrMatch[1]);
157
- var currentMinorVersion = Number(versionStrMatch[2]); // Based on net.sourceforge.kolmafia.textui.Parser.sinceException()
158
-
159
- if (currentMajorVersion < majorVersion || currentMajorVersion === majorVersion && currentMinorVersion < minorVersion) {
160
- throw new KolmafiaVersionError("".concat(getScriptName(), " requires version ").concat(majorVersion, ".").concat(minorVersion, " of kolmafia or higher (current: ").concat(currentMajorVersion, ".").concat(currentMinorVersion, "). Up-to-date builds can be found at https://ci.kolmafia.us/."));
161
- }
162
- }
80
+ export function sinceKolmafiaVersion(majorVersion, minorVersion) {
81
+ if (getRevision() >= 25720) {
82
+ return;
83
+ }
84
+ if (!Number.isInteger(majorVersion)) {
85
+ throw new TypeError(`Invalid major version number ${majorVersion} (must be an integer)`);
86
+ }
87
+ if (!Number.isInteger(minorVersion)) {
88
+ throw new TypeError(`Invalid minor version number ${minorVersion} (must be an integer)`);
89
+ }
90
+ if (majorVersion > 21 || (majorVersion === 20 && minorVersion > 9)) {
91
+ throw new Error(`There were no versions released after 21.09. This command will always fail`);
92
+ }
93
+ const versionStr = getVersion();
94
+ const versionStrMatch = /v(\d+)\.(\d+)/.exec(versionStr);
95
+ if (!versionStrMatch) {
96
+ // This is not something the user should handle
97
+ throw new Error(`Unexpected KoLmafia version string: "${versionStr}". You may need to update the script.`);
98
+ }
99
+ const currentMajorVersion = Number(versionStrMatch[1]);
100
+ const currentMinorVersion = Number(versionStrMatch[2]);
101
+ // Based on net.sourceforge.kolmafia.textui.Parser.sinceException()
102
+ if (currentMajorVersion < majorVersion ||
103
+ (currentMajorVersion === majorVersion && currentMinorVersion < minorVersion)) {
104
+ throw new KolmafiaVersionError(`${getScriptName()} requires version ${majorVersion}.${minorVersion} of kolmafia or higher (current: ${currentMajorVersion}.${currentMinorVersion}). Up-to-date builds can be found at https://ci.kolmafia.us/.`);
105
+ }
106
+ }
@@ -1,299 +1,207 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.$thralls = exports.$thrall = exports.$stats = exports.$stat = exports.$slots = exports.$slot = exports.$skills = exports.$skill = exports.$servants = exports.$servant = exports.$phyla = exports.$phylum = exports.$monsters = exports.$monster = exports.$locations = exports.$location = exports.$items = exports.$item = exports.$familiars = exports.$familiar = exports.$elements = exports.$element = exports.$effects = exports.$effect = exports.$coinmasters = exports.$coinmaster = exports.$classes = exports.$class = exports.$bounties = exports.$bounty = void 0;
7
-
8
- require("core-js/modules/es.array.concat.js");
9
-
10
- require("core-js/modules/es.regexp.exec.js");
11
-
12
- require("core-js/modules/es.string.split.js");
13
-
14
- var concatTemplateString = function concatTemplateString(literals) {
15
- for (var _len = arguments.length, placeholders = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
16
- placeholders[_key - 1] = arguments[_key];
17
- }
18
-
19
- return literals.reduce((acc, literal, i) => acc + literal + (placeholders[i] || ""), "");
1
+ const concatTemplateString = (literals, ...placeholders) => literals.reduce((acc, literal, i) => acc + literal + (placeholders[i] || ""), "");
2
+ const createSingleConstant = (Type) => (literals, ...placeholders) => {
3
+ const input = concatTemplateString(literals, ...placeholders);
4
+ return Type.get(input);
20
5
  };
21
-
22
- var createSingleConstant = Type => function (literals) {
23
- for (var _len2 = arguments.length, placeholders = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
24
- placeholders[_key2 - 1] = arguments[_key2];
25
- }
26
-
27
- var input = concatTemplateString.apply(void 0, [literals].concat(placeholders));
28
- return Type.get(input);
29
- };
30
-
31
- var createPluralConstant = Type => function (literals) {
32
- for (var _len3 = arguments.length, placeholders = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
33
- placeholders[_key3 - 1] = arguments[_key3];
34
- }
35
-
36
- var input = concatTemplateString.apply(void 0, [literals].concat(placeholders));
37
-
38
- if (input === "") {
39
- return Type.all();
40
- }
41
-
42
- return Type.get(input.split(/\s*,\s*/));
6
+ const createPluralConstant = (Type) => (literals, ...placeholders) => {
7
+ const input = concatTemplateString(literals, ...placeholders);
8
+ if (input === "") {
9
+ return Type.all();
10
+ }
11
+ return Type.get(input.split(/\s*,\s*/));
43
12
  };
44
13
  /**
45
14
  * A Bounty specified by name.
46
15
  *
47
16
  * @category In-game constant
48
17
  */
49
-
50
-
51
- var $bounty = createSingleConstant(Bounty);
18
+ export const $bounty = createSingleConstant(Bounty);
52
19
  /**
53
20
  * A list of Bounties specified by a comma-separated list of names.
54
21
  * For a list of all possible Bounties, leave the template string blank.
55
22
  *
56
23
  * @category In-game constant
57
24
  */
58
-
59
- exports.$bounty = $bounty;
60
- var $bounties = createPluralConstant(Bounty);
25
+ export const $bounties = createPluralConstant(Bounty);
61
26
  /**
62
27
  * A Class specified by name.
63
28
  *
64
29
  * @category In-game constant
65
30
  */
66
-
67
- exports.$bounties = $bounties;
68
- var $class = createSingleConstant(Class);
31
+ export const $class = createSingleConstant(Class);
69
32
  /**
70
33
  * A list of Classes specified by a comma-separated list of names.
71
34
  * For a list of all possible Classes, leave the template string blank.
72
35
  *
73
36
  * @category In-game constant
74
37
  */
75
-
76
- exports.$class = $class;
77
- var $classes = createPluralConstant(Class);
38
+ export const $classes = createPluralConstant(Class);
78
39
  /**
79
40
  * A Coinmaster specified by name.
80
41
  *
81
42
  * @category In-game constant
82
43
  */
83
-
84
- exports.$classes = $classes;
85
- var $coinmaster = createSingleConstant(Coinmaster);
44
+ export const $coinmaster = createSingleConstant(Coinmaster);
86
45
  /**
87
46
  * A list of Coinmasters specified by a comma-separated list of names.
88
47
  * For a list of all possible Coinmasters, leave the template string blank.
89
48
  *
90
49
  * @category In-game constant
91
50
  */
92
-
93
- exports.$coinmaster = $coinmaster;
94
- var $coinmasters = createPluralConstant(Coinmaster);
51
+ export const $coinmasters = createPluralConstant(Coinmaster);
95
52
  /**
96
53
  * An Effect specified by name.
97
54
  *
98
55
  * @category In-game constant
99
56
  */
100
-
101
- exports.$coinmasters = $coinmasters;
102
- var $effect = createSingleConstant(Effect);
57
+ export const $effect = createSingleConstant(Effect);
103
58
  /**
104
59
  * A list of Effects specified by a comma-separated list of names.
105
60
  * For a list of all possible Effects, leave the template string blank.
106
61
  *
107
62
  * @category In-game constant
108
63
  */
109
-
110
- exports.$effect = $effect;
111
- var $effects = createPluralConstant(Effect);
64
+ export const $effects = createPluralConstant(Effect);
112
65
  /**
113
66
  * An Element specified by name.
114
67
  *
115
68
  * @category In-game constant
116
69
  */
117
-
118
- exports.$effects = $effects;
119
- var $element = createSingleConstant(Element);
70
+ export const $element = createSingleConstant(Element);
120
71
  /**
121
72
  * A list of Elements specified by a comma-separated list of names.
122
73
  * For a list of all possible Elements, leave the template string blank.
123
74
  *
124
75
  * @category In-game constant
125
76
  */
126
-
127
- exports.$element = $element;
128
- var $elements = createPluralConstant(Element);
77
+ export const $elements = createPluralConstant(Element);
129
78
  /**
130
79
  * A Familiar specified by name.
131
80
  *
132
81
  * @category In-game constant
133
82
  */
134
-
135
- exports.$elements = $elements;
136
- var $familiar = createSingleConstant(Familiar);
83
+ export const $familiar = createSingleConstant(Familiar);
137
84
  /**
138
85
  * A list of Familiars specified by a comma-separated list of names.
139
86
  * For a list of all possible Familiars, leave the template string blank.
140
87
  *
141
88
  * @category In-game constant
142
89
  */
143
-
144
- exports.$familiar = $familiar;
145
- var $familiars = createPluralConstant(Familiar);
90
+ export const $familiars = createPluralConstant(Familiar);
146
91
  /**
147
92
  * An Item specified by name.
148
93
  *
149
94
  * @category In-game constant
150
95
  */
151
-
152
- exports.$familiars = $familiars;
153
- var $item = createSingleConstant(Item);
96
+ export const $item = createSingleConstant(Item);
154
97
  /**
155
98
  * A list of Items specified by a comma-separated list of names.
156
99
  * For a list of all possible Items, leave the template string blank.
157
100
  *
158
101
  * @category In-game constant
159
102
  */
160
-
161
- exports.$item = $item;
162
- var $items = createPluralConstant(Item);
103
+ export const $items = createPluralConstant(Item);
163
104
  /**
164
105
  * A Location specified by name.
165
106
  *
166
107
  * @category In-game constant
167
108
  */
168
-
169
- exports.$items = $items;
170
- var $location = createSingleConstant(Location);
109
+ export const $location = createSingleConstant(Location);
171
110
  /**
172
111
  * A list of Locations specified by a comma-separated list of names.
173
112
  * For a list of all possible Locations, leave the template string blank.
174
113
  *
175
114
  * @category In-game constant
176
115
  */
177
-
178
- exports.$location = $location;
179
- var $locations = createPluralConstant(Location);
116
+ export const $locations = createPluralConstant(Location);
180
117
  /**
181
118
  * A Monster specified by name.
182
119
  *
183
120
  * @category In-game constant
184
121
  */
185
-
186
- exports.$locations = $locations;
187
- var $monster = createSingleConstant(Monster);
122
+ export const $monster = createSingleConstant(Monster);
188
123
  /**
189
124
  * A list of Monsters specified by a comma-separated list of names.
190
125
  * For a list of all possible Monsters, leave the template string blank.
191
126
  *
192
127
  * @category In-game constant
193
128
  */
194
-
195
- exports.$monster = $monster;
196
- var $monsters = createPluralConstant(Monster);
129
+ export const $monsters = createPluralConstant(Monster);
197
130
  /**
198
131
  * A Phylum specified by name.
199
132
  *
200
133
  * @category In-game constant
201
134
  */
202
-
203
- exports.$monsters = $monsters;
204
- var $phylum = createSingleConstant(Phylum);
135
+ export const $phylum = createSingleConstant(Phylum);
205
136
  /**
206
137
  * A list of Phyla specified by a comma-separated list of names.
207
138
  * For a list of all possible Phyla, leave the template string blank.
208
139
  *
209
140
  * @category In-game constant
210
141
  */
211
-
212
- exports.$phylum = $phylum;
213
- var $phyla = createPluralConstant(Phylum);
142
+ export const $phyla = createPluralConstant(Phylum);
214
143
  /**
215
144
  * A Servant specified by name.
216
145
  *
217
146
  * @category In-game constant
218
147
  */
219
-
220
- exports.$phyla = $phyla;
221
- var $servant = createSingleConstant(Servant);
148
+ export const $servant = createSingleConstant(Servant);
222
149
  /**
223
150
  * A list of Servants specified by a comma-separated list of names.
224
151
  * For a list of all possible Servants, leave the template string blank.
225
152
  *
226
153
  * @category In-game constant
227
154
  */
228
-
229
- exports.$servant = $servant;
230
- var $servants = createPluralConstant(Servant);
155
+ export const $servants = createPluralConstant(Servant);
231
156
  /**
232
157
  * A Skill specified by name.
233
158
  *
234
159
  * @category In-game constant
235
160
  */
236
-
237
- exports.$servants = $servants;
238
- var $skill = createSingleConstant(Skill);
161
+ export const $skill = createSingleConstant(Skill);
239
162
  /**
240
163
  * A list of Skills specified by a comma-separated list of names.
241
164
  * For a list of all possible Skills, leave the template string blank.
242
165
  *
243
166
  * @category In-game constant
244
167
  */
245
-
246
- exports.$skill = $skill;
247
- var $skills = createPluralConstant(Skill);
168
+ export const $skills = createPluralConstant(Skill);
248
169
  /**
249
170
  * A Slot specified by name.
250
171
  *
251
172
  * @category In-game constant
252
173
  */
253
-
254
- exports.$skills = $skills;
255
- var $slot = createSingleConstant(Slot);
174
+ export const $slot = createSingleConstant(Slot);
256
175
  /**
257
176
  * A list of Slots specified by a comma-separated list of names.
258
177
  * For a list of all possible Slots, leave the template string blank.
259
178
  *
260
179
  * @category In-game constant
261
180
  */
262
-
263
- exports.$slot = $slot;
264
- var $slots = createPluralConstant(Slot);
181
+ export const $slots = createPluralConstant(Slot);
265
182
  /**
266
183
  * A Stat specified by name.
267
184
  *
268
185
  * @category In-game constant
269
186
  */
270
-
271
- exports.$slots = $slots;
272
- var $stat = createSingleConstant(Stat);
187
+ export const $stat = createSingleConstant(Stat);
273
188
  /**
274
189
  * A list of Stats specified by a comma-separated list of names.
275
190
  * For a list of all possible Stats, leave the template string blank.
276
191
  *
277
192
  * @category In-game constant
278
193
  */
279
-
280
- exports.$stat = $stat;
281
- var $stats = createPluralConstant(Stat);
194
+ export const $stats = createPluralConstant(Stat);
282
195
  /**
283
196
  * A Thrall specified by name.
284
197
  *
285
198
  * @category In-game constant
286
199
  */
287
-
288
- exports.$stats = $stats;
289
- var $thrall = createSingleConstant(Thrall);
200
+ export const $thrall = createSingleConstant(Thrall);
290
201
  /**
291
202
  * A list of Thralls specified by a comma-separated list of names.
292
203
  * For a list of all possible Thralls, leave the template string blank.
293
204
  *
294
205
  * @category In-game constant
295
206
  */
296
-
297
- exports.$thrall = $thrall;
298
- var $thralls = createPluralConstant(Thrall);
299
- exports.$thralls = $thralls;
207
+ export const $thralls = createPluralConstant(Thrall);