mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
Capped antibiotic resistance at 90% and at-generation maximum to 70, other requested changes already implemented.
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
antigen = list(pick(ALL_ANTIGENS))
|
antigen = list(pick(ALL_ANTIGENS))
|
||||||
antigen |= pick(ALL_ANTIGENS)
|
antigen |= pick(ALL_ANTIGENS)
|
||||||
spreadtype = prob(70) ? "Airborne" : "Contact"
|
spreadtype = prob(70) ? "Airborne" : "Contact"
|
||||||
resistance = rand(10,80)
|
resistance = rand(15,70)
|
||||||
|
|
||||||
if(all_species.len)
|
if(all_species.len)
|
||||||
affected_species = get_infectable_species()
|
affected_species = get_infectable_species()
|
||||||
@@ -86,7 +86,12 @@
|
|||||||
if(stage == 1 && prob(70-resistance))
|
if(stage == 1 && prob(70-resistance))
|
||||||
src.cure(mob)
|
src.cure(mob)
|
||||||
else
|
else
|
||||||
resistance += rand(1,10)
|
resistance += rand(1,9)
|
||||||
|
|
||||||
|
//Resistance is capped at 90 without being manually set to 100
|
||||||
|
if(resistance > 90 && resistance < 100)
|
||||||
|
resistance = 90
|
||||||
|
|
||||||
|
|
||||||
//Virus food speeds up disease progress
|
//Virus food speeds up disease progress
|
||||||
if(mob.reagents.has_reagent("virusfood"))
|
if(mob.reagents.has_reagent("virusfood"))
|
||||||
@@ -146,7 +151,9 @@
|
|||||||
if (prob(5) && all_species.len)
|
if (prob(5) && all_species.len)
|
||||||
affected_species = get_infectable_species()
|
affected_species = get_infectable_species()
|
||||||
if (prob(10))
|
if (prob(10))
|
||||||
resistance += rand(1,10)
|
resistance += rand(1,9)
|
||||||
|
if(resistance > 90 && resistance < 100)
|
||||||
|
resistance = 90
|
||||||
|
|
||||||
/datum/disease2/disease/proc/getcopy()
|
/datum/disease2/disease/proc/getcopy()
|
||||||
var/datum/disease2/disease/disease = new /datum/disease2/disease
|
var/datum/disease2/disease/disease = new /datum/disease2/disease
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ proc/airborne_can_reach(turf/source, turf/target)
|
|||||||
if(prob(disease.resistance))
|
if(prob(disease.resistance))
|
||||||
var/datum/disease2/disease/D = disease.getcopy()
|
var/datum/disease2/disease/D = disease.getcopy()
|
||||||
D.minormutate()
|
D.minormutate()
|
||||||
D.resistance += rand(1,10)
|
D.resistance += rand(1,9)
|
||||||
// log_debug("Adding virus")
|
// log_debug("Adding virus")
|
||||||
M.virus2["[D.uniqueID]"] = D
|
M.virus2["[D.uniqueID]"] = D
|
||||||
BITSET(M.hud_updateflag, STATUS_HUD)
|
BITSET(M.hud_updateflag, STATUS_HUD)
|
||||||
|
|||||||
14
html/changelogs/Cerebulon - VirologyTweaks.yml
Normal file
14
html/changelogs/Cerebulon - VirologyTweaks.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
|
||||||
|
author: Cerebulon
|
||||||
|
|
||||||
|
delete-after: True
|
||||||
|
|
||||||
|
changes:
|
||||||
|
- rscadd: "Adds antibiotic resistance chance to viruses, capped at 90% without admin edits."
|
||||||
|
- rscadd: "Adds adminspawned non-transmittable viruses"
|
||||||
|
- rscadd: "Adds several new disease symptoms"
|
||||||
|
- tweak: "Vomit is now a disease vector"
|
||||||
|
- tweak: "Viruses have a lower chance of curing themselves without medical intervention"
|
||||||
|
- bugfix: "Virus food no longer infinitely generates in incubator beakers"
|
||||||
|
- bugfix: "Xenomorphs and supernatural begins can no longer catch the flu"
|
||||||
|
|
||||||
Reference in New Issue
Block a user