javalent / initiative-tracker

TTRPG Initiative Tracker for Obsidian.md
GNU General Public License v3.0
146 stars 30 forks source link

Updating Frontmatter for a PC makes the SideBar increment HP weirdly #225

Closed namtrah closed 12 months ago

namtrah commented 12 months ago

Check for existing bug reports before submitting.

Expected Behavior

When I change the HP in a characters MD frontmatter, I expect that the IT sidebar tracker would modify the value to what I set.

Current behaviour

It seems to increment the total HP randomly (or maybe adding the difference I made to the number) IDK. But it defintely doesn´t work.

Reproduction

Start an encounter in the IT Sidebar with a player whose HP/AC, etc values are updated through the frontmatter of a Note (which was previously correctly set).

Then update the frontmatter (via the Properties ⬆️ and ⬇️ keys.

The value (HP in this case) wildly differs.

Which Operating Systems are you using?

Obsidian Version Check

Obsidian version: v1.4.13   Installer version: v1.4.13

Plugin Version

12.1.4

Confirmation

Possible solution

No response

valentine195 commented 12 months ago

Fixed in #226