mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-29 07:59:01 +01:00
Fixes the pool's overlay making impossible to click spessmen inside water (#4004)
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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."
|
||||
Reference in New Issue
Block a user