Merge pull request #5486 from TheDZD/genetics2

Genetic Instability Refactor & Minor Genetics Rebalance
This commit is contained in:
Fox McCloud
2016-08-19 20:11:46 -04:00
committed by GitHub
5 changed files with 21 additions and 17 deletions
+10 -10
View File
@@ -176,22 +176,22 @@
if(gene.is_active(src))
speech_problem_flag = 1
gene.OnMobLife(src)
if(gene_stability < 85)
if(gene_stability < GENETIC_DAMAGE_STAGE_1)
var/instability = DEFAULT_GENE_STABILITY - gene_stability
if(prob(instability / 10))
adjustFireLoss(min(6, instability / 12))
if(prob(instability * 0.1))
adjustFireLoss(min(5, instability * 0.67))
to_chat(src, "<span class='danger'>You feel like your skin is burning and bubbling off!</span>")
if(gene_stability < 70)
if(prob(instability / 12))
adjustCloneLoss(min(5, instability / 15))
if(gene_stability < GENETIC_DAMAGE_STAGE_2)
if(prob(instability * 0.83))
adjustCloneLoss(min(4, instability * 0.05))
to_chat(src, "<span class='danger'>You feel as if your body is warping.</span>")
if(prob(instability / 10))
adjustToxLoss(min(6, instability / 12))
if(prob(instability * 0.1))
adjustToxLoss(min(5, instability * 0.67))
to_chat(src, "<span class='danger'>You feel weak and nauseous.</span>")
if(gene_stability < 40 && prob(1))
if(gene_stability < GENETIC_DAMAGE_STAGE_3 && prob(1))
to_chat(src, "<span class='biggerdanger'>You feel incredibly sick... Something isn't right!</span>")
spawn(300)
if(gene_stability < 40)
if(gene_stability < GENETIC_DAMAGE_STAGE_3)
gib()
if(!(species.flags & RADIMMUNE))