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.
@@ -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 isNormalPill(pillColor: PillColor): boolean;
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,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,CAI3E;AAED,oFAAoF;AACpF,wBAAgB,mBAAmB,IAAI,SAAS,SAAS,EAAE,CAE1D;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,UAAU,CAGnE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,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strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isVanillaPillEffect = exports.isValidPillEffect = exports.isNormalPill = 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;
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 isNormalPill(pillColor) {
202
- return pillColor <= constantsFirstLast_1.FIRST_PILL_COLOR && pillColor <= constantsFirstLast_1.LAST_NORMAL_PILL_COLOR;
201
+ function isNormalPillColor(pillColor) {
202
+ return pillColor >= constantsFirstLast_1.FIRST_PILL_COLOR && pillColor <= constantsFirstLast_1.LAST_NORMAL_PILL_COLOR;
203
203
  }
204
- exports.isNormalPill = isNormalPill;
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);
@@ -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.isNormalPill(self, pillColor)
168
- return pillColor <= FIRST_PILL_COLOR and pillColor <= LAST_NORMAL_PILL_COLOR
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)
@@ -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 isNormalPill(pillColor: PillColor): boolean;
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.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
 
@@ -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.isNormalPill(self, pillColor)
39314
- return pillColor <= FIRST_PILL_COLOR and pillColor <= LAST_NORMAL_PILL_COLOR
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "87.2.0",
3
+ "version": "87.2.2",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -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 isNormalPill(pillColor: PillColor): boolean {
232
- return pillColor <= FIRST_PILL_COLOR && pillColor <= LAST_NORMAL_PILL_COLOR;
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 {