mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-17 13:52:18 +02:00
fix an error of message display
This commit is contained in:
parent
367d7beacf
commit
8b59d2985c
@ -61,7 +61,7 @@ describe("check if every variant's sprite are correctly set", () => {
|
|||||||
if (!mlist.hasOwnProperty(id)) errors.push(`[${id}] missing key ${id} in masterlist for ${trimmedFilePath}`);
|
if (!mlist.hasOwnProperty(id)) errors.push(`[${id}] missing key ${id} in masterlist for ${trimmedFilePath}`);
|
||||||
else if (mlist[id][parseInt(variant, 10) - 1] !== 2) {
|
else if (mlist[id][parseInt(variant, 10) - 1] !== 2) {
|
||||||
const urlJsonFile = `${dirpath}${name}.json`;
|
const urlJsonFile = `${dirpath}${name}.json`;
|
||||||
const trimmedUrlJsonFilepath = `${trimmedDirpath}${id}.json`;
|
const trimmedUrlJsonFilepath = `${trimmedDirpath}${name}.json`;
|
||||||
const jsonFileExists = fs.existsSync(urlJsonFile);
|
const jsonFileExists = fs.existsSync(urlJsonFile);
|
||||||
if (mlist[id].includes(1)) {
|
if (mlist[id].includes(1)) {
|
||||||
const msg = `[${id}] MISSING JSON ${trimmedUrlJsonFilepath}`;
|
const msg = `[${id}] MISSING JSON ${trimmedUrlJsonFilepath}`;
|
||||||
|
Loading…
Reference in New Issue
Block a user