Fixes runtimes caused by get_atom_on_turf and reverts an unintentional balance change to stabilized crossbreeds (#90500)

get_atom_on_turf would return the last movable in chain, even if it was
passed a type, which is not the behavior most people would expect and
thus had led to errors in multiple other segments of code. Additionally,
regardless of their storage depth which was an intentional limiter -
this restores said behavior.

- Closes #90498
- Closes #90497

Runtimes bad, and so are unintentional change to game's balance.

🆑
fix: Fixed runtimes caused by stabilized crossbreeds
fix: Fixed an unintentional buff to stabilized crossbreeds, they now
once again need to be put in your backpack or pockets.
/🆑
This commit is contained in:
SmArtKar
2025-04-29 17:49:04 -06:00
committed by Shadow-Quill
parent c8acbe095d
commit 8c3e6f2635
6 changed files with 30 additions and 9 deletions
@@ -126,7 +126,7 @@ GLOBAL_VAR_INIT(hhMysteryRoomNumber, rand(1, 999999))
to_chat(target, span_warning("You aren't able to activate \the [src] anymore!"))
// Has the user thrown it away or otherwise disposed of it such that it's no longer in their hands or in some storage connected to them?
// if(!(get_atom_on_turf(src, /mob) == user)) SKYRAT EDIT ORIGINAL
// if(get_atom_on_turf(src, /mob) != user) SKYRAT EDIT ORIGINAL
if(!Adjacent(user)) // SKYRAT EDIT -- Ghost Cafe Static Hilbertspawner
if(user == target)
to_chat(user, span_warning("\The [src] is no longer in your possession!"))