isaacscript-common 87.2.0 → 87.2.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/functions/pills.d.ts +1 -1
- package/dist/functions/pills.d.ts.map +1 -1
- package/dist/functions/pills.js +4 -4
- package/dist/functions/pills.lua +2 -2
- package/dist/index.rollup.d.ts +1 -1
- package/dist/isaacscript-common.lua +3 -3
- package/package.json +1 -1
- package/src/functions/pills.ts +2 -2
|
@@ -96,7 +96,7 @@ export declare function isModdedPillEffect(pillEffect: PillEffect): boolean;
|
|
|
96
96
|
*
|
|
97
97
|
* Under the hood, this checks using the `FIRST_PILL_COLOR` and `LAST_NORMAL_PILL_COLOR` constants.
|
|
98
98
|
*/
|
|
99
|
-
export declare function
|
|
99
|
+
export declare function isNormalPillColor(pillColor: PillColor): boolean;
|
|
100
100
|
export declare function isValidPillEffect(pillEffect: int): pillEffect is PillEffect;
|
|
101
101
|
export declare function isVanillaPillEffect(pillEffect: PillEffect): boolean;
|
|
102
102
|
//# sourceMappingURL=pills.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pills.d.ts","sourceRoot":"","sources":["../../src/functions/pills.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,wBAAwB,EACxB,UAAU,EACX,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAqCzD;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,SAAS,SAAS,EAAE,CAEvD;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,CAGxE;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,CAIjE;AAED,4EAA4E;AAC5E,wBAAgB,kBAAkB,IAAI,SAAS,SAAS,EAAE,CAEzD;AAED;;;;;;GAMG;AACH,wBA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UAAU,GAAG,OAAO,CAEnE"}
|
package/dist/functions/pills.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isVanillaPillEffect = exports.isValidPillEffect = exports.
|
|
3
|
+
exports.isVanillaPillEffect = exports.isValidPillEffect = exports.isNormalPillColor = exports.isModdedPillEffect = exports.isHorsePill = exports.isGoldPill = exports.getVanillaPillEffectsOfType = exports.getPillEffectType = exports.getPillEffectName = exports.getPillEffectClass = exports.getPillColorFromEffect = exports.getPHDPillEffect = exports.getNormalPillColors = exports.getNormalPillColorFromHorse = exports.getHorsePillColors = exports.getHorsePillColor = exports.getFalsePHDPillEffect = exports.getAllPillColors = void 0;
|
|
4
4
|
const isaac_typescript_definitions_1 = require("isaac-typescript-definitions");
|
|
5
5
|
const cachedEnumValues_1 = require("../cachedEnumValues");
|
|
6
6
|
const cachedClasses_1 = require("../core/cachedClasses");
|
|
@@ -198,10 +198,10 @@ exports.isModdedPillEffect = isModdedPillEffect;
|
|
|
198
198
|
*
|
|
199
199
|
* Under the hood, this checks using the `FIRST_PILL_COLOR` and `LAST_NORMAL_PILL_COLOR` constants.
|
|
200
200
|
*/
|
|
201
|
-
function
|
|
202
|
-
return pillColor
|
|
201
|
+
function isNormalPillColor(pillColor) {
|
|
202
|
+
return pillColor >= constantsFirstLast_1.FIRST_PILL_COLOR && pillColor <= constantsFirstLast_1.LAST_NORMAL_PILL_COLOR;
|
|
203
203
|
}
|
|
204
|
-
exports.
|
|
204
|
+
exports.isNormalPillColor = isNormalPillColor;
|
|
205
205
|
function isValidPillEffect(pillEffect) {
|
|
206
206
|
const potentialPillEffect = (0, types_1.asPillEffect)(pillEffect);
|
|
207
207
|
const itemConfigPillEffect = cachedClasses_1.itemConfig.GetPillEffect(potentialPillEffect);
|
package/dist/functions/pills.lua
CHANGED
|
@@ -164,8 +164,8 @@ end
|
|
|
164
164
|
-- the null value.
|
|
165
165
|
--
|
|
166
166
|
-- Under the hood, this checks using the `FIRST_PILL_COLOR` and `LAST_NORMAL_PILL_COLOR` constants.
|
|
167
|
-
function ____exports.
|
|
168
|
-
return pillColor
|
|
167
|
+
function ____exports.isNormalPillColor(self, pillColor)
|
|
168
|
+
return pillColor >= FIRST_PILL_COLOR and pillColor <= LAST_NORMAL_PILL_COLOR
|
|
169
169
|
end
|
|
170
170
|
function ____exports.isValidPillEffect(self, pillEffect)
|
|
171
171
|
local potentialPillEffect = asPillEffect(nil, pillEffect)
|
package/dist/index.rollup.d.ts
CHANGED
|
@@ -9908,7 +9908,7 @@ export declare function isNarrowRoom(roomShape: RoomShape): boolean;
|
|
|
9908
9908
|
*
|
|
9909
9909
|
* Under the hood, this checks using the `FIRST_PILL_COLOR` and `LAST_NORMAL_PILL_COLOR` constants.
|
|
9910
9910
|
*/
|
|
9911
|
-
export declare function
|
|
9911
|
+
export declare function isNormalPillColor(pillColor: PillColor): boolean;
|
|
9912
9912
|
|
|
9913
9913
|
/** Helper function to detect if a variable is of type `EntityNPC`. */
|
|
9914
9914
|
export declare function isNPC(variable: unknown): variable is EntityNPC;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 87.1
|
|
3
|
+
isaacscript-common 87.2.1
|
|
4
4
|
|
|
5
5
|
This is the "isaacscript-common" library, which was created with the IsaacScript tool.
|
|
6
6
|
|
|
@@ -39310,8 +39310,8 @@ end
|
|
|
39310
39310
|
-- the null value.
|
|
39311
39311
|
--
|
|
39312
39312
|
-- Under the hood, this checks using the `FIRST_PILL_COLOR` and `LAST_NORMAL_PILL_COLOR` constants.
|
|
39313
|
-
function ____exports.
|
|
39314
|
-
return pillColor
|
|
39313
|
+
function ____exports.isNormalPillColor(self, pillColor)
|
|
39314
|
+
return pillColor >= FIRST_PILL_COLOR and pillColor <= LAST_NORMAL_PILL_COLOR
|
|
39315
39315
|
end
|
|
39316
39316
|
function ____exports.isValidPillEffect(self, pillEffect)
|
|
39317
39317
|
local potentialPillEffect = asPillEffect(nil, pillEffect)
|
package/package.json
CHANGED
package/src/functions/pills.ts
CHANGED
|
@@ -228,8 +228,8 @@ export function isModdedPillEffect(pillEffect: PillEffect): boolean {
|
|
|
228
228
|
*
|
|
229
229
|
* Under the hood, this checks using the `FIRST_PILL_COLOR` and `LAST_NORMAL_PILL_COLOR` constants.
|
|
230
230
|
*/
|
|
231
|
-
export function
|
|
232
|
-
return pillColor
|
|
231
|
+
export function isNormalPillColor(pillColor: PillColor): boolean {
|
|
232
|
+
return pillColor >= FIRST_PILL_COLOR && pillColor <= LAST_NORMAL_PILL_COLOR;
|
|
233
233
|
}
|
|
234
234
|
|
|
235
235
|
export function isValidPillEffect(pillEffect: int): pillEffect is PillEffect {
|