42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
/*
|
|
//////////////////////////////////////
|
|
Polyvitiligo
|
|
|
|
Noticeable.
|
|
Increases resistance.
|
|
Increases stage speed slightly.
|
|
Increases transmission.
|
|
Critical Level.
|
|
|
|
BONUS
|
|
Makes the mob gain a random crayon powder colorful reagent.
|
|
|
|
//////////////////////////////////////
|
|
*/
|
|
|
|
/datum/symptom/polyvitiligo
|
|
name = "Polyvitiligo"
|
|
desc = "The virus replaces the melanin in the skin with reactive pigment."
|
|
stealth = -1
|
|
resistance = 3
|
|
stage_speed = 1
|
|
transmittable = 2
|
|
level = 5
|
|
severity = 1
|
|
symptom_delay_min = 7
|
|
symptom_delay_max = 14
|
|
|
|
/datum/symptom/polyvitiligo/Activate(datum/disease/advance/A)
|
|
if(!..())
|
|
return
|
|
var/mob/living/M = A.affected_mob
|
|
switch(A.stage)
|
|
if(5)
|
|
var/static/list/banned_reagents = list(/datum/reagent/colorful_reagent/crayonpowder/invisible, /datum/reagent/colorful_reagent/crayonpowder/white)
|
|
var/color = pick(subtypesof(/datum/reagent/colorful_reagent/crayonpowder) - banned_reagents)
|
|
if(M.reagents.total_volume <= (M.reagents.maximum_volume/10)) // no flooding humans with 1000 units of colorful reagent
|
|
M.reagents.add_reagent(color, 5)
|
|
else
|
|
if (prob(50)) // spam
|
|
M.visible_message("<span class='warning'>[M] looks rather vibrant...</span>", "<span class='notice'>The colors, man, the colors...</span>")
|