Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compound tech patching #280

Merged
merged 5 commits into from
Nov 19, 2022
Merged

Fix compound tech patching #280

merged 5 commits into from
Nov 19, 2022

Conversation

EldritchCarMaker
Copy link
Contributor

Changes made in this pull request

-fixed KnownTechPatcher from setting all CompoundTech dependencies to the most recently added ones
-added some comments, by request of Lee23 cause some of the syntax can be confusing
-reduced the code down to one foreach loop, rather than the previous three loops

-includes portions of old code commented out, I am hoping someone can test this further than I can and make sure it still works as intended, as this code does not seem to be necessary but it very well may be and I just haven't tested enough

Nagorrogan added 4 commits October 15, 2022 17:39
The patch previously set ALL compound techs to have the same dependencies as the most recently added one, this now properly sets the dependencies for each techtype individually
even purple didn't know why he used three loops for it
added back in code to change any existing compound tech dependencies, as I was unaware you could actually do that through smlhelper before
Copy link
Member

@Metious Metious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good overall. Left a suggestion with some comments and old code cleanup.

SMLHelper/Patchers/KnownTechPatcher.cs Outdated Show resolved Hide resolved
@Metious Metious merged commit baf3d4c into SubnauticaModding:dev Nov 19, 2022
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.

2 participants