Load ParentTemplatesystem from Persistence and assign to Character
All checks were successful
E2E Testing / test (push) Successful in 1m32s

This commit is contained in:
Sebastian Böckelmann 2024-04-13 07:42:55 +02:00
parent bf8324bf16
commit 40a05495c6

View File

@ -28,7 +28,8 @@ export class CharacterParser {
private parseSingleCharacter(characterData: any): Character {
const character = new Character(characterData.componentName, characterData.componentDescription);
character.characterSpecificGamesystems = this.parseCharacterSpecificGamesystems(character, characterData.characterSpecificGamesystems);
const templateSpecificGamesystems = this.parseCharacterSpecificGamesystems(character, characterData.characterSpecificGamesystems);
templateSpecificGamesystems.forEach(system => character.addCharacterSpecificGamesystem(system))
return character;
}