isaacscript-common 44.0.0 → 44.1.0

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 (50) hide show
  1. package/dist/index.rollup.d.ts +12 -4
  2. package/dist/isaacscript-common.lua +5334 -5211
  3. package/dist/src/classes/features/other/ItemPoolDetection.d.ts.map +1 -1
  4. package/dist/src/classes/features/other/ItemPoolDetection.lua +2 -1
  5. package/dist/src/classes/features/other/Pause.lua +2 -2
  6. package/dist/src/classes/features/other/extraConsoleCommands/commands.lua +4 -3
  7. package/dist/src/functions/characters.d.ts +9 -2
  8. package/dist/src/functions/characters.d.ts.map +1 -1
  9. package/dist/src/functions/characters.lua +13 -4
  10. package/dist/src/functions/charge.lua +2 -2
  11. package/dist/src/functions/playerCollectibles.d.ts +127 -0
  12. package/dist/src/functions/playerCollectibles.d.ts.map +1 -0
  13. package/dist/src/functions/playerCollectibles.lua +308 -0
  14. package/dist/src/functions/playerHealth.d.ts.map +1 -1
  15. package/dist/src/functions/playerHealth.lua +3 -2
  16. package/dist/src/functions/playerTrinkets.d.ts +69 -0
  17. package/dist/src/functions/playerTrinkets.d.ts.map +1 -0
  18. package/dist/src/functions/playerTrinkets.lua +160 -0
  19. package/dist/src/functions/players.d.ts +5 -166
  20. package/dist/src/functions/players.d.ts.map +1 -1
  21. package/dist/src/functions/players.lua +20 -389
  22. package/dist/src/functions/trinketGive.lua +2 -2
  23. package/dist/src/functions/trinkets.d.ts +0 -30
  24. package/dist/src/functions/trinkets.d.ts.map +1 -1
  25. package/dist/src/functions/trinkets.lua +0 -71
  26. package/dist/src/index.d.ts +2 -0
  27. package/dist/src/index.d.ts.map +1 -1
  28. package/dist/src/index.lua +16 -0
  29. package/dist/src/objects/{characterStartingCollectibles.d.ts → characterStartingCollectibleTypes.d.ts} +2 -2
  30. package/dist/src/objects/characterStartingCollectibleTypes.d.ts.map +1 -0
  31. package/dist/src/objects/{characterStartingCollectibles.lua → characterStartingCollectibleTypes.lua} +1 -1
  32. package/dist/src/objects/characterStartingTrinketTypes.d.ts +46 -0
  33. package/dist/src/objects/characterStartingTrinketTypes.d.ts.map +1 -0
  34. package/dist/src/objects/characterStartingTrinketTypes.lua +49 -0
  35. package/package.json +1 -1
  36. package/src/classes/features/other/ItemPoolDetection.ts +2 -4
  37. package/src/classes/features/other/Pause.ts +1 -1
  38. package/src/classes/features/other/extraConsoleCommands/commands.ts +3 -3
  39. package/src/functions/characters.ts +20 -4
  40. package/src/functions/charge.ts +1 -1
  41. package/src/functions/playerCollectibles.ts +372 -0
  42. package/src/functions/playerHealth.ts +2 -6
  43. package/src/functions/playerTrinkets.ts +184 -0
  44. package/src/functions/players.ts +16 -481
  45. package/src/functions/trinketGive.ts +1 -1
  46. package/src/functions/trinkets.ts +1 -84
  47. package/src/index.ts +2 -0
  48. package/src/objects/{characterStartingCollectibles.ts → characterStartingCollectibleTypes.ts} +1 -1
  49. package/src/objects/characterStartingTrinketTypes.ts +129 -0
  50. package/dist/src/objects/characterStartingCollectibles.d.ts.map +0 -1
@@ -4917,7 +4917,15 @@ export declare function getCharacters(): PlayerType[];
4917
4917
  *
4918
4918
  * Note that this will return an empty array for Eden and Tainted Eden.
4919
4919
  */
4920
- export declare function getCharacterStartingCollectibles(character: PlayerType): readonly CollectibleType[];
4920
+ export declare function getCharacterStartingCollectibleTypes(character: PlayerType): readonly CollectibleType[];
4921
+
4922
+ /**
4923
+ * Helper function to get the trinket that is granted to a particular character at the beginning of
4924
+ * a run. Returns undefined if the character does not start with a trinket.
4925
+ *
4926
+ * Note that this will return undefined for Eden and Tainted Eden.
4927
+ */
4928
+ export declare function getCharacterStartingTrinketType(character: PlayerType): TrinketType | undefined;
4921
4929
 
4922
4930
  /**
4923
4931
  * Helper function to get the amount of charges away from the maximum charge that a particular
@@ -6339,9 +6347,9 @@ export declare function getPlayers(performCharacterExclusions?: boolean): Entity
6339
6347
  export declare function getPlayersOfType(...characters: PlayerType[]): EntityPlayer[];
6340
6348
 
6341
6349
  /**
6342
- * Helper function to get all of the players that match the provided controller index. This function
6343
- * returns an array of players because it is possible that there is more than one player with the
6344
- * same controller index (e.g. Jacob & Esau).
6350
+ * Helper function to get all of the players that are using keyboard (i.e.
6351
+ * `ControllerIndex.KEYBOARD`). This function returns an array of players because it is possible
6352
+ * that there is more than one player with the same controller index (e.g. Jacob & Esau).
6345
6353
  *
6346
6354
  * Note that this function includes players with a non-undefined parent like e.g. the Strawman
6347
6355
  * Keeper.