Commit Graph

16 Commits

Author SHA1 Message Date
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
metalgearsloth dffd55c64e
Revert "Fix scram implant's teleportation out of containers" (#25030)
* Revert "Fix scram implant's teleportation out of containers (#24827)"

This reverts commit d4434dbb5e586544a5dbd067a3fee4a6bd4e9e89.

* Remove EntityQuery<T> pass-ins

(cherry picked from commit d215419f9ac6108185b724e40185d2cf27f7a749)
2024-04-07 14:12:59 +02:00
nikthechampiongr 4b8355840b
Fix scram! implant keeping you pulled to someone when teleporting you (#26309)
* Fix scram! implant keeping you pulled to someone when teleporting you

* Exorcise sleep deprivation speak

(cherry picked from commit eb80d9752e0309f8485478a43bcba6fb15fc3711)
2024-03-24 00:08:04 +01:00
Tayrtahn 3dd5dcadc5
Code cleanup: Purge calls to obsolete EntityCoordinates methods (#26292)
* Purge calls to obsolete EntityCoordinates methods

* Pizza defruited; rerun those tests!

(cherry picked from commit f4cb02fb0ca385c858569c07c51afb0d24ade949)
2024-03-24 00:07:58 +01:00
Kot 2d684f3c1a
Fix scram implant's teleportation out of containers (#24827)
* Fix scram teleportation out of containers

* re-run ci

* Use AttachToGridOrMap method

(cherry picked from commit d4434dbb5e586544a5dbd067a3fee4a6bd4e9e89)
2024-02-08 12:41:40 +01:00
Ilya246 7af4338deb
scram implant (#23122)
* implement

* fix charges

* add listing

* fixes

* fix locale, probably all done

* fix

* fix of fix

* move query init

* cleanup

* unbrokey rt

(cherry picked from commit ca529178e23c571290c5d29bfa2486ebf33d4771)
2024-01-26 21:37:33 +01:00
Tomás Alves 3d05b306cb Change Biometrics after using Dna Scrambler Implant (#22098) 2023-12-16 19:18:42 +01:00
Nemanja 2f2df5c74b
Fix DNA scrambler (#19079) 2023-08-13 12:56:21 -04:00
Arendian a39b3eddbd
New implanters for uplink (#18038)
* New implants for uplink

* made changes based on reviews

* was meant to be 3
2023-07-17 13:48:09 -06:00
Leon Friedrich 677ef07aa2
Misc implant fixes (#17172) 2023-06-06 21:53:11 -06:00
deltanedas 2eaec2d528
Add uplink implant (#15728)
Co-authored-by: deltanedas <@deltanedas:kde.org>
2023-04-29 19:07:50 +10:00
Mr0maks bca82315c1
Fix freedom implant charges (#14737) 2023-03-24 14:07:20 +11:00
Nemanja 49f7575298
Cuffable/Handcuff ECS (#14382) 2023-03-13 19:34:26 -04:00
Jezithyr eeb5b17b34
Mobstate Refactor (#13389)
Refactors mobstate and moves mob health thresholds to their own component

Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com>
2023-01-13 16:57:10 -08:00
keronshb 21c1cb57ce
Makes adjustment to macro bomb implants and how mobstate trigger handles suicide (#12682) 2022-11-20 20:51:44 -06:00
keronshb 671324bef8
Implanters and Subdermal Implants (#11840)
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
2022-11-20 17:49:37 +11:00