Fixes the pool's overlay making impossible to click spessmen inside water (#4004)

This commit is contained in:
Alberyk
2018-01-02 11:06:04 -06:00
committed by Lohikar
parent 5f975712d2
commit 1db4da34c1
2 changed files with 25 additions and 1 deletions
+19 -1
View File
@@ -22,6 +22,7 @@
footstep_sound = "waterstep"
movement_cost = 2
var/watertype = "water5"
var/obj/effect/water_effect/water_overlay
/turf/simulated/floor/beach/water/pool
name = "pool"
@@ -38,12 +39,29 @@
icon_state = "abyss"
watertype = "seadeep"
/obj/effect/water_effect
name = "water"
icon = 'icons/misc/beach.dmi'
layer = MOB_LAYER+0.1
opacity = FALSE
anchored = TRUE
mouse_opacity = FALSE
unacidable = TRUE
/turf/simulated/floor/beach/water/update_dirt()
return // Water doesn't become dirty
/turf/simulated/floor/beach/water/Initialize()
. = ..()
add_overlay(image("icon"='icons/misc/beach.dmi',"icon_state"="[watertype]","layer"=MOB_LAYER+0.1))
var/obj/effect/water_effect/W = new /obj/effect/water_effect(src)
W.icon_state = watertype
water_overlay = W
/turf/simulated/floor/beach/water/Destroy()
if(water_overlay)
qdel(water_overlay)
water_overlay = null
return ..()
/turf/simulated/floor/beach/water/return_air_for_internal_lifeform(var/mob/living/carbon/L)
if(L && L.lying)
+6
View File
@@ -0,0 +1,6 @@
author: Alberyk
delete-after: True
changes:
- bugfix: "You can now properly click on people and objects that are on water titles, such as the pool."