-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
refactor: Moves simplemob atmos and temperature requirements to DCS elements. #25619
refactor: Moves simplemob atmos and temperature requirements to DCS elements. #25619
Conversation
Slimes and their cold weakness and fire affinity should probably be tested. I can see that possibly causing some weirdness. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Little nits, code generally looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just add the comments lewcc wanted
Co-authored-by: Luc <[email protected]> Signed-off-by: warriorstar-orion <[email protected]>
Ahh this conflicts with a bit of the MILLA changes. I'll look into it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, pending TM
This was TM'd for a round and this was runtime was happening quite a lot. Pulling the TM for now.
|
This PR has been marked as stale due to lack of activity, please continue working on the PR and/or address any comments within 7 days or we will have to close it. |
This was broken by #25972 which snuck in before it, I've been waiting for @chuga-git to pin down the issue. I'll do a merge master in the meantime. |
#26387 should fix runtimes here |
class components? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been on TM for awhile now after it was adjusted, with no reported issues. Looks good to me.
Signed-off-by: Burzah <[email protected]>
What Does This PR Do
This PR moves code for atmospherics and temperature changes for simplemobs to elements. As a refresher, elements are like components except every element is a singleton that the objects it's attached to shares. Bespoke elements allow for variance in initial arguments, making singletons for every unique set of arguments.
Why It's Good For The Game
This is part of the piecemeal port of TG's basic mobs. It decouples the logic of homeostasis from the basic mob implementation itself, making the mob implementation smaller. In our case, since we don't have basic mobs yet, I've used it to backwards refactor simplemobs as well. This allows us to make sure the code works before the rest of the port.
Images of changes
Examples of the same element being used by multiple mobs for each element type
Testing
In progress.
Changelog
NPFC