From ba271e168b60922019f99d183cacdc9b5749867a Mon Sep 17 00:00:00 2001 From: PrismaticGynoid Date: Sun, 3 Dec 2017 14:17:56 -0800 Subject: [PATCH] Ports check_radiation verb for ghosts From https://github.com/Baystation12/Baystation12/pull/19390 . Ghosts now have a check radiation verb they can use to see the radiation level of where they're standing, similar to geiger counters. Tested in every scenario involving radiation I could think of, and it works just fine. --- code/modules/mob/dead/observer/observer.dm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/code/modules/mob/dead/observer/observer.dm b/code/modules/mob/dead/observer/observer.dm index 52426454e22..94ef741df97 100644 --- a/code/modules/mob/dead/observer/observer.dm +++ b/code/modules/mob/dead/observer/observer.dm @@ -501,6 +501,16 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp src << "Temperature: [round(environment.temperature-T0C,0.1)]°C ([round(environment.temperature,0.1)]K)" src << "Heat Capacity: [round(environment.heat_capacity(),0.1)]" +/mob/observer/dead/verb/check_radiation() + set name = "Check Radiation" + set category = "Ghost" + + var/turf/t = get_turf(src) + if(t) + var/rads = radiation_repository.get_rads_at_turf(t) + to_chat(src, "Radiation level: [rads ? rads : "0"] Bq.") + + /mob/observer/dead/verb/become_mouse() set name = "Become mouse" set category = "Ghost"