forked from GitHub-Mirrors/foundry-sw5e
prior to revert
This commit is contained in:
parent
6d02f68608
commit
9742983db0
1 changed files with 1 additions and 0 deletions
|
@ -4,6 +4,7 @@ export default class CharacterImporter {
|
|||
// and insert new actor
|
||||
static async transform(rawCharacter){
|
||||
const sourceCharacter = JSON.parse(rawCharacter);
|
||||
|
||||
// v1 - just import the very basics: name, species, hp, ac and abilities
|
||||
const name = sourceCharacter.name;
|
||||
const species = sourceCharacter.attribs.find(o => o.name == "race").current;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue