Skip to content

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

Open
wants to merge 4 commits into
base: Bleeding-Edge
from

Conversation

RealestEstate
Copy link
Contributor

@RealestEstate RealestEstate commented Mar 27, 2025

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.

charger-tetris

charger-tetris2

charger-gauntlet

resolves #16062
[content]

Changelog

🆑

  • rscadd: Mech bay recharge ports were given directional sprites.
  • rscadd: You can now rearrange the mech recharge bay any way you like as long as the recharge port is facing the floor station. You must use the console to link the devices together should you rearrange them.

@D3athrow-Issues D3athrow-Issues added the Content Adds something. Neat! label Mar 27, 2025
@SonixApache
Copy link
Contributor

SonixApache commented Mar 28, 2025

holy shit
all we need now is to make that floor charger not have the tile background and we'll be golden

Copy link
Collaborator

@west3436 west3436 left a 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.

Copy link
Collaborator

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)
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content Adds something. Neat!