mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-21 07:32:02 +00:00
Adds the new health analyser noises to PDA scanners and mech scanners (#14860)
This commit is contained in:
@@ -146,9 +146,13 @@
|
||||
else
|
||||
to_chat(user, SPAN_WARNING("\The [src] does not have a card or item stored in the card slot."))
|
||||
|
||||
/obj/item/modular_computer/attack(mob/living/M, mob/living/user)
|
||||
/obj/item/modular_computer/attack(mob/living/M, mob/living/user, var/sound_scan)
|
||||
sound_scan = FALSE
|
||||
if(last_scan <= world.time - 20) //Spam limiter.
|
||||
last_scan = world.time
|
||||
sound_scan = TRUE
|
||||
if(scan_mode == SCANNER_MEDICAL)
|
||||
health_scan_mob(M, user, TRUE)
|
||||
health_scan_mob(M, user, TRUE, sound_scan = sound_scan)
|
||||
|
||||
/obj/item/modular_computer/afterattack(atom/A, mob/user, proximity_flag, click_parameters)
|
||||
. = ..()
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
var/pAI_lock = FALSE // Toggles whether pAI can interact with the modular computer while installed in it
|
||||
var/obj/item/card/id/registered_id = null // ID used for chat client registering
|
||||
var/scan_mode = null // Mode used for health/reagent scanners
|
||||
var/last_scan = 0 // Used for the PDA analyser spam detection
|
||||
var/silent = FALSE
|
||||
var/doorcode = "smindicate"
|
||||
var/hidden = FALSE
|
||||
|
||||
Reference in New Issue
Block a user