File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -221,7 +221,6 @@ export const Statblock5e: StatblockItem[] = [
221221 display : "Saves" ,
222222 properties : [ "saves" ] ,
223223 conditioned : true
224- /* dice: true */
225224 } ,
226225 {
227226 type : "saves" ,
@@ -317,17 +316,15 @@ return "";`
317316 id : nanoid ( ) ,
318317 properties : [ "traits" ] ,
319318 conditioned : true ,
320- dice : true ,
321- diceCallback : `return plugin.parseForDice(property);`
319+ dice : true
322320 } ,
323321 {
324322 type : "spells" ,
325323 id : nanoid ( ) ,
326324 properties : [ "spells" ] ,
327325 conditioned : true ,
328326
329- dice : true ,
330- diceCallback : `return plugin.parseForDice(property);`
327+ dice : true
331328 } ,
332329 {
333330 type : "traits" ,
@@ -336,8 +333,7 @@ return "";`
336333 heading : "Actions" ,
337334 conditioned : true ,
338335
339- dice : true ,
340- diceCallback : `return plugin.parseForDice(property);`
336+ dice : true
341337 } ,
342338 {
343339 type : "traits" ,
@@ -346,8 +342,7 @@ return "";`
346342 heading : "Legendary Actions" ,
347343 conditioned : true ,
348344
349- dice : true ,
350- diceCallback : `return plugin.parseForDice(property);`
345+ dice : true
351346 } ,
352347 {
353348 type : "traits" ,
@@ -356,8 +351,7 @@ return "";`
356351 heading : "Reactions" ,
357352 conditioned : true ,
358353
359- dice : true ,
360- diceCallback : `return plugin.parseForDice(property);`
354+ dice : true
361355 }
362356] ;
363357
Original file line number Diff line number Diff line change 4545 );
4646 console .error (e );
4747 }
48+ } else {
49+ const parsed = plugin .parseForDice (property );
50+ if (Array .isArray (parsed )) {
51+ split = parsed ;
52+ } else {
53+ split = [parsed ];
54+ }
4855 }
4956 }
5057 </script >
You can’t perform that action at this time.
0 commit comments