mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
[MIRROR] Virology Fixes (#11254)
Co-authored-by: Guti <32563288+TheCaramelion@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4afce892c6
commit
66424e44b2
@@ -60,6 +60,9 @@ GLOBAL_LIST_INIT(diseases, subtypesof(/datum/disease))
|
||||
if(global_flag_check(virus_modifiers, CARRIER) && !cure)
|
||||
return FALSE
|
||||
|
||||
if(global_flag_check(virus_modifiers, DORMANT))
|
||||
return FALSE
|
||||
|
||||
if(!global_flag_check(virus_modifiers, PROCESSING))
|
||||
virus_modifiers |= PROCESSING
|
||||
Start()
|
||||
@@ -184,6 +187,7 @@ GLOBAL_LIST_INIT(diseases, subtypesof(/datum/disease))
|
||||
/datum/disease/proc/Copy()
|
||||
var/datum/disease/D = new type()
|
||||
D.strain_data = strain_data.Copy()
|
||||
D.virus_modifiers = virus_modifiers
|
||||
return D
|
||||
|
||||
/datum/disease/proc/GetDiseaseID()
|
||||
|
||||
@@ -58,8 +58,6 @@ GLOBAL_LIST_INIT(advance_cures, list(
|
||||
/datum/disease/advance/stage_act()
|
||||
if(!..())
|
||||
return FALSE
|
||||
if(global_flag_check(virus_modifiers, DORMANT))
|
||||
return FALSE
|
||||
if(symptoms && length(symptoms))
|
||||
|
||||
if(!s_processing)
|
||||
|
||||
@@ -51,10 +51,10 @@
|
||||
if(SPECIES_UNATHI, SPECIES_TAJARAN) // Mice devourers
|
||||
sickrisk = 0.5
|
||||
if(SPECIES_XENOCHIMERA)
|
||||
var/datum/disease/advance/dormant_roanoake = new /datum/disease/roanoake
|
||||
dormant_roanoake.virus_modifiers |= DORMANT
|
||||
ForceContractDisease(dormant_roanoake, TRUE)
|
||||
return
|
||||
var/datum/disease/roanoke/dormant_roanoke = new
|
||||
dormant_roanoke.virus_modifiers |= DORMANT
|
||||
ForceContractDisease(dormant_roanoke, TRUE)
|
||||
return TRUE
|
||||
if(SPECIES_PROMETHEAN) // Too clean
|
||||
return
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ BONUS
|
||||
ready_to_pop = TRUE
|
||||
|
||||
/datum/symptom/blobspores/OnDeath(datum/disease/advance/A)
|
||||
if(neutered)
|
||||
if(!..())
|
||||
return
|
||||
var/mob/living/M = A.affected_mob
|
||||
M.visible_message(span_danger("[M] starts swelling grotesquely!"))
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/datum/disease/roanoake
|
||||
name = "Roanoake Syndrome"
|
||||
medical_name = "Roanoake Syndrome"
|
||||
/datum/disease/roanoke
|
||||
name = "Roanoke Syndrome"
|
||||
medical_name = "Roanoke Syndrome"
|
||||
max_stages = 6
|
||||
stage_prob = 2
|
||||
spread_text = "Blood and close contact"
|
||||
@@ -18,13 +18,13 @@
|
||||
var/list/obj/item/organ/organ_list = list()
|
||||
var/obj/item/organ/O
|
||||
|
||||
/datum/disease/roanoake/Start()
|
||||
/datum/disease/roanoke/Start()
|
||||
var/mob/living/carbon/human/M = affected_mob
|
||||
|
||||
organ_list += M.organs
|
||||
organ_list += M.internal_organs
|
||||
|
||||
/datum/disease/roanoake/stage_act()
|
||||
/datum/disease/roanoke/stage_act()
|
||||
if(!..())
|
||||
return FALSE
|
||||
var/mob/living/carbon/human/M = affected_mob
|
||||
@@ -88,6 +88,6 @@
|
||||
cure()
|
||||
return
|
||||
|
||||
/datum/disease/roanoake/proc/fever(var/mob/living/M, var/datum/disease/D)
|
||||
/datum/disease/roanoke/proc/fever(var/mob/living/M, var/datum/disease/D)
|
||||
M.bodytemperature = min(M.bodytemperature + (2 * stage), BODYTEMP_HEAT_DAMAGE_LIMIT - 1)
|
||||
return TRUE
|
||||
@@ -171,7 +171,7 @@
|
||||
for(var/datum/symptom/symptom in advance_disease.symptoms)
|
||||
message += "[symptom.name]"
|
||||
else
|
||||
message += span_info("<b>[disease.name]</b>, stage [disease.stage]/[disease.max_stages].")
|
||||
message += span_info("<b>[disease.name]</b>, [global_flag_check(disease.virus_modifiers, DORMANT) ? "<i>dormant virus</i>" : "stage [disease.stage]/[disease.max_stages]"].")
|
||||
|
||||
disease.addToDB()
|
||||
|
||||
|
||||
@@ -646,7 +646,7 @@
|
||||
#include "code\datums\diseases\gbs.dm"
|
||||
#include "code\datums\diseases\lycancoughy.dm"
|
||||
#include "code\datums\diseases\magnitis.dm"
|
||||
#include "code\datums\diseases\roanoake.dm"
|
||||
#include "code\datums\diseases\roanoke.dm"
|
||||
#include "code\datums\diseases\advance\advance.dm"
|
||||
#include "code\datums\diseases\advance\disease_preset.dm"
|
||||
#include "code\datums\diseases\advance\symptoms\blobspores.dm"
|
||||
|
||||
Reference in New Issue
Block a user