This repository has been archived by the owner on Sep 8, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Original PR: BeeStation/BeeStation-Hornet#7587
Original PR: BeeStation/NSV13/pull/1983
About The Pull Request
Ports the Bot Multi-Z Movement from NSV13
While this PR is no doubt useless for Beestation, given how they are using a single z-level station, it might be of use for downstreams who do use multi-z stations.
While this PR is capable of being used on any ship that has a bot elevator on it, if the AI is the one doing the summoning, however it can't do the Multi-Z Patrol thing just yet, as that requires all ships to have their navigation beacons reprogrammed from going in one big loop to instead going from destination to destination and then finally up a ladder, after which the next deck will also need a route that has a navigation beacon programmed to make the bot go downwards.
(This can easily be implemented by copying over the location name of a beacon downstairs, as the next_patrol destination of some navbeacon upstairs)
Ports some of the code introduced by this PR: tgstation/tgstation/pull/65906
Full credit for the code used to find the closest ladder goes to cacogen.
Although the code has been modified
Second of all!
Some bots, possibly all of them, are now capable of moving between Z-levels if one of the following conditions are met:
Third of all!
The Bot Elevators
They're currently using a temporary upside down version of the bin icon from the mining folder and act the same as ladders except for only being usable by bots, these things are created because coughMoisturizercough wanted ladders for bots only.
Anyways for any future mappers reading this, basically just do the same thing you do with ladders for these things.
Currently only the Atlas has a somewhat semi-working patrol network, although it sometimes gets stuck upstairs if the bot originally started its route on the navigation beacon outside the Head of Security's office.
And now for the horrible, horrible reveal, these bots are using KNPC Z-level travel to be capable of doing this stuff.
Why It's Good For The Game
Bot uses bot elevators. Bot is now advanced boi.
Changelog
🆑
add: Added the ability for bots to go up and down bot elevators.
add: Added the ability for bots to find a route to another Z-level if called to it.
add: Added the ability for bots to have a patrol route going downstairs or upstairs using bot elevators.
add: Added the ability for bots to be summoned using a PDA on another z-level.
add: Added the ability for mulebots to travel between Z-levels.
add: Added the ability to summon bots from other station Z-levels in the bot control computer program
/:cl: