isaacscript-common 20.18.1 → 21.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 (344) hide show
  1. package/dist/index.d.ts +23 -33
  2. package/dist/isaacscript-common.lua +628 -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/npcs.d.ts.map +1 -1
  45. package/dist/src/functions/npcs.lua +4 -3
  46. package/dist/src/functions/playerIndex.d.ts.map +1 -1
  47. package/dist/src/functions/playerIndex.lua +3 -2
  48. package/dist/src/functions/readOnly.d.ts +26 -0
  49. package/dist/src/functions/readOnly.d.ts.map +1 -0
  50. package/dist/src/functions/readOnly.lua +31 -0
  51. package/dist/src/functions/roomGrid.lua +4 -1
  52. package/dist/src/functions/roomShapeWalls.d.ts.map +1 -1
  53. package/dist/src/functions/roomShapeWalls.lua +9 -10
  54. package/dist/src/functions/serialization.d.ts.map +1 -1
  55. package/dist/src/functions/serialization.lua +3 -2
  56. package/dist/src/functions/slots.d.ts.map +1 -1
  57. package/dist/src/functions/slots.lua +3 -2
  58. package/dist/src/functions/stats.d.ts.map +1 -1
  59. package/dist/src/functions/stats.lua +3 -2
  60. package/dist/src/functions/transformations.d.ts.map +1 -1
  61. package/dist/src/functions/transformations.lua +6 -3
  62. package/dist/src/functions/utils.d.ts +1 -1
  63. package/dist/src/functions/utils.lua +1 -1
  64. package/dist/src/index.d.ts +2 -1
  65. package/dist/src/index.d.ts.map +1 -1
  66. package/dist/src/index.lua +16 -0
  67. package/dist/src/maps/PHDPillConversions.d.ts.map +1 -1
  68. package/dist/src/maps/PHDPillConversions.lua +3 -2
  69. package/dist/src/maps/cardNameToTypeMap.d.ts.map +1 -1
  70. package/dist/src/maps/cardNameToTypeMap.lua +3 -2
  71. package/dist/src/maps/characterNameToTypeMap.d.ts.map +1 -1
  72. package/dist/src/maps/characterNameToTypeMap.lua +3 -2
  73. package/dist/src/maps/collectibleDescriptionMap.d.ts.map +1 -1
  74. package/dist/src/maps/collectibleDescriptionMap.lua +3 -2
  75. package/dist/src/maps/collectibleNameToTypeMap.d.ts +5 -0
  76. package/dist/src/maps/collectibleNameToTypeMap.d.ts.map +1 -1
  77. package/dist/src/maps/collectibleNameToTypeMap.lua +10 -8
  78. package/dist/src/maps/collectibleTypeToNameMap.d.ts.map +1 -1
  79. package/dist/src/maps/collectibleTypeToNameMap.lua +3 -2
  80. package/dist/src/maps/defaultPlayerStatMap.d.ts +5 -2
  81. package/dist/src/maps/defaultPlayerStatMap.d.ts.map +1 -1
  82. package/dist/src/maps/defaultPlayerStatMap.lua +3 -2
  83. package/dist/src/maps/falsePHDPillConversions.d.ts.map +1 -1
  84. package/dist/src/maps/falsePHDPillConversions.lua +3 -2
  85. package/dist/src/maps/gridEntityTypeToBrokenStateMap.d.ts +1 -1
  86. package/dist/src/maps/gridEntityTypeToBrokenStateMap.d.ts.map +1 -1
  87. package/dist/src/maps/gridEntityTypeToBrokenStateMap.lua +3 -2
  88. package/dist/src/maps/gridEntityXMLMap.d.ts +1 -4
  89. package/dist/src/maps/gridEntityXMLMap.d.ts.map +1 -1
  90. package/dist/src/maps/gridEntityXMLMap.lua +3 -2
  91. package/dist/src/maps/keyboardToString.d.ts.map +1 -1
  92. package/dist/src/maps/keyboardToString.lua +3 -2
  93. package/dist/src/maps/pillNameToEffectMap.d.ts.map +1 -1
  94. package/dist/src/maps/pillNameToEffectMap.lua +3 -2
  95. package/dist/src/maps/roomNameToTypeMap.d.ts.map +1 -1
  96. package/dist/src/maps/roomNameToTypeMap.lua +3 -2
  97. package/dist/src/maps/roomShapeToTopLeftWallGridIndexMap.d.ts +1 -1
  98. package/dist/src/maps/roomShapeToTopLeftWallGridIndexMap.d.ts.map +1 -1
  99. package/dist/src/maps/roomShapeToTopLeftWallGridIndexMap.lua +3 -2
  100. package/dist/src/maps/transformationNameToPlayerFormMap.d.ts.map +1 -1
  101. package/dist/src/maps/transformationNameToPlayerFormMap.lua +3 -2
  102. package/dist/src/maps/trinketDescriptionMap.d.ts.map +1 -1
  103. package/dist/src/maps/trinketDescriptionMap.lua +3 -2
  104. package/dist/src/maps/trinketNameToTypeMap.d.ts +5 -0
  105. package/dist/src/maps/trinketNameToTypeMap.d.ts.map +1 -1
  106. package/dist/src/maps/trinketNameToTypeMap.lua +10 -8
  107. package/dist/src/maps/trinketTypeToNameMap.d.ts.map +1 -1
  108. package/dist/src/maps/trinketTypeToNameMap.lua +3 -2
  109. package/dist/src/objects/LRoomShapeToRectangles.d.ts +8 -6
  110. package/dist/src/objects/LRoomShapeToRectangles.d.ts.map +1 -1
  111. package/dist/src/objects/LRoomShapeToRectangles.lua +19 -17
  112. package/dist/src/objects/backdropTypeToRockAltType.d.ts.map +1 -1
  113. package/dist/src/objects/bossNamePNGFileNames.d.ts.map +1 -1
  114. package/dist/src/objects/bossPortraitPNGFileNames.d.ts.map +1 -1
  115. package/dist/src/objects/cardDescriptions.d.ts.map +1 -1
  116. package/dist/src/objects/cardNames.d.ts.map +1 -1
  117. package/dist/src/objects/challengeNames.d.ts.map +1 -1
  118. package/dist/src/objects/characterDamageMultipliers.d.ts.map +1 -1
  119. package/dist/src/objects/characterNames.d.ts.map +1 -1
  120. package/dist/src/objects/coinSubTypeToValue.d.ts.map +1 -1
  121. package/dist/src/objects/directionNames.d.ts.map +1 -1
  122. package/dist/src/objects/directionToDegrees.d.ts.map +1 -1
  123. package/dist/src/objects/directionToMoveAction.d.ts.map +1 -1
  124. package/dist/src/objects/directionToShootAction.d.ts.map +1 -1
  125. package/dist/src/objects/directionToVector.d.ts +5 -2
  126. package/dist/src/objects/directionToVector.d.ts.map +1 -1
  127. package/dist/src/objects/directionToVector.lua +6 -4
  128. package/dist/src/objects/doorSlotFlagToDoorSlot.d.ts.map +1 -1
  129. package/dist/src/objects/doorSlotToDirection.d.ts.map +1 -1
  130. package/dist/src/objects/doorSlotToDoorSlotFlag.d.ts.map +1 -1
  131. package/dist/src/objects/isaacAPIClassTypeToBrand.d.ts.map +1 -1
  132. package/dist/src/objects/languageNames.d.ts.map +1 -1
  133. package/dist/src/objects/oppositeDoorSlots.d.ts.map +1 -1
  134. package/dist/src/objects/pillEffectClasses.d.ts.map +1 -1
  135. package/dist/src/objects/pillEffectNames.d.ts.map +1 -1
  136. package/dist/src/objects/pillEffectTypes.d.ts.map +1 -1
  137. package/dist/src/objects/playerNamePNGFileNames.d.ts.map +1 -1
  138. package/dist/src/objects/playerPortraitPNGFileNames.d.ts.map +1 -1
  139. package/dist/src/objects/roomShapeBounds.d.ts +12 -2
  140. package/dist/src/objects/roomShapeBounds.d.ts.map +1 -1
  141. package/dist/src/objects/roomShapeCorners.d.ts +237 -3
  142. package/dist/src/objects/roomShapeCorners.d.ts.map +1 -1
  143. package/dist/src/objects/roomShapeCorners.lua +58 -56
  144. package/dist/src/objects/roomShapeLayoutSizes.d.ts +12 -2
  145. package/dist/src/objects/roomShapeLayoutSizes.d.ts.map +1 -1
  146. package/dist/src/objects/roomShapeToBottomRightPosition.d.ts +12 -2
  147. package/dist/src/objects/roomShapeToBottomRightPosition.d.ts.map +1 -1
  148. package/dist/src/objects/roomShapeToBottomRightPosition.lua +10 -8
  149. package/dist/src/objects/roomShapeToDoorSlotCoordinates.d.ts +88 -2
  150. package/dist/src/objects/roomShapeToDoorSlotCoordinates.d.ts.map +1 -1
  151. package/dist/src/objects/roomShapeToDoorSlotCoordinates.lua +71 -74
  152. package/dist/src/objects/roomShapeToDoorSlots.d.ts +13 -2
  153. package/dist/src/objects/roomShapeToDoorSlots.d.ts.map +1 -1
  154. package/dist/src/objects/roomShapeToDoorSlots.lua +10 -9
  155. package/dist/src/objects/roomShapeToDoorSlotsToGridIndexDelta.d.ts.map +1 -1
  156. package/dist/src/objects/roomShapeToDoorSlotsToGridIndexDelta.lua +14 -13
  157. package/dist/src/objects/roomShapeToGridWidth.d.ts.map +1 -1
  158. package/dist/src/objects/roomShapeToTopLeftPosition.d.ts +12 -2
  159. package/dist/src/objects/roomShapeToTopLeftPosition.d.ts.map +1 -1
  160. package/dist/src/objects/roomShapeToTopLeftPosition.lua +5 -3
  161. package/dist/src/objects/roomShapeVolumes.d.ts.map +1 -1
  162. package/dist/src/objects/roomTypeGotoPrefixes.d.ts.map +1 -1
  163. package/dist/src/objects/roomTypeNames.d.ts.map +1 -1
  164. package/dist/src/objects/stageToMusic.d.ts.map +1 -1
  165. package/dist/src/objects/stageTypeSuffixes.d.ts.map +1 -1
  166. package/dist/src/objects/stageTypeToLetter.d.ts.map +1 -1
  167. package/dist/src/objects/transformationNames.d.ts.map +1 -1
  168. package/dist/src/objects/versusScreenBackgroundColors.d.ts +29 -2
  169. package/dist/src/objects/versusScreenBackgroundColors.d.ts.map +1 -1
  170. package/dist/src/objects/versusScreenBackgroundColors.lua +29 -27
  171. package/dist/src/objects/versusScreenDirtSpotColors.d.ts +29 -2
  172. package/dist/src/objects/versusScreenDirtSpotColors.d.ts.map +1 -1
  173. package/dist/src/objects/versusScreenDirtSpotColors.lua +29 -27
  174. package/dist/src/sets/LRoomShapesSet.d.ts.map +1 -1
  175. package/dist/src/sets/LRoomShapesSet.lua +3 -2
  176. package/dist/src/sets/bossSets.d.ts +2 -3
  177. package/dist/src/sets/bossSets.d.ts.map +1 -1
  178. package/dist/src/sets/bossSets.lua +52 -49
  179. package/dist/src/sets/charactersThatStartWithAnActiveItemSet.d.ts.map +1 -1
  180. package/dist/src/sets/charactersThatStartWithAnActiveItemSet.lua +3 -2
  181. package/dist/src/sets/charactersWithBlackHeartFromEternalHeartSet.d.ts.map +1 -1
  182. package/dist/src/sets/charactersWithBlackHeartFromEternalHeartSet.lua +3 -2
  183. package/dist/src/sets/charactersWithFreeDevilDealsSet.d.ts.map +1 -1
  184. package/dist/src/sets/charactersWithFreeDevilDealsSet.lua +3 -2
  185. package/dist/src/sets/charactersWithNoRedHeartsSet.d.ts.map +1 -1
  186. package/dist/src/sets/charactersWithNoRedHeartsSet.lua +3 -2
  187. package/dist/src/sets/charactersWithNoSoulHeartsSet.d.ts.map +1 -1
  188. package/dist/src/sets/charactersWithNoSoulHeartsSet.lua +3 -2
  189. package/dist/src/sets/chestPickupVariantsSet.d.ts.map +1 -1
  190. package/dist/src/sets/chestPickupVariantsSet.lua +3 -2
  191. package/dist/src/sets/consoleCommandsSet.d.ts.map +1 -1
  192. package/dist/src/sets/consoleCommandsSet.lua +3 -2
  193. package/dist/src/sets/entitiesWithArmorSet.d.ts.map +1 -1
  194. package/dist/src/sets/entitiesWithArmorSet.lua +3 -2
  195. package/dist/src/sets/familiarsThatShootPlayerTearsSet.d.ts.map +1 -1
  196. package/dist/src/sets/familiarsThatShootPlayerTearsSet.lua +3 -2
  197. package/dist/src/sets/itemConfigCardTypesForCardsSet.d.ts +4 -0
  198. package/dist/src/sets/itemConfigCardTypesForCardsSet.d.ts.map +1 -0
  199. package/dist/src/sets/itemConfigCardTypesForCardsSet.lua +10 -0
  200. package/dist/src/sets/lostStyleCharactersSet.d.ts.map +1 -1
  201. package/dist/src/sets/lostStyleCharactersSet.lua +3 -2
  202. package/dist/src/sets/mineShaftRoomSubTypesSet.d.ts.map +1 -1
  203. package/dist/src/sets/mineShaftRoomSubTypesSet.lua +3 -2
  204. package/dist/src/sets/narrowRoomShapesSet.d.ts.map +1 -1
  205. package/dist/src/sets/narrowRoomShapesSet.lua +3 -2
  206. package/dist/src/sets/redHeartSubTypesSet.d.ts.map +1 -1
  207. package/dist/src/sets/redHeartSubTypesSet.lua +3 -2
  208. package/dist/src/sets/sinEntityTypesSet.d.ts.map +1 -1
  209. package/dist/src/sets/sinEntityTypesSet.lua +3 -2
  210. package/dist/src/sets/singleUseActiveCollectibleTypesSet.d.ts.map +1 -1
  211. package/dist/src/sets/singleUseActiveCollectibleTypesSet.lua +3 -2
  212. package/dist/src/sets/storyBossesSet.d.ts.map +1 -1
  213. package/dist/src/sets/storyBossesSet.lua +3 -2
  214. package/dist/src/types/PickingUpItem.d.ts.map +1 -1
  215. package/dist/src/types/PickingUpItem.lua +3 -2
  216. package/dist/src/types/ReadonlyMap.d.ts +9 -0
  217. package/dist/src/types/ReadonlyMap.d.ts.map +1 -0
  218. package/dist/src/types/ReadonlyMap.lua +6 -0
  219. package/dist/src/types/ReadonlySet.d.ts +8 -0
  220. package/dist/src/types/ReadonlySet.d.ts.map +1 -0
  221. package/dist/src/types/ReadonlySet.lua +6 -0
  222. package/package.json +1 -1
  223. package/src/callbacks.ts +1 -2
  224. package/src/classes/callbacks/PostBoneSwing.ts +2 -1
  225. package/src/classes/callbacks/PreNewLevel.ts +2 -1
  226. package/src/classes/features/other/CustomTrapdoors.ts +2 -1
  227. package/src/classes/features/other/DeployJSONRoom.ts +5 -2
  228. package/src/classes/features/other/ModdedElementSets.ts +20 -22
  229. package/src/classes/features/other/SaveDataManager.ts +2 -1
  230. package/src/classes/features/other/customStages/backdrop.ts +3 -3
  231. package/src/classes/features/other/customStages/shadows.ts +1 -2
  232. package/src/classes/features/other/customStages/streakText.ts +1 -2
  233. package/src/classes/features/other/saveDataManager/restoreDefaults.ts +2 -1
  234. package/src/core/constants.ts +18 -17
  235. package/src/features.ts +1 -2
  236. package/src/functions/bosses.ts +2 -1
  237. package/src/functions/cards.ts +2 -2
  238. package/src/functions/characters.ts +2 -1
  239. package/src/functions/doors.ts +15 -4
  240. package/src/functions/emptyRoom.ts +2 -1
  241. package/src/functions/entities.ts +2 -1
  242. package/src/functions/globals.ts +4 -3
  243. package/src/functions/gridEntities.ts +5 -4
  244. package/src/functions/input.ts +3 -2
  245. package/src/functions/logEntities.ts +2 -1
  246. package/src/functions/npcs.ts +3 -2
  247. package/src/functions/playerIndex.ts +2 -1
  248. package/src/functions/readOnly.ts +42 -0
  249. package/src/functions/roomGrid.ts +2 -2
  250. package/src/functions/roomShapeWalls.ts +3 -5
  251. package/src/functions/serialization.ts +2 -3
  252. package/src/functions/slots.ts +2 -1
  253. package/src/functions/stats.ts +2 -1
  254. package/src/functions/transformations.ts +19 -18
  255. package/src/functions/utils.ts +1 -1
  256. package/src/index.ts +2 -1
  257. package/src/maps/PHDPillConversions.ts +19 -19
  258. package/src/maps/cardNameToTypeMap.ts +2 -1
  259. package/src/maps/characterNameToTypeMap.ts +86 -86
  260. package/src/maps/collectibleDescriptionMap.ts +726 -724
  261. package/src/maps/collectibleNameToTypeMap.ts +10 -7
  262. package/src/maps/collectibleTypeToNameMap.ts +3 -4
  263. package/src/maps/defaultPlayerStatMap.ts +2 -1
  264. package/src/maps/falsePHDPillConversions.ts +36 -33
  265. package/src/maps/gridEntityTypeToBrokenStateMap.ts +3 -2
  266. package/src/maps/gridEntityXMLMap.ts +3 -2
  267. package/src/maps/keyboardToString.ts +3 -2
  268. package/src/maps/pillNameToEffectMap.ts +85 -86
  269. package/src/maps/roomNameToTypeMap.ts +2 -1
  270. package/src/maps/roomShapeToTopLeftWallGridIndexMap.ts +3 -2
  271. package/src/maps/transformationNameToPlayerFormMap.ts +3 -2
  272. package/src/maps/trinketDescriptionMap.ts +191 -192
  273. package/src/maps/trinketNameToTypeMap.ts +10 -7
  274. package/src/maps/trinketTypeToNameMap.ts +191 -193
  275. package/src/objects/LRoomShapeToRectangles.ts +35 -28
  276. package/src/objects/backdropTypeToRockAltType.ts +1 -2
  277. package/src/objects/bossNamePNGFileNames.ts +1 -2
  278. package/src/objects/bossPortraitPNGFileNames.ts +1 -2
  279. package/src/objects/cardDescriptions.ts +1 -2
  280. package/src/objects/cardNames.ts +1 -2
  281. package/src/objects/challengeNames.ts +1 -2
  282. package/src/objects/characterDamageMultipliers.ts +1 -2
  283. package/src/objects/characterNames.ts +1 -2
  284. package/src/objects/coinSubTypeToValue.ts +1 -2
  285. package/src/objects/directionNames.ts +1 -2
  286. package/src/objects/directionToDegrees.ts +1 -2
  287. package/src/objects/directionToMoveAction.ts +1 -2
  288. package/src/objects/directionToShootAction.ts +1 -2
  289. package/src/objects/directionToVector.ts +7 -10
  290. package/src/objects/doorSlotFlagToDoorSlot.ts +1 -2
  291. package/src/objects/doorSlotToDirection.ts +1 -2
  292. package/src/objects/doorSlotToDoorSlotFlag.ts +1 -2
  293. package/src/objects/isaacAPIClassTypeToBrand.ts +1 -5
  294. package/src/objects/languageNames.ts +1 -2
  295. package/src/objects/oppositeDoorSlots.ts +1 -2
  296. package/src/objects/pillEffectClasses.ts +1 -2
  297. package/src/objects/pillEffectNames.ts +1 -2
  298. package/src/objects/pillEffectTypes.ts +1 -2
  299. package/src/objects/playerNamePNGFileNames.ts +1 -2
  300. package/src/objects/playerPortraitPNGFileNames.ts +1 -2
  301. package/src/objects/roomShapeBounds.ts +3 -7
  302. package/src/objects/roomShapeCorners.ts +59 -62
  303. package/src/objects/roomShapeLayoutSizes.ts +6 -10
  304. package/src/objects/roomShapeToBottomRightPosition.ts +11 -17
  305. package/src/objects/roomShapeToDoorSlotCoordinates.ts +93 -94
  306. package/src/objects/roomShapeToDoorSlots.ts +11 -14
  307. package/src/objects/roomShapeToDoorSlotsToGridIndexDelta.ts +15 -14
  308. package/src/objects/roomShapeToGridWidth.ts +1 -2
  309. package/src/objects/roomShapeToTopLeftPosition.ts +6 -9
  310. package/src/objects/roomShapeVolumes.ts +1 -2
  311. package/src/objects/roomTypeGotoPrefixes.ts +1 -2
  312. package/src/objects/roomTypeNames.ts +1 -2
  313. package/src/objects/stageToMusic.ts +10 -11
  314. package/src/objects/stageTypeSuffixes.ts +1 -2
  315. package/src/objects/stageTypeToLetter.ts +1 -2
  316. package/src/objects/transformationNames.ts +1 -2
  317. package/src/objects/versusScreenBackgroundColors.ts +30 -33
  318. package/src/objects/versusScreenDirtSpotColors.ts +30 -33
  319. package/src/sets/LRoomShapesSet.ts +2 -1
  320. package/src/sets/bossSets.ts +51 -49
  321. package/src/sets/charactersThatStartWithAnActiveItemSet.ts +3 -2
  322. package/src/sets/charactersWithBlackHeartFromEternalHeartSet.ts +3 -2
  323. package/src/sets/charactersWithFreeDevilDealsSet.ts +4 -2
  324. package/src/sets/charactersWithNoRedHeartsSet.ts +11 -11
  325. package/src/sets/charactersWithNoSoulHeartsSet.ts +8 -8
  326. package/src/sets/chestPickupVariantsSet.ts +2 -1
  327. package/src/sets/consoleCommandsSet.ts +3 -1
  328. package/src/sets/entitiesWithArmorSet.ts +2 -1
  329. package/src/sets/familiarsThatShootPlayerTearsSet.ts +3 -2
  330. package/src/sets/itemConfigCardTypesForCardsSet.ts +11 -0
  331. package/src/sets/lostStyleCharactersSet.ts +2 -1
  332. package/src/sets/mineShaftRoomSubTypesSet.ts +8 -8
  333. package/src/sets/narrowRoomShapesSet.ts +2 -1
  334. package/src/sets/redHeartSubTypesSet.ts +2 -1
  335. package/src/sets/sinEntityTypesSet.ts +2 -1
  336. package/src/sets/singleUseActiveCollectibleTypesSet.ts +3 -2
  337. package/src/sets/storyBossesSet.ts +2 -1
  338. package/src/types/PickingUpItem.ts +2 -1
  339. package/src/types/ReadonlyMap.ts +13 -0
  340. package/src/types/ReadonlySet.ts +9 -0
  341. package/dist/src/types/HasAllEnumKeys.d.ts +0 -26
  342. package/dist/src/types/HasAllEnumKeys.d.ts.map +0 -1
  343. package/dist/src/types/HasAllEnumKeys.lua +0 -2
  344. package/src/types/HasAllEnumKeys.ts +0 -25
@@ -1,7 +1,7 @@
1
- /* eslint-disable isaacscript/strict-enums */
2
1
  /* cspell:disable */
3
2
 
4
3
  import { TrinketType } from "isaac-typescript-definitions";
4
+ import { ReadonlyMap } from "../types/ReadonlyMap";
5
5
 
6
6
  export const DEFAULT_TRINKET_DESCRIPTION = "Unknown";
7
7
 
@@ -11,194 +11,193 @@ export const DEFAULT_TRINKET_DESCRIPTION = "Unknown";
11
11
  * This is a temporary map due to missing features in the vanilla API. (Otherwise, this would be
12
12
  * converted to a type-safe object.)
13
13
  */
14
- export const TRINKET_DESCRIPTION_MAP: ReadonlyMap<TrinketType, string> =
15
- new Map([
16
- [1, "Gulp!"],
17
- [2, "It feels lucky?"],
18
- [3, "Trickle charge"],
19
- [4, "It's broken"],
20
- [5, "Challenge up"],
21
- [6, "It kinda works"],
22
- [7, "Faith up"],
23
- [8, "I remember these"],
24
- [9, "Wub wub!"],
25
- [10, "Wiggle waggle!"],
26
- [11, "Woop woop!"],
27
- [12, "Blub blub!"],
28
- [13, "YES!"],
29
- [14, "Your feet feel stronger"],
30
- [15, "There's something inside it"],
31
- [16, "???"],
32
- [17, "Evil up"],
33
- [18, "Faith up"],
34
- [19, "Master of lockpicking"],
35
- [20, "Wish granted"],
36
- [21, "???"],
37
- [22, "Evil up"],
38
- [23, "???"],
39
- [24, "Wealth of gas"],
40
- [25, "Uh-oh!"],
41
- [26, "Zip zoop!"],
42
- [27, "Wooosh!"],
43
- [28, "Eternal life?"],
44
- [29, "It stinks"],
45
- [30, "Poison shots"],
46
- [31, "Piercing shots"],
47
- [32, "Touch fuzzy, get dizzy"],
48
- [33, "Fetal protection"],
49
- [34, "It calls out to its brothers"],
50
- [35, "DMG up"],
51
- [36, "It feels lucky?"],
52
- [37, "Speed up"],
53
- [38, "It emanates purity "],
54
- [39, "Yay, cancer!"],
55
- [40, "Your rage grows"],
56
- [41, "Tastes like burning"],
57
- [42, "Luck up!"],
58
- [43, "Cursed?"],
59
- [44, "Don't swallow it"],
60
- [45, "Luck of the draw"],
61
- [46, "Consume thy enemy"],
62
- [48, "It glows with power"],
63
- [49, "Wealth of health"],
64
- [50, "Wealth of chaos"],
65
- [51, "Wealth of answers"],
66
- [52, "Wealth of wealth"],
67
- [53, "Well, that's not coming off"],
68
- [54, "Dead friend"],
69
- [55, "Faith's reward"],
70
- [56, "Payment received "],
71
- [57, "Imaginary friend"],
72
- [58, "Your rage grows"],
73
- [59, "May you see your destination"],
74
- [60, "Revenge from beyond"],
75
- [61, "The left-hand path reaps dark rewards"],
76
- [62, "It shines for its brothers"],
77
- [63, "Fuse cutter"],
78
- [64, "Bleep bloop blop"],
79
- [65, "Floooooooooop!"],
80
- [66, "Pft"],
81
- [67, "You feel cursed... kinda."],
82
- [68, "It pulls"],
83
- [69, "You feel faded"],
84
- [70, "Itchy, tasty..."],
85
- [71, "Creepy bombs"],
86
- [72, "Lil charge"],
87
- [73, "Pop! Pop!"],
88
- [74, "The ground below feels hollow..."],
89
- [75, "Effect not found?"],
90
- [76, "It's double down time!"],
91
- [77, "Bounce back!"],
92
- [78, "Extended stat effect time!"],
93
- [79, "I'm stuck in a loop..."],
94
- [80, "With darkness comes power"],
95
- [81, "Blind to damage"],
96
- [82, "Feel lucky?"],
97
- [83, "Stores are open"],
98
- [84, "Feels greedy"],
99
- [85, "Karma up"],
100
- [86, "The poop is moving..."],
101
- [87, "You feel her love"],
102
- [88, "Never again!"],
103
- [89, "Keep your friends close..."],
104
- [90, "Fartoom!"],
105
- [91, "Eww"],
106
- [92, "Stat booster"],
107
- [93, "You stink"],
108
- [94, "It also stinks!"],
109
- [95, "It looks dead"],
110
- [96, "Foop foop!"],
111
- [97, "Sick..."],
112
- [98, "Seems magic..."],
113
- [99, "Boing!"],
114
- [100, "It needs power"],
115
- [101, "I think it's broken"],
116
- [102, "Double moon"],
117
- [103, "="],
118
- [104, "Make a wish"],
119
- [105, "I wonder what it is"],
120
- [106, "Uncorked"],
121
- [107, "Drain me"],
122
- [108, "That's a hard nut to crack!"],
123
- [109, "Stuck!"],
124
- [110, "Feels lucky..."],
125
- [111, "Drips with blood..."],
126
- [112, "..."],
127
- [113, "I bring War"],
128
- [114, "I bring Pestilence"],
129
- [115, "I bring Famine"],
130
- [116, "I bring Death"],
131
- [117, "I bring Conquest"],
132
- [118, "They are growing..."],
133
- [119, "Regen!"],
134
- [120, "Danger charge"],
135
- [121, "My faith protects me"],
136
- [122, "Can't hold it!"],
137
- [123, "Angelic spoils"],
138
- [124, "Hold the door"],
139
- [125, "Charged friends"],
140
- [126, "Wealth of flies"],
141
- [127, "Feed them magic!"],
142
- [128, "It looks brittle"],
143
- [129, "Don't chew on it"],
144
- [130, "It's leaking"],
145
- [131, "Wealth of purity"],
146
- [132, "Mystery medicine"],
147
- [133, "Faster explosions"],
148
- [134, "Mega farts"],
149
- [135, "Watch the world burn"],
150
- [136, "Bombs are key"],
151
- [137, "Forget me not..."],
152
- [138, "t's broken9Reroll your dest "],
153
- [139, "It feels lucky"],
154
- [140, "It feels empty"],
155
- [141, "Sing for your friends"],
156
- [142, "My faith protects me"],
157
- [143, "Voltage starving"],
158
- [144, "Ding!"],
159
- [145, "Luck way up. Don't lose it!"],
160
- [146, "His special customer"],
161
- [147, "Wealth of power"],
162
- [148, "Gather round"],
163
- [149, "Push in case of emergency"],
164
- [150, "Look between the rooms"],
165
- [151, "No more spikes"],
166
- [152, "Seek the stars"],
167
- [153, "A piece of her love"],
168
- [154, "Bonus roll"],
169
- [155, "Walk the path of the saint"],
170
- [156, "HP up"],
171
- [157, "Death awaits"],
172
- [158, "A hole in your pocket"],
173
- [159, "Less is more"],
174
- [160, "Free goodies!"],
175
- [161, "Walk the path of the wicked"],
176
- [162, "Unleash your inner demon"],
177
- [163, "Oops!"],
178
- [164, "Twice the bang!"],
179
- [165, "Don't want!"],
180
- [166, "???"],
181
- [167, "Friends from beyond"],
182
- [168, "A brittle blessing"],
183
- [169, "Looks familiar..."],
184
- [170, "Call to the other side"],
185
- [171, "Money talks"],
186
- [172, "Wealth of misery"],
187
- [173, "Give it to me"],
188
- [174, "6"],
189
- [175, "What could it open?"],
190
- [176, "Mini friend"],
191
- [177, "You feel braver"],
192
- [178, "Bang!"],
193
- [179, "Controllable buddies!"],
194
- [180, "Finally!"],
195
- [181, "Fun extras"],
196
- [182, "Virtue's reward"],
197
- [183, "I'm seeing double..."],
198
- [184, "Give them a home"],
199
- [185, "Infested"],
200
- [186, "Attack buddy"],
201
- [187, "Double vision?"],
202
- [188, "Stay frosty"],
203
- [189, "Revel in death"],
204
- ]);
14
+ export const TRINKET_DESCRIPTION_MAP = new ReadonlyMap<TrinketType, string>([
15
+ [1, "Gulp!"],
16
+ [2, "It feels lucky?"],
17
+ [3, "Trickle charge"],
18
+ [4, "It's broken"],
19
+ [5, "Challenge up"],
20
+ [6, "It kinda works"],
21
+ [7, "Faith up"],
22
+ [8, "I remember these"],
23
+ [9, "Wub wub!"],
24
+ [10, "Wiggle waggle!"],
25
+ [11, "Woop woop!"],
26
+ [12, "Blub blub!"],
27
+ [13, "YES!"],
28
+ [14, "Your feet feel stronger"],
29
+ [15, "There's something inside it"],
30
+ [16, "???"],
31
+ [17, "Evil up"],
32
+ [18, "Faith up"],
33
+ [19, "Master of lockpicking"],
34
+ [20, "Wish granted"],
35
+ [21, "???"],
36
+ [22, "Evil up"],
37
+ [23, "???"],
38
+ [24, "Wealth of gas"],
39
+ [25, "Uh-oh!"],
40
+ [26, "Zip zoop!"],
41
+ [27, "Wooosh!"],
42
+ [28, "Eternal life?"],
43
+ [29, "It stinks"],
44
+ [30, "Poison shots"],
45
+ [31, "Piercing shots"],
46
+ [32, "Touch fuzzy, get dizzy"],
47
+ [33, "Fetal protection"],
48
+ [34, "It calls out to its brothers"],
49
+ [35, "DMG up"],
50
+ [36, "It feels lucky?"],
51
+ [37, "Speed up"],
52
+ [38, "It emanates purity "],
53
+ [39, "Yay, cancer!"],
54
+ [40, "Your rage grows"],
55
+ [41, "Tastes like burning"],
56
+ [42, "Luck up!"],
57
+ [43, "Cursed?"],
58
+ [44, "Don't swallow it"],
59
+ [45, "Luck of the draw"],
60
+ [46, "Consume thy enemy"],
61
+ [48, "It glows with power"],
62
+ [49, "Wealth of health"],
63
+ [50, "Wealth of chaos"],
64
+ [51, "Wealth of answers"],
65
+ [52, "Wealth of wealth"],
66
+ [53, "Well, that's not coming off"],
67
+ [54, "Dead friend"],
68
+ [55, "Faith's reward"],
69
+ [56, "Payment received "],
70
+ [57, "Imaginary friend"],
71
+ [58, "Your rage grows"],
72
+ [59, "May you see your destination"],
73
+ [60, "Revenge from beyond"],
74
+ [61, "The left-hand path reaps dark rewards"],
75
+ [62, "It shines for its brothers"],
76
+ [63, "Fuse cutter"],
77
+ [64, "Bleep bloop blop"],
78
+ [65, "Floooooooooop!"],
79
+ [66, "Pft"],
80
+ [67, "You feel cursed... kinda."],
81
+ [68, "It pulls"],
82
+ [69, "You feel faded"],
83
+ [70, "Itchy, tasty..."],
84
+ [71, "Creepy bombs"],
85
+ [72, "Lil charge"],
86
+ [73, "Pop! Pop!"],
87
+ [74, "The ground below feels hollow..."],
88
+ [75, "Effect not found?"],
89
+ [76, "It's double down time!"],
90
+ [77, "Bounce back!"],
91
+ [78, "Extended stat effect time!"],
92
+ [79, "I'm stuck in a loop..."],
93
+ [80, "With darkness comes power"],
94
+ [81, "Blind to damage"],
95
+ [82, "Feel lucky?"],
96
+ [83, "Stores are open"],
97
+ [84, "Feels greedy"],
98
+ [85, "Karma up"],
99
+ [86, "The poop is moving..."],
100
+ [87, "You feel her love"],
101
+ [88, "Never again!"],
102
+ [89, "Keep your friends close..."],
103
+ [90, "Fartoom!"],
104
+ [91, "Eww"],
105
+ [92, "Stat booster"],
106
+ [93, "You stink"],
107
+ [94, "It also stinks!"],
108
+ [95, "It looks dead"],
109
+ [96, "Foop foop!"],
110
+ [97, "Sick..."],
111
+ [98, "Seems magic..."],
112
+ [99, "Boing!"],
113
+ [100, "It needs power"],
114
+ [101, "I think it's broken"],
115
+ [102, "Double moon"],
116
+ [103, "="],
117
+ [104, "Make a wish"],
118
+ [105, "I wonder what it is"],
119
+ [106, "Uncorked"],
120
+ [107, "Drain me"],
121
+ [108, "That's a hard nut to crack!"],
122
+ [109, "Stuck!"],
123
+ [110, "Feels lucky..."],
124
+ [111, "Drips with blood..."],
125
+ [112, "..."],
126
+ [113, "I bring War"],
127
+ [114, "I bring Pestilence"],
128
+ [115, "I bring Famine"],
129
+ [116, "I bring Death"],
130
+ [117, "I bring Conquest"],
131
+ [118, "They are growing..."],
132
+ [119, "Regen!"],
133
+ [120, "Danger charge"],
134
+ [121, "My faith protects me"],
135
+ [122, "Can't hold it!"],
136
+ [123, "Angelic spoils"],
137
+ [124, "Hold the door"],
138
+ [125, "Charged friends"],
139
+ [126, "Wealth of flies"],
140
+ [127, "Feed them magic!"],
141
+ [128, "It looks brittle"],
142
+ [129, "Don't chew on it"],
143
+ [130, "It's leaking"],
144
+ [131, "Wealth of purity"],
145
+ [132, "Mystery medicine"],
146
+ [133, "Faster explosions"],
147
+ [134, "Mega farts"],
148
+ [135, "Watch the world burn"],
149
+ [136, "Bombs are key"],
150
+ [137, "Forget me not..."],
151
+ [138, "t's broken9Reroll your dest "],
152
+ [139, "It feels lucky"],
153
+ [140, "It feels empty"],
154
+ [141, "Sing for your friends"],
155
+ [142, "My faith protects me"],
156
+ [143, "Voltage starving"],
157
+ [144, "Ding!"],
158
+ [145, "Luck way up. Don't lose it!"],
159
+ [146, "His special customer"],
160
+ [147, "Wealth of power"],
161
+ [148, "Gather round"],
162
+ [149, "Push in case of emergency"],
163
+ [150, "Look between the rooms"],
164
+ [151, "No more spikes"],
165
+ [152, "Seek the stars"],
166
+ [153, "A piece of her love"],
167
+ [154, "Bonus roll"],
168
+ [155, "Walk the path of the saint"],
169
+ [156, "HP up"],
170
+ [157, "Death awaits"],
171
+ [158, "A hole in your pocket"],
172
+ [159, "Less is more"],
173
+ [160, "Free goodies!"],
174
+ [161, "Walk the path of the wicked"],
175
+ [162, "Unleash your inner demon"],
176
+ [163, "Oops!"],
177
+ [164, "Twice the bang!"],
178
+ [165, "Don't want!"],
179
+ [166, "???"],
180
+ [167, "Friends from beyond"],
181
+ [168, "A brittle blessing"],
182
+ [169, "Looks familiar..."],
183
+ [170, "Call to the other side"],
184
+ [171, "Money talks"],
185
+ [172, "Wealth of misery"],
186
+ [173, "Give it to me"],
187
+ [174, "6"],
188
+ [175, "What could it open?"],
189
+ [176, "Mini friend"],
190
+ [177, "You feel braver"],
191
+ [178, "Bang!"],
192
+ [179, "Controllable buddies!"],
193
+ [180, "Finally!"],
194
+ [181, "Fun extras"],
195
+ [182, "Virtue's reward"],
196
+ [183, "I'm seeing double..."],
197
+ [184, "Give them a home"],
198
+ [185, "Infested"],
199
+ [186, "Attack buddy"],
200
+ [187, "Double vision?"],
201
+ [188, "Stay frosty"],
202
+ [189, "Revel in death"],
203
+ ]);
@@ -7,11 +7,14 @@ import { TRINKET_TYPE_TO_NAME_MAP } from "./trinketTypeToNameMap";
7
7
  *
8
8
  * For a mapping of `TrinketType` to name, see `TRINKET_TYPE_TO_NAME_MAP`.
9
9
  */
10
- const trinketNameToTypeMap = new Map<string, TrinketType>();
11
- for (const [trinketType, name] of TRINKET_TYPE_TO_NAME_MAP) {
12
- const simpleString = removeNonAlphanumericCharacters(name);
13
- trinketNameToTypeMap.set(simpleString, trinketType);
14
- }
15
-
16
10
  export const TRINKET_NAME_TO_TYPE_MAP: ReadonlyMap<string, TrinketType> =
17
- trinketNameToTypeMap;
11
+ (() => {
12
+ const trinketNameToTypeMap = new Map<string, TrinketType>();
13
+
14
+ for (const [trinketType, name] of TRINKET_TYPE_TO_NAME_MAP) {
15
+ const simpleString = removeNonAlphanumericCharacters(name);
16
+ trinketNameToTypeMap.set(simpleString, trinketType);
17
+ }
18
+
19
+ return trinketNameToTypeMap;
20
+ })();