Skip to content

More code optimizations, formatting issues, etc#8

Open
MeMyselfMirai wants to merge 5 commits intoPatcailMemer:mainfrom
MeMyselfMirai:main
Open

More code optimizations, formatting issues, etc#8
MeMyselfMirai wants to merge 5 commits intoPatcailMemer:mainfrom
MeMyselfMirai:main

Conversation

@MeMyselfMirai
Copy link
Contributor

I went through the code meticulously and changed a bunch of the code to make it look better. Notably, I removed a ton of redundant lines and later reformatted others such that they look better. Mainly, this involved spacing stuff, using type conditionals and spreading out massive object modifications into multiple lines of if statements, instead of just arbitrary .times with a ternary in it. This probably changed about 60% of the code. I also checked using an endgame save and nothing should break, but if you wanna test it, the code is hosted on https://anthios314.github.io/Time-Layers/

Changelog:
- used Arrow / Lambda notation to remove like 100 lines of code
- removed toggle.js (merged to script) and challenge.js (merged to layer 3)
- modified styles to shorten them.
I have no clue how many lines this eradicated.
Expanded all the functions so they look good and are readable at a glance.

Also centralized all the effects of the Physical layer upgrades, so they're all in one easily-reached place.
I changed the definition of "inGalChal(x)" so that it can take in any number of parameters, or none at all.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant