Adds Virology logs and investigate virology function back into the game

This commit is contained in:
Thehighwayman
2018-09-30 19:29:03 -05:00
parent 4783c050a0
commit 65ac77dd53
7 changed files with 90 additions and 5 deletions

View File

@@ -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