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.
- package/dist/index.rollup.d.ts +12 -4
- package/dist/isaacscript-common.lua +5334 -5211
- package/dist/src/classes/features/other/ItemPoolDetection.d.ts.map +1 -1
- package/dist/src/classes/features/other/ItemPoolDetection.lua +2 -1
- package/dist/src/classes/features/other/Pause.lua +2 -2
- package/dist/src/classes/features/other/extraConsoleCommands/commands.lua +4 -3
- package/dist/src/functions/characters.d.ts +9 -2
- package/dist/src/functions/characters.d.ts.map +1 -1
- package/dist/src/functions/characters.lua +13 -4
- package/dist/src/functions/charge.lua +2 -2
- package/dist/src/functions/playerCollectibles.d.ts +127 -0
- package/dist/src/functions/playerCollectibles.d.ts.map +1 -0
- package/dist/src/functions/playerCollectibles.lua +308 -0
- package/dist/src/functions/playerHealth.d.ts.map +1 -1
- package/dist/src/functions/playerHealth.lua +3 -2
- package/dist/src/functions/playerTrinkets.d.ts +69 -0
- package/dist/src/functions/playerTrinkets.d.ts.map +1 -0
- package/dist/src/functions/playerTrinkets.lua +160 -0
- package/dist/src/functions/players.d.ts +5 -166
- package/dist/src/functions/players.d.ts.map +1 -1
- package/dist/src/functions/players.lua +20 -389
- package/dist/src/functions/trinketGive.lua +2 -2
- package/dist/src/functions/trinkets.d.ts +0 -30
- package/dist/src/functions/trinkets.d.ts.map +1 -1
- package/dist/src/functions/trinkets.lua +0 -71
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.lua +16 -0
- package/dist/src/objects/{characterStartingCollectibles.d.ts → characterStartingCollectibleTypes.d.ts} +2 -2
- package/dist/src/objects/characterStartingCollectibleTypes.d.ts.map +1 -0
- package/dist/src/objects/{characterStartingCollectibles.lua → characterStartingCollectibleTypes.lua} +1 -1
- package/dist/src/objects/characterStartingTrinketTypes.d.ts +46 -0
- package/dist/src/objects/characterStartingTrinketTypes.d.ts.map +1 -0
- package/dist/src/objects/characterStartingTrinketTypes.lua +49 -0
- package/package.json +1 -1
- package/src/classes/features/other/ItemPoolDetection.ts +2 -4
- package/src/classes/features/other/Pause.ts +1 -1
- package/src/classes/features/other/extraConsoleCommands/commands.ts +3 -3
- package/src/functions/characters.ts +20 -4
- package/src/functions/charge.ts +1 -1
- package/src/functions/playerCollectibles.ts +372 -0
- package/src/functions/playerHealth.ts +2 -6
- package/src/functions/playerTrinkets.ts +184 -0
- package/src/functions/players.ts +16 -481
- package/src/functions/trinketGive.ts +1 -1
- package/src/functions/trinkets.ts +1 -84
- package/src/index.ts +2 -0
- package/src/objects/{characterStartingCollectibles.ts → characterStartingCollectibleTypes.ts} +1 -1
- package/src/objects/characterStartingTrinketTypes.ts +129 -0
- package/dist/src/objects/characterStartingCollectibles.d.ts.map +0 -1
package/dist/index.rollup.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
6343
|
-
* returns an array of players because it is possible
|
|
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.
|