Add more things to the character sheet #83
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Now let me implement. Starting with the backend model:
Now the Foundry → Dragonroll mapper:
Now the frontend sheet — script section first:
Now the test file for the issue:
All 324 tests pass. Final review of the diff:
Everything is complete and verified. Final state of the work for issue #83:
Character sheet — new sections (
CharacterSheetWindow.vue)system.details.traittext or trait feats sync in, and text you write in Dragonroll is kept and travels with the actor snapshot.Sync (
actor-foundry.js, moduleapi.js)true,2,"base",[1,2],{value}), saving throws fromabilities.*.save,system.currency, and item images; the module resolves tool/language keys to their world labels before sending.Backend: the
Actormodel and/actor/updateacceptskills,savingThrows,tools,languages,currencyandinventory[].icon(lists deduped, currencies clamped, traits accept free text).Strings added to all three locales (en/es/ca); docs updated (character tabs, currency/icons, Foundry "What syncs").
Tests: new
tests/character-sheet-details.test.js(24 tests covering model, route, mapper edge cases, the module's actor snapshot, the sheet, and locale completeness); existing portrait-column fixtures adjusted. Full suite: 324/324 passing.Implementation is ready for review: #86
The automated implementation stopped because of an internal error. Please check the worker logs for details.