Commit graph

17 commits

Author SHA1 Message Date
143b0773e7 Add eslint workflow action and CONTRIBUTING.md that says to lint first 2024-02-17 20:16:00 -06:00
210c2290f0
Fix #9 2023-05-19 10:12:24 -05:00
f8095a9694 Made calculateMaxAffordable, calculateCost, and cost requirements interface a bit cleaner 2023-05-14 18:51:15 -05:00
f7f4d0aa9f Fix non-integrable requirements crashing in cost requirements with spendResources true
(Which should be valid in the event the dev doesn't want to maximize)
2023-04-22 17:59:09 -05:00
8806910f5e Resolving problems 2023-04-19 21:37:28 -05:00
632da10aca Make lazy proxies and options funcs pass along base object 2023-04-18 20:56:47 -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
cc1a2998e0 Make challenges use the requirements system 2023-04-02 19:22:23 -05:00
6e4c61155a Re-organize formulas for better readability/maintainability 2023-03-23 19:04:07 -05:00
5afb691b30 Fix more tests 2023-03-21 00:15:28 -05: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
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
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
3a4b15bd8f Implemented requirements system 2023-02-15 20:26:40 -06:00