javalent / initiative-tracker

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

🐞 Reapplying conditions remove them #297

Open SondreElg opened 2 months ago

SondreElg commented 2 months ago

Check for existing bug reports before submitting.

Expected Behavior

Current behaviour

Reproduction

Which Operating Systems are you using?

Obsidian Version Check

1.6.7 and 1.7.0

Plugin Version

13.0.12

Confirmation

Possible solution

The current behaviour is technically intended, as it's hardcoded into src/tracker/stores/tracker.ts with corresponding logging behaviour. It is, however, confusing and a vestige from before we could remove conditions by crossing them out in the tracker itself.

Changing the behaviour would require rewriting most of the code in tracker.ts dealing with statuses.

Trantion897 commented 2 months ago

I'd just like to mention I've been working on a change that has similar effects, but haven't made a PR yet. My change displays the status values (in Pathfinder some statuses have a numeric value) on the player view, which meant I needed to do basically the same change you've done to distinguish between changing a status value or removing the status. I'll take a look at this change to try to minimise the chance of a merge conflict