Skip to content

Commit

Permalink
Merge pull request #107 from vtt-lair/fix/definedvar
Browse files Browse the repository at this point in the history
Fix/definedvar
  • Loading branch information
vtt-lair authored Oct 31, 2023
2 parents 180bd29 + dc5f091 commit a4b6770
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"type": "module",
"manifest": "https://github.com/MrPrimate/tokenizer/releases/download/latest/module.json",
"compatibility": {
"verified": "3.9.5"
"verified": "4.2.6"
}
}]
},
Expand All @@ -44,6 +44,6 @@
"changelog": "https://github.com/vtt-lair/token-replacer/blob/main/CHANGELOG.md",
"compatibility": {
"minimum": "10",
"verified": "10"
"verified": "11"
}
}
10 changes: 5 additions & 5 deletions scripts/token-replacer.js
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ const TokenReplacer = {
tr_tokenDirectory = DirectoryPicker.parse(game.settings.get("token-replacer", "tokenDirectory"))
}
tr_difficultyName = game.settings.get("token-replacer", "difficultyName");
if (game.version.substr(0, 2) == '10') {
if (game.version.substr(0, 2) == '10' || game.version.substr(0, 2) == '11') {
tr_difficultyVariable = game.settings.get("token-replacer", "difficultyVariable");

if (tr_difficultyVariable.startsWith('data.')) {
Expand Down Expand Up @@ -998,10 +998,10 @@ function createDefinedVariableList() {
case 'dnd5e':
case 'sw5e':
tr_definedVariableList = {
'data.details.cr': 'TR.DefinedList.CR',
'data.details.type.value': 'TR.DefinedList.Type',
'data.details.alignment': 'TR.DefinedList.Alignment',
'data.details.xp.value': 'TR.DefinedList.XP',
'details.cr': 'TR.DefinedList.CR',
'details.type.value': 'TR.DefinedList.Type',
'details.alignment': 'TR.DefinedList.Alignment',
'details.xp.value': 'TR.DefinedList.XP',
};
break;

Expand Down

0 comments on commit a4b6770

Please sign in to comment.