Fixed character name being required for basic hashtags. Resolves #1

This commit is contained in:
raeleus 2024-09-22 23:38:55 -07:00
parent de7d28cfa8
commit 87b3485069
2 changed files with 1 additions and 4 deletions

View file

@ -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())
}

View file

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