From 6872e4233bda82de13133cd40a17827f9e37d1f4 Mon Sep 17 00:00:00 2001 From: CHOMPStation2 <58959929+CHOMPStation2@users.noreply.github.com> Date: Tue, 1 Oct 2024 22:13:37 -0700 Subject: [PATCH] [MIRROR] stop fax flicking to copier icon (#9114) Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com> Co-authored-by: CHOMPStation2 --- code/modules/paperwork/faxmachine.dm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/code/modules/paperwork/faxmachine.dm b/code/modules/paperwork/faxmachine.dm index afab44ee41..5752271478 100644 --- a/code/modules/paperwork/faxmachine.dm +++ b/code/modules/paperwork/faxmachine.dm @@ -306,6 +306,18 @@ Extracted to its own procedure for easier logic handling with paper bundles. department = input if( !(("[department]" in alldepartments) || ("[department]" in admin_departments)) && !(department == "Unknown")) alldepartments |= department + else if(istype(O, /obj/item/toner)) + if(toner <= 10) //allow replacing when low toner is affecting the print darkness + user.drop_item() + to_chat(user, span_notice("You insert the toner cartridge into \the [src].")) + playsound(loc, 'sound/machines/click.ogg', 50, 1) + var/obj/item/toner/T = O + toner += T.toner_amount + qdel(O) + else + to_chat(user, span_notice("This cartridge is not yet ready for replacement! Use up the rest of the toner.")) + playsound(loc, 'sound/machines/buzz-two.ogg', 75, 1) + return return ..()