Skip to content

Commit

Permalink
bugfix: Fixed toner insertion into photocopier
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladisvell committed Oct 26, 2024
1 parent 426672a commit 7b29c9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/paperwork/photocopier.dm
Original file line number Diff line number Diff line change
Expand Up @@ -586,13 +586,13 @@
if(istype(I, /obj/item/toner))
add_fingerprint(user)
var/obj/item/toner/toner = I
if(toner > 10) //allow replacing when low toner is affecting the print darkness
if(src.toner > 10) //allow replacing when low toner is affecting the print darkness
to_chat(user, span_warning("This cartridge is not yet ready for replacement! Use up the rest of the toner."))
return ATTACK_CHAIN_PROCEED
if(!user.drop_transfer_item_to_loc(I, src))
return ..()
to_chat(user, span_notice("You have inserted the toner cartridge into [src]."))
toner += toner.toner_amount
src.toner += toner.toner_amount
qdel(I)
return ATTACK_CHAIN_BLOCKED_ALL

Expand Down

0 comments on commit 7b29c9c

Please sign in to comment.