73d060aeaf
Fix some incorrect tags
2023-04-05 00:49:17 -05:00
804d48ae80
Fix cost requirement requiring spendResources
...
Also fixed it defaulting to false instead of true
2023-04-02 21:56:43 -05:00
3e0aafcf02
Make conversions use formulas
2023-04-02 20:30:08 -05:00
cc1a2998e0
Make challenges use the requirements system
2023-04-02 19:22:23 -05:00
7e7a36bb78
Add summedPurchases param for buy max utilities
2023-04-02 16:41:39 -05:00
8dc0c6c55c
All tests pass now
2023-04-02 15:02:43 -05:00
6f9b73d0e8
Add printFormula util
2023-04-02 00:48:48 -05:00
6115b6687d
Fixing more tests with integral rework
2023-04-02 00:33:11 -05:00
a91efffd5c
WIP integral rework
2023-04-01 15:55:17 -05:00
d7e2658304
Fix some tests
2023-03-23 20:59:41 -05:00
c3b5f2cdad
Throw error objects instead of strings
2023-03-23 20:22:03 -05:00
f589184c9e
Simplify alias definitions
2023-03-23 19:22:27 -05:00
6e4c61155a
Re-organize formulas for better readability/maintainability
2023-03-23 19:04:07 -05:00
3078584043
Rewrite integration to handle nested formulas properly
...
And more clearly defines which formulas are supported
2023-03-23 11:43:44 -05:00
5afb691b30
Fix more tests
2023-03-21 00:15:28 -05:00
d30cfe857f
Fix NaN checks
2023-02-22 21:03:47 -06:00
bb234ed852
Make persistence NaN check not activate if current value is NaN
2023-02-22 20:28:57 -06:00
fb02699cb0
Fix tests not running
2023-02-15 23:15:55 -06:00
832517d192
Potential fix for some tab weirdness
2023-02-15 22:27:01 -06:00
940fd4c2eb
Add minimizedDisplay
2023-02-15 22:14:14 -06:00
e0e325e048
Settings overhaul
2023-02-15 21:58:06 -06:00
4a28c2f8f9
Remove showIf and make visibility properties take booleans
2023-02-15 20:54:56 -06:00
fe25ea71b6
Add utilities for making common cost requirement pay functions
2023-02-15 20:36:00 -06:00
909c7a5f5e
Make modifier section take options func and display bad numbers in red
2023-02-15 20:35:01 -06:00
dcb3bc949d
Change buyMax to maximize on repeatables, and make requirements report ability to maximize
...
Also fixes up some of the requirements tests that weren't actually asserting
2023-02-15 20:33:53 -06:00
8987c0c69f
More test fixes
2023-02-15 20:32:30 -06:00
553c6a4554
Make clamping functions pass-throughs for inverting
2023-02-15 20:32:27 -06:00
fd925071e5
Fix some tests
2023-02-15 20:32:24 -06:00
de0e3f90b8
Updated formula typing for non-invertible params in invertible formulas
2023-02-15 20:32:10 -06:00
a88b1520e1
Further documented formulas
2023-02-15 20:32:03 -06:00
7282633767
Documented requirements.tsx
2023-02-15 20:32:00 -06:00
68702c5620
Make buyables support buying max
2023-02-15 20:31:56 -06:00
7eeb0318e2
Make requirements support buying max
2023-02-15 20:31:53 -06:00
757cfaa1ab
Make calculateMaxAffordable only accept spendResources values on supported formulas
2023-02-15 20:31:50 -06:00
536b3e0f17
Made maxAffordable be relative rather than absolute
2023-02-15 20:31:42 -06:00
4e9a0f6cb5
Add some more tests for nested formulas
2023-02-15 20:31:05 -06:00
aebf318f83
Lots of formula changes
...
Many tests fail and inverting integrals is basically non-functional because it just chains stuff
Will need to implement integration by parts and/or integration by substitution for that
2023-02-15 20:30:58 -06:00
30aec8a93c
Implement conditional formulas
2023-02-15 20:30:16 -06:00
675b30fdd0
Implement step-wise functions
2023-02-15 20:30:13 -06:00
773401069a
Made formulas comparable and more efficient
2023-02-15 20:30:10 -06:00
7593fea512
Fix some tests. Boy tests run slow
2023-02-15 20:29:46 -06:00
5f3dd1162d
Support variable anywhere in formula
2023-02-15 20:29:05 -06:00
c8283a7043
Formulas implementation (incomplete)
2023-02-15 20:28:44 -06:00
3a4b15bd8f
Implemented requirements system
2023-02-15 20:26:40 -06:00
f5a25b2c2d
Fix NaN detection
...
Also removes the proxy around player and cleaned up types
2023-02-15 20:21:26 -06:00
c1a66e6666
Tweak isPersistent typing
2023-02-15 20:13:13 -06:00
5498258700
Don't yell about deleted persistent refs
2022-12-23 11:46:09 -06:00
9b49aedccb
Add eslint rule for strict boolean expressions and fix linting issues
2022-12-20 21:33:23 -06:00
beb996803d
Made modifiers show small numbers
2022-12-14 21:26:21 -06:00
c40b80f60a
Update modifier displays
2022-12-10 02:24:14 -06:00