silphscope 1.3.5 → 1.3.6

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/README.md CHANGED
@@ -78,6 +78,7 @@ import { renderAllMoves } from "silphscope" // :O
78
78
  const rom = fs.readFileSync("pokefirered.gba") // stuff stuff stuff (more stuff!)
79
79
  await renderAllMoves(rom, {
80
80
  outputDir: "./Assets/trainers", // (incredibly) more stuff
81
+ renderMasterImage: true, // kinda forgot about this... basically it renders a uncut image of the move anim if you like
81
82
  sortUnused: true, // sorts unused moves into a sub-directory
82
83
  })
83
84
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "silphscope",
3
- "version": "1.3.5",
3
+ "version": "1.3.6",
4
4
  "description": "A firered/leafgreen ROM asset extractor for use in web applications",
5
5
  "main": "main.js",
6
6
  "exports": {
@@ -69,7 +69,7 @@ export async function renderMove(moveName, moves, reader, rom, options = {}) {
69
69
  });
70
70
 
71
71
  if (outputDir) { // I will update this later but in theory it should also work... eventually though it will need a split inside to handle full image generation :p
72
- const rootDir = (move?.unused === true)? `${outputDir}/unused` : `${outputDir}`
72
+ const rootDir = (sortUnused && move?.unused === true)? `${outputDir}/unused` : `${outputDir}`
73
73
  const dir = `${rootDir}/${moveName}`;
74
74
  if (!fs.existsSync(dir)) fs.mkdirSync(dir, { recursive: true });
75
75
  if (renderMasterImage) {