mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-22 19:47:47 +01:00
Merge pull request #3670 from Anewbe/ling_nightvision
Adds a changeling darkvison power
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
/datum/power/changeling/darksight
|
||||
name = "Dark Sight"
|
||||
desc = "We change the composition of our eyes, banishing the shadows from our vision."
|
||||
helptext = "We will be able to see in the dark."
|
||||
ability_icon_state = "ling_augmented_eyesight"
|
||||
genomecost = 0
|
||||
verbpath = /mob/proc/changeling_darksight
|
||||
|
||||
/mob/proc/changeling_darksight()
|
||||
set category = "Changeling"
|
||||
set name = "Toggle Darkvision"
|
||||
set desc = "We are able see in the dark."
|
||||
|
||||
var/datum/changeling/changeling = changeling_power(0,0,100,UNCONSCIOUS)
|
||||
if(!changeling)
|
||||
return 0
|
||||
|
||||
if(istype(src,/mob/living/carbon))
|
||||
var/mob/living/carbon/C = src
|
||||
C.seedarkness = !C.seedarkness
|
||||
if(C.seedarkness)
|
||||
to_chat(C, "<span class='notice'>We allow the shadows to return.</span>")
|
||||
else
|
||||
to_chat(C, "<span class='notice'>We no longer need light to see.</span>")
|
||||
|
||||
return 0
|
||||
@@ -363,6 +363,7 @@
|
||||
#include "code\game\gamemodes\changeling\powers\blind_sting.dm"
|
||||
#include "code\game\gamemodes\changeling\powers\boost_range.dm"
|
||||
#include "code\game\gamemodes\changeling\powers\cryo_sting.dm"
|
||||
#include "code\game\gamemodes\changeling\powers\darkvision.dm"
|
||||
#include "code\game\gamemodes\changeling\powers\deaf_sting.dm"
|
||||
#include "code\game\gamemodes\changeling\powers\delayed_toxin_sting.dm"
|
||||
#include "code\game\gamemodes\changeling\powers\digital_camo.dm"
|
||||
|
||||
Reference in New Issue
Block a user