mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
Additional deadchat fixes (#25012)
* Additional deadchat fixes Fixes #25008. - People who are dead but not observers can hear deadchat. - Follow links will try to follow first, then attempt a turf jump, rather than always doing the turf jump. - By using coordinates rather than /ref it'll stop the malformed (F) links to jump to the turfs. * text2num is my friend
This commit is contained in:
@@ -671,12 +671,18 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
|
||||
var/atom/movable/target = locate(href_list["follow"])
|
||||
if(istype(target) && (target != src))
|
||||
ManualFollow(target)
|
||||
if(href_list["jump_to_turf"])
|
||||
var/turf/target = locate(href_list["jump_to_turf"])
|
||||
return
|
||||
if(href_list["x"] && href_list["y"] && href_list["z"])
|
||||
var/tx = text2num(href_list["x"])
|
||||
var/ty = text2num(href_list["y"])
|
||||
var/tz = text2num(href_list["z"])
|
||||
var/turf/target = locate(tx, ty, tz)
|
||||
if(istype(target))
|
||||
forceMove(target)
|
||||
return
|
||||
if(href_list["reenter"])
|
||||
reenter_corpse()
|
||||
return
|
||||
|
||||
//We don't want to update the current var
|
||||
//But we will still carry a mind.
|
||||
|
||||
Reference in New Issue
Block a user