Skip to content

Commit

Permalink
how does that happen ??
Browse files Browse the repository at this point in the history
  • Loading branch information
Paxilmaniac committed Dec 21, 2024
1 parent b3e3105 commit a68ec61
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions code/game/turfs/open/water.dm
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
immerse_overlay_alpha = 190
fishing_datum = /datum/fish_source/hot_spring
/// Holder for the steam particles
var/obj/effect/abstract/particle_holder/cached/steam_effect
var/obj/effect/abstract/particle_holder/cached/particle_effect

/turf/open/water/hot_spring/Initialize(mapload)
. = ..()
Expand All @@ -121,18 +121,18 @@
AddElement(/datum/element/immerse, icon, icon_state, "immerse", immerse_overlay_color, alpha = immerse_overlay_alpha)
immerse_added = TRUE
icon_state = "pool_[rand(1, 4)]"
steam_effect = new(src, /particles/hotspring_steam, 4)
particle_effect = new(src, /particles/hotspring_steam, 4)
//render the steam over mobs and objects on the game plane
steam_effect.vis_flags &= ~VIS_INHERIT_PLANE
particle_effect.vis_flags &= ~VIS_INHERIT_PLANE
//And be unaffected by ambient occlusions, which would render the steam grey
steam_effect.plane = MUTATE_PLANE(MASSIVE_OBJ_PLANE, src)
particle_effect.plane = MUTATE_PLANE(MASSIVE_OBJ_PLANE, src)
add_filter("hot_spring_waves", 1, wave_filter(y = 1, size = 1, offset = 0, flags = WAVE_BOUNDED))
var/filter = get_filter("hot_spring_waves")
animate(filter, offset = 1, time = 3 SECONDS, loop = -1, easing = SINE_EASING|EASE_IN|EASE_OUT)
animate(offset = 0, time = 3 SECONDS, easing = SINE_EASING|EASE_IN|EASE_OUT)

/turf/open/water/hot_spring/Destroy()
QDEL_NULL(steam_effect)
QDEL_NULL(particle_effect)
remove_filter("hot_spring_waves")
for(var/atom/movable/movable as anything in contents)
exit_hot_spring(movable)
Expand Down

0 comments on commit a68ec61

Please sign in to comment.