mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-02-11 18:55:53 +00:00
Fix - shiny color swap (#1183)
* return a list of errors if something is wrong with the variant's sprite * reformat * added data in error message * added read comfort + detection of missing json for existing variant * fix an error of message display * fix fetch color swap, missing a return
This commit is contained in:
parent
0fd2dcf0aa
commit
c454e2d232
@ -336,7 +336,7 @@ export default abstract class Pokemon extends Phaser.GameObjects.Container {
|
|||||||
console.error(`Could not load ${res.url}!`);
|
console.error(`Could not load ${res.url}!`);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
res.json()
|
return res.json()
|
||||||
}).then(c => {
|
}).then(c => {
|
||||||
variantColorCache[key] = c;
|
variantColorCache[key] = c;
|
||||||
resolve();
|
resolve();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user