-
Notifications
You must be signed in to change notification settings - Fork 540
Directional Mech Bay Recharger Ports #37480
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
base: Bleeding-Edge
Are you sure you want to change the base?
Directional Mech Bay Recharger Ports #37480
Conversation
holy shit |
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.
Wild amount of map changes which makes me think you didn't edit the maps via StrongDMM using the TGS format. Need to revert the map changes then edit them properly.
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.
Move these to code/__HELPERS/angles_dirs.dm and just make them global procs
set category = "Object" | ||
set src in oview(1) | ||
|
||
if(src.anchored || usr:stat) |
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.
Instead of using the evil runtime search operator just check that usr is a mob then check the stat var on the mob directly.
What this does
Implements directional mech bay recharger ports and reworks the mech bay recharger trio of devices to better accommodate their behavior.
the mech bay now works on slightly different logic:
The console is responsible for linking between all 3 devices.
-The Link Devices function asks the user for directional input, then attempts to find a valid candidate at that location, either a port or station. If one is found, it will link to it and check to see if there is a valid port plus station combo (the port has to be facing the station otherwise its invalid)
There is a delink function that reverses all linkages.
maps have been updated. Mappers should use the autolink subclasses for the console in order to link the bay together at creation.
tl;dr
you can rearrange the mech recharge bay anyway as long as the port is facing the floor station. You use the console to link the devices together before you can charge the mech.
resolves #16062
[content]
Changelog
🆑