This commit is contained in:
scoopscoop
2014-08-06 13:32:21 +03:00
parent 0ad9b394d5
commit 19a5573cbf
+13
View File
@@ -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 += "<b>From:</b> Ore Redemption Machine<BR>[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