diff --git a/code/modules/mining/equipment_locker.dm b/code/modules/mining/equipment_locker.dm index b4e341fb323..29520579a7c 100644 --- a/code/modules/mining/equipment_locker.dm +++ b/code/modules/mining/equipment_locker.dm @@ -34,9 +34,22 @@ var/obj/item/stack/sheet/s = new processed_sheet(src,0) s.amount = 0 stack_list[processed_sheet] = s + if(s.name != "glass" && s.name != "metal") //we can get these from cargo anyway + for(var/obj/machinery/requests_console/D in world) //this will only happen a few times per round + if(D.department == "Science" || D.department == "Robotics") + announce_mats(D, s.name) var/obj/item/stack/sheet/storage = stack_list[processed_sheet] storage.amount += 1 //Stack the sheets O.loc = null //Let the old sheet garbage collect + +/obj/machinery/mineral/ore_redemption/proc/announce_mats(obj/machinery/requests_console/T, N) //announce the availability of N to request console T + T.newmessagepriority = 1 + T.update_icon() +// if(!T.silent) +// playsound(T.loc, 'sound/machines/twobeep.ogg', 50, 1) + for (var/mob/O in hearers(4, T.loc)) + O.show_message("\icon[T] *The Requests Console flashes: 'New ores available!'") + T.messages += "From: Ore Redemption Machine
[capitalize(N)] sheets are now available in the Cargo Bay." /obj/machinery/mineral/ore_redemption/process() if(!panel_open) //If the machine is partially dissassembled, it should not process minerals