Commit graph

9 commits

Author SHA1 Message Date
Matt Smith
786d4095a9 8: Add rolls to items on actor sheets
- Utilized the revisions made to roll syntax to allow for rollable
  buttons on item lists on actor sheets. Rolls are evaluated using
  `@items.ITEM.KEY`, where ITEM is the item name (slugified), and KEY is
  an attribute key for a formula attribute.
2020-08-09 16:37:16 -05:00
Matt Smith
7c676b14ee 9: Add formula (derived) attributes
- Added a new "Formula" attribute type for both actors and items.
- When iterating through attributes, formula attributes are noted in an
  array so that they can be iterated through in a second pass to
  evaluate their referenced attributes. The second iteration just
  handles attribute replacement rather than rolling the formula, that's
  deferred until the attributes are used in an actual roll formula.
- Items also have the same behavior. If an attribute isn't on the item,
  it will fall back to check the parent actor instead.
- Likely areas with issues would be formula attributes that reference
  other formula attributes, or item formula attributes that reference
  actor formula attributes.
2020-08-06 23:21:15 -05:00
Andrew
d66a64b939 Update the Simple Worldbuilding system for compatibility with 0.5.6 2020-05-12 18:08:48 -07:00
Andrew
d405a18f53 Improve Simple Worldbuilding sheet layout and macro syntax 2020-04-18 16:14:51 -07:00
Andrew
57b5be22dc Update SWB system for FVTT version 0.5.2 2020-03-30 20:49:30 -07:00
Andrew
be0c47da58 Display an error if trying to save custom attributes with dot notation 2019-11-20 20:45:33 -08:00
Andrew
96b677434b Remove usage of fromEntries 2019-11-18 21:44:02 -08:00
Andrew
fc8331c13c Remove public prefix from system template paths. 2019-11-14 16:42:16 -08:00
Andrew
f8c8e8c731 Initial commit of simple worldbuilding system to standalone repo 2019-11-13 19:39:05 -08:00