mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
Merge pull request #8334 from MrPerson/cleanup_crew_comin_through
Code cleanup
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user