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
Stefan Zermatten
60ea545ee9
Started implementing constant property
2021-02-02 16:36:23 +02:00
Stefan Zermatten
aaa5d0b63b
Allowed effects and calculations to target nearest ancestors of #type
2021-02-02 16:11:59 +02:00
Stefan Zermatten
69c72e0987
Fixed parenthesis being discarded from compiled calculations in cases where they should not be
2021-02-02 15:13:49 +02:00
Stefan Zermatten
fa24430a7f
Fixed parsing of variable names with numbers and stacked dice rolls like dd8-> 1d(1d8)
2020-11-13 10:04:37 +02:00
Stefan Zermatten
fde2f821e7
Fixed parser not handling whitespace
2020-11-12 21:44:08 +02:00
Stefan Zermatten
2a1aa02e97
Added true and false keywords, fixed grammar ambiguity in if statements
2020-11-12 15:11:24 +02:00
Stefan Zermatten
aeb347084f
Fixed ambiguitiy in grammar caused by previous fixes
2020-11-12 13:47:10 +02:00
Stefan Zermatten
005bc162cb
Fixed != not being matched because ! was matched first. Fixed presedence for & | and relational operators
2020-11-12 13:45:14 +02:00
Stefan Zermatten
9941d91bb8
Fixed != operator, separated == and ===, != and !== for strictness control
2020-11-12 13:44:01 +02:00
Stefan Zermatten
3024168e95
Replaced old parser with new parser
2020-11-10 14:07:22 +02:00
Stefan Zermatten
1f0678b50b
Added not operator to the parser
2020-11-05 15:32:01 +02:00
Stefan Zermatten
4dad2c41e5
Updated parser to accept underscores in variable names
2020-11-05 14:50:44 +02:00
Stefan Zermatten
30cca39e7c
Merge branch 'version-2' of https://github.com/ThaumRystra/DiceCloud1 into version-2
2020-09-28 13:58:03 +02:00
Stefan Zermatten
f27550362a
Fixed various parser bugs, implemented unary operators
2020-09-18 22:13:12 +02:00
Stefan Zermatten
bc5c465a32
Started work on checks
2020-09-18 14:00:29 +02:00
Stefan Zermatten
c8ddf9d547
Added the ability to double all number of dice to roll using context
2020-09-18 12:24:08 +02:00