isaacscript-common 87.2.1 → 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.js
CHANGED
|
@@ -199,7 +199,7 @@ exports.isModdedPillEffect = isModdedPillEffect;
|
|
|
199
199
|
* Under the hood, this checks using the `FIRST_PILL_COLOR` and `LAST_NORMAL_PILL_COLOR` constants.
|
|
200
200
|
*/
|
|
201
201
|
function isNormalPillColor(pillColor) {
|
|
202
|
-
return pillColor
|
|
202
|
+
return pillColor >= constantsFirstLast_1.FIRST_PILL_COLOR && pillColor <= constantsFirstLast_1.LAST_NORMAL_PILL_COLOR;
|
|
203
203
|
}
|
|
204
204
|
exports.isNormalPillColor = isNormalPillColor;
|
|
205
205
|
function isValidPillEffect(pillEffect) {
|
package/dist/functions/pills.lua
CHANGED
|
@@ -165,7 +165,7 @@ end
|
|
|
165
165
|
--
|
|
166
166
|
-- Under the hood, this checks using the `FIRST_PILL_COLOR` and `LAST_NORMAL_PILL_COLOR` constants.
|
|
167
167
|
function ____exports.isNormalPillColor(self, pillColor)
|
|
168
|
-
return 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)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
--[[
|
|
2
2
|
|
|
3
|
-
isaacscript-common 87.2.
|
|
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
|
|
|
@@ -39311,7 +39311,7 @@ end
|
|
|
39311
39311
|
--
|
|
39312
39312
|
-- Under the hood, this checks using the `FIRST_PILL_COLOR` and `LAST_NORMAL_PILL_COLOR` constants.
|
|
39313
39313
|
function ____exports.isNormalPillColor(self, pillColor)
|
|
39314
|
-
return 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
|
@@ -229,7 +229,7 @@ export function isModdedPillEffect(pillEffect: PillEffect): boolean {
|
|
|
229
229
|
* Under the hood, this checks using the `FIRST_PILL_COLOR` and `LAST_NORMAL_PILL_COLOR` constants.
|
|
230
230
|
*/
|
|
231
231
|
export function isNormalPillColor(pillColor: PillColor): boolean {
|
|
232
|
-
return pillColor
|
|
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 {
|