isaacscript-common 55.0.0 → 55.1.1

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.
Files changed (43) hide show
  1. package/dist/index.rollup.d.ts +11 -2
  2. package/dist/isaacscript-common.lua +2577 -2574
  3. package/dist/src/classes/callbacks/PostNewRoomEarly.lua +2 -2
  4. package/dist/src/classes/callbacks/PreRoomEntitySpawnFilter.d.ts.map +1 -1
  5. package/dist/src/classes/callbacks/PreRoomEntitySpawnFilter.lua +2 -2
  6. package/dist/src/classes/features/callbackLogic/CustomRevive.d.ts.map +1 -1
  7. package/dist/src/classes/features/callbackLogic/CustomRevive.lua +1 -2
  8. package/dist/src/classes/features/other/CustomStages.lua +2 -2
  9. package/dist/src/classes/features/other/ExtraConsoleCommands.lua +2 -2
  10. package/dist/src/classes/features/other/Pause.lua +2 -2
  11. package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +2 -2
  12. package/dist/src/classes/features/other/saveDataManager/loadFromDisk.d.ts.map +1 -1
  13. package/dist/src/classes/features/other/saveDataManager/loadFromDisk.lua +1 -2
  14. package/dist/src/classes/features/other/saveDataManager/restoreDefaults.lua +2 -2
  15. package/dist/src/functions/hex.lua +2 -2
  16. package/dist/src/functions/jsonHelpers.lua +2 -2
  17. package/dist/src/functions/log.d.ts +7 -0
  18. package/dist/src/functions/log.d.ts.map +1 -1
  19. package/dist/src/functions/log.lua +8 -0
  20. package/dist/src/functions/logMisc.d.ts +0 -7
  21. package/dist/src/functions/logMisc.d.ts.map +1 -1
  22. package/dist/src/functions/logMisc.lua +0 -9
  23. package/dist/src/functions/players.d.ts +10 -2
  24. package/dist/src/functions/players.d.ts.map +1 -1
  25. package/dist/src/functions/players.lua +10 -2
  26. package/dist/src/functions/rng.d.ts.map +1 -1
  27. package/dist/src/functions/rng.lua +4 -1
  28. package/package.json +1 -1
  29. package/src/classes/callbacks/PostNewRoomEarly.ts +1 -1
  30. package/src/classes/callbacks/PreRoomEntitySpawnFilter.ts +8 -2
  31. package/src/classes/features/callbackLogic/CustomRevive.ts +1 -2
  32. package/src/classes/features/other/CustomStages.ts +1 -1
  33. package/src/classes/features/other/ExtraConsoleCommands.ts +1 -1
  34. package/src/classes/features/other/Pause.ts +1 -1
  35. package/src/classes/features/other/TaintedLazarusPlayers.ts +1 -1
  36. package/src/classes/features/other/saveDataManager/loadFromDisk.ts +1 -2
  37. package/src/classes/features/other/saveDataManager/restoreDefaults.ts +1 -1
  38. package/src/functions/hex.ts +1 -1
  39. package/src/functions/jsonHelpers.ts +1 -1
  40. package/src/functions/log.ts +11 -0
  41. package/src/functions/logMisc.ts +1 -12
  42. package/src/functions/players.ts +13 -2
  43. package/src/functions/rng.ts +4 -2
@@ -8030,6 +8030,13 @@ export declare type HasFunction<T> = Record<string, unknown> extends {
8030
8030
  [K in keyof T as T[K] extends Function ? K : never]-?: 1;
8031
8031
  } ? never : T;
8032
8032
 
8033
+ /**
8034
+ * Helper function to check if a player has homing tears.
8035
+ *
8036
+ * Under the hood, this checks the `EntityPlayer.TearFlags` variable for `TearFlag.HOMING` (1 << 2).
8037
+ */
8038
+ export declare function hasHoming(player: EntityPlayer): boolean;
8039
+
8033
8040
  /** After touching a white fire, a player will turn into The Lost until they clear a room. */
8034
8041
  export declare function hasLostCurse(player: EntityPlayer): boolean;
8035
8042
 
@@ -8064,14 +8071,16 @@ export declare function hasOpenTrinketSlot(player: EntityPlayer): boolean;
8064
8071
  /**
8065
8072
  * Helper function to check if a player has piercing tears.
8066
8073
  *
8067
- * Under the hood, this checks the `EntityPlayer.TearFlags` variable.
8074
+ * Under the hood, this checks the `EntityPlayer.TearFlags` variable for `TearFlag.PIERCING` (1 <<
8075
+ * 1).
8068
8076
  */
8069
8077
  export declare function hasPiercing(player: EntityPlayer): boolean;
8070
8078
 
8071
8079
  /**
8072
8080
  * Helper function to check if a player has spectral tears.
8073
8081
  *
8074
- * Under the hood, this checks the `EntityPlayer.TearFlags` variable.
8082
+ * Under the hood, this checks the `EntityPlayer.TearFlags` variable for `TearFlag.SPECTRAL` (1 <<
8083
+ * 0).
8075
8084
  */
8076
8085
  export declare function hasSpectral(player: EntityPlayer): boolean;
8077
8086