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:
phil235
2014-11-20 20:36:43 +01:00
parent 0da09e3f6b
commit 3d540a0d03
6 changed files with 8 additions and 5 deletions
+1 -1
View File
@@ -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
+3 -4
View File
@@ -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
+1
View File
@@ -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)
+1
View File
@@ -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)
+1
View File
@@ -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)
+1
View File
@@ -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"