Commit graph

69 commits

Author SHA1 Message Date
714efeb4ab prevent error when trying to manage active effects on an owned item 2021-01-07 11:55:54 +01:00
e6b51c66a6 removed code duplication of item body from talent
- added  isPhysical boolean to getData output of item-sheet.ts
- added isPhysical checks for displays of physical-only information
  in templates
2021-01-06 16:10:56 +01:00
98f31d9e8c renamed talent property from talentRank to rank 2021-01-06 11:52:11 +01:00
17b5eee902 Apply 1 suggestion(s) to 1 file(s) 2021-01-06 11:36:06 +01:00
c98c64de1e Apply 1 suggestion(s) to 1 file(s) 2021-01-06 11:35:56 +01:00
150a0ea487 added talents overview and sheet
- added talents item type:
  - added scss
  - added to template.json (Item.types, Item.talent)
   - added to config.ts itemTypes
   - added type definition
- added localizations
- added talent overview tab to actor sheet
- made total rank calculated upon data preparation
  by adding a prepareData method to DS4Item
2021-01-06 01:24:37 +01:00
29d34daa9a added equipped and owner to item sheet
Additions:
- added equipped checkbox to item sheet
- added item owner to item properties list
- added some translations
- added some TODOs

Changes:
- item properties owner, equipped, quantity, storageLocation
  are only shown if item is owned by an actor
- moved item properties price and availability
  to details tab
- shortened ItemEquipped translation
- added item.actor and item.isOwned property values
  to data returned from DS4ItemSheet.getData
  (properties aren't accessible in Handlebars)
2020-12-31 01:17:52 +01:00
f2724a13a1 Merge branch 'master' into 004_equipment_tracking 2020-12-29 23:09:16 +01:00
082cd03b71 improve effects type checking 2020-12-29 00:33:43 +01:00
e0d8e42812 changed availability options to include "unset"
Additions:
- item availability "unset" (with localization)

Changes:
- item availability "none" -> "nowhere"

Fixes:
- fixed wrong default item availability in template.json
2020-12-28 21:44:47 +01:00
123c56a572 added storageLocation to item type definition 2020-12-28 20:01:58 +01:00
5a002b4cb4 Re-add todo. 2020-12-28 19:30:38 +01:00
1ef66a2023 Create types for items. 2020-12-28 18:24:13 +01:00
a84df2d80b Fix class name on jquery. 2020-12-28 17:44:30 +01:00
9385917edd Update to new data bindings, everythings an interface now. 2020-12-28 17:34:40 +01:00
d9440b27a6 Type-ify Actor. 2020-12-28 15:51:00 +01:00
2ba687eb14 add eslint and prettier 2020-12-23 18:23:26 +01:00
4f6a9b7e73 format files 2020-12-23 17:14:02 +01:00
d163fd27fe switch to using TypeScript 2020-12-23 16:52:20 +01:00