isaacscript-common 1.2.34 → 1.2.35

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.
@@ -29,12 +29,6 @@ export declare function checkFamiliar(player: EntityPlayer, collectibleType: int
29
29
  */
30
30
  export declare function getFamiliars(matchingVariant?: FamiliarVariant | int, matchingSubType?: number): EntityFamiliar[];
31
31
  export declare function isFamiliarThatShootsPlayerTears(familiar: EntityFamiliar): boolean;
32
- /**
33
- * Helper function to see if one or more Spin to Win familiars are rotating fast. This is helpful
34
- * because the Spin to Win collectible does not fire the UseItem or PreUseItem callbacks when it is
35
- * used.
36
- */
37
- export declare function isSpinToWinActive(): boolean;
38
32
  /**
39
33
  * Helper function to remove all of the familiars in the room.
40
34
  *
@@ -3,7 +3,6 @@ local ____lualib = require("lualib_bundle")
3
3
  local Set = ____lualib.Set
4
4
  local __TS__ArrayFilter = ____lualib.__TS__ArrayFilter
5
5
  local __TS__ArrayPush = ____lualib.__TS__ArrayPush
6
- local __TS__ArraySome = ____lualib.__TS__ArraySome
7
6
  local ____exports = {}
8
7
  local ____constants = require("constants")
9
8
  local FAMILIARS_THAT_SHOOT_PLAYER_TEARS = ____constants.FAMILIARS_THAT_SHOOT_PLAYER_TEARS
@@ -27,7 +26,6 @@ function ____exports.getFamiliars(self, matchingVariant, matchingSubType)
27
26
  end
28
27
  return familiars
29
28
  end
30
- local SPIN_TO_WIN_VELOCITY_ACTIVATION_THRESHOLD = 5
31
29
  function ____exports.checkFamiliar(self, player, collectibleType, familiarVariant, familiarSubType)
32
30
  local game = Game()
33
31
  local familiarSubTypeToSearchFor = familiarSubType == nil and -1 or familiarSubType
@@ -80,13 +78,6 @@ end
80
78
  function ____exports.isFamiliarThatShootsPlayerTears(self, familiar)
81
79
  return FAMILIARS_THAT_SHOOT_PLAYER_TEARS:has(familiar.Type)
82
80
  end
83
- function ____exports.isSpinToWinActive(self)
84
- local spinToWins = ____exports.getFamiliars(nil, FamiliarVariant.SPIN_TO_WIN)
85
- return __TS__ArraySome(
86
- spinToWins,
87
- function(____, spinToWin) return spinToWin.Velocity:Length() > SPIN_TO_WIN_VELOCITY_ACTIVATION_THRESHOLD end
88
- )
89
- end
90
81
  function ____exports.removeAllFamiliars(self, variant, subType, cap)
91
82
  local familiars = ____exports.getFamiliars(nil, variant, subType)
92
83
  return removeEntities(nil, familiars, cap)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.34",
3
+ "version": "1.2.35",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",