From 2b16022ee09a4beffaa83eb897f4a068696e0129 Mon Sep 17 00:00:00 2001 From: GinjaNinja32 Date: Wed, 1 Oct 2014 22:32:45 +0100 Subject: [PATCH] Changes Alden-Saraspova counter behaviour to wait for new results before outputting --- .../xenoarchaeology/tools/tools_anoscanner.dm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/code/modules/research/xenoarchaeology/tools/tools_anoscanner.dm b/code/modules/research/xenoarchaeology/tools/tools_anoscanner.dm index acc6d56a73f..38fab6221f4 100644 --- a/code/modules/research/xenoarchaeology/tools/tools_anoscanner.dm +++ b/code/modules/research/xenoarchaeology/tools/tools_anoscanner.dm @@ -20,16 +20,18 @@ return src.interact(user) /obj/item/device/ano_scanner/interact(var/mob/user as mob) - var/message = "Background radiation levels detected." if(world.time - last_scan_time >= scan_delay) spawn(0) scan() - if(nearest_artifact_distance >= 0) - message = "Exotic energy detected on wavelength '[nearest_artifact_id]' in a radius of [nearest_artifact_distance]m" - else - message = "Scanning array is recharging." - user << "[message]" + if(!user) return + + if(nearest_artifact_distance >= 0) + user << "Exotic energy detected on wavelength '[nearest_artifact_id]' in a radius of [nearest_artifact_distance]m" + else + user << "Background radiation levels detected." + else + user << "Scanning array is recharging." /obj/item/device/ano_scanner/proc/scan() set background = 1