From 4a76033e4827fa8e02cfc98dbfa5e06d68aaa643 Mon Sep 17 00:00:00 2001 From: Oisin100 Date: Wed, 12 Aug 2015 20:07:58 +0200 Subject: [PATCH 1/2] Bugfix And Feature addition. Chameleon And Stealth Mutations Bug: Noticed this a while ago that the Chameleon And the Stealth(Cloak Of Darkness) Dont work together. As the stealth mutation will instantly change the players visibility to visible. So i have added a check to see if the player has the Chameleon mutation and if they dont THEN change their visibility to visible Feature: Due to the checks nature having both mutations will cause you to go invisible double speed in the dark --- code/datums/mutations.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/datums/mutations.dm b/code/datums/mutations.dm index b517e417d93..f9516df1068 100644 --- a/code/datums/mutations.dm +++ b/code/datums/mutations.dm @@ -364,7 +364,8 @@ if(T.lighting_lumcount <= 2) owner.alpha -= 25 else - owner.alpha = round(255 * 0.80) + if(!owner.dna.check_mutation("Chameleon")) + owner.alpha = round(255 * 0.80) /datum/mutation/human/stealth/on_losing(mob/living/carbon/human/owner) if(..()) From 166818a67b1d36a8f4682976ccce6f7390acc984 Mon Sep 17 00:00:00 2001 From: Oisin100 Date: Tue, 18 Aug 2015 23:53:01 +0200 Subject: [PATCH 2/2] Changed String to Definition --- code/datums/mutations.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/mutations.dm b/code/datums/mutations.dm index f9516df1068..1bf987869b1 100644 --- a/code/datums/mutations.dm +++ b/code/datums/mutations.dm @@ -364,7 +364,7 @@ if(T.lighting_lumcount <= 2) owner.alpha -= 25 else - if(!owner.dna.check_mutation("Chameleon")) + if(!owner.dna.check_mutation(CHAMELEON)) owner.alpha = round(255 * 0.80) /datum/mutation/human/stealth/on_losing(mob/living/carbon/human/owner)