From 20b9285fc4f746c707491c09867345d792231880 Mon Sep 17 00:00:00 2001 From: Mark van Alphen Date: Wed, 24 Apr 2019 01:36:56 +0200 Subject: [PATCH] Wisp/meson implant fixes --- code/modules/mining/lavaland/loot/tendril_loot.dm | 9 +++++++-- code/modules/surgery/organs/augments_eyes.dm | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/code/modules/mining/lavaland/loot/tendril_loot.dm b/code/modules/mining/lavaland/loot/tendril_loot.dm index bf42a4af0b1..ac3ec9d04c3 100644 --- a/code/modules/mining/lavaland/loot/tendril_loot.dm +++ b/code/modules/mining/lavaland/loot/tendril_loot.dm @@ -191,6 +191,7 @@ icon = 'icons/obj/lighting.dmi' icon_state = "lantern-blue" item_state = "lantern" + light_range = 7 var/obj/effect/wisp/wisp var/sight_flags = SEE_MOBS var/lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_VISIBLE @@ -202,21 +203,25 @@ return if(wisp.loc == src) + RegisterSignal(user, COMSIG_MOB_UPDATE_SIGHT, .proc/update_user_sight) + to_chat(user, "You release the wisp. It begins to bob around your head.") icon_state = "lantern" wisp.orbit(user, 20) + set_light(0) - RegisterSignal(user, COMSIG_MOB_UPDATE_SIGHT, .proc/update_user_sight) user.update_sight() to_chat(user, "The wisp enhances your vision.") feedback_add_details("wisp_lantern","F") // freed else + UnregisterSignal(user, COMSIG_MOB_UPDATE_SIGHT) + to_chat(user, "You return the wisp to the lantern.") wisp.stop_orbit() wisp.forceMove(src) + set_light(initial(light_range)) - UnregisterSignal(user, COMSIG_MOB_UPDATE_SIGHT) user.update_sight() to_chat(user, "Your vision returns to normal.") diff --git a/code/modules/surgery/organs/augments_eyes.dm b/code/modules/surgery/organs/augments_eyes.dm index a8ee1beb2a6..0dc99e310cb 100644 --- a/code/modules/surgery/organs/augments_eyes.dm +++ b/code/modules/surgery/organs/augments_eyes.dm @@ -56,7 +56,7 @@ implant_color = "#AEFF00" origin_tech = "materials=4;engineering=4;biotech=4;magnets=4" vision_flags = SEE_TURFS - lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_INVISIBLE + lighting_alpha = LIGHTING_PLANE_ALPHA_MOSTLY_VISIBLE aug_message = "Suddenly, you realize how much of a mess the station really is..." /obj/item/organ/internal/cyberimp/eyes/xray