Closed SalieriC closed 2 years ago
@SalieriC sorry it took me so long... :pray:
I'l merge this and another PR that was opened, and verify that this pile of code still works with the latest updates to Foundry/SWADE, then i'll create a new release :)
Adds two hooks on import:
Hooks.call("npcImporter-preCreateActor", actorData);
is thrown right before the import containing the actors data used to import.Hooks.call("npcImporter-ActorCreated", actors);
is thrown right after import containing the imported actror(s).Allows other module developers to use these hooks for editing the actor data as desired (i.e. adding images, changing bio, etc.) Worst case it's only useful for me and takes two lines of code.