Admin tools, adds better logging for viruses (#19132)

This commit is contained in:
Adri
2022-09-25 17:04:37 +01:00
committed by GitHub
parent 1b635a3cbe
commit 92696c9999
3 changed files with 3 additions and 0 deletions
+1
View File
@@ -51,6 +51,7 @@
else
DD.vars[V] = D.vars[V]
create_log(MISC_LOG, "has contacted the virus \"[DD]\"")
DD.affected_mob.med_hud_set_status()
+1
View File
@@ -150,6 +150,7 @@ GLOBAL_LIST_INIT(diseases, subtypesof(/datum/disease))
if(!(type in affected_mob.resistances))
affected_mob.resistances += type
remove_virus()
affected_mob.create_log(MISC_LOG, "has been cured from the virus \"[src]\"")
qdel(src)
/datum/disease/proc/IsSame(datum/disease/D)
+1
View File
@@ -64,6 +64,7 @@
var/obj/O = affected_mob.loc
O.force_eject_occupant(affected_mob)
var/mob/living/new_mob = new new_form(affected_mob.loc)
affected_mob.create_log(MISC_LOG, "has transformed into [new_mob], due to having the virus \"[src]\"")
if(istype(new_mob))
new_mob.a_intent = "harm"
if(affected_mob.mind)