feat(gowlers-tracking-ledger): add source detection and change user to source column

- Replace 'User' column with 'Source' column in HP, XP, and Currency tabs
- Add automatic source detection: Attack, Spell, Healing, Damage, XP Award, Manual
- Pass options and change data to recordHistoryEntry for source detection
- Detects source based on pf1DamageData, healing flag, spell action type, and value changes
- Defaults to 'Manual' for direct edits
- Update version to 0.1.12

Now you can see what caused each stat change (attack, spell, healing, etc)
in the tracking ledger instead of just the user who made the change.

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
centron\schwoerer
2025-11-20 10:40:29 +01:00
parent 86fb09a867
commit dcbd76adb8
2 changed files with 28 additions and 8 deletions

View File

@@ -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.11",
"version": "0.1.12",
"authors": [
{ "name": "Gowler", "url": "https://foundryvtt.com" }
],