isaacscript-common 11.0.1 → 11.2.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 (37) hide show
  1. package/dist/index.d.ts +15 -1
  2. package/dist/isaacscript-common.lua +337 -193
  3. package/dist/package.lua +2 -2
  4. package/dist/src/features/extraConsoleCommands/init.d.ts.map +1 -1
  5. package/dist/src/features/extraConsoleCommands/init.lua +14 -21
  6. package/dist/src/features/extraConsoleCommands/listCommands.d.ts +26 -7
  7. package/dist/src/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
  8. package/dist/src/features/extraConsoleCommands/listCommands.lua +114 -23
  9. package/dist/src/features/extraConsoleCommands/v.d.ts +7 -6
  10. package/dist/src/features/extraConsoleCommands/v.d.ts.map +1 -1
  11. package/dist/src/features/extraConsoleCommands/v.lua +9 -7
  12. package/dist/src/features/saveDataManager/main.d.ts.map +1 -1
  13. package/dist/src/features/saveDataManager/main.lua +6 -1
  14. package/dist/src/functions/collectibles.d.ts +4 -0
  15. package/dist/src/functions/collectibles.d.ts.map +1 -1
  16. package/dist/src/functions/collectibles.lua +4 -0
  17. package/dist/src/functions/map.d.ts +1 -1
  18. package/dist/src/functions/map.lua +1 -1
  19. package/dist/src/functions/tears.d.ts +6 -0
  20. package/dist/src/functions/tears.d.ts.map +1 -1
  21. package/dist/src/functions/tears.lua +6 -0
  22. package/dist/src/functions/trinkets.d.ts +4 -0
  23. package/dist/src/functions/trinkets.d.ts.map +1 -1
  24. package/dist/src/functions/trinkets.lua +4 -0
  25. package/dist/src/maps/transformationNameToPlayerForm.d.ts +4 -0
  26. package/dist/src/maps/transformationNameToPlayerForm.d.ts.map +1 -0
  27. package/dist/src/maps/transformationNameToPlayerForm.lua +37 -0
  28. package/package.json +2 -2
  29. package/src/features/extraConsoleCommands/init.ts +20 -26
  30. package/src/features/extraConsoleCommands/listCommands.ts +128 -24
  31. package/src/features/extraConsoleCommands/v.ts +11 -7
  32. package/src/features/saveDataManager/main.ts +12 -1
  33. package/src/functions/collectibles.ts +4 -0
  34. package/src/functions/map.ts +1 -1
  35. package/src/functions/tears.ts +6 -0
  36. package/src/functions/trinkets.ts +4 -0
  37. package/src/maps/transformationNameToPlayerForm.ts +35 -0
package/dist/index.d.ts CHANGED
@@ -2692,6 +2692,8 @@ export declare function getCollectibleChargeType(collectibleType: CollectibleTyp
2692
2692
  /**
2693
2693
  * Helper function to get the in-game description for a collectible. Returns "Unknown" if the
2694
2694
  * provided collectible type was not valid.
2695
+ *
2696
+ * This function works for both vanilla and modded collectibles.
2695
2697
  */
2696
2698
  export declare function getCollectibleDescription(collectibleType: CollectibleType): string;
2697
2699
 
@@ -2799,6 +2801,8 @@ export declare function getCollectibleMaxCharges(collectibleType: CollectibleTyp
2799
2801
  * type is not valid.
2800
2802
  *
2801
2803
  * For example, `getCollectibleName(CollectibleType.SAD_ONION)` would return "Sad Onion".
2804
+ *
2805
+ * This function works for both vanilla and modded collectibles.
2802
2806
  */
2803
2807
  export declare function getCollectibleName(collectibleType: CollectibleType): string;
2804
2808
 
@@ -3611,7 +3615,7 @@ export declare function getLatestRoomDescription(): RoomDescription;
3611
3615
  * ["bar", 456],
3612
3616
  * ]);
3613
3617
  * const searchText = "f";
3614
- * const match = getMapPartialMatch(map, searchText); // match is now equal to 123
3618
+ * const match = getMapPartialMatch(map, searchText); // match is now equal to ["foo", 123]
3615
3619
  *
3616
3620
  * @returns If a match was found, returns a tuple of the map key and value. If a match was not
3617
3621
  * found, returns undefined.
@@ -5210,6 +5214,8 @@ export declare function getTrinketArray(): readonly TrinketType[];
5210
5214
  /**
5211
5215
  * Helper function to get the in-game description for a trinket. Returns "Unknown" if the provided
5212
5216
  * trinket type was not valid.
5217
+ *
5218
+ * This function works for both vanilla and modded trinkets.
5213
5219
  */
5214
5220
  export declare function getTrinketDescription(trinketType: TrinketType): string;
5215
5221
 
@@ -5228,6 +5234,8 @@ export declare function getTrinketGfxFilename(trinketType: TrinketType): string;
5228
5234
  * not valid.
5229
5235
  *
5230
5236
  * For example, `getTrinketName(TrinketType.SWALLOWED_PENNY)` would return "Swallowed Penny".
5237
+ *
5238
+ * This function works for both vanilla and modded trinkets.
5231
5239
  */
5232
5240
  export declare function getTrinketName(trinketType: TrinketType): string;
5233
5241
 
@@ -6453,6 +6461,9 @@ export declare function isTear(variable: unknown): variable is EntityTear;
6453
6461
  * only use this function in the `POST_TEAR_INIT_VERY_LATE` callback or on frame 1+.
6454
6462
  *
6455
6463
  * If this function is called on frame 0, it will throw a run-time error.
6464
+ *
6465
+ * Note that this function does not work properly when the tear is from a Lead Pencil barrage. In
6466
+ * this case, it will always appear as if the tear is coming from a player.
6456
6467
  */
6457
6468
  export declare function isTearFromFamiliar(tear: EntityTear): boolean;
6458
6469
 
@@ -6466,6 +6477,9 @@ export declare function isTearFromFamiliar(tear: EntityTear): boolean;
6466
6477
  * only use this function in the `POST_TEAR_INIT_VERY_LATE` callback or on frame 1+.
6467
6478
  *
6468
6479
  * If this function is called on frame 0, it will throw a run-time error.
6480
+ *
6481
+ * Note that this function does not work properly when the tear is from a Lead Pencil barrage. In
6482
+ * this case, it will always appear as if the tear is coming from a player.
6469
6483
  */
6470
6484
  export declare function isTearFromPlayer(tear: EntityTear): boolean;
6471
6485