Delta-v/Content.Server/Implants
nikthechampiongr 725c177ad2
Replace the teleportation logic on the SCRAM implant! (#26429)
* Replace the teleportation logic on the SCRAM implant!

Now instead of just trying to pick a random tile in range 20 times, the
scram teleportation logic now:

- Gets a list of grids in range
- Until a suitable tile is picked it picks a random grid
- From that grid it picks a random tile.
- If the tile is suitable, then it is set as the target and the user
  will be teleported there.
- Grids and tiles are randomly picked as outlined above until a valid
  tile is found, or all valid grids and tiles are exhausted.
- Should no suitable tile be found then they get teleported to the same
  position they are at. Effectively not teleporting them.

* Actually make the defaults sane which I forgor in the last commit

* Extract tile section to its own function. Bias selection for current grid. Use proper coords for box.

* Address reviews as much as possible

* Address reviews

(cherry picked from commit 2ffd616c41b548e8fcd869dca7e980ffc6e384b1)
2024-04-07 14:27:05 +02:00
..
Components Replace the teleportation logic on the SCRAM implant! (#26429) 2024-04-07 14:27:05 +02:00
AutoImplantSystem.cs ninja 2 electric boogaloo (#15534) 2023-09-10 16:20:27 +10:00
ImplantedSystem.cs Implanters and Subdermal Implants (#11840) 2022-11-20 17:49:37 +11:00
ImplanterSystem.cs Make all implants unable to be implanted more than once (#26250) 2024-03-27 18:38:11 +01:00
SubdermalImplantSystem.cs Replace the teleportation logic on the SCRAM implant! (#26429) 2024-04-07 14:27:05 +02:00