isaacscript-common 56.0.0 → 57.0.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 (33) hide show
  1. package/dist/index.rollup.d.ts +36 -20
  2. package/dist/isaacscript-common.lua +340 -220
  3. package/dist/src/classes/features/callbackLogic/CustomRevive.lua +2 -2
  4. package/dist/src/core/constants.d.ts +2 -2
  5. package/dist/src/core/constants.lua +2 -2
  6. package/dist/src/functions/bosses.d.ts +5 -0
  7. package/dist/src/functions/bosses.d.ts.map +1 -1
  8. package/dist/src/functions/bosses.lua +15 -7
  9. package/dist/src/functions/external.d.ts +26 -16
  10. package/dist/src/functions/external.d.ts.map +1 -1
  11. package/dist/src/functions/external.lua +30 -22
  12. package/dist/src/objects/bossIDToEntityTypeVariant.d.ts +1 -0
  13. package/dist/src/objects/bossIDToEntityTypeVariant.d.ts.map +1 -1
  14. package/dist/src/objects/bossIDToEntityTypeVariant.lua +1 -0
  15. package/dist/src/objects/bossNamePNGFileNames.d.ts +106 -102
  16. package/dist/src/objects/bossNamePNGFileNames.d.ts.map +1 -1
  17. package/dist/src/objects/bossNamePNGFileNames.lua +104 -102
  18. package/dist/src/objects/bossNames.d.ts +111 -0
  19. package/dist/src/objects/bossNames.d.ts.map +1 -0
  20. package/dist/src/objects/bossNames.lua +112 -0
  21. package/dist/src/objects/bossPortraitPNGFileNames.d.ts +106 -102
  22. package/dist/src/objects/bossPortraitPNGFileNames.d.ts.map +1 -1
  23. package/dist/src/objects/bossPortraitPNGFileNames.lua +104 -102
  24. package/package.json +2 -2
  25. package/src/classes/features/callbackLogic/CustomRevive.ts +2 -2
  26. package/src/core/constants.ts +2 -2
  27. package/src/functions/bosses.ts +11 -0
  28. package/src/functions/collectibles.ts +1 -1
  29. package/src/functions/external.ts +37 -27
  30. package/src/objects/bossIDToEntityTypeVariant.ts +5 -1
  31. package/src/objects/bossNamePNGFileNames.ts +112 -106
  32. package/src/objects/bossNames.ts +118 -0
  33. package/src/objects/bossPortraitPNGFileNames.ts +115 -109
@@ -4954,6 +4954,12 @@ export declare function getBossID(): BossID | 0;
4954
4954
 
4955
4955
  export declare function getBossIDFromEntityTypeVariant(entityType: EntityType, variant: int): BossID | undefined;
4956
4956
 
4957
+ /**
4958
+ * Helper function to get the proper English name for a boss. For example, the name for
4959
+ * `BossID.WRETCHED` (36) is "The Wretched".
4960
+ */
4961
+ export declare function getBossName(bossID: BossID): string;
4962
+
4957
4963
  /**
4958
4964
  * Helper function to get the path to the name file that corresponds to the graphic shown on the
4959
4965
  * versus screen for the particular boss.
@@ -15172,8 +15178,8 @@ export declare function PriorityCallbackCustom<T extends ModCallbackCustom>(modC
15172
15178
  export declare type PublicInterface<T> = Pick<T, keyof T>;
15173
15179
 
15174
15180
  /**
15175
- * An array representing every valid collectible type quality. Specifically, this is `[0, 1, 2, 3,
15176
- * 4]`.
15181
+ * An array representing every valid collectible type quality. Specifically, this is: `[0, 1, 2, 3,
15182
+ * 4]`
15177
15183
  */
15178
15184
  export declare const QUALITIES: readonly Quality[];
15179
15185
 
@@ -15201,13 +15207,40 @@ declare interface ReadonlySetConstructor {
15201
15207
  readonly prototype: ReadonlySet<any>;
15202
15208
  }
15203
15209
 
15210
+ /**
15211
+ * Helper function to let the Rebirth Item Tracker know that it should remove a collectible from its
15212
+ * list.
15213
+ *
15214
+ * The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
15215
+ * external Python program.
15216
+ *
15217
+ * This function is variadic, meaning that you can pass as many collectible types as you want to
15218
+ * remove.
15219
+ *
15220
+ * Note that calling this function is not normally necessary when removing collectibles from
15221
+ * players. For example, when you remove a collectible with the `EntityPlayer.RemoveCollectible`
15222
+ * method, a proper message is sent to the log file by the game the item tracker will automatically
15223
+ * remove it. However, in some cases, this function can be useful:
15224
+ *
15225
+ * - We may be giving the player a "fake" collectible (e.g. 1-Up for the purposes of an extra life)
15226
+ * and do not want the fake collectible to show up on the tracker.
15227
+ * - We may be removing a starting active item. Since active items are never removed from the
15228
+ * tracker, we want to tell the item tracker that the player never had a particular active item to
15229
+ * begin with.
15230
+ *
15231
+ * @see https://github.com/Rchardon/RebirthItemTracker
15232
+ */
15233
+ export declare function rebirthItemTrackerRemoveCollectible(...collectibleTypes: CollectibleType[]): void;
15234
+
15204
15235
  /**
15205
15236
  * Helper function to let the Rebirth Item Tracker know that it should write the submitted text
15206
15237
  * string to a file. This is useful for capturing text in programs like Open Broadcaster Software
15207
15238
  * (OBS).
15208
15239
  *
15209
15240
  * The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
15210
- * Python program located at: https://github.com/Rchardon/RebirthItemTracker
15241
+ * external Python program.
15242
+ *
15243
+ * @see https://github.com/Rchardon/RebirthItemTracker
15211
15244
  */
15212
15245
  export declare function rebirthItemTrackerWriteToFile(msg: string): void;
15213
15246
 
@@ -15683,23 +15716,6 @@ export declare function removeCollectibleCostume(player: EntityPlayer, collectib
15683
15716
  */
15684
15717
  export declare function removeCollectibleFromAllPlayers(...collectibleTypes: CollectibleType[]): void;
15685
15718
 
15686
- /**
15687
- * Helper function to put a message in the log.txt file to let the Rebirth Item Tracker know that it
15688
- * should remove an item.
15689
- *
15690
- * The "item tracker" in this function does not refer to the in-game item tracker, but rather to the
15691
- * Python program located at: https://github.com/Rchardon/RebirthItemTracker
15692
- *
15693
- * This function is useful when you need to add a "fake" collectible to a player. Note that calling
15694
- * this function is not necessary when removing items from players. For example, when you remove a
15695
- * collectible with the `EntityPlayer.RemoveCollectible` method, a proper message is sent to the log
15696
- * the item tracker will automatically remove it.
15697
- *
15698
- * This function is variadic, meaning that you can pass as many collectible types as you want to
15699
- * remove.
15700
- */
15701
- export declare function removeCollectibleFromItemTracker(...collectibleTypes: CollectibleType[]): void;
15702
-
15703
15719
  /**
15704
15720
  * Helper function to remove one or more collectibles from all item pools.
15705
15721
  *