Skip to content

Commit af1aea8

Browse files
committed
remove manual chat card option
1 parent 5024b9e commit af1aea8

2 files changed

Lines changed: 0 additions & 27 deletions

File tree

src/hooks/init.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -274,16 +274,6 @@ export default function() {
274274
type: Boolean
275275
});
276276

277-
// Register Manual Chat Cards
278-
game.settings.register("wfrp4e", "manualChatCards", {
279-
name: "SETTINGS.ManualChatCards",
280-
hint: "SETTINGS.ManualChatCardsHint",
281-
scope: "client",
282-
config: true,
283-
default: false,
284-
type: Boolean
285-
});
286-
287277
game.settings.register("wfrp4e", "weaponLength", {
288278
name: "SETTINGS.WeaponLength",
289279
hint: "SETTINGS.WeaponLengthHint",

src/system/rolls/test-wfrp4e.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -860,10 +860,6 @@ export default class TestWFRP extends WarhammerTestBase {
860860

861861
this.result.breakdown.formatted = this.formatBreakdown()
862862

863-
// Blank if manual chat cards
864-
if (game.settings.get("wfrp4e", "manualChatCards") && !this.message)
865-
this.result.roll = this.result.SL = null;
866-
867863
if (game.modules.get("dice-so-nice") && game.modules.get("dice-so-nice").active && messageData.sound?.includes("dice"))
868864
messageData.sound = undefined;
869865

@@ -882,19 +878,6 @@ export default class TestWFRP extends WarhammerTestBase {
882878
let html = await foundry.applications.handlebars.renderTemplate(messageData.template, templateData)
883879

884880
if (newMessage || !this.message) {
885-
// If manual chat cards, convert elements to blank inputs
886-
if (game.settings.get("wfrp4e", "manualChatCards")) {
887-
let blank = $(html)
888-
let elementsToToggle = blank.find(".display-toggle")
889-
890-
for (let elem of elementsToToggle) {
891-
if (elem.style.display == "none")
892-
elem.style.display = ""
893-
else
894-
elem.style.display = "none"
895-
}
896-
html = blank.html();
897-
}
898881

899882
messageData.content = html;
900883
if (messageData.sound)

0 commit comments

Comments
 (0)