diff --git a/code/game/machinery/machinery.dm b/code/game/machinery/machinery.dm index efa941c4c69..5e69e5701af 100644 --- a/code/game/machinery/machinery.dm +++ b/code/game/machinery/machinery.dm @@ -113,6 +113,7 @@ Class Procs: var/panel_open = 0 var/area/myArea var/interact_offline = 0 // Can the machine be interacted with while de-powered. + var/use_log = list() /obj/machinery/New() addAtProcessing() @@ -297,7 +298,7 @@ Class Procs: user << "You close the maintenance hatch of [src]." return 1 return 0 - + /obj/machinery/proc/default_change_direction_wrench(var/mob/user, var/obj/item/weapon/wrench/W) if(panel_open && istype(W)) playsound(src.loc, 'sound/items/Ratchet.ogg', 50, 1) @@ -328,7 +329,7 @@ Class Procs: state(text, "blue") playsound(src.loc, 'sound/machines/ping.ogg', 50, 0) -/obj/machinery/proc/exchange_parts(mob/user, obj/item/weapon/storage/part_replacer/W) +/obj/machinery/proc/exchange_parts(mob/user, obj/item/weapon/storage/part_replacer/W) var/shouldplaysound = 0 if(istype(W) && component_parts) if(panel_open) @@ -365,7 +366,7 @@ Class Procs: component_parts += B B.loc = null user << "[A.name] replaced with [B.name]." - break + break RefreshParts() else user << "Following parts detected in the machine:" diff --git a/code/modules/virus2/dishincubator.dm b/code/modules/virus2/dishincubator.dm index 119d77fa83a..f6c95be8b2d 100644 --- a/code/modules/virus2/dishincubator.dm +++ b/code/modules/virus2/dishincubator.dm @@ -192,6 +192,11 @@ var/list/virus = list("[dish.virus2.uniqueID]" = dish.virus2.getcopy()) B.data["virus2"] += virus + var/list/virus_effects + for(var/datum/disease2/effectholder/symptom in dish.virus2.effects) + virus_effects += "\[" + symptom.effect.name + "\]" + use_log += text("\[[time_stamp()]\] [user.name] ([user.ckey]) has transferred a virus containing [virus_effects] to a blood sample.") + ping("\The [src] pings, \"Injection complete.\"") return 1