arnonram / swade-npc-importer

Savage Worlds Stat-block importer for FoundryVTT
7 stars 8 forks source link

Render sheet option #116

Closed SalieriC closed 2 years ago

SalieriC commented 2 years ago

This introduces a new setting that - if activated - renders the sheet of the new actor after importing. Foundry returns an array after creating. The importer however does not make use of the ability to create multiple actors at once. For this reason, I use actor[0].sheet.render(true) atm. Should the importer be changed to allow for batch importing, the code should be changed to either a loop or (what I'd preferably do) to not render any sheets to prevent opening of lots of sheets (which is known to slow down FVTT).