Commit graph

390 commits

Author SHA1 Message Date
e30a7f9156 Make the attribute tab use a two-column layout for the lists 2026-04-25 20:49:00 -06:00
edceb5b384 Make the player sheet list use the inferred minimum and actually update the embedded document 2026-04-25 19:51:30 -06:00
d2599d0db3 Make it so preUpdate hooks can't violate my data model constraints 2026-04-25 19:39:25 -06:00
05dcb9afbd Prevent attributes with a min/max from going out of bounds during update 2026-04-25 19:38:53 -06:00
e8c73de6bd Implement the Attribute sheet for editing 2026-04-25 19:30:38 -06:00
599789ec13 Fix attribute schema allowing key to be nullable 2026-04-25 19:07:54 -06:00
7b127069b7 Get the basic listing of attributes for the tab 2026-04-25 15:31:24 -06:00
c2b2376699 Update the template paths to point at the right subfolder structure 2026-04-25 14:04:26 -06:00
c2d7b5786c Add localization string for the attribute item subtype 2026-04-25 14:02:27 -06:00
fdb55c42c5 Move the attribute tab files into a subfolder structure 2026-04-25 14:02:11 -06:00
0220083daf Move the tab-specific partials into a subfolder structure 2026-04-25 14:01:47 -06:00
bda5d05969 Prevent the attribute Items from getting invalid keys 2026-04-25 14:01:21 -06:00
3a7ffa4332 Consolidate both context menus into a single one 2026-04-23 21:24:54 -06:00
2cc43bd6e5 Remove unused import 2026-04-23 21:19:53 -06:00
5a4368b5e0 Fix bug causing sheets to not render when the actor has no attribute items 2026-04-23 21:19:18 -06:00
e9d92d3db1 Add the item UUID into the fieldset and add a context menu to edit/delete primary attributes 2026-04-23 21:18:57 -06:00
60d29adc3e Add placeholder tab template 2026-04-23 21:18:15 -06:00
6ccc10f897 Prevent attribute items from being embedded if there is already an attribute with the same key 2026-04-23 18:06:00 -06:00
f1499d1c3d Get started on the required infrastructure for the attributes tab 2026-04-23 17:48:22 -06:00
2c915c82e8 Fix a bug with the item groups having the formatted totalWeight instead of group-only weight 2026-04-23 17:20:12 -06:00
5073c972e8 Rip out the _preUpdate handling, it's complicated and messy to maintain 2026-04-23 17:04:17 -06:00
7970cb64c8 Add clamp utility 2026-04-23 17:03:15 -06:00
90447de742 Add _preUpdate handling to the player actor subtype to forward any attribute updates into the appropriate embedded item 2026-04-22 18:00:50 -06:00
b856708b93 Add isRange for an attribute item 2026-04-22 17:59:55 -06:00
f932c6d774 Add an EphemeralObjectField that only allows deleting itself from the db and showing up in diffs 2026-04-22 17:25:30 -06:00
12651938ed Prevent attribute Items from showing up in the Items tab of actor sheets 2026-04-21 23:39:14 -06:00
59d2d57ed7 Remove unused schema property 2026-04-21 17:43:32 -06:00
153f48a7c3 Improve cloning-detection in the preCreate hook so that we can ignore duplications for creating attribute items 2026-04-21 17:42:32 -06:00
71fce2c0ca Update the preCreate hook to create the attribute items if there are no items in the actor 2026-04-21 17:30:42 -06:00
3e1f14f957 Move the _preCreate logic into the Data Model instead of the Document 2026-04-21 17:23:28 -06:00
f558b08c75 Add a migration for the world setting to make it use an array of item schemas 2026-04-21 16:53:04 -06:00
6461057647 Lint the code that I fairly copy-pasted from draw-steel 2026-04-20 23:22:19 -06:00
3fff439483 Rename "operations" -> "worldOperations" to make it clearer what it's for 2026-04-20 23:20:58 -06:00
e087ba7d42 Make the JSON be valid and actually load in Foundry 2026-04-20 23:13:24 -06:00
4e1714ee93 Finish the one-time migration script for loading old worlds 2026-04-20 23:13:10 -06:00
6b6bb261f8 Remove unused code snippets 2026-04-20 23:02:30 -06:00
94cdea044b Bump the version for migration testing 2026-04-20 21:39:30 -06:00
9269a68aa6 Switch the TOF into a non-persisted ObjectField 2026-04-20 21:28:57 -06:00
11f9e407a3 Temporarily make it so that the attribute items don't cause the sheet to break during rendering 2026-04-20 21:28:07 -06:00
b0a3d972f0 Add committing of the db operations into the migration lifecycle 2026-04-20 21:25:48 -06:00
85e3838396 Add reference comment for the modifyBatch method 2026-04-19 23:43:12 -06:00
14f76e0a27 Begin working on the migration script upon world load for Actors 2026-04-19 23:41:49 -06:00
8f8da244c0 Add the Attribute item data model 2026-04-19 14:53:05 -06:00
debcf9d829 Add the attribute item type to the manifest 2026-04-19 14:20:28 -06:00
86ff3c9b79 Fix the tabActive for the content tab since we assert the selected tab on render 2026-04-14 20:47:44 -06:00
1f213a890a Merge pull request 'Item Support' (#69) from feature/item-support into main
Reviewed-on: #69
2026-04-15 02:42:52 +00:00
3ca1de9645 Remove unused css 2026-04-14 20:34:07 -06:00
1eebde246e Update --divider-color to --divider-colour 2026-04-14 20:29:20 -06:00
0e966f4b6a Make the comment read nicer 2026-04-12 22:42:20 -06:00
4bbca4e786 Remove the tabs partial from the removedParts set 2026-04-12 22:41:42 -06:00