mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Ore Scanner is written incorrectly
Only revealed by vchat
This commit is contained in:
@@ -9,13 +9,13 @@
|
||||
var/scan_time = 5 SECONDS
|
||||
|
||||
/obj/item/weapon/mining_scanner/attack_self(mob/user as mob)
|
||||
to_chat(user, "You begin sweeping \the [src] about, scanning for metal deposits.")
|
||||
to_chat(user, "<span class='notice'>You begin sweeping \the [src] about, scanning for metal deposits.</span>")
|
||||
playsound(loc, 'sound/items/goggles_charge.ogg', 50, 1, -6)
|
||||
|
||||
if(!do_after(user, scan_time))
|
||||
return
|
||||
|
||||
ScanTurf(user, get_turf(user))
|
||||
ScanTurf(get_turf(user), user)
|
||||
|
||||
/obj/item/weapon/mining_scanner/proc/ScanTurf(var/atom/target, var/mob/user, var/exact = FALSE)
|
||||
var/list/metals = list(
|
||||
@@ -45,7 +45,7 @@
|
||||
|
||||
if(ore_type) metals[ore_type] += T.resources[metal]
|
||||
|
||||
to_chat(user, "[bicon(src)] <span class='notice'>The scanner beeps and displays a readout.</span>")
|
||||
var/message = "[bicon(src)] <span class='notice'>The scanner beeps and displays a readout.</span>"
|
||||
|
||||
for(var/ore_type in metals)
|
||||
var/result = "no sign"
|
||||
@@ -59,4 +59,6 @@
|
||||
else
|
||||
result = metals[ore_type]
|
||||
|
||||
to_chat(user, "- [result] of [ore_type].")
|
||||
message += "<br><span class='notice'>- [result] of [ore_type].</span>"
|
||||
|
||||
to_chat(user, message)
|
||||
|
||||
Reference in New Issue
Block a user