Merge pull request #8334 from MrPerson/cleanup_crew_comin_through

Code cleanup
This commit is contained in:
Cheridan
2015-03-15 01:55:39 -05:00
40 changed files with 39 additions and 66 deletions
+2 -1
View File
@@ -28,11 +28,12 @@
text_gain_indication = "<span class='notice'>You feel one with your surroundings.</span>"
text_lose_indication = "<span class='notice'>You feel oddly exposed.</span>"
var/last_location
/datum/mutation/human/chameleon/on_life(mob/living/carbon/human/owner)
if(owner.loc != last_location)
owner.alpha = round(255 * 0.80)
last_location = owner.loc
if((world.time - owner.last_movement) >= 30 && !owner.stat && owner.canmove && !owner.restrained())
if((world.time - owner.next_move) >= 30 && !owner.stat && owner.canmove && !owner.restrained())
owner.alpha -= 25
else
owner.alpha = round(255 * 0.80)