mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Adds Virology logs and investigate virology function back into the game
This commit is contained in:
@@ -140,6 +140,23 @@
|
||||
L.visible_message("<span class='danger'>[user] injects [L] with the syringe!", \
|
||||
"<span class='userdanger'>[user] injects [L] with the syringe!</span>")
|
||||
|
||||
var/viruslist = ""
|
||||
for(var/datum/reagent/R in reagents.reagent_list)
|
||||
if(istype(R, /datum/reagent/blood))
|
||||
var/datum/reagent/blood/RR = R
|
||||
for(var/datum/disease/D in RR.data["viruses"])
|
||||
viruslist += " [D.name]"
|
||||
if(istype(D, /datum/disease/advance))
|
||||
var/datum/disease/advance/DD = D
|
||||
viruslist += " \[ symptoms: "
|
||||
for(var/datum/symptom/S in DD.symptoms)
|
||||
viruslist += "[S.name] "
|
||||
viruslist += "\]"
|
||||
|
||||
if(viruslist)
|
||||
investigate_log("[user.real_name] ([user.ckey]) injected [L.real_name] ([L.ckey]) with [viruslist]", INVESTIGATE_VIROLOGY)
|
||||
log_game("[user.real_name] ([user.ckey]) injected [L.real_name] ([L.ckey]) with [viruslist]")
|
||||
|
||||
if(L != user)
|
||||
log_combat(user, L, "injected", src, addition="which had [contained]")
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user