Commit graph

68 commits

Author SHA1 Message Date
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
1af51b3917 Merge remote-tracking branch 'origin/master' into 013-rollLibRefinements 2021-01-04 21:21:54 +01:00
e2a42aee4b Add docs, type clarifications. 2021-01-04 21:21:06 +01:00
9fba2d1385 Merge remote-tracking branch 'origin/master' into simplify-core-values 2021-01-04 20:29:09 +01:00
fc88ce6c52 Rename Test to check, etc., restructure calculation code. 2021-01-04 19:38:26 +01:00
7cb6080808 extract and simplify combat values to own component 2021-01-04 01:11:05 +01:00
6a12ba3938 extract and simplify attributes and traits 2021-01-04 00:55:44 +01:00
61beda7734 added number conversion in HTML value retrieval
Changes:
- number input fields now return numbers
- range elements removed since they are untested

Additions:
- added min and step specifiers to input fields associated to
  item number properties
- added a color hint for invalidity of
  item number input fields in actor sheet
2021-01-03 23:27:51 +01:00
ec404624c7 fixed type of HTML property name in _onItemChange 2021-01-03 22:40:01 +01:00
944907deb7 moved input el value retrieval to helper func 2021-01-03 22:26:36 +01:00
e2e9bca5fd fixed _onItem... handle param types in docstrings 2021-01-03 21:54:42 +01:00
fb780ae4c2 Merge branch 'master' into equip-items-in-character-sheet
now using cleaned up template
2021-01-03 21:14:11 +01:00
0721555c91 Merge branch 'adjust-licensing' into 'master'
adjust licensing

See merge request dungeonslayers/ds4!13
2021-01-03 16:54:36 +01:00
c26e4bab9f Changes as per review.
Missing:
 - Open discussion on "test value" renames
 - docs
 - open discussion on last-die-handling
2021-01-03 15:08:38 +01:00
c9b41e2d3f renamed item list templates
More precise names for:
- item overview list template for actor sheet
- inline templates in item overview list template
2021-01-03 00:08:21 +01:00
aaa10d7469 Add slaying dice behaviour. 2021-01-02 16:40:30 +01:00
55beeb92c9 Implement swapping edge case, restructure sources. 2021-01-02 16:12:16 +01:00
00f7e30b41 Fix option parsing for rolls. 2021-01-02 13:54:59 +01:00
75301b2c56 Bound to fail: Add slaying dice options and tests, no impl. 2021-01-02 13:16:08 +01:00
d8423ce364 data binding for owned item properties
Additions:
- now also text, number, and range input fields of owned items can
  be bound to HTML (input) elements of the char sheet

Changes:
- moved prototype handle for checkboxes to own function
- replaced some static HTML elements in item list with input fields
- item-num-val HTML elements (e.g. item quantity) now have a max-width
2021-01-01 19:26:52 +01:00
5d83e26e81 Merge branch 'master' into equip-items-in-character-sheet 2020-12-31 16:52:20 +01:00
c2c0b63b9c Merge branch 'master' into 012_equipped_flag 2020-12-31 15:07:11 +01:00
62e96641b9 remove unnecessary imports 2020-12-31 12:21:24 +01:00
61213d399e use getOwnedItem instead of getEmbeddedEntity 2020-12-31 12:20:32 +01:00
6fac2c597f make equip icon for items clickable in item list in character sheet 2020-12-31 12:10:59 +01:00
960b5a950a adjust licensing 2020-12-31 05:02:38 +01:00
6b18e720a1 Additional tests and features as per Request. 2020-12-31 02:27:21 +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
b569e5488e Add test for multiple rolls with min/max modifiers 2020-12-31 00:52:59 +01:00
c315742412 Add tests for standard mutli dice rolls. 2020-12-31 00:47:31 +01:00
b3c89b4d32 Add missing cases for test <20. 2020-12-30 23:03:08 +01:00
71a82e94a7 Merge remote-tracking branch 'origin/master' into 007-rollsLib 2020-12-30 22:20:51 +01:00
8d274ed830 Ruhu, Cleanups! 2020-12-30 21:50:12 +01:00
b56d58dd52 Apply 1 suggestion(s) to 1 file(s) 2020-12-30 21:34:12 +01:00
e0b65ca061 Make tests and implementation interact. 2020-12-30 21:28:22 +01:00
7800f0af8f Add recommendet plugins, fix lint stuff. 2020-12-30 17:50:01 +01:00
e7219ab81e add base info to character sheet 2020-12-30 15:02:21 +01:00
59fb033db8 adjust character data to consist of basic character data 2020-12-30 15:01:17 +01:00
9da168afa6 abbr for armor type&material in item overview
Additions:
- further abbreviations included in localization

Changes:
- now not full armor type / material expression displayed in char sheet,
  but only an abbreviation with tooltip
- description now smaller for weapon and armor
2020-12-30 01:03:06 +01:00
0b93f5ff9e replaced attack type str with icons in char sheet 2020-12-30 00:01:41 +01:00
f2724a13a1 Merge branch 'master' into 004_equipment_tracking 2020-12-29 23:09:16 +01:00
48d8d6e44d proper localization of item vals in char sheet
Additions:
- added TODOs
- added armor item list to char sheet
- proper overflow handling in tabs (now: scrollable)

Changes:
- proper localization of item values
- "Description" not abbreviated anymore
- cleaned up getData() of ActorSheet (data now truly const)
2020-12-29 19:06:17 +01:00
3ebd8cd177 Merge branch 'master' into 004_equipment_tracking 2020-12-29 16:14:51 +01:00
2ac6d3a919 working weapons section in char sheet
Additions:
- re-added getData() method of actor sheet for sorted items
- added an item-description CSS class for handling of overflow
- added a 1.5 CSS flex box

Changes:
- restricted previous sample items section to only weapons
  (to be re-used for other item types)

Fixes:
- fixed input types in weapon sheet
2020-12-29 01:44:54 +01:00
082cd03b71 improve effects type checking 2020-12-29 00:33:43 +01:00
10869a9648 fixed typo 2020-12-28 21:50:45 +01:00