@@ -66,6 +66,7 @@ class LMRTFY {
66
66
LMRTFY . abilityAbbreviations = CONFIG . DND5E . abilityAbbreviations ;
67
67
LMRTFY . modIdentifier = 'mod' ;
68
68
LMRTFY . abilityModifiers = LMRTFY . parseAbilityModifiers ( ) ;
69
+ LMRTFY . canFailChecks = true ;
69
70
break ;
70
71
71
72
case 'pf1' :
@@ -82,6 +83,7 @@ class LMRTFY {
82
83
LMRTFY . abilityAbbreviations = CONFIG . PF1 . abilitiesShort ;
83
84
LMRTFY . modIdentifier = 'mod' ;
84
85
LMRTFY . abilityModifiers = LMRTFY . parseAbilityModifiers ( ) ;
86
+ LMRTFY . canFailChecks = false ; // unsure if how and if system could handle this
85
87
break ;
86
88
87
89
case 'pf2e' :
@@ -98,6 +100,7 @@ class LMRTFY {
98
100
LMRTFY . abilityAbbreviations = CONFIG . PF2E . abilities ;
99
101
LMRTFY . modIdentifier = 'mod' ;
100
102
LMRTFY . abilityModifiers = LMRTFY . parseAbilityModifiers ( ) ;
103
+ LMRTFY . canFailChecks = false ; // unsure if how and if system could handle this
101
104
break ;
102
105
103
106
case 'D35E' :
@@ -114,6 +117,7 @@ class LMRTFY {
114
117
LMRTFY . abilityAbbreviations = CONFIG . D35E . abilityAbbreviations ;
115
118
LMRTFY . modIdentifier = 'mod' ;
116
119
LMRTFY . abilityModifiers = LMRTFY . parseAbilityModifiers ( ) ;
120
+ LMRTFY . canFailChecks = false ; // unsure if how and if system could handle this
117
121
break ;
118
122
119
123
case 'cof' :
@@ -129,6 +133,7 @@ class LMRTFY {
129
133
LMRTFY . abilityAbbreviations = CONFIG . COF . statAbbreviations ;
130
134
LMRTFY . modIdentifier = 'mod' ;
131
135
LMRTFY . abilityModifiers = LMRTFY . parseAbilityModifiers ( ) ;
136
+ LMRTFY . canFailChecks = false ; // unsure if how and if system could handle this
132
137
break ;
133
138
134
139
case 'coc' :
@@ -144,6 +149,7 @@ class LMRTFY {
144
149
LMRTFY . abilityAbbreviations = CONFIG . COC . statAbbreviations ;
145
150
LMRTFY . modIdentifier = 'mod' ;
146
151
LMRTFY . abilityModifiers = LMRTFY . parseAbilityModifiers ( ) ;
152
+ LMRTFY . canFailChecks = false ; // unsure if how and if system could handle this
147
153
break ;
148
154
149
155
case 'demonlord' :
@@ -162,6 +168,7 @@ class LMRTFY {
162
168
LMRTFY . abilityAbbreviations = abilities ;
163
169
LMRTFY . modIdentifier = 'modifier' ;
164
170
LMRTFY . abilityModifiers = { } ;
171
+ LMRTFY . canFailChecks = false ; // unsure if how and if system could handle this
165
172
break ;
166
173
167
174
case 'ose' :
@@ -180,6 +187,7 @@ class LMRTFY {
180
187
LMRTFY . specialRolls = { } ;
181
188
LMRTFY . modIdentifier = 'modifier' ;
182
189
LMRTFY . abilityModifiers = { } ;
190
+ LMRTFY . canFailChecks = false ; // unsure if how and if system could handle this
183
191
break ;
184
192
185
193
case 'foundry-chromatic-dungeons' :
@@ -191,13 +199,31 @@ class LMRTFY {
191
199
LMRTFY . skills = { } ;
192
200
LMRTFY . saves = CONFIG . CHROMATIC . saves ;
193
201
LMRTFY . specialRolls = { } ;
202
+ LMRTFY . canFailChecks = false ; // unsure if how and if system could handle this
194
203
break ;
195
204
196
205
default :
197
206
console . error ( 'LMRFTY | Unsupported system detected' ) ;
198
207
199
208
}
200
209
210
+ LMRTFY . d20Svg = '<svg class="lmrtfy-dice-svg-normal" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"' +
211
+ 'viewBox="0 0 64 64" style="enable-background:new 0 0 64 64;" xml:space="preserve">' +
212
+ '<g transform="translate(-246.69456,-375.66745)">' +
213
+ '<path d="M278.2,382.1c-0.1,0-0.2,0-0.3,0.1L264.8,398c-0.2,0.3-0.2,0.3,0.1,0.3l26.4-0.1c0.4,0,0.4,0,0.1-0.3l-13-15.8' +
214
+ 'C278.4,382.1,278.3,382.1,278.2,382.1L278.2,382.1z M280.7,383.5l11.9,14.5c0.2,0.2,0.2,0.2,0.5,0.1l6.3-2.9' +
215
+ 'c0.4-0.2,0.4-0.2,0.1-0.4L280.7,383.5z M275.2,384c0,0-0.1,0.1-0.3,0.2l-17.3,11.4l5.4,2.5c0.3,0.1,0.4,0.1,0.5-0.1l11.4-13.6' +
216
+ 'C275.1,384.1,275.2,384,275.2,384L275.2,384z M300.3,395.8c-0.1,0-0.1,0-0.3,0.1l-6.4,2.9c-0.2,0.1-0.2,0.2-0.1,0.4l7.5,19' +
217
+ 'l-0.5-22.1C300.4,395.9,300.4,395.8,300.3,395.8L300.3,395.8z M257.1,396.4l-0.7,21.5l6.3-18.6c0.1-0.3,0.1-0.3-0.1-0.4' +
218
+ 'L257.1,396.4L257.1,396.4z M291.6,399.2l-27,0.1c-0.4,0-0.4,0-0.2,0.3l13.7,23.1c0.2,0.4,0.2,0.3,0.4,0l13.2-23.2' +
219
+ 'C291.9,399.3,291.9,399.2,291.6,399.2L291.6,399.2z M292.7,399.8c0,0-0.1,0.1-0.1,0.2l-13.3,23.3c-0.1,0.2-0.2,0.3,0.2,0.3' +
220
+ 'l21.1-2.9c0.3-0.1,0.3-0.2,0.2-0.5l-7.9-20.2C292.7,399.9,292.7,399.8,292.7,399.8L292.7,399.8z M263.6,400c0,0,0,0.1-0.1,0.3' +
221
+ 'l-6.7,19.8c-0.1,0.4-0.1,0.6,0.3,0.7l20.1,2.9c0.4,0.1,0.3-0.1,0.2-0.3l-13.7-23.1C263.6,400,263.6,400,263.6,400L263.6,400z' +
222
+ 'M258.3,421.9l19.7,11.2c0.3,0.2,0.3,0.1,0.3-0.2l-0.4-7.9c0-0.3,0-0.4-0.3-0.4L258.3,421.9L258.3,421.9z M299.1,421.9l-20,2.8' +
223
+ 'c-0.3,0-0.2,0.2-0.2,0.4l0.4,8c0,0.2,0,0.3,0.3,0.2L299.1,421.9z"/>' +
224
+ '</g>' +
225
+ '</svg>'
226
+
201
227
if ( game . settings . get ( 'lmrtfy' , 'deselectOnRequestorRender' ) ) {
202
228
Hooks . on ( "renderLMRTFYRequestor" , ( ) => {
203
229
canvas . tokens . releaseAll ( ) ;
0 commit comments