silphscope 1.2.23 → 1.2.25

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "silphscope",
3
- "version": "1.2.23",
3
+ "version": "1.2.25",
4
4
  "description": "A firered/leafgreen ROM asset extractor for use in web applications",
5
5
  "main": "main.js",
6
6
  "exports": {
@@ -7,6 +7,7 @@ export function resolveItemIconObject(item, reader, itemName, gfxOrPal) {
7
7
  let finalPtr;
8
8
  if (gfxOrPal === "gfx") {
9
9
  finalPtr = iconPtr;
10
+ console.log(`gfx ${itemName} asset offset should be 0x${finalPtr.toString(16)}`);
10
11
  return {
11
12
  name: `item_${itemName}_${gfxOrPal}`,
12
13
  offset: finalPtr,
@@ -14,10 +15,11 @@ export function resolveItemIconObject(item, reader, itemName, gfxOrPal) {
14
15
  }
15
16
  } else if (gfxOrPal === "pal") {
16
17
  finalPtr = palettePtr;
18
+ console.log(`pal ${itemName} asset offset should be 0x${finalPtr.toString(16)}`);
17
19
  return {
18
20
  name: `item_${itemName}_${gfxOrPal}`,
19
21
  offset: finalPtr,
20
- size: 40, // this might be extremely dumb... or! It might just work... idk lol (I mean its worked so far so...)
22
+ size: 32, // this might be extremely dumb... or! It might just work... idk lol (I mean its worked so far so...)
21
23
  }
22
24
  }
23
25
  }