isaacscript-common 7.11.0 → 7.14.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 (37) hide show
  1. package/dist/features/customPickup.d.ts +24 -0
  2. package/dist/features/customPickup.d.ts.map +1 -0
  3. package/dist/features/customPickup.lua +85 -0
  4. package/dist/features/customStage/backdrop.lua +3 -3
  5. package/dist/features/customStage/customStageGridEntities.d.ts.map +1 -1
  6. package/dist/features/customStage/customStageGridEntities.lua +61 -35
  7. package/dist/features/customStage/shadows.lua +2 -2
  8. package/dist/functions/collectibleSet.d.ts.map +1 -1
  9. package/dist/functions/collectibleSet.lua +2 -2
  10. package/dist/functions/npcs.lua +3 -3
  11. package/dist/functions/pickups.lua +2 -2
  12. package/dist/functions/trinketSet.d.ts +44 -0
  13. package/dist/functions/trinketSet.d.ts.map +1 -0
  14. package/dist/functions/trinketSet.lua +101 -0
  15. package/dist/index.d.ts +2 -0
  16. package/dist/index.d.ts.map +1 -1
  17. package/dist/index.lua +13 -0
  18. package/dist/initFeatures.d.ts.map +1 -1
  19. package/dist/initFeatures.lua +3 -0
  20. package/dist/interfaces/CustomStageTSConfig.d.ts +47 -0
  21. package/dist/interfaces/CustomStageTSConfig.d.ts.map +1 -1
  22. package/dist/objects/coinSubTypeToValue.d.ts +1 -1
  23. package/dist/objects/coinSubTypeToValue.d.ts.map +1 -1
  24. package/dist/objects/coinSubTypeToValue.lua +1 -1
  25. package/package.json +1 -1
  26. package/src/features/customPickup.ts +135 -0
  27. package/src/features/customStage/backdrop.ts +2 -2
  28. package/src/features/customStage/customStageGridEntities.ts +58 -16
  29. package/src/features/customStage/shadows.ts +2 -2
  30. package/src/functions/collectibleSet.ts +4 -3
  31. package/src/functions/npcs.ts +2 -2
  32. package/src/functions/pickups.ts +2 -2
  33. package/src/functions/trinketSet.ts +133 -0
  34. package/src/index.ts +2 -0
  35. package/src/initFeatures.ts +2 -0
  36. package/src/interfaces/CustomStageTSConfig.ts +50 -0
  37. package/src/objects/coinSubTypeToValue.ts +1 -1
@@ -132,9 +132,24 @@ export interface CustomStageTSConfig {
132
132
  *
133
133
  * If not specified, the vanilla Basement decorations spritesheet will be used. For reference,
134
134
  * this is located at: `resources/gfx/grid/props_01_basement.png`
135
+ *
136
+ * If you want to have custom animations for your decorations, then do not use this field and use
137
+ * `decorationsANM2Path` instead.
135
138
  */
136
139
  decorationsPNGPath?: string;
137
140
 
141
+ /**
142
+ * Optional. The full path to the anm2 file that contains the custom animations for the
143
+ * decorations of the floor.
144
+ *
145
+ * If not specified, the vanilla Basement decorations spritesheet will be used. For reference,
146
+ * this is located at: `resources/gfx/grid/props_01_basement.png`
147
+ *
148
+ * If you do not want to have custom animations for your decorations, then do not use this field
149
+ * and use `decorationsPNGPath` instead.
150
+ */
151
+ decorationsANM2Path?: string;
152
+
138
153
  /**
139
154
  * Optional. The full path to the spritesheet that contains the graphics of the rocks/blocks/urns
140
155
  * for the floor.
@@ -146,18 +161,53 @@ export interface CustomStageTSConfig {
146
161
  *
147
162
  * If not specified, the vanilla Basement rocks spritesheet will be used. For reference, this is
148
163
  * located at: `resources-dlc3/gfx/grid/rocks_basement.png`
164
+ *
165
+ * If you want to have custom animations for your rocks, then do not use this field and use
166
+ * `rocksANM2Path` instead.
149
167
  */
150
168
  rocksPNGPath?: string;
151
169
 
170
+ /**
171
+ * Optional. The full path to the anm2 file that contains the custom animations for the
172
+ * rocks/blocks/urns of the floor.
173
+ *
174
+ * If specified, it is assumed that you have your own custom rock alt type, and all vanilla
175
+ * rewards/enemies that spawn from urns will be automatically removed. Use the
176
+ * `POST_GRID_ENTITY_BROKEN` callback to make your own custom rewards. Or, if you want to emulate
177
+ * a vanilla urn/mushroom/skull/polyp/bucket, use the `spawnRockAltReward` helper function.
178
+ *
179
+ * If not specified, the vanilla Basement rocks spritesheet will be used. For reference, this is
180
+ * located at: `resources-dlc3/gfx/grid/rocks_basement.png`
181
+ *
182
+ * If you do not want to have custom animations for your rocks, then do not use this field and use
183
+ * `rocksPNGPath` instead.
184
+ */
185
+ rocksANM2Path?: string;
186
+
152
187
  /**
153
188
  * Optional. The full path to the spritesheet that contains the graphics of the pits for the
154
189
  * floor.
155
190
  *
156
191
  * If not specified, the vanilla Basement pits spritesheet will be used. For reference, this is
157
192
  * located at: `resources/gfx/grid/grid_pit.png`
193
+ *
194
+ * If you do not want to have custom animations for your pits, then do not use this field and use
195
+ * `pitsANM2Path` instead.
158
196
  */
159
197
  pitsPNGPath?: string;
160
198
 
199
+ /**
200
+ * Optional. The full path to the anm2 file that contains the custom animations for the pits of
201
+ * the floor.
202
+ *
203
+ * If not specified, the vanilla Basement pits spritesheet will be used. For reference, this is
204
+ * located at: `resources/gfx/grid/grid_pit.png`
205
+ *
206
+ * If you do not want to have custom animations for your pits, then do not use this field and use
207
+ * `pitsPNGPath` instead.
208
+ */
209
+ pitsANM2Path?: string;
210
+
161
211
  /**
162
212
  * Optional. A collection of paths that contain graphics for the doors of the floor. If not
163
213
  * specified, the doors for Basement will be used.
@@ -2,7 +2,7 @@ import { CoinSubType } from "isaac-typescript-definitions";
2
2
 
3
3
  export const DEFAULT_COIN_VALUE = 1;
4
4
 
5
- export const COIN_SUBTYPE_TO_VALUE: { readonly [key in CoinSubType]: int } = {
5
+ export const COIN_SUB_TYPE_TO_VALUE: { readonly [key in CoinSubType]: int } = {
6
6
  [CoinSubType.NULL]: 0, // 0
7
7
  [CoinSubType.PENNY]: 1, // 1
8
8
  [CoinSubType.NICKEL]: 5, // 2