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:
coiax
2017-03-13 22:05:28 +13:00
committed by oranges
parent b7142770b9
commit 4b38a438de
3 changed files with 12 additions and 4 deletions
+8 -2
View File
@@ -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.