isaacscript-common 20.18.1 → 21.1.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 (349) hide show
  1. package/dist/index.d.ts +48 -33
  2. package/dist/isaacscript-common.lua +637 -460
  3. package/dist/src/callbacks.d.ts.map +1 -1
  4. package/dist/src/classes/callbacks/PostBoneSwing.d.ts.map +1 -1
  5. package/dist/src/classes/callbacks/PostBoneSwing.lua +3 -2
  6. package/dist/src/classes/callbacks/PreNewLevel.d.ts.map +1 -1
  7. package/dist/src/classes/callbacks/PreNewLevel.lua +3 -2
  8. package/dist/src/classes/features/other/CustomTrapdoors.d.ts.map +1 -1
  9. package/dist/src/classes/features/other/CustomTrapdoors.lua +4 -2
  10. package/dist/src/classes/features/other/DeployJSONRoom.d.ts.map +1 -1
  11. package/dist/src/classes/features/other/DeployJSONRoom.lua +3 -2
  12. package/dist/src/classes/features/other/ModdedElementSets.d.ts.map +1 -1
  13. package/dist/src/classes/features/other/ModdedElementSets.lua +7 -4
  14. package/dist/src/classes/features/other/SaveDataManager.d.ts.map +1 -1
  15. package/dist/src/classes/features/other/SaveDataManager.lua +3 -2
  16. package/dist/src/classes/features/other/customStages/backdrop.lua +3 -2
  17. package/dist/src/classes/features/other/customStages/shadows.d.ts.map +1 -1
  18. package/dist/src/classes/features/other/customStages/streakText.d.ts.map +1 -1
  19. package/dist/src/classes/features/other/saveDataManager/restoreDefaults.d.ts.map +1 -1
  20. package/dist/src/classes/features/other/saveDataManager/restoreDefaults.lua +3 -2
  21. package/dist/src/core/constants.d.ts +4 -6
  22. package/dist/src/core/constants.d.ts.map +1 -1
  23. package/dist/src/core/constants.lua +17 -13
  24. package/dist/src/features.d.ts.map +1 -1
  25. package/dist/src/functions/bosses.d.ts.map +1 -1
  26. package/dist/src/functions/bosses.lua +3 -2
  27. package/dist/src/functions/cards.lua +3 -3
  28. package/dist/src/functions/characters.d.ts.map +1 -1
  29. package/dist/src/functions/characters.lua +3 -2
  30. package/dist/src/functions/doors.d.ts.map +1 -1
  31. package/dist/src/functions/doors.lua +9 -7
  32. package/dist/src/functions/emptyRoom.d.ts.map +1 -1
  33. package/dist/src/functions/emptyRoom.lua +3 -2
  34. package/dist/src/functions/entities.d.ts.map +1 -1
  35. package/dist/src/functions/entities.lua +4 -1
  36. package/dist/src/functions/globals.d.ts.map +1 -1
  37. package/dist/src/functions/globals.lua +6 -4
  38. package/dist/src/functions/gridEntities.d.ts.map +1 -1
  39. package/dist/src/functions/gridEntities.lua +5 -3
  40. package/dist/src/functions/input.d.ts.map +1 -1
  41. package/dist/src/functions/input.lua +4 -3
  42. package/dist/src/functions/logEntities.d.ts.map +1 -1
  43. package/dist/src/functions/logEntities.lua +3 -2
  44. package/dist/src/functions/map.d.ts +23 -0
  45. package/dist/src/functions/map.d.ts.map +1 -1
  46. package/dist/src/functions/map.lua +28 -0
  47. package/dist/src/functions/npcs.d.ts.map +1 -1
  48. package/dist/src/functions/npcs.lua +4 -3
  49. package/dist/src/functions/playerIndex.d.ts.map +1 -1
  50. package/dist/src/functions/playerIndex.lua +3 -2
  51. package/dist/src/functions/readOnly.d.ts +26 -0
  52. package/dist/src/functions/readOnly.d.ts.map +1 -0
  53. package/dist/src/functions/readOnly.lua +31 -0
  54. package/dist/src/functions/roomGrid.d.ts.map +1 -1
  55. package/dist/src/functions/roomGrid.lua +4 -1
  56. package/dist/src/functions/roomShapeWalls.d.ts.map +1 -1
  57. package/dist/src/functions/roomShapeWalls.lua +9 -10
  58. package/dist/src/functions/serialization.d.ts.map +1 -1
  59. package/dist/src/functions/serialization.lua +3 -2
  60. package/dist/src/functions/slots.d.ts.map +1 -1
  61. package/dist/src/functions/slots.lua +3 -2
  62. package/dist/src/functions/stats.d.ts.map +1 -1
  63. package/dist/src/functions/stats.lua +3 -2
  64. package/dist/src/functions/transformations.d.ts.map +1 -1
  65. package/dist/src/functions/transformations.lua +6 -3
  66. package/dist/src/functions/utils.d.ts +1 -1
  67. package/dist/src/functions/utils.lua +1 -1
  68. package/dist/src/index.d.ts +2 -1
  69. package/dist/src/index.d.ts.map +1 -1
  70. package/dist/src/index.lua +16 -0
  71. package/dist/src/maps/PHDPillConversions.d.ts.map +1 -1
  72. package/dist/src/maps/PHDPillConversions.lua +3 -2
  73. package/dist/src/maps/cardNameToTypeMap.d.ts.map +1 -1
  74. package/dist/src/maps/cardNameToTypeMap.lua +3 -2
  75. package/dist/src/maps/characterNameToTypeMap.d.ts.map +1 -1
  76. package/dist/src/maps/characterNameToTypeMap.lua +3 -2
  77. package/dist/src/maps/collectibleDescriptionMap.d.ts.map +1 -1
  78. package/dist/src/maps/collectibleDescriptionMap.lua +3 -2
  79. package/dist/src/maps/collectibleNameToTypeMap.d.ts +5 -0
  80. package/dist/src/maps/collectibleNameToTypeMap.d.ts.map +1 -1
  81. package/dist/src/maps/collectibleNameToTypeMap.lua +10 -8
  82. package/dist/src/maps/collectibleTypeToNameMap.d.ts.map +1 -1
  83. package/dist/src/maps/collectibleTypeToNameMap.lua +3 -2
  84. package/dist/src/maps/defaultPlayerStatMap.d.ts +5 -2
  85. package/dist/src/maps/defaultPlayerStatMap.d.ts.map +1 -1
  86. package/dist/src/maps/defaultPlayerStatMap.lua +3 -2
  87. package/dist/src/maps/falsePHDPillConversions.d.ts.map +1 -1
  88. package/dist/src/maps/falsePHDPillConversions.lua +3 -2
  89. package/dist/src/maps/gridEntityTypeToBrokenStateMap.d.ts +1 -1
  90. package/dist/src/maps/gridEntityTypeToBrokenStateMap.d.ts.map +1 -1
  91. package/dist/src/maps/gridEntityTypeToBrokenStateMap.lua +3 -2
  92. package/dist/src/maps/gridEntityXMLMap.d.ts +1 -4
  93. package/dist/src/maps/gridEntityXMLMap.d.ts.map +1 -1
  94. package/dist/src/maps/gridEntityXMLMap.lua +3 -2
  95. package/dist/src/maps/keyboardToString.d.ts.map +1 -1
  96. package/dist/src/maps/keyboardToString.lua +3 -2
  97. package/dist/src/maps/pillNameToEffectMap.d.ts.map +1 -1
  98. package/dist/src/maps/pillNameToEffectMap.lua +3 -2
  99. package/dist/src/maps/roomNameToTypeMap.d.ts.map +1 -1
  100. package/dist/src/maps/roomNameToTypeMap.lua +3 -2
  101. package/dist/src/maps/roomShapeToTopLeftWallGridIndexMap.d.ts +1 -1
  102. package/dist/src/maps/roomShapeToTopLeftWallGridIndexMap.d.ts.map +1 -1
  103. package/dist/src/maps/roomShapeToTopLeftWallGridIndexMap.lua +3 -2
  104. package/dist/src/maps/transformationNameToPlayerFormMap.d.ts.map +1 -1
  105. package/dist/src/maps/transformationNameToPlayerFormMap.lua +3 -2
  106. package/dist/src/maps/trinketDescriptionMap.d.ts.map +1 -1
  107. package/dist/src/maps/trinketDescriptionMap.lua +3 -2
  108. package/dist/src/maps/trinketNameToTypeMap.d.ts +5 -0
  109. package/dist/src/maps/trinketNameToTypeMap.d.ts.map +1 -1
  110. package/dist/src/maps/trinketNameToTypeMap.lua +10 -8
  111. package/dist/src/maps/trinketTypeToNameMap.d.ts.map +1 -1
  112. package/dist/src/maps/trinketTypeToNameMap.lua +3 -2
  113. package/dist/src/objects/LRoomShapeToRectangles.d.ts +8 -6
  114. package/dist/src/objects/LRoomShapeToRectangles.d.ts.map +1 -1
  115. package/dist/src/objects/LRoomShapeToRectangles.lua +19 -17
  116. package/dist/src/objects/backdropTypeToRockAltType.d.ts.map +1 -1
  117. package/dist/src/objects/bossNamePNGFileNames.d.ts.map +1 -1
  118. package/dist/src/objects/bossPortraitPNGFileNames.d.ts.map +1 -1
  119. package/dist/src/objects/cardDescriptions.d.ts.map +1 -1
  120. package/dist/src/objects/cardNames.d.ts.map +1 -1
  121. package/dist/src/objects/challengeNames.d.ts.map +1 -1
  122. package/dist/src/objects/characterDamageMultipliers.d.ts.map +1 -1
  123. package/dist/src/objects/characterNames.d.ts.map +1 -1
  124. package/dist/src/objects/coinSubTypeToValue.d.ts.map +1 -1
  125. package/dist/src/objects/directionNames.d.ts.map +1 -1
  126. package/dist/src/objects/directionToDegrees.d.ts.map +1 -1
  127. package/dist/src/objects/directionToMoveAction.d.ts.map +1 -1
  128. package/dist/src/objects/directionToShootAction.d.ts.map +1 -1
  129. package/dist/src/objects/directionToVector.d.ts +5 -2
  130. package/dist/src/objects/directionToVector.d.ts.map +1 -1
  131. package/dist/src/objects/directionToVector.lua +6 -4
  132. package/dist/src/objects/doorSlotFlagToDoorSlot.d.ts.map +1 -1
  133. package/dist/src/objects/doorSlotToDirection.d.ts.map +1 -1
  134. package/dist/src/objects/doorSlotToDoorSlotFlag.d.ts.map +1 -1
  135. package/dist/src/objects/isaacAPIClassTypeToBrand.d.ts.map +1 -1
  136. package/dist/src/objects/languageNames.d.ts.map +1 -1
  137. package/dist/src/objects/oppositeDoorSlots.d.ts.map +1 -1
  138. package/dist/src/objects/pillEffectClasses.d.ts.map +1 -1
  139. package/dist/src/objects/pillEffectNames.d.ts.map +1 -1
  140. package/dist/src/objects/pillEffectTypes.d.ts.map +1 -1
  141. package/dist/src/objects/playerNamePNGFileNames.d.ts.map +1 -1
  142. package/dist/src/objects/playerPortraitPNGFileNames.d.ts.map +1 -1
  143. package/dist/src/objects/roomShapeBounds.d.ts +12 -2
  144. package/dist/src/objects/roomShapeBounds.d.ts.map +1 -1
  145. package/dist/src/objects/roomShapeCorners.d.ts +237 -3
  146. package/dist/src/objects/roomShapeCorners.d.ts.map +1 -1
  147. package/dist/src/objects/roomShapeCorners.lua +58 -56
  148. package/dist/src/objects/roomShapeLayoutSizes.d.ts +12 -2
  149. package/dist/src/objects/roomShapeLayoutSizes.d.ts.map +1 -1
  150. package/dist/src/objects/roomShapeToBottomRightPosition.d.ts +12 -2
  151. package/dist/src/objects/roomShapeToBottomRightPosition.d.ts.map +1 -1
  152. package/dist/src/objects/roomShapeToBottomRightPosition.lua +10 -8
  153. package/dist/src/objects/roomShapeToDoorSlotCoordinates.d.ts +88 -2
  154. package/dist/src/objects/roomShapeToDoorSlotCoordinates.d.ts.map +1 -1
  155. package/dist/src/objects/roomShapeToDoorSlotCoordinates.lua +71 -74
  156. package/dist/src/objects/roomShapeToDoorSlots.d.ts +13 -2
  157. package/dist/src/objects/roomShapeToDoorSlots.d.ts.map +1 -1
  158. package/dist/src/objects/roomShapeToDoorSlots.lua +10 -9
  159. package/dist/src/objects/roomShapeToDoorSlotsToGridIndexDelta.d.ts.map +1 -1
  160. package/dist/src/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +14 -13
  161. package/dist/src/objects/roomShapeToGridWidth.d.ts.map +1 -1
  162. package/dist/src/objects/roomShapeToTopLeftPosition.d.ts +12 -2
  163. package/dist/src/objects/roomShapeToTopLeftPosition.d.ts.map +1 -1
  164. package/dist/src/objects/roomShapeToTopLeftPosition.lua +5 -3
  165. package/dist/src/objects/roomShapeVolumes.d.ts.map +1 -1
  166. package/dist/src/objects/roomTypeGotoPrefixes.d.ts.map +1 -1
  167. package/dist/src/objects/roomTypeNames.d.ts.map +1 -1
  168. package/dist/src/objects/stageToMusic.d.ts.map +1 -1
  169. package/dist/src/objects/stageTypeSuffixes.d.ts.map +1 -1
  170. package/dist/src/objects/stageTypeToLetter.d.ts.map +1 -1
  171. package/dist/src/objects/transformationNames.d.ts.map +1 -1
  172. package/dist/src/objects/versusScreenBackgroundColors.d.ts +29 -2
  173. package/dist/src/objects/versusScreenBackgroundColors.d.ts.map +1 -1
  174. package/dist/src/objects/versusScreenBackgroundColors.lua +29 -27
  175. package/dist/src/objects/versusScreenDirtSpotColors.d.ts +29 -2
  176. package/dist/src/objects/versusScreenDirtSpotColors.d.ts.map +1 -1
  177. package/dist/src/objects/versusScreenDirtSpotColors.lua +29 -27
  178. package/dist/src/sets/LRoomShapesSet.d.ts.map +1 -1
  179. package/dist/src/sets/LRoomShapesSet.lua +3 -2
  180. package/dist/src/sets/bossSets.d.ts +2 -3
  181. package/dist/src/sets/bossSets.d.ts.map +1 -1
  182. package/dist/src/sets/bossSets.lua +52 -49
  183. package/dist/src/sets/charactersThatStartWithAnActiveItemSet.d.ts.map +1 -1
  184. package/dist/src/sets/charactersThatStartWithAnActiveItemSet.lua +3 -2
  185. package/dist/src/sets/charactersWithBlackHeartFromEternalHeartSet.d.ts.map +1 -1
  186. package/dist/src/sets/charactersWithBlackHeartFromEternalHeartSet.lua +3 -2
  187. package/dist/src/sets/charactersWithFreeDevilDealsSet.d.ts.map +1 -1
  188. package/dist/src/sets/charactersWithFreeDevilDealsSet.lua +3 -2
  189. package/dist/src/sets/charactersWithNoRedHeartsSet.d.ts.map +1 -1
  190. package/dist/src/sets/charactersWithNoRedHeartsSet.lua +3 -2
  191. package/dist/src/sets/charactersWithNoSoulHeartsSet.d.ts.map +1 -1
  192. package/dist/src/sets/charactersWithNoSoulHeartsSet.lua +3 -2
  193. package/dist/src/sets/chestPickupVariantsSet.d.ts.map +1 -1
  194. package/dist/src/sets/chestPickupVariantsSet.lua +3 -2
  195. package/dist/src/sets/consoleCommandsSet.d.ts.map +1 -1
  196. package/dist/src/sets/consoleCommandsSet.lua +3 -2
  197. package/dist/src/sets/entitiesWithArmorSet.d.ts.map +1 -1
  198. package/dist/src/sets/entitiesWithArmorSet.lua +3 -2
  199. package/dist/src/sets/familiarsThatShootPlayerTearsSet.d.ts.map +1 -1
  200. package/dist/src/sets/familiarsThatShootPlayerTearsSet.lua +3 -2
  201. package/dist/src/sets/itemConfigCardTypesForCardsSet.d.ts +4 -0
  202. package/dist/src/sets/itemConfigCardTypesForCardsSet.d.ts.map +1 -0
  203. package/dist/src/sets/itemConfigCardTypesForCardsSet.lua +10 -0
  204. package/dist/src/sets/lostStyleCharactersSet.d.ts.map +1 -1
  205. package/dist/src/sets/lostStyleCharactersSet.lua +3 -2
  206. package/dist/src/sets/mineShaftRoomSubTypesSet.d.ts.map +1 -1
  207. package/dist/src/sets/mineShaftRoomSubTypesSet.lua +3 -2
  208. package/dist/src/sets/narrowRoomShapesSet.d.ts.map +1 -1
  209. package/dist/src/sets/narrowRoomShapesSet.lua +3 -2
  210. package/dist/src/sets/redHeartSubTypesSet.d.ts.map +1 -1
  211. package/dist/src/sets/redHeartSubTypesSet.lua +3 -2
  212. package/dist/src/sets/sinEntityTypesSet.d.ts.map +1 -1
  213. package/dist/src/sets/sinEntityTypesSet.lua +3 -2
  214. package/dist/src/sets/singleUseActiveCollectibleTypesSet.d.ts.map +1 -1
  215. package/dist/src/sets/singleUseActiveCollectibleTypesSet.lua +3 -2
  216. package/dist/src/sets/storyBossesSet.d.ts.map +1 -1
  217. package/dist/src/sets/storyBossesSet.lua +3 -2
  218. package/dist/src/types/PickingUpItem.d.ts.map +1 -1
  219. package/dist/src/types/PickingUpItem.lua +3 -2
  220. package/dist/src/types/ReadonlyMap.d.ts +9 -0
  221. package/dist/src/types/ReadonlyMap.d.ts.map +1 -0
  222. package/dist/src/types/ReadonlyMap.lua +6 -0
  223. package/dist/src/types/ReadonlySet.d.ts +8 -0
  224. package/dist/src/types/ReadonlySet.d.ts.map +1 -0
  225. package/dist/src/types/ReadonlySet.lua +6 -0
  226. package/package.json +1 -1
  227. package/src/callbacks.ts +1 -2
  228. package/src/classes/callbacks/PostBoneSwing.ts +2 -1
  229. package/src/classes/callbacks/PreNewLevel.ts +2 -1
  230. package/src/classes/features/other/CustomTrapdoors.ts +2 -1
  231. package/src/classes/features/other/DeployJSONRoom.ts +5 -2
  232. package/src/classes/features/other/ModdedElementSets.ts +20 -22
  233. package/src/classes/features/other/SaveDataManager.ts +2 -1
  234. package/src/classes/features/other/customStages/backdrop.ts +3 -3
  235. package/src/classes/features/other/customStages/shadows.ts +1 -2
  236. package/src/classes/features/other/customStages/streakText.ts +1 -2
  237. package/src/classes/features/other/saveDataManager/restoreDefaults.ts +2 -1
  238. package/src/core/constants.ts +18 -17
  239. package/src/features.ts +1 -2
  240. package/src/functions/bosses.ts +2 -1
  241. package/src/functions/cards.ts +2 -2
  242. package/src/functions/characters.ts +2 -1
  243. package/src/functions/doors.ts +15 -4
  244. package/src/functions/emptyRoom.ts +2 -1
  245. package/src/functions/entities.ts +2 -1
  246. package/src/functions/globals.ts +4 -3
  247. package/src/functions/gridEntities.ts +5 -4
  248. package/src/functions/input.ts +3 -2
  249. package/src/functions/logEntities.ts +2 -1
  250. package/src/functions/map.ts +35 -0
  251. package/src/functions/npcs.ts +3 -2
  252. package/src/functions/playerIndex.ts +2 -1
  253. package/src/functions/readOnly.ts +42 -0
  254. package/src/functions/roomGrid.ts +3 -2
  255. package/src/functions/roomShapeWalls.ts +3 -5
  256. package/src/functions/serialization.ts +2 -3
  257. package/src/functions/slots.ts +2 -1
  258. package/src/functions/stats.ts +2 -1
  259. package/src/functions/transformations.ts +19 -18
  260. package/src/functions/utils.ts +1 -1
  261. package/src/index.ts +2 -1
  262. package/src/maps/PHDPillConversions.ts +19 -19
  263. package/src/maps/cardNameToTypeMap.ts +2 -1
  264. package/src/maps/characterNameToTypeMap.ts +86 -86
  265. package/src/maps/collectibleDescriptionMap.ts +726 -724
  266. package/src/maps/collectibleNameToTypeMap.ts +10 -7
  267. package/src/maps/collectibleTypeToNameMap.ts +3 -4
  268. package/src/maps/defaultPlayerStatMap.ts +2 -1
  269. package/src/maps/falsePHDPillConversions.ts +36 -33
  270. package/src/maps/gridEntityTypeToBrokenStateMap.ts +3 -2
  271. package/src/maps/gridEntityXMLMap.ts +3 -2
  272. package/src/maps/keyboardToString.ts +3 -2
  273. package/src/maps/pillNameToEffectMap.ts +85 -86
  274. package/src/maps/roomNameToTypeMap.ts +2 -1
  275. package/src/maps/roomShapeToTopLeftWallGridIndexMap.ts +3 -2
  276. package/src/maps/transformationNameToPlayerFormMap.ts +3 -2
  277. package/src/maps/trinketDescriptionMap.ts +191 -192
  278. package/src/maps/trinketNameToTypeMap.ts +10 -7
  279. package/src/maps/trinketTypeToNameMap.ts +191 -193
  280. package/src/objects/LRoomShapeToRectangles.ts +35 -28
  281. package/src/objects/backdropTypeToRockAltType.ts +1 -2
  282. package/src/objects/bossNamePNGFileNames.ts +1 -2
  283. package/src/objects/bossPortraitPNGFileNames.ts +1 -2
  284. package/src/objects/cardDescriptions.ts +1 -2
  285. package/src/objects/cardNames.ts +1 -2
  286. package/src/objects/challengeNames.ts +1 -2
  287. package/src/objects/characterDamageMultipliers.ts +1 -2
  288. package/src/objects/characterNames.ts +1 -2
  289. package/src/objects/coinSubTypeToValue.ts +1 -2
  290. package/src/objects/directionNames.ts +1 -2
  291. package/src/objects/directionToDegrees.ts +1 -2
  292. package/src/objects/directionToMoveAction.ts +1 -2
  293. package/src/objects/directionToShootAction.ts +1 -2
  294. package/src/objects/directionToVector.ts +7 -10
  295. package/src/objects/doorSlotFlagToDoorSlot.ts +1 -2
  296. package/src/objects/doorSlotToDirection.ts +1 -2
  297. package/src/objects/doorSlotToDoorSlotFlag.ts +1 -2
  298. package/src/objects/isaacAPIClassTypeToBrand.ts +1 -5
  299. package/src/objects/languageNames.ts +1 -2
  300. package/src/objects/oppositeDoorSlots.ts +1 -2
  301. package/src/objects/pillEffectClasses.ts +1 -2
  302. package/src/objects/pillEffectNames.ts +1 -2
  303. package/src/objects/pillEffectTypes.ts +1 -2
  304. package/src/objects/playerNamePNGFileNames.ts +1 -2
  305. package/src/objects/playerPortraitPNGFileNames.ts +1 -2
  306. package/src/objects/roomShapeBounds.ts +3 -7
  307. package/src/objects/roomShapeCorners.ts +59 -62
  308. package/src/objects/roomShapeLayoutSizes.ts +6 -10
  309. package/src/objects/roomShapeToBottomRightPosition.ts +11 -17
  310. package/src/objects/roomShapeToDoorSlotCoordinates.ts +93 -94
  311. package/src/objects/roomShapeToDoorSlots.ts +11 -14
  312. package/src/objects/roomShapeToDoorSlotsToGridIndexDelta.ts +15 -14
  313. package/src/objects/roomShapeToGridWidth.ts +1 -2
  314. package/src/objects/roomShapeToTopLeftPosition.ts +6 -9
  315. package/src/objects/roomShapeVolumes.ts +1 -2
  316. package/src/objects/roomTypeGotoPrefixes.ts +1 -2
  317. package/src/objects/roomTypeNames.ts +1 -2
  318. package/src/objects/stageToMusic.ts +10 -11
  319. package/src/objects/stageTypeSuffixes.ts +1 -2
  320. package/src/objects/stageTypeToLetter.ts +1 -2
  321. package/src/objects/transformationNames.ts +1 -2
  322. package/src/objects/versusScreenBackgroundColors.ts +30 -33
  323. package/src/objects/versusScreenDirtSpotColors.ts +30 -33
  324. package/src/sets/LRoomShapesSet.ts +2 -1
  325. package/src/sets/bossSets.ts +51 -49
  326. package/src/sets/charactersThatStartWithAnActiveItemSet.ts +3 -2
  327. package/src/sets/charactersWithBlackHeartFromEternalHeartSet.ts +3 -2
  328. package/src/sets/charactersWithFreeDevilDealsSet.ts +4 -2
  329. package/src/sets/charactersWithNoRedHeartsSet.ts +11 -11
  330. package/src/sets/charactersWithNoSoulHeartsSet.ts +8 -8
  331. package/src/sets/chestPickupVariantsSet.ts +2 -1
  332. package/src/sets/consoleCommandsSet.ts +3 -1
  333. package/src/sets/entitiesWithArmorSet.ts +2 -1
  334. package/src/sets/familiarsThatShootPlayerTearsSet.ts +3 -2
  335. package/src/sets/itemConfigCardTypesForCardsSet.ts +11 -0
  336. package/src/sets/lostStyleCharactersSet.ts +2 -1
  337. package/src/sets/mineShaftRoomSubTypesSet.ts +8 -8
  338. package/src/sets/narrowRoomShapesSet.ts +2 -1
  339. package/src/sets/redHeartSubTypesSet.ts +2 -1
  340. package/src/sets/sinEntityTypesSet.ts +2 -1
  341. package/src/sets/singleUseActiveCollectibleTypesSet.ts +3 -2
  342. package/src/sets/storyBossesSet.ts +2 -1
  343. package/src/types/PickingUpItem.ts +2 -1
  344. package/src/types/ReadonlyMap.ts +13 -0
  345. package/src/types/ReadonlySet.ts +9 -0
  346. package/dist/src/types/HasAllEnumKeys.d.ts +0 -26
  347. package/dist/src/types/HasAllEnumKeys.d.ts.map +0 -1
  348. package/dist/src/types/HasAllEnumKeys.lua +0 -2
  349. package/src/types/HasAllEnumKeys.ts +0 -25
package/dist/index.d.ts CHANGED
@@ -5928,6 +5928,31 @@ export declare function getRedHearts(): EntityPickupHeart[];
5928
5928
  */
5929
5929
  export declare function getRepentanceDoor(): GridEntityDoor | undefined;
5930
5930
 
5931
+ /**
5932
+ * Helper function to get a copy of a map with the keys and the values reversed.
5933
+ *
5934
+ * For example:
5935
+ *
5936
+ * ```ts
5937
+ * new Map<string, number>([
5938
+ * ["foo", 1],
5939
+ * ["bar", 2],
5940
+ * ]);
5941
+ * ```
5942
+ *
5943
+ * Would be reversed to:
5944
+ *
5945
+ * ```ts
5946
+ * new Map<number, string>([
5947
+ * [1, "foo"],
5948
+ * [2, "bar"],
5949
+ * ]);
5950
+ * ```
5951
+ */
5952
+ export declare function getReversedMap<K, V>(map: Map<K, V>): Map<V, K>;
5953
+
5954
+ export declare function getReversedMap<K, V>(map: ReadonlyMap<K, V>): ReadonlyMap<V, K>;
5955
+
5931
5956
  /**
5932
5957
  * Helper function to get the alternate rock type (i.e. urn, mushroom, etc.) that the current room
5933
5958
  * will have.
@@ -6764,32 +6789,6 @@ export declare function gridIndexToGridPosition(gridIndex: int, roomShape: RoomS
6764
6789
  */
6765
6790
  export declare function gridPositionToWorldPosition(gridPosition: Vector): Vector;
6766
6791
 
6767
- /**
6768
- * Helper type to ensure that an object contains a key for every enum member. Use this with `as
6769
- * const` and `satisfies` to prevent narrowing the type of the object.
6770
- *
6771
- * For example:
6772
- *
6773
- * ```ts
6774
- * enum MyEnum {
6775
- * Value1,
6776
- * Value2,
6777
- * Value3,
6778
- * }
6779
- *
6780
- * const MyEnumToString = {
6781
- * [MyEnum.Value1]: "foo",
6782
- * [MyEnum.Value2]: "bar",
6783
- * [MyEnum.Value3]: "baz",
6784
- * } as const satisfies HasAllEnumKeys<MyEnum, string>;
6785
- *
6786
- * const value = MyEnumToString[MyEnum.Value2];
6787
- * ```
6788
- */
6789
- export declare type HasAllEnumKeys<Enum extends string | number, T> = {
6790
- readonly [Key in Enum]: T;
6791
- };
6792
-
6793
6792
  /**
6794
6793
  * Helper function to see if a particular entity has armor. In this context, armor refers to the
6795
6794
  * damage scaling mechanic. For example, Ultra Greed has armor, but a Gaper does not.
@@ -8135,9 +8134,6 @@ export declare function isVanillaWallGridIndex(gridIndex: int): boolean;
8135
8134
  /** Helper function to check if something is an instantiated `Vector` object. */
8136
8135
  export declare function isVector(object: unknown): object is Vector;
8137
8136
 
8138
- /** The set of all `ItemConfigCardType` values that are not a rune or special object. */
8139
- export declare const ITEM_CONFIG_CARD_TYPES_FOR_CARDS: ReadonlySet<ItemConfigCardType>;
8140
-
8141
8137
  /**
8142
8138
  * A cached version of the class returned from the `Isaac.GetItemConfig()` constructor.
8143
8139
  *
@@ -11713,16 +11709,16 @@ export declare enum MysteriousPaperEffect {
11713
11709
  }
11714
11710
 
11715
11711
  /** This is near the top door. */
11716
- export declare const NEW_FLOOR_STARTING_POSITION_GREED_MODE: Vector;
11712
+ export declare const NEW_FLOOR_STARTING_POSITION_GREED_MODE: Readonly<Vector>;
11717
11713
 
11718
11714
  /** This is in the center of the room. */
11719
- export declare const NEW_FLOOR_STARTING_POSITION_NORMAL_MODE: Vector;
11715
+ export declare const NEW_FLOOR_STARTING_POSITION_NORMAL_MODE: Readonly<Vector>;
11720
11716
 
11721
11717
  /**
11722
11718
  * This is next to the bottom door. Presumably, the player does not start in the center of the room
11723
11719
  * (like they do when getting to a new stage) so that the controls graphic is more visible.
11724
11720
  */
11725
- export declare const NEW_RUN_PLAYER_STARTING_POSITION: Vector;
11721
+ export declare const NEW_RUN_PLAYER_STARTING_POSITION: Readonly<Vector>;
11726
11722
 
11727
11723
  /**
11728
11724
  * Constructor for a `ChargeBarSprites` object. For more information, see the `renderChargeBar`
@@ -12539,6 +12535,25 @@ export declare function printEnabled(enabled: boolean, description: string): voi
12539
12535
  /** Helper type to extract only the public interface of a class. */
12540
12536
  export declare type PublicInterface<T> = Pick<T, keyof T>;
12541
12537
 
12538
+ /** An alias for the `Map` constructor that returns a read-only map. */
12539
+ declare const ReadonlyMap_2: ReadonlyMapConstructor;
12540
+ export { ReadonlyMap_2 as ReadonlyMap }
12541
+
12542
+ declare interface ReadonlyMapConstructor {
12543
+ new (): ReadonlyMap<any, any>;
12544
+ new <K, V>(entries?: ReadonlyArray<readonly [K, V]> | null): ReadonlyMap<K, V>;
12545
+ readonly prototype: ReadonlyMap<any, any>;
12546
+ }
12547
+
12548
+ /** An alias for the `Set` constructor that returns a read-only set. */
12549
+ declare const ReadonlySet_2: ReadonlySetConstructor;
12550
+ export { ReadonlySet_2 as ReadonlySet }
12551
+
12552
+ declare interface ReadonlySetConstructor {
12553
+ new <T = any>(values?: readonly T[] | null): ReadonlySet<T>;
12554
+ readonly prototype: ReadonlySet<any>;
12555
+ }
12556
+
12542
12557
  /**
12543
12558
  * Helper function to reload the current room using `Game.StartRoomTransition`.
12544
12559
  *
@@ -15362,7 +15377,7 @@ export declare function validateEnumContiguous<T>(transpiledEnumName: string, tr
15362
15377
  *
15363
15378
  * This function is only meant to be used with interfaces (i.e. types that will not exist at
15364
15379
  * run-time). If you are generating an object that will contain all of the keys of an enum, use the
15365
- * `satisfies` operator with the `HasAllEnumValues` helper type instead.
15380
+ * `satisfies` operator with the `Record` type instead.
15366
15381
  */
15367
15382
  export declare function validateInterfaceMatchesEnum<T extends Record<Enum, unknown>, Enum extends string | number>(): void;
15368
15383