mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
Fixes missing cure_text's, fixes virus being uncurable, fixes advance virus changing upon injection. Fixes virus staying at stage 1.
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
|
||||
|
||||
/mob/proc/AddDisease(var/datum/disease/D)
|
||||
var/datum/disease/DD = new D.type()
|
||||
var/datum/disease/DD = new D.type(1, D, 0)
|
||||
viruses += DD
|
||||
DD.affected_mob = src
|
||||
DD.holder = src
|
||||
|
||||
@@ -76,10 +76,10 @@ var/list/diseases = typesof(/datum/disease) - /datum/disease
|
||||
|
||||
if(!cure)
|
||||
if(prob(stage_prob))
|
||||
stage = min(stage++,max_stages)
|
||||
stage = min(stage + 1,max_stages)
|
||||
else
|
||||
if(prob(cure_chance))
|
||||
stage = max(stage--, 1)
|
||||
stage = max(stage - 1, 1)
|
||||
|
||||
if(disease_flags & CURABLE)
|
||||
if(cure && prob(cure_chance))
|
||||
@@ -91,9 +91,8 @@ var/list/diseases = typesof(/datum/disease) - /datum/disease
|
||||
return 0
|
||||
|
||||
. = 1
|
||||
|
||||
for(var/C_id in cures)
|
||||
if(!affected_mob.reagents.has_reagent(C_id in cures))
|
||||
if(!affected_mob.reagents.has_reagent(C_id))
|
||||
.--
|
||||
break //One missing cure is enough to fail
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
max_stages = 4
|
||||
spread_text = "On contact"
|
||||
spread_flags = CONTACT_GENERAL
|
||||
cure_text = "Ethanol"
|
||||
cures = list("ethanol")
|
||||
agent = "Excess Lepidopticides"
|
||||
viable_mobtypes = list(/mob/living/carbon/human,/mob/living/carbon/monkey)
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
max_stages = 4
|
||||
spread_text = "On contact"
|
||||
spread_flags = CONTACT_GENERAL
|
||||
cure_text = "Sugar"
|
||||
cures = list("sugar")
|
||||
agent = "Apidae Infection"
|
||||
viable_mobtypes = list(/mob/living/carbon/human,/mob/living/carbon/monkey)
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
max_stages = 4
|
||||
spread_text = "On contact"
|
||||
spread_flags = CONTACT_GENERAL
|
||||
cure_text = "Alkysine"
|
||||
cures = list("alkysine")
|
||||
agent = "Cryptococcus Cosmosis"
|
||||
viable_mobtypes = list(/mob/living/carbon/human)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
name = "The Flu"
|
||||
max_stages = 3
|
||||
spread_text = "Airborne"
|
||||
cure_text = "Spaceacillin"
|
||||
cures = list("spaceacillin")
|
||||
cure_chance = 10
|
||||
agent = "H13N1 flu virion"
|
||||
|
||||
Reference in New Issue
Block a user