-
-
Notifications
You must be signed in to change notification settings - Fork 680
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
Properly splits attack_ai() and attack_robot() where in make sense #11310
Properly splits attack_ai() and attack_robot() where in make sense #11310
Conversation
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
1 similar comment
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Seems generally fine, but wouldn't it make more sense to split it via function considering how AI and borgs are meant to have similar functions with borgs also getting the ability to use things physically. This would be something like
|
Believe it or not, there is some functionality unique to AIs, like being able to attack cyborgs, not being able to attack advanced camera consoles, a few more I forgot. Added |
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.
Seems like a good idea, hoping this is tested well and AI attacks won't start breaking
About The Pull Request
Properly splits the calls of
attack_ai()
andattack_robot()
into their own execution where it makes sense.Why It's Good For The Game
Looking through all the code in both
attack_ai()
andattack_robot()
, its execution was all over the place. Some timesattack_ai()
callsattack_robot()
and vice-versa, this properly untangles that execution so that we can now assume when we callattack_ai()
, its mob is actually an AI. When we callattack_robot()
, its mob is actually a cyborg. We can also call the parent now so thatCOMSIG_ATOM_ATTACK_AI
andCOMSIG_ATOM_ATTACK_ROBOT
can work (separate PR).Testing Photographs and Procedure
Screenshots&Videos
Tested it a bunch in private, and it compiles:
Changelog
🆑
code: Untangles attack_ai() and attack_robot() code
/:cl: