isaacscript-common 17.7.2 → 17.7.3
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.d.ts +24 -0
- package/dist/isaacscript-common.lua +4474 -4461
- package/dist/src/classes/features/other/CharacterHealthConversion.d.ts.map +1 -1
- package/dist/src/classes/features/other/CharacterStats.d.ts.map +1 -1
- package/dist/src/classes/features/other/CollectibleItemPoolType.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomHotkeys.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomPickups.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomStages.d.ts.map +1 -1
- package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
- package/dist/src/classes/features/other/DisableAllSound.d.ts.map +1 -1
- package/dist/src/classes/features/other/DisableInputs.d.ts.map +1 -1
- package/dist/src/classes/features/other/ExtraConsoleCommands.d.ts.map +1 -1
- package/dist/src/classes/features/other/FadeInRemover.d.ts.map +1 -1
- package/dist/src/classes/features/other/FastReset.d.ts.map +1 -1
- package/dist/src/classes/features/other/ModdedElementDetection.d.ts.map +1 -1
- package/dist/src/classes/features/other/NoSirenSteal.d.ts.map +1 -1
- package/dist/src/classes/features/other/Pause.d.ts.map +1 -1
- package/dist/src/classes/features/other/PersistentEntities.d.ts.map +1 -1
- package/dist/src/classes/features/other/PickupIndexCreation.d.ts +7 -0
- package/dist/src/classes/features/other/PickupIndexCreation.d.ts.map +1 -1
- package/dist/src/classes/features/other/PickupIndexCreation.lua +26 -18
- package/dist/src/classes/features/other/PressInput.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventChildEntities.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventCollectibleRotation.d.ts.map +1 -1
- package/dist/src/classes/features/other/PreventGridEntityRespawn.d.ts.map +1 -1
- package/dist/src/classes/features/other/RunInNFrames.d.ts.map +1 -1
- package/dist/src/classes/features/other/SaveDataManager.d.ts +14 -0
- package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
- package/dist/src/classes/features/other/SaveDataManager.lua +4 -1
- package/dist/src/classes/features/other/TaintedLazarusPlayers.d.ts.map +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayBomb.d.ts.map +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayEffect.d.ts.map +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.d.ts.map +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayKnife.d.ts.map +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayLaser.d.ts.map +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayNPC.d.ts.map +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayPickup.d.ts.map +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayPlayer.d.ts.map +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayProjectile.d.ts.map +1 -1
- package/dist/src/classes/features/other/debugDisplay/DebugDisplayTear.d.ts.map +1 -1
- package/dist/src/enums/ModCallbackCustom.d.ts +3 -0
- package/dist/src/enums/ModCallbackCustom.d.ts.map +1 -1
- package/dist/src/features.d.ts.map +1 -1
- package/dist/src/features.lua +3 -2
- package/package.json +2 -2
- package/src/classes/features/other/CharacterHealthConversion.ts +2 -1
- package/src/classes/features/other/CharacterStats.ts +2 -1
- package/src/classes/features/other/CollectibleItemPoolType.ts +2 -1
- package/src/classes/features/other/CustomHotkeys.ts +2 -1
- package/src/classes/features/other/CustomPickups.ts +5 -2
- package/src/classes/features/other/CustomStages.ts +8 -3
- package/src/classes/features/other/CustomTrapdoors.ts +2 -1
- package/src/classes/features/other/DisableAllSound.ts +2 -1
- package/src/classes/features/other/DisableInputs.ts +11 -6
- package/src/classes/features/other/ExtraConsoleCommands.ts +26 -9
- package/src/classes/features/other/FadeInRemover.ts +2 -1
- package/src/classes/features/other/FastReset.ts +2 -1
- package/src/classes/features/other/ModdedElementDetection.ts +2 -1
- package/src/classes/features/other/NoSirenSteal.ts +2 -1
- package/src/classes/features/other/Pause.ts +5 -2
- package/src/classes/features/other/PersistentEntities.ts +2 -1
- package/src/classes/features/other/PickupIndexCreation.ts +35 -13
- package/src/classes/features/other/PressInput.ts +2 -1
- package/src/classes/features/other/PreventChildEntities.ts +2 -1
- package/src/classes/features/other/PreventCollectibleRotation.ts +5 -2
- package/src/classes/features/other/PreventGridEntityRespawn.ts +2 -1
- package/src/classes/features/other/RunInNFrames.ts +5 -2
- package/src/classes/features/other/SaveDataManager.ts +36 -8
- package/src/classes/features/other/TaintedLazarusPlayers.ts +2 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayBomb.ts +2 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayEffect.ts +2 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayFamiliar.ts +2 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayKnife.ts +2 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayLaser.ts +2 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayNPC.ts +2 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayPickup.ts +2 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayPlayer.ts +2 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayProjectile.ts +2 -1
- package/src/classes/features/other/debugDisplay/DebugDisplayTear.ts +2 -1
- package/src/enums/ModCallbackCustom.ts +3 -0
- package/src/features.ts +6 -2
package/dist/index.d.ts
CHANGED
|
@@ -9463,6 +9463,9 @@ export declare enum ModCallbackCustom {
|
|
|
9463
9463
|
*
|
|
9464
9464
|
* Use this callback to know when a pickup is added to the player's inventory or health.
|
|
9465
9465
|
*
|
|
9466
|
+
* Note that this will not fire when the player takes a collectible; use either the
|
|
9467
|
+
* `POST_PLAYER_COLLECTIBLE_ADDED` or the `PRE_ITEM_PICKUP` callback for that.
|
|
9468
|
+
*
|
|
9466
9469
|
* When registering the callback with the `ModUpgraded.AddCallbackCustom` method:
|
|
9467
9470
|
* - You can provide an optional third argument that will make the callback only fire if it
|
|
9468
9471
|
* matches the `PickupVariant` provided.
|
|
@@ -11549,6 +11552,7 @@ export declare type PickupIndex = int & {
|
|
|
11549
11552
|
|
|
11550
11553
|
declare class PickupIndexCreation extends Feature {
|
|
11551
11554
|
private roomHistory;
|
|
11555
|
+
private saveDataManager;
|
|
11552
11556
|
private postPickupInit;
|
|
11553
11557
|
private setPickupIndex;
|
|
11554
11558
|
private getPickupIndexFromPreviousData;
|
|
@@ -11559,6 +11563,12 @@ declare class PickupIndexCreation extends Feature {
|
|
|
11559
11563
|
* Keep track of the metadata for later.
|
|
11560
11564
|
*/
|
|
11561
11565
|
private trackDespawningPickupMetadata;
|
|
11566
|
+
/**
|
|
11567
|
+
* If the despawning pickup was in a Treasure Room or Boss Room, then it is possible that the
|
|
11568
|
+
* pickup could re-appear during The Ascent. If this is the case, we store the metadata on a
|
|
11569
|
+
* separate map to reference later.
|
|
11570
|
+
*/
|
|
11571
|
+
private getPickupDataMapForCurrentRoom;
|
|
11562
11572
|
private getPostAscentPickupIndex;
|
|
11563
11573
|
/**
|
|
11564
11574
|
* Mods often have to track variables relating to a pickups. Finding an index for these kinds of
|
|
@@ -13239,6 +13249,20 @@ declare class SaveDataManager extends Feature {
|
|
|
13239
13249
|
* In order to use this function, you must upgrade your mod with `ISCFeature.SAVE_DATA_MANAGER`.
|
|
13240
13250
|
*/
|
|
13241
13251
|
saveDataManagerReset(key: string, childObjectKey: SaveDataKey): void;
|
|
13252
|
+
/**
|
|
13253
|
+
* Helper function to check to see if the game is in the menu, as far as the save data manager is
|
|
13254
|
+
* concerned. This function will return true when the game is first opened until the
|
|
13255
|
+
* `POST_PLAYER_INIT` callback fires. It will also return true in between the `PRE_GAME_EXIT`
|
|
13256
|
+
* callback firing and the `POST_PLAYER_INIT` callback firing.
|
|
13257
|
+
*
|
|
13258
|
+
* This function is useful because the `POST_ENTITY_REMOVE` callback fires after the
|
|
13259
|
+
* `PRE_GAME_EXIT` callback. Thus, if save data needs to be updated from the `POST_ENTITY_REMOVE`
|
|
13260
|
+
* callback and the player is in the process of saving and quitting, the feature will have to
|
|
13261
|
+
* explicitly call the `saveDataManagerSave` function.
|
|
13262
|
+
*
|
|
13263
|
+
* In order to use this function, you must upgrade your mod with `ISCFeature.SAVE_DATA_MANAGER`.
|
|
13264
|
+
*/
|
|
13265
|
+
saveDataManagerInMenu(): boolean;
|
|
13242
13266
|
}
|
|
13243
13267
|
|
|
13244
13268
|
export declare const SECOND_IN_MILLISECONDS = 1000;
|