fixes the virus event

This commit is contained in:
joep van der velden
2020-05-29 21:52:45 +02:00
parent e2f00b3156
commit f57c5422ba
2 changed files with 24 additions and 23 deletions
+9 -1
View File
@@ -126,11 +126,19 @@
AddDisease(D)
/**
* Forces the mob to contract a virus. If the mob can have viruses. Ignores clothing and other protection
* Returns TRUE if it succeeds. False if it doesn't
*
* Arguments:
* * D - the disease the mob will try to contract
*/
//Same as ContractDisease, except never overidden clothes checks
/mob/proc/ForceContractDisease(datum/disease/D)
if(!CanContractDisease(D))
return 0
return FALSE
AddDisease(D)
return TRUE
/mob/living/carbon/human/CanContractDisease(datum/disease/D)