ThaumRystra
3ba603407e
Merge feature-nested-sets into develop
2023-12-18 18:27:17 +02:00
Thaum Rystra
6162f2fe90
Failed attempt at using method calls to manage awaited method
2023-11-14 13:55:17 +02:00
ThaumRystra
d578268e99
Disabled migration testing
...
re-enable when merging feature-nested-sets
2023-11-11 13:39:43 +02:00
ThaumRystra
fbc8ed977a
Added commutative simplification for + and *
2023-11-11 13:31:31 +02:00
ThaumRystra
6e0364b636
Merge branch 'develop' into feature-nested-sets
2023-11-11 10:01:34 +02:00
ThaumRystra
84edd74ff3
Allowed accessing of constant arrays from accessor
2023-11-09 23:04:40 +02:00
ThaumRystra
c25dcc0a09
Removed Symbol parse node
...
Too much overlap with accessors, so now
all symbols are a special case of accessors
2023-11-09 23:04:18 +02:00
Thaum Rystra
9e5b6b11e1
Settling on a data structure to balance compatibility
...
with not being wrong
2023-11-09 16:08:04 +02:00
ThaumRystra
6ce7542c4b
Changed aggregation schema of computed fields
2023-11-01 11:12:18 +02:00
ThaumRystra
ece4a9391a
Removed .js from all imports to smooth ts migration
2023-09-28 21:27:05 +02:00
Thaum Rystra
3a3deca867
Removed x not found, set to 0 info messages from parser
2023-09-20 12:51:15 +02:00
Katrina Scialdone
6ecfaa9df5
Fix erroring functions causing a compile error
...
If a function's implementation creates a Javascript error, it would return as a compile error due to the `error` variable being shadowed internally by this try-catch. This commit fixes that, as well as clarifies the fixed error messages with "internal error".
2023-09-04 18:23:24 -06:00
Stefan Zermatten
d578a87632
parser fix for chain indexing into nested arrays
...
`[ [‘a1’, ‘a2’ ], [‘b1’, ‘b2’] ][2][1]` => `'b1'`
2023-08-24 12:29:44 +02:00
Stefan Zermatten
b9588c83b1
Added dice functions to parse engine
2023-04-01 11:27:52 +02:00
Stefan Zermatten
deca9786b9
Fixed grammar to account for d8 not being a name
2023-01-31 20:55:35 +02:00
Stefan Zermatten
67da641244
Migrated internal variables to ~ prefix
2023-01-31 20:36:26 +02:00
Stefan Zermatten
5108b32624
Added line breaks in parser strings
...
Actual line breaks and \n both work
2022-11-20 00:19:41 +02:00
Stefan Zermatten
aa8f2d230d
Hunted the last of the \t's to extinction
2022-10-09 16:56:28 +02:00
Stefan Zermatten
2fa913b09a
Applied style rules to genocide all \t characters
2022-10-09 16:01:36 +02:00
Stefan Zermatten
dbc5f7253f
Finished basic docs
2022-09-05 14:36:39 +02:00
Stefan Zermatten
78cd8ffc8d
Creatures are now cached in memory for computation
...
Also removed dependency group calculation because the optimisation isn't
as useful to reduce DB calls if the creature is in memory anyway
2022-05-11 13:30:33 +02:00
Stefan Zermatten
3a18bce7e6
Added error message for unsupported accessors
2022-05-01 22:54:30 +02:00
Stefan Zermatten
dcc95486b3
fixed parser error when using incorrect call args
2022-04-21 10:59:19 +02:00
Stefan Zermatten
49fa9cc470
Fixed parser to allow $ and x.0.thing in variable references
2022-02-26 19:36:56 +02:00
Stefan Zermatten
59c69a46a8
Attacks can now be rolled with advantage from the stats tab
...
TODO the action viewer as well still
2022-02-25 13:44:09 +02:00
Stefan Zermatten
5b6bff91a4
Added resolve function to allow users to force a calculation to reduce
2022-02-23 12:58:12 +02:00
Stefan Zermatten
78c67a4fd6
Fixed incorrect use of parser toString in places
2022-02-23 11:07:02 +02:00
Stefan Zermatten
90b277e181
Fixed not operator !working
2022-02-22 19:16:03 +02:00
Stefan Zermatten
80460ceaed
Fixed not found calculation warnings showing [object Object]
...
They were using the wrong "toString" method
2022-02-22 18:02:57 +02:00
Stefan Zermatten
378da71f5d
Effects targeting calculations by tag now work in the engine and actions
2022-02-15 15:59:41 +02:00
Stefan Zermatten
6e22e4286f
Fixed referencing variable.description in a calculation
...
Whether the description's inline calculations are calculated or not is
not defined.
2021-12-08 09:23:29 +02:00
Stefan Zermatten
bc6c857b6b
UI work to improve look and feel of Viewers
2021-10-17 23:28:39 +02:00
Stefan Zermatten
ea68cdf86f
Migrating UI for new data structures
2021-10-15 11:12:40 +02:00
Stefan Zermatten
0cdec4a429
Start of action system re-write
2021-10-09 12:36:06 +02:00
Stefan Zermatten
1a14393031
Parsed calculations are now cached between calculations
...
Parsing is one of the more expensive computations done to characters, so
the parser results are now stored on the DB and only updated if they are
dirty. A hash is used to determine if the calculation has changed since
the last computation
2021-10-03 20:59:04 +02:00
Stefan Zermatten
c2d430ad23
Fixed tableLookup returning string instead of number
2021-10-03 19:21:35 +02:00
Stefan Zermatten
b78517b61f
Finished migrating parser to be object orientation free. All tests pass
2021-10-03 13:54:17 +02:00
Stefan Zermatten
feffa45cf7
Began work on rewriting parser without object orientation
...
Parsing is expensive, if the parse tree can be stored on the DB it can
save a lot of compute time, but mongo can't store Classes, so we
re-write without classes
2021-10-01 13:41:22 +02:00
Stefan Zermatten
e63dd2560a
tested and fixed constant node computations
2021-09-23 12:03:25 +02:00
Stefan Zermatten
5c84836238
More engine rewrite progress, starting to get messy again
2021-09-13 16:12:04 +02:00
Stefan Zermatten
e21586e9ce
Added reasonable storage limits to most string and array schemas
2021-08-10 18:12:55 +02:00
Stefan Zermatten
1f633621b7
Fixed a bug with functions accepting rolled arguments
2021-04-22 15:59:12 +02:00
Stefan Zermatten
3c26bb2fc6
Reworked log data format, overhauled snackbar
2021-03-28 12:31:39 +02:00
Stefan Zermatten
574f8373e7
Fixed crash when indexing a non-array node, added more array node errors
2021-03-01 14:47:46 +02:00
Stefan Zermatten
e11ab39864
Added tableLookup function
2021-02-24 11:57:40 +02:00
Stefan Zermatten
2b345c1f77
Improved error handling for most calculations
2021-02-12 11:00:44 +02:00
Stefan Zermatten
439eadf079
Condensed logs to a single card per action
2021-02-11 15:48:23 +02:00
Stefan Zermatten
3313ed0297
Added constants to the UI and Computation Engine
2021-02-11 13:03:31 +02:00
Stefan Zermatten
9ff096ec0f
Added modulo operator
2021-02-03 09:33:00 +02:00
Stefan Zermatten
f9f0186d95
Fixed error where parser was not creating accessor nodes correctly
2021-02-03 00:39:11 +02:00