Commit graph

646 commits

Author SHA1 Message Date
Seth Posner
c585a5d1b1 Merge remote-tracking branch 'upstream/main' 2023-02-25 16:50:39 -08:00
Seth Posner
691a68ecf2 Add decorators to decoratable features 2023-02-25 16:48:36 -08:00
be9a85c14e Include more assets in PWA precache 2023-02-25 11:35:27 -06:00
d30cfe857f Fix NaN checks 2023-02-22 21:03:47 -06:00
2affe53321 Fix tab buttons not showing glow 2023-02-22 20:29:01 -06:00
bb234ed852 Make persistence NaN check not activate if current value is NaN 2023-02-22 20:28:57 -06:00
1737bef5fc Make modals use foreground color 2023-02-22 20:25:50 -06:00
Seth Posner
40d2bcf55d Merge remote-tracking branch 'upstream/main' 2023-02-17 15:56:32 -08:00
Seth Posner
dafbcd5a6c Advanced Decorator first draft 2023-02-17 15:56:04 -08:00
922b138a5b Fix test 2023-02-16 20:30:39 -06:00
fb02699cb0 Fix tests not running 2023-02-15 23:15:55 -06:00
e6dd4bf332 Fix some Layer styling 2023-02-15 22:43:44 -06:00
aa1acf8d70 Fixed go back button sometimes appearing erroneously 2023-02-15 22:43:06 -06:00
cd36549cbe Don't set values on ref prop 2023-02-15 22:31:19 -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
d3f5e3bed7 Fix some merge issues 2023-02-15 21:08:10 -06:00
839baaf708 Update some VSC settings 2023-02-15 21:05:26 -06:00
c85e3a0096 Update package-lock.json 2023-02-15 20:58:53 -06:00
4a28c2f8f9 Remove showIf and make visibility properties take booleans 2023-02-15 20:54:56 -06:00
44be53d475 Add utility function for showing previews of how formulas will change 2023-02-15 20:54:32 -06:00
8bf68831b7 Add utility function for ETAs 2023-02-15 20:36:57 -06:00
7f4d57d3e4 Added incredibly dangerous deleteLowerSaves function to window 2023-02-15 20:36:08 -06:00
1bfa66e1c9 Add mouse/touch events to more onClicks 2023-02-15 20:36:04 -06:00
fe25ea71b6 Add utilities for making common cost requirement pay functions 2023-02-15 20:36:00 -06:00
3dd2d96567 Documented repeatables 2023-02-15 20:35:37 -06:00
cdce13480e Remove references to purchasing for repeatable 2023-02-15 20:35:08 -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
4fb2d90dbb buyMax -> maximize 2023-02-15 20:33:49 -06:00
712fcf7eb0 Rename repeatable.purchaseLimit to limit and initialValue to initialAmount 2023-02-15 20:33:46 -06:00
ccb8e76eaf Renamed buyables to repeatables 2023-02-15 20:33:32 -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
b3d61149c4 Fix some requirements tests 2023-02-15 20:32:14 -06:00
de0e3f90b8 Updated formula typing for non-invertible params in invertible formulas 2023-02-15 20:32:10 -06:00
a4d6c2e844 Added tests for requirements 2023-02-15 20:32:05 -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
b89c4cde09 Fix error about persistent value that isn't part of a layer 2023-02-15 20:31:46 -06:00
536b3e0f17 Made maxAffordable be relative rather than absolute 2023-02-15 20:31:42 -06:00
60625ec9a0 Update vitest 2023-02-15 20:31:29 -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
5293a2ba92 Added tests for custom formulas 2023-02-15 20:30:19 -06:00