mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Fixes petrification 100% tested
This commit is contained in:
@@ -199,6 +199,7 @@ var/list/diseases = typesof(/datum/disease) - /datum/disease
|
|||||||
|
|
||||||
/datum/disease/New(var/process=1, var/datum/disease/D)//process = 1 - adding the object to global list. List is processed by master controller.
|
/datum/disease/New(var/process=1, var/datum/disease/D)//process = 1 - adding the object to global list. List is processed by master controller.
|
||||||
cure_list = list(cure_id) // to add more cures, add more vars to this list in the actual disease's New()
|
cure_list = list(cure_id) // to add more cures, add more vars to this list in the actual disease's New()
|
||||||
|
|
||||||
if(process) // Viruses in list are considered active.
|
if(process) // Viruses in list are considered active.
|
||||||
active_diseases += src
|
active_diseases += src
|
||||||
initial_spread = spread
|
initial_spread = spread
|
||||||
|
|||||||
@@ -1,17 +1,26 @@
|
|||||||
/datum/disease/petrification
|
/datum/disease/petrification
|
||||||
name = "Rapid Petrification"
|
name = "Rapid Petrification"
|
||||||
desc = "An extremely dangerous virus which rapidly spreads through any living tissue. A few seconds after initial contact, it starts petrifying the victim, turning their skin, muscle and organs into stone."
|
desc = "An extremely dangerous virus which rapidly spreads through any living tissue. A few seconds after initial contact, it starts petrifying the victim, turning their skin, muscle and organs into stone."
|
||||||
max_stages = 6
|
max_stages = 4
|
||||||
spread = "Non contagious"
|
spread = "Non contagious"
|
||||||
spread_type = NON_CONTAGIOUS
|
spread_type = NON_CONTAGIOUS
|
||||||
cure = "Unknown"
|
cure = "Unknown"
|
||||||
cure_list = list(SACID, PACID, ACIDSPIT, ACIDTEA) //ssh don't spoil
|
cure_id = list(SACID, PACID, ACIDSPIT, ACIDTEA) //ssh don't spoil
|
||||||
cure_chance = 80
|
cure_chance = 100
|
||||||
|
curable = TRUE
|
||||||
|
|
||||||
agent = "rapid petrification virus 11Y-ASD"
|
agent = "rapid petrification virus 11Y-ASD"
|
||||||
longevity = 1
|
longevity = 1
|
||||||
|
|
||||||
stage_prob = 100 //100% chance to advance to next stage every tick
|
stage_prob = 100 //100% chance to advance to next stage every tick
|
||||||
|
|
||||||
|
/datum/disease/petrification/New()
|
||||||
|
..()
|
||||||
|
|
||||||
|
//Oldcode galore
|
||||||
|
//That's how you make it so that only one reagent in the list is needed to cure, instead of all of them at once
|
||||||
|
cure_list = cure_id
|
||||||
|
|
||||||
/datum/disease/petrification/stage_act()
|
/datum/disease/petrification/stage_act()
|
||||||
..()
|
..()
|
||||||
if(!affected_mob)
|
if(!affected_mob)
|
||||||
@@ -25,11 +34,11 @@
|
|||||||
H.simple_message("<span class='userdanger'>You are slowing down. Moving is extremely painful to you.</span>",\
|
H.simple_message("<span class='userdanger'>You are slowing down. Moving is extremely painful to you.</span>",\
|
||||||
"<span class='notice'>You feel like Michelangelo di Lodovico Buonarroti Simoni trapped in \a foreign body.</span>")
|
"<span class='notice'>You feel like Michelangelo di Lodovico Buonarroti Simoni trapped in \a foreign body.</span>")
|
||||||
H.pain_shock_stage = 300
|
H.pain_shock_stage = 300
|
||||||
if(4)
|
if(3)
|
||||||
affected_mob.simple_message("<span class='userdanger'>Your skin starts losing color and cracking. Your body becomes numb.</span>",\
|
affected_mob.simple_message("<span class='userdanger'>Your skin starts losing color and cracking. Your body becomes numb.</span>",\
|
||||||
"<span class='notice'>You decide to channel your inner Italian sculptor to create a beautiful statue.</span>")
|
"<span class='notice'>You decide to channel your inner Italian sculptor to create a beautiful statue.</span>")
|
||||||
H.Stun(3)
|
H.Stun(3)
|
||||||
if(6)
|
if(4)
|
||||||
if(affected_mob.turn_into_statue(1))
|
if(affected_mob.turn_into_statue(1))
|
||||||
affected_mob.simple_message("<span class='userdanger'>Your body turns to stone.</span>",\
|
affected_mob.simple_message("<span class='userdanger'>Your body turns to stone.</span>",\
|
||||||
"<span class='notice'>You've created a masterwork statue of David!</span>")
|
"<span class='notice'>You've created a masterwork statue of David!</span>")
|
||||||
|
|||||||
Reference in New Issue
Block a user