silphscope 1.2.4 → 1.2.5
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
|
@@ -59,6 +59,7 @@ import { renderAllTrainers } from "silphscope" // :O
|
|
|
59
59
|
|
|
60
60
|
const rom = fs.readFileSync("pokefirered.gba") // stuff stuff stuff
|
|
61
61
|
await renderAllTrainers(rom, {
|
|
62
|
-
outputDir: "./Assets/trainers" // more stuff
|
|
62
|
+
outputDir: "./Assets/trainers", // more stuff
|
|
63
|
+
trainerBackPics: true, // renders the like 8 trainer back pics
|
|
63
64
|
})
|
|
64
65
|
```
|
package/package.json
CHANGED
|
@@ -47,7 +47,7 @@ export async function renderTrainerBackPic(trainerName, trainers, assets, rom, o
|
|
|
47
47
|
const rawTrainerBackPalData = extract(trainerBackPal, rom);
|
|
48
48
|
const width = 64;
|
|
49
49
|
let height;
|
|
50
|
-
if (
|
|
50
|
+
if (trainerName === "RED" || trainerName === "LEAF") {
|
|
51
51
|
height = 320;
|
|
52
52
|
} else {
|
|
53
53
|
height = 256;
|