mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-29 03:21:42 +00:00
38 lines
1.5 KiB
Plaintext
38 lines
1.5 KiB
Plaintext
//Augmented Eyesight: Gives you thermal vision. Also, higher DNA cost because of how powerful it is.
|
|
|
|
/datum/power/changeling/augmented_eyesight
|
|
name = "Augmented Eyesight"
|
|
desc = "Creates heat receptors in our eyes and dramatically increases light sensing ability."
|
|
helptext = "Grants us thermal vision. It may be toggled on or off. We will become more vulnerable to flash-based devices while active."
|
|
ability_icon_state = "ling_augmented_eyesight"
|
|
genomecost = 2
|
|
verbpath = /mob/proc/changeling_augmented_eyesight
|
|
|
|
/mob/proc/changeling_augmented_eyesight()
|
|
set category = "Changeling"
|
|
set name = "Augmented Eyesight (5)"
|
|
set desc = "We evolve our eyes to sense the infrared."
|
|
|
|
var/datum/changeling/changeling = changeling_power(5,0,100,CONSCIOUS)
|
|
if(!changeling)
|
|
return 0
|
|
|
|
var/mob/living/carbon/human/C = src
|
|
|
|
changeling.thermal_sight = !changeling.thermal_sight
|
|
|
|
var/active = changeling.thermal_sight
|
|
|
|
if(active)
|
|
src.mind.changeling.chem_charges -= 5
|
|
to_chat(C, "<span class='notice'>We feel a minute twitch in our eyes, and a hidden layer to the world is revealed.</span>")
|
|
C.add_modifier(/datum/modifier/changeling/thermal_sight, 0, src)
|
|
// C.permanent_sight_flags |= SEE_MOBS
|
|
// C.dna.species.invis_sight = SEE_INVISIBLE_MINIMUM
|
|
else
|
|
to_chat(C, "<span class='notice'>Our vision dulls.</span>")
|
|
C.remove_modifiers_of_type(/datum/modifier/changeling/thermal_sight)
|
|
// C.permanent_sight_flags &= ~SEE_MOBS
|
|
// C.dna.species.invis_sight = initial(user.dna.species.invis_sight)
|
|
return 1
|