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.
- package/dist/Clan.js +268 -485
- package/dist/Copier.js +11 -48
- package/dist/Dungeon.js +77 -157
- package/dist/Kmail.d.ts +3 -1
- package/dist/Kmail.js +92 -243
- package/dist/Path.js +68 -120
- package/dist/ascend.js +153 -172
- package/dist/combat.d.ts +84 -0
- package/dist/combat.js +294 -387
- package/dist/console.js +13 -36
- package/dist/diet/index.d.ts +23 -8
- package/dist/diet/index.js +320 -426
- package/dist/diet/knapsack.d.ts +1 -1
- package/dist/diet/knapsack.js +90 -100
- package/dist/dungeons/Dreadsylvania.d.ts +4 -0
- package/dist/dungeons/Dreadsylvania.js +14 -0
- package/dist/dungeons/Dungeon.d.ts +28 -0
- package/dist/dungeons/Dungeon.js +99 -0
- package/dist/dungeons/Hobopolis.d.ts +4 -0
- package/dist/dungeons/Hobopolis.js +14 -0
- package/dist/dungeons/SlimeTube.d.ts +4 -0
- package/dist/dungeons/SlimeTube.js +14 -0
- package/dist/freerun.d.ts +16 -4
- package/dist/freerun.js +88 -99
- package/dist/index.d.ts +3 -1
- package/dist/index.js +21 -300
- package/dist/lib.d.ts +2 -0
- package/dist/lib.js +264 -515
- package/dist/logger.js +23 -63
- package/dist/maximize.js +289 -562
- package/dist/modifier.js +35 -46
- package/dist/modifierTypes.js +8 -22
- package/dist/mood.js +220 -531
- package/dist/property.d.ts +2 -0
- package/dist/property.js +96 -242
- package/dist/propertyTypes.d.ts +2 -2
- package/dist/propertyTypes.js +1 -0
- package/dist/propertyTyping.js +42 -53
- package/dist/resources/2007/CandyHearts.d.ts +9 -0
- package/dist/resources/2007/CandyHearts.js +24 -0
- package/dist/resources/2008/DivineFavors.d.ts +9 -0
- package/dist/resources/2008/DivineFavors.js +27 -0
- package/dist/resources/2009/Bandersnatch.js +37 -112
- package/dist/resources/2009/LoveSongs.d.ts +9 -0
- package/dist/resources/2009/LoveSongs.js +24 -0
- package/dist/resources/2009/SpookyPutty.js +20 -46
- package/dist/resources/2010/Brickos.d.ts +9 -0
- package/dist/resources/2010/Brickos.js +21 -0
- package/dist/resources/2010/CrownOfThrones.d.ts +9 -0
- package/dist/resources/2010/CrownOfThrones.js +550 -374
- package/dist/resources/2011/Gygaxian.d.ts +9 -0
- package/dist/resources/2011/Gygaxian.js +24 -0
- package/dist/resources/2011/ObtuseAngel.js +21 -63
- package/dist/resources/2012/RainDoh.js +14 -40
- package/dist/resources/2012/Resolutions.d.ts +9 -0
- package/dist/resources/2012/Resolutions.js +28 -0
- package/dist/resources/2013/Florist.d.ts +1 -0
- package/dist/resources/2013/Florist.js +137 -207
- package/dist/resources/2013/PulledTaffy.d.ts +9 -0
- package/dist/resources/2013/PulledTaffy.js +33 -0
- package/dist/resources/2014/WinterGarden.js +15 -43
- package/dist/resources/2015/ChateauMantegna.js +52 -86
- package/dist/resources/2015/MayoClinic.d.ts +1 -0
- package/dist/resources/2015/MayoClinic.js +30 -65
- package/dist/resources/2016/SourceTerminal.d.ts +1 -0
- package/dist/resources/2016/SourceTerminal.js +114 -237
- package/dist/resources/2016/Witchess.js +33 -59
- package/dist/resources/2017/TunnelOfLove.js +62 -111
- package/dist/resources/2018/SongBoom.js +32 -68
- package/dist/resources/2019/BeachComb.js +26 -44
- package/dist/resources/2019/Snapper.d.ts +28 -0
- package/dist/resources/2019/Snapper.js +70 -0
- package/dist/resources/2020/Guzzlr.js +79 -163
- package/dist/resources/LibramSummon.d.ts +12 -0
- package/dist/resources/LibramSummon.js +66 -0
- package/dist/resources/index.d.ts +3 -1
- package/dist/resources/index.js +19 -105
- package/dist/resources/putty-likes.js +15 -30
- package/dist/since.d.ts +1 -0
- package/dist/since.js +56 -112
- package/dist/template-string.js +40 -132
- package/dist/utils.js +36 -134
- package/package.json +2 -2
package/dist/since.js
CHANGED
|
@@ -1,76 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
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
|
+
}
|
package/dist/template-string.js
CHANGED
|
@@ -1,299 +1,207 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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);
|