diff --git a/Library.js b/Library.js index afb4f8d..50377a5 100644 --- a/Library.js +++ b/Library.js @@ -159,6 +159,7 @@ function calculateRoll(rolltext) { function getCharacter(characterName) { if (characterName == null) characterName = state.characterName + if (characterName == null) return null return state.characters.find((element) => element.name.toLowerCase() == characterName.toLowerCase()) } diff --git a/Output.js b/Output.js index b6e7d74..3f7d0b1 100644 --- a/Output.js +++ b/Output.js @@ -1,10 +1,6 @@ const modifier = (text) => { if (state.show == null) return { text } - if (state.characterName == null) { - text = " " - return { text } - } var character = getCharacter() var possessiveName = character == null ? null : getPossessiveName(character.name) var type = history[history.length - 1].type