Thaum Rystra
5141704e23
Fixed failing tests and action engine props
2024-02-22 09:11:00 +02:00
Thaum Rystra
b41d26b3ad
Fixed failing tests, tested parser more
2024-02-21 10:36:32 +02:00
Thaum Rystra
ac15512bc5
Typescript all the parser things
2024-02-20 23:21:12 +02:00
Thaum Rystra
55a6b16c31
Fixed failing action engine tests, moved more engine parts to ts
2024-02-19 15:39:16 +02:00
Thaum Rystra
c721374278
Moved parser to typescript
2024-02-19 12:45:54 +02:00
Thaum Rystra
5b7d352323
Started splitting engine tests into individual files and testing action props
2024-02-16 16:16:18 +02:00
Thaum Rystra
aee9d6b8cb
refactored action engine into individual files
2024-02-16 10:30:50 +02:00
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
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
b9588c83b1
Added dice functions to parse engine
2023-04-01 11:27:52 +02:00
Stefan Zermatten
2fa913b09a
Applied style rules to genocide all \t characters
2022-10-09 16:01:36 +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
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
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
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
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
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