commented

This commit is contained in:
trololiver112
2020-06-15 22:17:22 +02:00
parent a843221617
commit e770103b72
5 changed files with 7 additions and 5 deletions
@@ -42,7 +42,7 @@
H.set_sight(new /datum/vision_override/nightvision)
to_chat(H, "<span class='notice'>You adjust your vision to pierce the darkness.</span>")
else
H.set_sight()
H.set_sight(null)
to_chat(H, "<span class='notice'>You adjust your vision to recognize the shadows.</span>")
/datum/species/shadow/on_species_gain(mob/living/carbon/human/H)
+2
View File
@@ -1357,6 +1357,8 @@ GLOBAL_LIST_INIT(slot_equipment_priority, list( \
sync_lighting_plane_alpha()
/mob/proc/set_sight(datum/vision_override/O)
if(vision_type)
qdel(vision_type) //qdel the old vision_type unless it is null.
vision_type = O
update_sight()
+1 -1
View File
@@ -327,7 +327,7 @@
user.visible_message("[user] shines light onto the tumor in [target]'s [E]!", "<span class='notice'>You cleanse the contamination from [target]'s brain!</span>")
if(target.vision_type) //Turns off their darksight if it's still active.
to_chat(target, "<span class='boldannounce'>Your eyes are suddenly wrought with immense pain as your darksight is forcibly dismissed!</span>")
target.vision_type = null
target.set_sight(null)
SSticker.mode.remove_thrall(target.mind, 0)
target.visible_message("<span class='warning'>A strange black mass falls from [target]'s [E]!</span>")
var/obj/item/organ/thing = new /obj/item/organ/internal/shadowtumor(get_turf(target))