Infection code improvement WIP

This commit is contained in:
Arokha Sieyes
2017-02-27 16:35:56 -05:00
parent 8d82920e52
commit 9ef7496545
12 changed files with 238 additions and 48 deletions
+13
View File
@@ -24,6 +24,19 @@
/obj/item/organ/internal/brain/digitize()
replace_self_with(/obj/item/organ/internal/mmi_holder/robot)
/obj/item/organ/internal/brain/handle_germ_effects()
. = ..() //Up should return an infection level as an integer
if(!.) return
//Bacterial meningitis (more of a spine thing but 'brain infection' isn't a common thing)
if (. >= 1)
if(prob(1))
owner.custom_pain("Your neck aches, and feels very stiff!",0)
if (. >= 2)
if(prob(1))
owner.custom_pain("Your feel very dizzy for a moment!",0)
owner.confused = max(owner.confused, 2)
/obj/item/organ/internal/brain/proc/replace_self_with(replace_path)
var/mob/living/carbon/human/tmp_owner = owner
qdel(src)