File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments