mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
Fix for Ryetalin
Cures on a chance based on volume of ryetalin injected, on_mob_life. TURNS OFF ALL MUTATIONS!! // 1 volume = ~2% chance // 10 volume = ~17% chance // 30 volume = ~38% chance Returns SE to mob creation values (now set in dna2.dm)
This commit is contained in:
@@ -1115,11 +1115,25 @@ datum
|
||||
on_mob_life(var/mob/living/M as mob)
|
||||
if(!M) M = holder.my_atom
|
||||
|
||||
var/needs_update = M.mutations.len > 0
|
||||
var/needs_update = 1 //M.mutations.len > 0
|
||||
|
||||
//Ryetalyn now cures by a random chance per on_mob_life call - Bone White
|
||||
// 1 volume = ~2% chance
|
||||
// 10 volume = ~17% chance
|
||||
// 30 volume = ~38% chance
|
||||
if (rand(0, 50+volume) > 50 && ishuman(M))
|
||||
for(var/block=1;block<=DNA_SE_LENGTH;block++)
|
||||
M.dna.SetSEState(block,0)
|
||||
genemutcheck(M,block,null,MUTCHK_FORCED)
|
||||
M.update_mutations()
|
||||
|
||||
M.dna.struc_enzymes = M.dna.struc_enzymes_original
|
||||
|
||||
/* Old Code (non-functional)
|
||||
M.mutations = list()
|
||||
M.disabilities = 0
|
||||
M.sdisabilities = 0
|
||||
*/
|
||||
|
||||
// Might need to update appearance for hulk etc.
|
||||
if(needs_update && ishuman(M))
|
||||
|
||||
Reference in New Issue
Block a user