File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ export default class StatBlockPlugin extends Plugin {
8585 . getPlugin ( "obsidian-dice-roller" )
8686 . getRoller ( str , "statblock" , true ) ;
8787 return roller ;
88-
8988 }
9089 get sorted ( ) {
9190 if ( ! this . _sorted . length )
@@ -438,8 +437,8 @@ export default class StatBlockPlugin extends Plugin {
438437 let layout =
439438 this . settings . layouts . find (
440439 ( layout ) =>
441- layout . name == params ?. layout ||
442- layout . name == params ?. statblock
440+ layout . name == toBuild ?. layout ||
441+ layout . name == toBuild ?. statblock
443442 ) ?? this . defaultLayout ;
444443
445444 let statblock = new StatBlockRenderer (
Original file line number Diff line number Diff line change @@ -50,7 +50,8 @@ export default class StatBlockRenderer extends MarkdownRenderChild {
5050 return ;
5151 this . plugin . saveMonster ( {
5252 ...fastCopy ( this . monster ) ,
53- source : "Homebrew"
53+ source : "Homebrew" ,
54+ layout : this . layout . name
5455 } ) ;
5556 } ) ;
5657
You can’t perform that action at this time.
0 commit comments