diff --git a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm index ee33f16d61..23bff72c62 100644 --- a/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm +++ b/code/modules/food_and_drinks/kitchen_machinery/smartfridge.dm @@ -61,6 +61,9 @@ ********************/ /obj/machinery/smartfridge/attackby(obj/item/O, mob/user, params) + if(user.a_intent == INTENT_HARM) + return ..() + if(default_deconstruction_screwdriver(user, icon_state, icon_state, O)) cut_overlays() if(panel_open) @@ -79,9 +82,6 @@ updateUsrDialog() return - if(user.a_intent == INTENT_HARM) - return ..() - if(stat) updateUsrDialog() return FALSE @@ -110,12 +110,8 @@ updateUsrDialog() if(loaded) - if(contents.len >= max_n_of_items) - user.visible_message("[user] loads \the [src] with \the [O].", \ - "You fill \the [src] with \the [O].") - else - user.visible_message("[user] loads \the [src] with \the [O].", \ - "You load \the [src] with \the [O].") + user.visible_message("[user] loads \the [src] with \the [O].", \ + "You [contents.len >= max_n_of_items ? "fill", "load"] \the [src] with \the [O].") if(O.contents.len > 0) to_chat(user, "Some items are refused.") return TRUE