mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Requests console no longer spam "New materials available" (#19129)
Only sends message when new ore was actually processed
This commit is contained in:
@@ -88,13 +88,14 @@
|
||||
else
|
||||
process_sheet(O)
|
||||
i++
|
||||
var/msg = "Now available in the Cargo Bay: \n"
|
||||
for(var/s in stack_list) // Making an announcement for cargo
|
||||
var/obj/item/stack/sheet/mats = stack_list[s]
|
||||
msg += "[capitalize(mats.name)]: [mats.amount] sheets \n"
|
||||
for(var/obj/machinery/requests_console/D in allConsoles)
|
||||
if(D.department == "Science" || D.department == "Robotics" || D.department == "Research Director's Desk" || D.department == "Chemistry" || D.department == "Bar" )
|
||||
D.createmessage("Ore Redemption Machine", "New minerals available!", msg, 1, 0)
|
||||
if(i > 0)
|
||||
var/msg = "Now available in the cargo Bay: \n"
|
||||
for(var/s in stack_list) // Making an announcement for cargo
|
||||
var/obj/item/stack/sheet/mats = stack_list[s]
|
||||
msg += "[capitalize(mats.name)]: [mats.amount] sheets \n"
|
||||
for(var/obj/machinery/requests_console/D in allConsoles)
|
||||
if(D.department == "Science" || D.department == "Robotics" || D.department == "Research Director's Desk" || D.department == "Chemistry" || D.department == "Bar")
|
||||
D.createmessage("Ore Redemption Machine", "New minerals available!", msg, 1, 0)
|
||||
|
||||
/obj/machinery/mineral/ore_redemption/attackby(obj/item/weapon/W, mob/user, params)
|
||||
if(exchange_parts(user, W))
|
||||
|
||||
Reference in New Issue
Block a user