isaacscript-common 12.3.7 → 12.4.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 (30) hide show
  1. package/dist/index.d.ts +9 -8
  2. package/dist/isaacscript-common.lua +65 -17
  3. package/dist/src/core/constants.d.ts +1 -0
  4. package/dist/src/core/constants.d.ts.map +1 -1
  5. package/dist/src/core/constants.lua +1 -0
  6. package/dist/src/features/extraConsoleCommands/listCommands.d.ts +2 -0
  7. package/dist/src/features/extraConsoleCommands/listCommands.d.ts.map +1 -1
  8. package/dist/src/features/extraConsoleCommands/listCommands.lua +6 -0
  9. package/dist/src/features/fadeInRemover.lua +1 -6
  10. package/dist/src/features/saveDataManager/exports.d.ts +1 -1
  11. package/dist/src/features/saveDataManager/exports.lua +1 -1
  12. package/dist/src/features/saveDataManager/main.d.ts.map +1 -1
  13. package/dist/src/features/saveDataManager/main.lua +22 -8
  14. package/dist/src/functions/ui.d.ts +6 -7
  15. package/dist/src/functions/ui.d.ts.map +1 -1
  16. package/dist/src/functions/ui.lua +7 -9
  17. package/dist/src/sets/entitiesWithArmorSet.d.ts +8 -0
  18. package/dist/src/sets/entitiesWithArmorSet.d.ts.map +1 -0
  19. package/dist/src/sets/entitiesWithArmorSet.lua +36 -0
  20. package/package.json +1 -1
  21. package/src/core/constants.ts +2 -0
  22. package/src/features/extraConsoleCommands/listCommands.ts +10 -1
  23. package/src/features/fadeInRemover.ts +1 -1
  24. package/src/features/saveDataManager/exports.ts +1 -1
  25. package/src/features/saveDataManager/main.ts +24 -0
  26. package/src/functions/ui.ts +7 -10
  27. package/src/sets/entitiesWithArmorSet.ts +58 -0
  28. package/dist/src/indexLua.d.ts +0 -181
  29. package/dist/src/indexLua.d.ts.map +0 -1
  30. package/dist/src/indexLua.lua +0 -1282
package/dist/index.d.ts CHANGED
@@ -1937,6 +1937,8 @@ export declare function doesPlayerHaveAllBlackHearts(player: EntityPlayer): bool
1937
1937
  */
1938
1938
  export declare function doesPlayerHaveAllSoulHearts(player: EntityPlayer): boolean;
1939
1939
 
1940
+ export declare const DOGMA_ROOM_GRID_INDEX = 109;
1941
+
1940
1942
  export declare const DOOR_HITBOX_RADIUS = 11;
1941
1943
 
1942
1944
  export declare function doorSlotFlagsToDoorSlots(doorSlotFlags: BitFlags<DoorSlotFlag>): DoorSlot[];
@@ -3416,14 +3418,13 @@ export declare function getHorsePillColor(pillColor: PillColor): PillColor;
3416
3418
  export declare function getHorsePillColors(): PillColor[];
3417
3419
 
3418
3420
  /**
3419
- * In the options menu, players have the ability to set a HUD offset. However, mods do not have
3420
- * access to this value. To get around this, Mod Config Menu provides a separate HUD offset setting
3421
- * on the first page of the menu. This is intended to be set by end-users to match their vanilla HUD
3422
- * offset setting so that mods can render UI elements to the screen in the correct position.
3421
+ * In the options menu, players have the ability to set a HUD offset. This uses the current HUD
3422
+ * offset to generate a vector that should be added to the corresponding position that you want to
3423
+ * draw a UI element.
3423
3424
  *
3424
- * @returns If the user does not have Mod Config Menu enabled, or does not have this option set,
3425
- * then this function will return `Vector.Zero.` Otherwise, it will return a Vector that
3426
- * represents a HUD offset that should be added to the position of a UI element.
3425
+ * For example:
3426
+ * - If the user does not have a HUD offset configured, this function will return `Vector(0, 0)`.
3427
+ * - If the user has a HUD offset of 1.0 configured, this function will return 10
3427
3428
  */
3428
3429
  export declare function getHUDOffsetVector(): Vector;
3429
3430
 
@@ -10415,7 +10416,7 @@ export declare enum SaveDataKey {
10415
10416
  *
10416
10417
  * Some features may have variables that need to be automatically reset per run/level, but not saved
10417
10418
  * to disk on game exit. (For example, if they contain functions or other non-serializable data.)
10418
- * For these cases, set the second argument to `() => false`.
10419
+ * For these cases, set the second argument to `false`.
10419
10420
  *
10420
10421
  * Note that when the player uses Glowing Hour Glass, the save data manager will automatically
10421
10422
  * restore any variables on a "run" or "level" object with a backup that was created when the room
@@ -1,6 +1,6 @@
1
1
  --[[
2
2
 
3
- isaacscript-common 12.3.7
3
+ isaacscript-common 12.4.0
4
4
 
5
5
  This is the "isaacscript-common" library, which was created with the IsaacScript tool.
6
6
 
@@ -19152,6 +19152,7 @@ ____exports.BOMB_EXPLODE_FRAME = 45
19152
19152
  ____exports.COLLECTIBLE_INITIAL_WAIT = 20
19153
19153
  ____exports.DEFAULT_ITEM_POOL_TYPE = ItemPoolType.TREASURE
19154
19154
  ____exports.DISTANCE_OF_GRID_TILE = 40
19155
+ ____exports.DOGMA_ROOM_GRID_INDEX = 109
19155
19156
  ____exports.DOOR_HITBOX_RADIUS = 11
19156
19157
  ____exports.EGGY_STATE_FRAME_OF_FINAL_SPIDER = 45
19157
19158
  ____exports.EMPTY_PNG_PATH = "gfx/none.png"
@@ -29185,15 +29186,22 @@ function makeGlowingHourGlassBackup(self)
29185
29186
  nil,
29186
29187
  saveDataMap,
29187
29188
  function(____, subscriberName, saveData)
29189
+ local conditionalFunc = saveDataConditionalFuncMap[subscriberName]
29190
+ if conditionalFunc ~= nil then
29191
+ local shouldSave = conditionalFunc(nil)
29192
+ if not shouldSave then
29193
+ return
29194
+ end
29195
+ end
29188
29196
  for ____, saveDataKey in ipairs(SAVE_DATA_MANAGER_GLOWING_HOUR_GLASS_BACKUP_KEYS) do
29189
29197
  do
29190
29198
  local childTable = saveData[saveDataKey]
29191
29199
  if childTable == nil then
29192
- goto __continue18
29200
+ goto __continue20
29193
29201
  end
29194
29202
  local childTableLuaMap = childTable
29195
29203
  if childTableLuaMap[SAVE_DATA_MANAGER_GLOWING_HOUR_GLASS_IGNORE_KEY] ~= nil then
29196
- goto __continue18
29204
+ goto __continue20
29197
29205
  end
29198
29206
  local saveDataGlowingHourGlass = saveDataGlowingHourGlassMap[subscriberName]
29199
29207
  if saveDataGlowingHourGlass == nil then
@@ -29203,7 +29211,7 @@ function makeGlowingHourGlassBackup(self)
29203
29211
  local copiedChildTable = deepCopy(nil, childTable, SerializationType.SERIALIZE)
29204
29212
  saveDataGlowingHourGlass[saveDataKey] = copiedChildTable
29205
29213
  end
29206
- ::__continue18::
29214
+ ::__continue20::
29207
29215
  end
29208
29216
  end,
29209
29217
  SAVE_DATA_MANAGER_DEBUG
@@ -29214,27 +29222,34 @@ function restoreGlowingHourGlassBackup(self)
29214
29222
  nil,
29215
29223
  saveDataMap,
29216
29224
  function(____, subscriberName, saveData)
29225
+ local conditionalFunc = saveDataConditionalFuncMap[subscriberName]
29226
+ if conditionalFunc ~= nil then
29227
+ local shouldSave = conditionalFunc(nil)
29228
+ if not shouldSave then
29229
+ return
29230
+ end
29231
+ end
29217
29232
  for ____, saveDataKey in ipairs(SAVE_DATA_MANAGER_GLOWING_HOUR_GLASS_BACKUP_KEYS) do
29218
29233
  do
29219
29234
  local childTable = saveData[saveDataKey]
29220
29235
  if childTable == nil then
29221
- goto __continue25
29236
+ goto __continue29
29222
29237
  end
29223
29238
  local childTableLuaMap = childTable
29224
29239
  if childTableLuaMap[SAVE_DATA_MANAGER_GLOWING_HOUR_GLASS_IGNORE_KEY] ~= nil then
29225
- goto __continue25
29240
+ goto __continue29
29226
29241
  end
29227
29242
  local saveDataGlowingHourGlass = saveDataGlowingHourGlassMap[subscriberName]
29228
29243
  if saveDataGlowingHourGlass == nil then
29229
- goto __continue25
29244
+ goto __continue29
29230
29245
  end
29231
29246
  local childTableBackup = saveDataGlowingHourGlass[saveDataKey]
29232
29247
  if childTableBackup == nil then
29233
- goto __continue25
29248
+ goto __continue29
29234
29249
  end
29235
29250
  merge(nil, childTable, childTableBackup, subscriberName .. "__glowingHourGlass")
29236
29251
  end
29237
- ::__continue25::
29252
+ ::__continue29::
29238
29253
  end
29239
29254
  end,
29240
29255
  SAVE_DATA_MANAGER_DEBUG
@@ -37533,10 +37548,9 @@ function ____exports.getScreenBottomRightPos(self)
37533
37548
  return Vector(screenWidth, screenHeight)
37534
37549
  end
37535
37550
  function ____exports.getHUDOffsetVector(self)
37536
- local defaultVector = copyVector(nil, VectorZero)
37537
37551
  local hudOffset = math.floor(Options.HUDOffset * 10)
37538
37552
  if hudOffset < 1 or hudOffset > 10 then
37539
- return defaultVector
37553
+ return copyVector(nil, VectorZero)
37540
37554
  end
37541
37555
  local x = hudOffset * 2
37542
37556
  local y = hudOffset
@@ -41701,12 +41715,7 @@ FADE_IN_SPEED = 1
41701
41715
  enabled = false
41702
41716
  v = {run = {removedFadeIn = false}}
41703
41717
  function ____exports.fadeInRemoverInit(self, mod)
41704
- saveDataManager(
41705
- nil,
41706
- FEATURE_NAME,
41707
- v,
41708
- function() return false end
41709
- )
41718
+ saveDataManager(nil, FEATURE_NAME, v, false)
41710
41719
  mod:AddCallback(ModCallback.POST_RENDER, postRender)
41711
41720
  end
41712
41721
  function ____exports.removeFadeIn(self)
@@ -46104,6 +46113,7 @@ local ____cachedClasses = require("src.core.cachedClasses")
46104
46113
  local game = ____cachedClasses.game
46105
46114
  local sfxManager = ____cachedClasses.sfxManager
46106
46115
  local ____constants = require("src.core.constants")
46116
+ local DOGMA_ROOM_GRID_INDEX = ____constants.DOGMA_ROOM_GRID_INDEX
46107
46117
  local MAX_LEVEL_GRID_INDEX = ____constants.MAX_LEVEL_GRID_INDEX
46108
46118
  local ____constantsFirstLast = require("src.core.constantsFirstLast")
46109
46119
  local FIRST_CARD_TYPE = ____constantsFirstLast.FIRST_CARD_TYPE
@@ -46619,6 +46629,10 @@ function ____exports.disableCurses(self)
46619
46629
  v.persistent.disableCurses = not v.persistent.disableCurses
46620
46630
  printEnabled(nil, not v.persistent.disableCurses, "curses")
46621
46631
  end
46632
+ function ____exports.dogma(self)
46633
+ setStage(nil, LevelStage.HOME, StageType.WRATH_OF_THE_LAMB)
46634
+ changeRoom(nil, DOGMA_ROOM_GRID_INDEX)
46635
+ end
46622
46636
  function ____exports.down(self, params)
46623
46637
  movePlayer(nil, params, Direction.DOWN)
46624
46638
  end
@@ -52193,6 +52207,40 @@ do
52193
52207
  end
52194
52208
  end
52195
52209
  end
52210
+ return ____exports
52211
+ end,
52212
+ ["src.sets.entitiesWithArmorSet"] = function(...)
52213
+ local ____lualib = require("lualib_bundle")
52214
+ local Set = ____lualib.Set
52215
+ local __TS__New = ____lualib.__TS__New
52216
+ local ____exports = {}
52217
+ local ____isaac_2Dtypescript_2Ddefinitions = require("lua_modules.isaac-typescript-definitions.dist.src.index")
52218
+ local BeastVariant = ____isaac_2Dtypescript_2Ddefinitions.BeastVariant
52219
+ local BoomFlyVariant = ____isaac_2Dtypescript_2Ddefinitions.BoomFlyVariant
52220
+ local DogmaVariant = ____isaac_2Dtypescript_2Ddefinitions.DogmaVariant
52221
+ local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
52222
+ local HiveVariant = ____isaac_2Dtypescript_2Ddefinitions.HiveVariant
52223
+ local HopperVariant = ____isaac_2Dtypescript_2Ddefinitions.HopperVariant
52224
+ local MotherVariant = ____isaac_2Dtypescript_2Ddefinitions.MotherVariant
52225
+ local PooterVariant = ____isaac_2Dtypescript_2Ddefinitions.PooterVariant
52226
+ ____exports.ENTITIES_WITH_ARMOR_SET = __TS__New(
52227
+ Set,
52228
+ {
52229
+ (tostring(EntityType.POOTER) .. ".") .. tostring(PooterVariant.TAINTED_POOTER),
52230
+ (tostring(EntityType.HIVE) .. ".") .. tostring(HiveVariant.TAINTED_MULLIGAN),
52231
+ (tostring(EntityType.BOOM_FLY) .. ".") .. tostring(BoomFlyVariant.TAINTED_BOOM_FLY),
52232
+ (tostring(EntityType.HOPPER) .. ".") .. tostring(HopperVariant.TAINTED_HOPPER),
52233
+ tostring(EntityType.SPITTY),
52234
+ (tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_1),
52235
+ (tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_2),
52236
+ (tostring(EntityType.DOGMA) .. ".") .. tostring(DogmaVariant.DOGMA_PHASE_1),
52237
+ (tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.BEAST),
52238
+ (tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_FAMINE),
52239
+ (tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_PESTILENCE),
52240
+ (tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_WAR),
52241
+ (tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_DEATH)
52242
+ }
52243
+ )
52196
52244
  return ____exports
52197
52245
  end,
52198
52246
  }
@@ -27,6 +27,7 @@ export declare const COLLECTIBLE_INITIAL_WAIT = 20;
27
27
  export declare const DEFAULT_ITEM_POOL_TYPE = ItemPoolType.TREASURE;
28
28
  /** This is also the distance that a player spawns from the door that they enter a room from. */
29
29
  export declare const DISTANCE_OF_GRID_TILE = 40;
30
+ export declare const DOGMA_ROOM_GRID_INDEX = 109;
30
31
  export declare const DOOR_HITBOX_RADIUS = 11;
31
32
  /**
32
33
  * When Eggies take fatal damage, they go into NpcState.STATE_SUICIDE and spawn 14 Swarm Spiders
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/core/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,YAAY,EAEb,MAAM,8BAA8B,CAAC;AAMtC;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;;;;EAI7B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iCAAiC,SAAS,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,mBAAmB,4CAA4C,CAAC;AAE7E,mEAAmE;AACnE,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,iGAAiG;AACjG,eAAO,MAAM,wBAAwB,KAAK,CAAC;AAE3C,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAE5D,gGAAgG;AAChG,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,KAAK,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,cAAc,iBAAiB,CAAC;AAE7C;;;;GAIG;AAEH,eAAO,MAAM,+BAA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;AAEjC;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAgB,CAAC;AAExD;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAgB,CAAC;AAEzD;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAkB,CAAC;AAE5D;;;;GAIG;AACH,eAAO,MAAM,aAAa,EAAE,QAAQ,CAAC,MAAM,CAAsB,CAAC"}
@@ -30,6 +30,7 @@ ____exports.COLLECTIBLE_INITIAL_WAIT = 20
30
30
  ____exports.DEFAULT_ITEM_POOL_TYPE = ItemPoolType.TREASURE
31
31
  --- This is also the distance that a player spawns from the door that they enter a room from.
32
32
  ____exports.DISTANCE_OF_GRID_TILE = 40
33
+ ____exports.DOGMA_ROOM_GRID_INDEX = 109
33
34
  ____exports.DOOR_HITBOX_RADIUS = 11
34
35
  --- When Eggies take fatal damage, they go into NpcState.STATE_SUICIDE and spawn 14 Swarm Spiders
35
36
  -- while their StateFrame ticks upwards. The 14th spider appears when the StateFrame is at this
@@ -125,6 +125,8 @@ export declare function devilRoom(): void;
125
125
  export declare function dirtyBedroom(): void;
126
126
  /** Toggles whether or not curses can appear. */
127
127
  export declare function disableCurses(): void;
128
+ /** Warps to the Dogma Boss Room. */
129
+ export declare function dogma(): void;
128
130
  /** Moves the player 0.5 units down. Provide a number to move a custom amount of units. */
129
131
  export declare function down(params: string): void;
130
132
  /** Warps to the Dungeon (i.e. the crawl space room) for the floor. */
@@ -1 +1 @@
1
- {"version":3,"file":"listCommands.d.ts","sourceRoot":"","sources":["../../../../src/features/extraConsoleCommands/listCommands.ts"],"names":[],"mappings":"AAwIA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAA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,EAAE,MAAM,GAAG,IAAI,CA4CnD;AAED,6CAA6C;AAC7C,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED,qDAAqD;AACrD,wBAAgB,YAAY,IAAI,IAAI,CAEnC;AAED,yDAAyD;AACzD,wBAAgB,eAAe,IAAI,IAAI,CAEtC;AAED,8CAA8C;AAC9C,wBAAgB,OAAO,IAAI,IAAI,CAG9B;AAED,sFAAsF;AACtF,wBAAgB,MAAM,IAAI,IAAI,CAQ7B;AAED,wFAAwF;AACxF,wBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEvC;AAED;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA0BzC"}
1
+ {"version":3,"file":"listCommands.d.ts","sourceRoot":"","sources":["../../../../src/features/extraConsoleCommands/listCommands.ts"],"names":[],"mappings":"AA2IA;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CA2C/C;AAED;;;GAGG;AACH,wBAAgB,SAAS,IAAI,IAAI,CAEhC;AAED,gEAAgE;AAChE,wBAAgB,MAAM,IAAI,IAAI,CAK7B;AAED,sEAAsE;AACtE,wBAAgB,OAAO,IAAI,IAAI,CAkB9B;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,+CAA+C;AAC/C,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED,4CAA4C;AAC5C,wBAAgB,KAAK,IAAI,IAAI,CAG5B;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAcjD;AAED,2CAA2C;AAC3C,wBAAgB,EAAE,IAAI,IAAI,CAEzB;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAczC;AAED;;;GAGG;AACH,wBAAgB,KAAK,CAAC,MAAM,EAAE,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AAI,CA0BzC"}
@@ -24,6 +24,7 @@ local ____cachedClasses = require("src.core.cachedClasses")
24
24
  local game = ____cachedClasses.game
25
25
  local sfxManager = ____cachedClasses.sfxManager
26
26
  local ____constants = require("src.core.constants")
27
+ local DOGMA_ROOM_GRID_INDEX = ____constants.DOGMA_ROOM_GRID_INDEX
27
28
  local MAX_LEVEL_GRID_INDEX = ____constants.MAX_LEVEL_GRID_INDEX
28
29
  local ____constantsFirstLast = require("src.core.constantsFirstLast")
29
30
  local FIRST_CARD_TYPE = ____constantsFirstLast.FIRST_CARD_TYPE
@@ -619,6 +620,11 @@ function ____exports.disableCurses(self)
619
620
  v.persistent.disableCurses = not v.persistent.disableCurses
620
621
  printEnabled(nil, not v.persistent.disableCurses, "curses")
621
622
  end
623
+ --- Warps to the Dogma Boss Room.
624
+ function ____exports.dogma(self)
625
+ setStage(nil, LevelStage.HOME, StageType.WRATH_OF_THE_LAMB)
626
+ changeRoom(nil, DOGMA_ROOM_GRID_INDEX)
627
+ end
622
628
  --- Moves the player 0.5 units down. Provide a number to move a custom amount of units.
623
629
  function ____exports.down(self, params)
624
630
  movePlayer(nil, params, Direction.DOWN)
@@ -28,12 +28,7 @@ v = {run = {removedFadeIn = false}}
28
28
  ---
29
29
  -- @internal
30
30
  function ____exports.fadeInRemoverInit(self, mod)
31
- saveDataManager(
32
- nil,
33
- FEATURE_NAME,
34
- v,
35
- function() return false end
36
- )
31
+ saveDataManager(nil, FEATURE_NAME, v, false)
37
32
  mod:AddCallback(ModCallback.POST_RENDER, postRender)
38
33
  end
39
34
  --- Removes the fade-in that occurs at the beginning of a run. If this behavior is desired, call this
@@ -74,7 +74,7 @@ import { SaveData } from "../../interfaces/SaveData";
74
74
  *
75
75
  * Some features may have variables that need to be automatically reset per run/level, but not saved
76
76
  * to disk on game exit. (For example, if they contain functions or other non-serializable data.)
77
- * For these cases, set the second argument to `() => false`.
77
+ * For these cases, set the second argument to `false`.
78
78
  *
79
79
  * Note that when the player uses Glowing Hour Glass, the save data manager will automatically
80
80
  * restore any variables on a "run" or "level" object with a backup that was created when the room
@@ -93,7 +93,7 @@ local saveDataMap = ____maps.saveDataMap
93
93
  --
94
94
  -- Some features may have variables that need to be automatically reset per run/level, but not saved
95
95
  -- to disk on game exit. (For example, if they contain functions or other non-serializable data.)
96
- -- For these cases, set the second argument to `() => false`.
96
+ -- For these cases, set the second argument to `false`.
97
97
  --
98
98
  -- Note that when the player uses Glowing Hour Glass, the save data manager will automatically
99
99
  -- restore any variables on a "run" or "level" object with a backup that was created when the room
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/features/saveDataManager/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAMtD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AA2BrD,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAelE;AA0LD,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,GACvB,IAAI,CA4CN;AAiBD,wBAAgB,wBAAwB,IAAI,IAAI,CAM/C;AAED,wBAAgB,wBAAwB,IAAI,IAAI,CAM/C"}
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/features/saveDataManager/main.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAGxD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAMtD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AA2BrD,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,WAAW,GAAG,IAAI,CAelE;AAkND,wBAAgB,sBAAsB,CACpC,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,GACvB,IAAI,CA4CN;AAiBD,wBAAgB,wBAAwB,IAAI,IAAI,CAM/C;AAED,wBAAgB,wBAAwB,IAAI,IAAI,CAM/C"}
@@ -89,15 +89,22 @@ function makeGlowingHourGlassBackup(self)
89
89
  nil,
90
90
  saveDataMap,
91
91
  function(____, subscriberName, saveData)
92
+ local conditionalFunc = saveDataConditionalFuncMap[subscriberName]
93
+ if conditionalFunc ~= nil then
94
+ local shouldSave = conditionalFunc(nil)
95
+ if not shouldSave then
96
+ return
97
+ end
98
+ end
92
99
  for ____, saveDataKey in ipairs(SAVE_DATA_MANAGER_GLOWING_HOUR_GLASS_BACKUP_KEYS) do
93
100
  do
94
101
  local childTable = saveData[saveDataKey]
95
102
  if childTable == nil then
96
- goto __continue18
103
+ goto __continue20
97
104
  end
98
105
  local childTableLuaMap = childTable
99
106
  if childTableLuaMap[SAVE_DATA_MANAGER_GLOWING_HOUR_GLASS_IGNORE_KEY] ~= nil then
100
- goto __continue18
107
+ goto __continue20
101
108
  end
102
109
  local saveDataGlowingHourGlass = saveDataGlowingHourGlassMap[subscriberName]
103
110
  if saveDataGlowingHourGlass == nil then
@@ -107,7 +114,7 @@ function makeGlowingHourGlassBackup(self)
107
114
  local copiedChildTable = deepCopy(nil, childTable, SerializationType.SERIALIZE)
108
115
  saveDataGlowingHourGlass[saveDataKey] = copiedChildTable
109
116
  end
110
- ::__continue18::
117
+ ::__continue20::
111
118
  end
112
119
  end,
113
120
  SAVE_DATA_MANAGER_DEBUG
@@ -118,27 +125,34 @@ function restoreGlowingHourGlassBackup(self)
118
125
  nil,
119
126
  saveDataMap,
120
127
  function(____, subscriberName, saveData)
128
+ local conditionalFunc = saveDataConditionalFuncMap[subscriberName]
129
+ if conditionalFunc ~= nil then
130
+ local shouldSave = conditionalFunc(nil)
131
+ if not shouldSave then
132
+ return
133
+ end
134
+ end
121
135
  for ____, saveDataKey in ipairs(SAVE_DATA_MANAGER_GLOWING_HOUR_GLASS_BACKUP_KEYS) do
122
136
  do
123
137
  local childTable = saveData[saveDataKey]
124
138
  if childTable == nil then
125
- goto __continue25
139
+ goto __continue29
126
140
  end
127
141
  local childTableLuaMap = childTable
128
142
  if childTableLuaMap[SAVE_DATA_MANAGER_GLOWING_HOUR_GLASS_IGNORE_KEY] ~= nil then
129
- goto __continue25
143
+ goto __continue29
130
144
  end
131
145
  local saveDataGlowingHourGlass = saveDataGlowingHourGlassMap[subscriberName]
132
146
  if saveDataGlowingHourGlass == nil then
133
- goto __continue25
147
+ goto __continue29
134
148
  end
135
149
  local childTableBackup = saveDataGlowingHourGlass[saveDataKey]
136
150
  if childTableBackup == nil then
137
- goto __continue25
151
+ goto __continue29
138
152
  end
139
153
  merge(nil, childTable, childTableBackup, subscriberName .. "__glowingHourGlass")
140
154
  end
141
- ::__continue25::
155
+ ::__continue29::
142
156
  end
143
157
  end,
144
158
  SAVE_DATA_MANAGER_DEBUG
@@ -2,14 +2,13 @@
2
2
  /// <reference types="isaac-typescript-definitions" />
3
3
  /// <reference types="isaac-typescript-definitions" />
4
4
  /**
5
- * In the options menu, players have the ability to set a HUD offset. However, mods do not have
6
- * access to this value. To get around this, Mod Config Menu provides a separate HUD offset setting
7
- * on the first page of the menu. This is intended to be set by end-users to match their vanilla HUD
8
- * offset setting so that mods can render UI elements to the screen in the correct position.
5
+ * In the options menu, players have the ability to set a HUD offset. This uses the current HUD
6
+ * offset to generate a vector that should be added to the corresponding position that you want to
7
+ * draw a UI element.
9
8
  *
10
- * @returns If the user does not have Mod Config Menu enabled, or does not have this option set,
11
- * then this function will return `Vector.Zero.` Otherwise, it will return a Vector that
12
- * represents a HUD offset that should be added to the position of a UI element.
9
+ * For example:
10
+ * - If the user does not have a HUD offset configured, this function will return `Vector(0, 0)`.
11
+ * - If the user has a HUD offset of 1.0 configured, this function will return 10
13
12
  */
14
13
  export declare function getHUDOffsetVector(): Vector;
15
14
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../src/functions/ui.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAqB3C;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,GAAG,CAU3D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,GAAG,CAgCtC;AAED,wBAAgB,wBAAwB,IAAI,MAAM,CAGjD;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAG/C;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAKhD;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAG3C;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAG9C;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAG7C;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,GAAG,CAa1D"}
1
+ {"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../src/functions/ui.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,CAmB3C;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,YAAY,GAAG,GAAG,CAU3D;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,GAAG,CAgCtC;AAED,wBAAgB,wBAAwB,IAAI,MAAM,CAGjD;AAED,wBAAgB,sBAAsB,IAAI,MAAM,CAG/C;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAKhD;AAED,wBAAgB,kBAAkB,IAAI,MAAM,CAG3C;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAG9C;AAED,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAED,wBAAgB,oBAAoB,IAAI,MAAM,CAG7C;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,GAAG,CAa1D"}
@@ -14,19 +14,17 @@ function ____exports.getScreenBottomRightPos(self)
14
14
  local screenHeight = Isaac.GetScreenHeight()
15
15
  return Vector(screenWidth, screenHeight)
16
16
  end
17
- --- In the options menu, players have the ability to set a HUD offset. However, mods do not have
18
- -- access to this value. To get around this, Mod Config Menu provides a separate HUD offset setting
19
- -- on the first page of the menu. This is intended to be set by end-users to match their vanilla HUD
20
- -- offset setting so that mods can render UI elements to the screen in the correct position.
17
+ --- In the options menu, players have the ability to set a HUD offset. This uses the current HUD
18
+ -- offset to generate a vector that should be added to the corresponding position that you want to
19
+ -- draw a UI element.
21
20
  --
22
- -- @returns If the user does not have Mod Config Menu enabled, or does not have this option set,
23
- -- then this function will return `Vector.Zero.` Otherwise, it will return a Vector that
24
- -- represents a HUD offset that should be added to the position of a UI element.
21
+ -- For example:
22
+ -- - If the user does not have a HUD offset configured, this function will return `Vector(0, 0)`.
23
+ -- - If the user has a HUD offset of 1.0 configured, this function will return 10
25
24
  function ____exports.getHUDOffsetVector(self)
26
- local defaultVector = copyVector(nil, VectorZero)
27
25
  local hudOffset = math.floor(Options.HUDOffset * 10)
28
26
  if hudOffset < 1 or hudOffset > 10 then
29
- return defaultVector
27
+ return copyVector(nil, VectorZero)
30
28
  end
31
29
  local x = hudOffset * 2
32
30
  local y = hudOffset
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Corresponds to:
3
+ * https://bindingofisaacrebirth.fandom.com/wiki/Damage_Scaling#Entities_with_Armor_Values
4
+ *
5
+ * We use the entity ID instead of type + variant tuple so that we can have O(1) lookups.
6
+ */
7
+ export declare const ENTITIES_WITH_ARMOR_SET: Set<string>;
8
+ //# sourceMappingURL=entitiesWithArmorSet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entitiesWithArmorSet.d.ts","sourceRoot":"","sources":["../../../src/sets/entitiesWithArmorSet.ts"],"names":[],"mappings":"AAWA;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,aAwClC,CAAC"}
@@ -0,0 +1,36 @@
1
+ local ____lualib = require("lualib_bundle")
2
+ local Set = ____lualib.Set
3
+ local __TS__New = ____lualib.__TS__New
4
+ local ____exports = {}
5
+ local ____isaac_2Dtypescript_2Ddefinitions = require("isaac-typescript-definitions")
6
+ local BeastVariant = ____isaac_2Dtypescript_2Ddefinitions.BeastVariant
7
+ local BoomFlyVariant = ____isaac_2Dtypescript_2Ddefinitions.BoomFlyVariant
8
+ local DogmaVariant = ____isaac_2Dtypescript_2Ddefinitions.DogmaVariant
9
+ local EntityType = ____isaac_2Dtypescript_2Ddefinitions.EntityType
10
+ local HiveVariant = ____isaac_2Dtypescript_2Ddefinitions.HiveVariant
11
+ local HopperVariant = ____isaac_2Dtypescript_2Ddefinitions.HopperVariant
12
+ local MotherVariant = ____isaac_2Dtypescript_2Ddefinitions.MotherVariant
13
+ local PooterVariant = ____isaac_2Dtypescript_2Ddefinitions.PooterVariant
14
+ --- Corresponds to:
15
+ -- https://bindingofisaacrebirth.fandom.com/wiki/Damage_Scaling#Entities_with_Armor_Values
16
+ --
17
+ -- We use the entity ID instead of type + variant tuple so that we can have O(1) lookups.
18
+ ____exports.ENTITIES_WITH_ARMOR_SET = __TS__New(
19
+ Set,
20
+ {
21
+ (tostring(EntityType.POOTER) .. ".") .. tostring(PooterVariant.TAINTED_POOTER),
22
+ (tostring(EntityType.HIVE) .. ".") .. tostring(HiveVariant.TAINTED_MULLIGAN),
23
+ (tostring(EntityType.BOOM_FLY) .. ".") .. tostring(BoomFlyVariant.TAINTED_BOOM_FLY),
24
+ (tostring(EntityType.HOPPER) .. ".") .. tostring(HopperVariant.TAINTED_HOPPER),
25
+ tostring(EntityType.SPITTY),
26
+ (tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_1),
27
+ (tostring(EntityType.MOTHER) .. ".") .. tostring(MotherVariant.MOTHER_2),
28
+ (tostring(EntityType.DOGMA) .. ".") .. tostring(DogmaVariant.DOGMA_PHASE_1),
29
+ (tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.BEAST),
30
+ (tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_FAMINE),
31
+ (tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_PESTILENCE),
32
+ (tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_WAR),
33
+ (tostring(EntityType.BEAST) .. ".") .. tostring(BeastVariant.ULTRA_DEATH)
34
+ }
35
+ )
36
+ return ____exports
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "12.3.7",
3
+ "version": "12.4.0",
4
4
  "description": "Helper functions and features for IsaacScript mods.",
5
5
  "keywords": [
6
6
  "isaac",
@@ -44,6 +44,8 @@ export const DEFAULT_ITEM_POOL_TYPE = ItemPoolType.TREASURE;
44
44
  /** This is also the distance that a player spawns from the door that they enter a room from. */
45
45
  export const DISTANCE_OF_GRID_TILE = 40;
46
46
 
47
+ export const DOGMA_ROOM_GRID_INDEX = 109;
48
+
47
49
  export const DOOR_HITBOX_RADIUS = 11;
48
50
 
49
51
  /**
@@ -53,7 +53,10 @@ import {
53
53
  TrinketType,
54
54
  } from "isaac-typescript-definitions";
55
55
  import { game, sfxManager } from "../../core/cachedClasses";
56
- import { MAX_LEVEL_GRID_INDEX } from "../../core/constants";
56
+ import {
57
+ DOGMA_ROOM_GRID_INDEX,
58
+ MAX_LEVEL_GRID_INDEX,
59
+ } from "../../core/constants";
57
60
  import {
58
61
  FIRST_CARD_TYPE,
59
62
  FIRST_CHARACTER,
@@ -583,6 +586,12 @@ export function disableCurses(): void {
583
586
  printEnabled(!v.persistent.disableCurses, "curses");
584
587
  }
585
588
 
589
+ /** Warps to the Dogma Boss Room. */
590
+ export function dogma(): void {
591
+ setStage(LevelStage.HOME, StageType.WRATH_OF_THE_LAMB);
592
+ changeRoom(DOGMA_ROOM_GRID_INDEX);
593
+ }
594
+
586
595
  /** Moves the player 0.5 units down. Provide a number to move a custom amount of units. */
587
596
  export function down(params: string): void {
588
597
  movePlayer(params, Direction.DOWN);
@@ -16,7 +16,7 @@ const v = {
16
16
 
17
17
  /** @internal */
18
18
  export function fadeInRemoverInit(mod: Mod): void {
19
- saveDataManager(FEATURE_NAME, v, () => false);
19
+ saveDataManager(FEATURE_NAME, v, false);
20
20
 
21
21
  mod.AddCallback(ModCallback.POST_RENDER, postRender); // 2
22
22
  }
@@ -90,7 +90,7 @@ import {
90
90
  *
91
91
  * Some features may have variables that need to be automatically reset per run/level, but not saved
92
92
  * to disk on game exit. (For example, if they contain functions or other non-serializable data.)
93
- * For these cases, set the second argument to `() => false`.
93
+ * For these cases, set the second argument to `false`.
94
94
  *
95
95
  * Note that when the player uses Glowing Hour Glass, the save data manager will automatically
96
96
  * restore any variables on a "run" or "level" object with a backup that was created when the room