javalent / fantasy-statblocks

Create Dungeons and Dragons style statblocks for Obsidian.md
MIT License
348 stars 72 forks source link

[Bug]: "monster" field overwrites "name" field #243

Closed Tamei closed 1 year ago

Tamei commented 1 year ago

Check for existing bug reports before submitting.

Expected Behavior

The following code sould render a statblock containing all stats of an "Undead", but with the name "Bloated Corpse":

```statblock
monster: Undead
name: Bloated Corpse
```

The "Undead" is available in the Bestiary:

Screenshot 2023-07-14 185846

Current behaviour

The statblock gets rendered and instead of "Bloated Corpse", the name gets set to "Undead":

grafik

Reproduction

  1. Make sure that you have a folder configured to automatically scan for Bestiary entries in
  2. Create a new note with name A in this folder and paste the following text into it:
    ---
    statblock: true
    name: A
    ---
  3. Open the settings of the plugin and make sure that A was added to the bestiary
  4. Create a new note with name B outside the folder and paste the following text into it:
    ```statblock
    monster: A
    name: B
    ```
  5. The statblock is not rendered with name B but A.

Which Operating Systems are you using?

Obsidian Version Check

1.3.5

Plugin Version

3.6.7

Confirmation

Possible solution

No response

sigrunixia commented 1 year ago

This is afflicted by the same bug as #224 and #228. Tracking.