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
This commit is contained in:
Oisin100
2015-08-12 20:07:58 +02:00
parent eedea4d281
commit 4a76033e48
+2 -1
View File
@@ -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(..())