Skip to content

Commit

Permalink
1.11.16
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorako committed Feb 11, 2023
1 parent 35bce85 commit bbe108f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.11.16

- (Refinement) [Cuingamehtar] Spell area types are now localizable.

# 1.11.15

- (New) Remade the styling for the Combat Carousel module, removed the old misc. setting.
Expand Down
6 changes: 5 additions & 1 deletion modules/message-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,12 @@ function injectSpellInfo(html, spell) {
let areaInfo = document.createElement("p");
let areaInfoLabel = document.createElement("strong");
areaInfoLabel.textContent = i18n("PF2E.AreaLabel") + " ";
let areaType = spell?.system?.area?.type;
let areaTypeLabel = areaType
? i18n("PF2E.AreaType" + areaType.charAt(0).toUpperCase() + areaType.slice(1)).toLowerCase()
: "";
let areaValue = document.createElement("span");
areaValue.textContent = area + " " + i18n("PF2E.Foot").toLowerCase() + " " + spell?.system?.area?.type;
areaValue.textContent = area + " " + i18n("PF2E.Foot").toLowerCase() + " " + areaTypeLabel;
areaInfo.append(areaInfoLabel);
areaInfo.append(areaValue);
spellInfo.append(areaInfo);
Expand Down

0 comments on commit bbe108f

Please sign in to comment.