isaacscript-common 30.11.5 → 30.11.7

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 (57) hide show
  1. package/dist/index.rollup.d.ts +20 -17
  2. package/dist/isaacscript-common.lua +298 -251
  3. package/dist/lualib_bundle.lua +25 -5
  4. package/dist/src/classes/features/callbackLogic/CustomGridEntities.lua +6 -6
  5. package/dist/src/classes/features/callbackLogic/GameReorderedCallbacks.lua +4 -4
  6. package/dist/src/classes/features/other/CharacterHealthConversion.lua +2 -2
  7. package/dist/src/classes/features/other/CharacterStats.lua +2 -2
  8. package/dist/src/classes/features/other/CollectibleItemPoolType.lua +2 -2
  9. package/dist/src/classes/features/other/CustomHotkeys.lua +5 -5
  10. package/dist/src/classes/features/other/CustomItemPools.lua +3 -3
  11. package/dist/src/classes/features/other/CustomPickups.lua +2 -2
  12. package/dist/src/classes/features/other/CustomStages.lua +3 -3
  13. package/dist/src/classes/features/other/CustomTrapdoors.lua +3 -3
  14. package/dist/src/classes/features/other/DebugDisplay.lua +37 -37
  15. package/dist/src/classes/features/other/DeployJSONRoom.lua +2 -2
  16. package/dist/src/classes/features/other/DisableAllSound.lua +3 -3
  17. package/dist/src/classes/features/other/DisableInputs.lua +9 -9
  18. package/dist/src/classes/features/other/EdenStartingStats.lua +3 -3
  19. package/dist/src/classes/features/other/ExtraConsoleCommands.lua +3 -3
  20. package/dist/src/classes/features/other/FadeInRemover.lua +3 -3
  21. package/dist/src/classes/features/other/FastReset.lua +3 -3
  22. package/dist/src/classes/features/other/FlyingDetection.lua +2 -2
  23. package/dist/src/classes/features/other/ForgottenSwitch.lua +2 -2
  24. package/dist/src/classes/features/other/ItemPoolDetection.lua +4 -4
  25. package/dist/src/classes/features/other/ModdedElementDetection.lua +24 -24
  26. package/dist/src/classes/features/other/ModdedElementSets.lua +38 -38
  27. package/dist/src/classes/features/other/NoSirenSteal.lua +2 -2
  28. package/dist/src/classes/features/other/Pause.lua +4 -4
  29. package/dist/src/classes/features/other/PersistentEntities.lua +3 -3
  30. package/dist/src/classes/features/other/PickupIndexCreation.lua +2 -2
  31. package/dist/src/classes/features/other/PlayerInventory.lua +3 -3
  32. package/dist/src/classes/features/other/PonyDetection.lua +3 -3
  33. package/dist/src/classes/features/other/PressInput.lua +2 -2
  34. package/dist/src/classes/features/other/PreventChildEntities.lua +2 -2
  35. package/dist/src/classes/features/other/PreventCollectibleRotation.lua +2 -2
  36. package/dist/src/classes/features/other/PreventGridEntityRespawn.lua +2 -2
  37. package/dist/src/classes/features/other/RoomClearFrame.lua +3 -3
  38. package/dist/src/classes/features/other/RoomHistory.lua +8 -8
  39. package/dist/src/classes/features/other/RunInNFrames.lua +8 -8
  40. package/dist/src/classes/features/other/RunNextRoom.lua +2 -2
  41. package/dist/src/classes/features/other/SaveDataManager.lua +10 -10
  42. package/dist/src/classes/features/other/SpawnCollectible.lua +3 -3
  43. package/dist/src/classes/features/other/SpawnRockAltRewards.lua +8 -8
  44. package/dist/src/classes/features/other/StageHistory.lua +5 -5
  45. package/dist/src/classes/features/other/StartAmbush.lua +2 -2
  46. package/dist/src/classes/features/other/TaintedLazarusPlayers.lua +2 -2
  47. package/dist/src/functions/logMisc.d.ts +19 -17
  48. package/dist/src/functions/logMisc.d.ts.map +1 -1
  49. package/dist/src/functions/logMisc.lua +47 -15
  50. package/package.json +1 -1
  51. package/src/classes/features/other/saveDataManager/saveToDisk.ts +1 -1
  52. package/src/decorators.ts +1 -1
  53. package/src/functions/decorators.ts +2 -2
  54. package/src/functions/logMisc.ts +48 -21
  55. package/dist/src/indexLua.d.ts +0 -186
  56. package/dist/src/indexLua.d.ts.map +0 -1
  57. package/dist/src/indexLua.lua +0 -1114
@@ -9067,10 +9067,10 @@ export declare function logCollectibleTypes(this: void, collectibleTypes: Collec
9067
9067
  */
9068
9068
  export declare function logColor(this: void, color: Color, name?: string): void;
9069
9069
 
9070
- /** Helper function for printing out every damage flag that is turned on. Useful when debugging. */
9070
+ /** Helper function to log every damage flag that is turned on. Useful when debugging. */
9071
9071
  export declare function logDamageFlags(this: void, flags: DamageFlag | BitFlags<DamageFlag>): void;
9072
9072
 
9073
- /** Helper function for printing out every display flag that is turned on. Useful when debugging. */
9073
+ /** Helper function to log every display flag that is turned on. Useful when debugging. */
9074
9074
  export declare function logDisplayFlags(this: void, flags: DisplayFlag | BitFlags<DisplayFlag>): void;
9075
9075
 
9076
9076
  /** Helper function for logging an array of specific entities. */
@@ -9079,7 +9079,7 @@ export declare function logEntities(this: void, entities: Entity[]): void;
9079
9079
  /** Helper function to log information about a specific entity. */
9080
9080
  export declare function logEntity(this: void, entity: Entity): void;
9081
9081
 
9082
- /** Helper function for printing out every entity flag that is turned on. Useful when debugging. */
9082
+ /** Helper function to log every entity flag that is turned on. Useful when debugging. */
9083
9083
  export declare function logEntityFlags(this: void, flags: EntityFlag | BitFlags<EntityFlag>): void;
9084
9084
 
9085
9085
  export declare function logEntityID(this: void, entity: Entity): void;
@@ -9092,12 +9092,10 @@ export declare function logEntityID(this: void, entity: Entity): void;
9092
9092
  */
9093
9093
  export declare function logError(this: void, msg: string): void;
9094
9094
 
9095
- /** Helper function for printing out every flag that is turned on. Useful when debugging. */
9095
+ /** Helper function for logging every flag that is turned on. Useful when debugging. */
9096
9096
  export declare function logFlags<T extends BitFlag | BitFlag128>(this: void, flags: T | BitFlags<T>, flagEnum: Record<string, T>, description?: string): void;
9097
9097
 
9098
- /**
9099
- * Helper function for printing out every game state flag that is turned on. Useful when debugging.
9100
- */
9098
+ /** Helper function for logging every game state flag that is turned on. Useful when debugging. */
9101
9099
  export declare function logGameStateFlags(this: void): void;
9102
9100
 
9103
9101
  /** Helper function for logging an array of specific grid entities. */
@@ -9114,9 +9112,7 @@ export declare function logGridEntity(this: void, gridEntity: GridEntity): void;
9114
9112
  */
9115
9113
  export declare function logKColor(this: void, kColor: KColor, name?: string): void;
9116
9114
 
9117
- /**
9118
- * Helper function for printing out every level state flag that is turned on. Useful when debugging.
9119
- */
9115
+ /** Helper function for logging every level state flag that is turned on. Useful when debugging. */
9120
9116
  export declare function logLevelStateFlags(this: void): void;
9121
9117
 
9122
9118
  /**
@@ -9135,9 +9131,7 @@ export declare function logPlayerEffects(this: void, player: EntityPlayer): void
9135
9131
 
9136
9132
  export declare function logPlayerHealth(this: void, player: EntityPlayer): void;
9137
9133
 
9138
- /**
9139
- * Helper function for printing out every projectile flag that is turned on. Useful when debugging.
9140
- */
9134
+ /** Helper function for logging every projectile flag that is turned on. Useful when debugging. */
9141
9135
  export declare function logProjectileFlags(this: void, flags: ProjectileFlag | BitFlags<ProjectileFlag>): void;
9142
9136
 
9143
9137
  /**
@@ -9156,7 +9150,7 @@ export declare function logPtrHashes(this: void, ptrHashes: PtrHash[]): void;
9156
9150
  export declare function logRoom(this: void): void;
9157
9151
 
9158
9152
  /**
9159
- * Helper function for printing out every seed effect (i.e. Easter Egg) that is turned on for the
9153
+ * Helper function for logging every seed effect (i.e. Easter Egg) that is turned on for the
9160
9154
  * particular run.
9161
9155
  */
9162
9156
  export declare function logSeedEffects(this: void): void;
@@ -9185,8 +9179,8 @@ export declare function logSounds(this: void): void;
9185
9179
  export declare function logTable(this: void, luaTable: unknown, parentTables?: number): void;
9186
9180
 
9187
9181
  /**
9188
- * Helper function to print out the differences between the entries of two tables. Note that this
9189
- * will only do a shallow comparison.
9182
+ * Helper function to log the differences between the entries of two tables. Note that this will
9183
+ * only do a shallow comparison.
9190
9184
  */
9191
9185
  export declare function logTableDifferences<K extends AnyNotNil, V>(this: void, table1: LuaMap<K, V>, table2: LuaMap<K, V>): void;
9192
9186
 
@@ -9198,7 +9192,16 @@ export declare function logTableDifferences<K extends AnyNotNil, V>(this: void,
9198
9192
  */
9199
9193
  export declare function logTableKeys(this: void, luaTable: unknown): void;
9200
9194
 
9201
- /** Helper function for printing out every tear flag that is turned on. Useful when debugging. */
9195
+ /**
9196
+ * Helper function to log every table key and value. This is a shallow log; the function will not
9197
+ * recursively traverse sub-tables.
9198
+ *
9199
+ * This function will only work on tables that have string keys (because it logs the keys in order,
9200
+ * instead of randomly). It will throw a run-time error if it encounters a non-string key.
9201
+ */
9202
+ export declare function logTableShallow<K extends AnyNotNil, V>(this: void, luaTable: LuaMap<K, V>): void;
9203
+
9204
+ /** Helper function for log every tear flag that is turned on. Useful when debugging. */
9202
9205
  export declare function logTearFlags(this: void, flags: TearFlag | BitFlags<TearFlag>): void;
9203
9206
 
9204
9207
  /** Helper function for printing out every use flag that is turned on. Useful when debugging. */