This is an unofficial system for Foundry VTT using Modiphius's Star Trek Adventures 2d20 RPG. This system attempts to replicate the feeling of playing through an episode of the epic SciFi that is Star Trek. I am in no way associated with Modiphius.
Fixes #92 by simply removing the offending code block. This appears to be code that is no longer necessary, as default item images seem to be working fine to me. Foundry must have fixed the bug introduced in 2021 at some point!
If this does turn out to be necessary, the following update could be applied, instead. I don't know what the kind of object sheetData.items used to be (I'm assuming a regular Object), but the jQuery was tripped up by the switch to EmbeddedCollection.
sheetData.items.forEach((item) => {
if (!item.img) item.img = game.sta.defaultImage;
});
Fixes #92 by simply removing the offending code block. This appears to be code that is no longer necessary, as default item images seem to be working fine to me. Foundry must have fixed the bug introduced in 2021 at some point!
If this does turn out to be necessary, the following update could be applied, instead. I don't know what the kind of object
sheetData.items
used to be (I'm assuming a regular Object), but the jQuery was tripped up by the switch to EmbeddedCollection.