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.
@@ -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 <= constantsFirstLast_1.FIRST_PILL_COLOR && pillColor <= constantsFirstLast_1.LAST_NORMAL_PILL_COLOR;
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) {
@@ -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 <= FIRST_PILL_COLOR and pillColor <= LAST_NORMAL_PILL_COLOR
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.0
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 <= FIRST_PILL_COLOR and pillColor <= LAST_NORMAL_PILL_COLOR
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "87.2.1",
3
+ "version": "87.2.2",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -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 <= FIRST_PILL_COLOR && pillColor <= LAST_NORMAL_PILL_COLOR;
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 {