Commit graph

105 commits

Author SHA1 Message Date
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
8e8c71224a Fix total resources increasing on load 2022-12-07 23:01:38 -06:00
36f064ebd7 Cleaned up NonPersistent typing 2022-12-06 08:06:35 -06:00
5fa2e521b2 Fixed resets 2022-12-06 08:06:31 -06:00
4207677944 Fix save data object redundancy
Note: Requires the use of noPersist quite a bit, but the console will tell you when you missed a spot
Also required breaking up events.ts due to cyclical dependencies
2022-12-06 00:22:32 -06:00
ad613d06d4 Fixed fonts causing shifts in Node positions on firefox 2022-08-22 08:52:51 -05:00
21eb5409b4 Added option to exponential modifiers to support low numbers 2022-08-22 08:51:53 -05:00
6323fa0879 Implemented createDismissableNotify 2022-07-27 22:59:03 -05:00
1976628b16 Fixed modifier typing 2022-07-26 19:52:24 -05:00
b397929c62 Made sequential modifiers lazy 2022-07-26 18:17:36 -05:00
1997f70699 Made modifiers lazy 2022-07-26 15:25:31 -05:00
fe865bff9d Add onLoad event 2022-07-21 19:23:50 -05:00
ba47847e39 Fix LayerData typing for handling arrays 2022-07-17 20:21:34 -05:00
8d1234a916 Documented /game 2022-07-15 01:17:01 -05:00
be96fcdd38 Fixed broken links 2022-07-10 03:00:08 -05:00
717f13ebe0 Fix typing errors 2022-07-10 02:20:51 -05:00
db304dea43 Cleaned up docs 2022-07-10 01:07:39 -05:00
21e739070d Documented game/layers.tsx 2022-07-10 00:43:34 -05:00
9828e5ec62 Document all the window augmentations 2022-07-09 22:09:25 -05:00
9370b0ed6f Improved typing for player.layers 2022-06-26 23:44:05 -05:00
ab81a140c9 Make all type-only imports explicit 2022-06-26 19:17:22 -05:00
7fe57798bb Switched from vue-cli-service to vite
Should be thoroughly tested still
Also involved removing operator overloads, which weren't good anyways
2022-06-25 22:34:18 -05:00
6411ee4e34 Replace isPlainObject 2022-06-23 11:31:10 -05:00
d123ed3feb Made resetTime more useful and various setup functions use BaseLayer 2022-05-23 23:34:59 -05:00
2568a8b3a0 Fixed links being in the wrong spot after above elements added/removed 2022-05-23 22:54:50 -05:00
1e6104a349 Fixed additive modifier description using + on negative modifiers 2022-05-23 22:54:40 -05:00
868a77af29 Saving is now always lz-string. saveEncoding renamed to exportEncoding.
exportEncoding only affects exports, and defaults to base64 so it's
obfuscated but doesn't have issues with being pasted in discord
2022-05-10 20:58:13 -05:00
521c0d1ea4 Wrote documentation for feature.ts
Also slightly cleaned up modifiers.tsx due to slightly new comment style
2022-05-10 20:04:08 -05:00
223b1cfcd4 Fix createModifierSection requiring revert and enabled properties 2022-05-10 08:10:56 -05:00
2d9de00424 Make nested player proxies of arrays as well as objects 2022-05-03 01:35:30 -05:00
eb1d394f04 Added periods to modifiers doc comments 2022-05-01 19:24:39 -05:00
b7789563e2 Made modifier constructors have more explicit typing 2022-05-01 19:24:12 -05:00