Files
Paradise/code/game/gamemodes/changeling/powers/augmented_eyesight.dm
DZD 017c63dfa2 Fixes
- Fixes #294, #296.
- Purges use of 2 instead of DEAD when checking for stat in objective.dm
2015-02-11 17:20:22 -05:00

25 lines
1.1 KiB
Plaintext

//Augmented Eyesight: Gives you thermal and night vision - bye bye, flashlights. Also, high DNA cost because of how powerful it is.
//Possible todo: make a custom message for directing a penlight/flashlight at the eyes - not sure what would display though.
/obj/effect/proc_holder/changeling/augmented_eyesight
name = "Augmented Eyesight"
desc = "Creates heat receptors in our eyes and dramatically increases light sensing ability."
helptext = "Grants us night vision and thermal vision. It may be toggled on or off."
chemical_cost = 0
dna_cost = 2 //Would be 1 without thermal vision
var/active = 0 //Whether or not vision is enhanced
/obj/effect/proc_holder/changeling/augmented_eyesight/sting_action(var/mob/user)
active = !active
if(active)
user << "<span class='notice'>We feel a minute twitch in our eyes, and darkness creeps away.</span>"
else
user << "<span class='notice'>Our vision dulls. Shadows gather.</span>"
user.sight &= ~SEE_MOBS
while(active)
user.see_in_dark = 8
user.see_invisible = 2
user.sight |= SEE_MOBS
sleep(1) //BAD THINGS HAPPEN WITHOUT THIS.
return 1