mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-03 14:12:29 +00:00
Merge pull request #9678 from farie82/fix-free-gene-stability
The cure procs for the disabilities now cure the gene as well
This commit is contained in:
@@ -472,6 +472,8 @@
|
||||
/mob/living/proc/CureBlind()
|
||||
var/val_change = !!(disabilities & BLIND)
|
||||
disabilities &= ~BLIND
|
||||
CureIfHasDisability(BLINDBLOCK)
|
||||
|
||||
if(val_change)
|
||||
update_blind_effects()
|
||||
|
||||
@@ -482,6 +484,7 @@
|
||||
|
||||
/mob/living/proc/CureCoughing()
|
||||
disabilities &= ~COUGHING
|
||||
CureIfHasDisability(COUGHBLOCK)
|
||||
|
||||
// Deaf
|
||||
|
||||
@@ -490,6 +493,7 @@
|
||||
|
||||
/mob/living/proc/CureDeaf()
|
||||
disabilities &= ~DEAF
|
||||
CureIfHasDisability(DEAFBLOCK)
|
||||
|
||||
// Epilepsy
|
||||
|
||||
@@ -498,6 +502,7 @@
|
||||
|
||||
/mob/living/proc/CureEpilepsy()
|
||||
disabilities &= ~EPILEPSY
|
||||
CureIfHasDisability(EPILEPSYBLOCK)
|
||||
|
||||
// Mute
|
||||
|
||||
@@ -506,6 +511,7 @@
|
||||
|
||||
/mob/living/proc/CureMute()
|
||||
disabilities &= ~MUTE
|
||||
CureIfHasDisability(MUTEBLOCK)
|
||||
|
||||
// Nearsighted
|
||||
|
||||
@@ -518,6 +524,7 @@
|
||||
/mob/living/proc/CureNearsighted()
|
||||
var/val_change = !!(disabilities & NEARSIGHTED)
|
||||
disabilities &= ~NEARSIGHTED
|
||||
CureIfHasDisability(GLASSESBLOCK)
|
||||
if(val_change)
|
||||
update_nearsighted_effects()
|
||||
|
||||
@@ -528,6 +535,7 @@
|
||||
|
||||
/mob/living/proc/CureNervous()
|
||||
disabilities &= ~NERVOUS
|
||||
CureIfHasDisability(NERVOUSBLOCK)
|
||||
|
||||
// Tourettes
|
||||
|
||||
@@ -536,3 +544,10 @@
|
||||
|
||||
/mob/living/proc/CureTourettes()
|
||||
disabilities &= ~TOURETTES
|
||||
CureIfHasDisability(TWITCHBLOCK)
|
||||
|
||||
/mob/living/proc/CureIfHasDisability(block)
|
||||
if(dna.GetSEState(block))
|
||||
dna.SetSEState(block, 0, 1) //Fix the gene
|
||||
genemutcheck(src, block,null, MUTCHK_FORCED)
|
||||
dna.UpdateSE()
|
||||
|
||||
Reference in New Issue
Block a user