mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
[MIRROR] Moves cleaning to an atom proc to afterattack signal [MDB IGNORE] (#16813)
* Moves cleaning to an atom proc to afterattack signal * Fixing conflict! Co-authored-by: John Willard <53777086+JohnFulpWillard@users.noreply.github.com> Co-authored-by: GoldenAlpharex <jerego1234@hotmail.com>
This commit is contained in:
co-authored by
John Willard
GoldenAlpharex
parent
8676942ee2
commit
3bf620006b
@@ -348,6 +348,20 @@
|
||||
else
|
||||
set_opacity(initial(opacity))
|
||||
|
||||
/obj/structure/window/wash(clean_types)
|
||||
. = ..()
|
||||
if(!(clean_types & CLEAN_SCRUB))
|
||||
return
|
||||
set_opacity(initial(opacity))
|
||||
remove_atom_colour(WASHABLE_COLOUR_PRIORITY)
|
||||
for(var/atom/movable/cleanables as anything in src)
|
||||
if(cleanables == src)
|
||||
continue
|
||||
if(!cleanables.wash(clean_types))
|
||||
continue
|
||||
vis_contents -= cleanables
|
||||
bloodied = FALSE
|
||||
|
||||
/obj/structure/window/Destroy()
|
||||
set_density(FALSE)
|
||||
air_update_turf(TRUE, FALSE)
|
||||
|
||||
Reference in New Issue
Block a user