fix(gowlers-tracking-ledger): preserve value sign for correct damage classification
- Fix critical bug where damage was classified as 'Healing' instead of 'Damage' - Changed queue storage to preserve sign of value (negative=damage, positive=healing) - This allows buildSourceLabel() to correctly classify HP changes as damage vs healing - Update version to 0.1.18 The issue was storing Math.abs(value) which stripped the sign. Now storing raw value so that damage classification logic can use: value < 0 ? "Damage" : "Healing" 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
"type": "module",
|
||||
"title": "Gowler's Tracking Ledger",
|
||||
"description": "Adds HP/XP/Currency log buttons to PF1 sheets and opens the tracking dialog preloaded with the actor's logs.",
|
||||
"version": "0.1.13",
|
||||
"version": "0.1.18",
|
||||
"authors": [
|
||||
{ "name": "Gowler", "url": "https://foundryvtt.com" }
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user