prior to revert

This commit is contained in:
Mike Magarino 2021-01-24 17:01:49 -05:00
parent 6d02f68608
commit 9742983db0

View file

@ -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;