Refactors the atmos watertank backpack (#24177)

* Refactors the atmos watertank backpack

* Update code/game/objects/items/weapons/tanks/watertank.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

* Update code/game/objects/items/weapons/tanks/watertank.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>

* Adds spans

* Henri review

---------

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
This commit is contained in:
DGamerL
2024-02-19 19:07:11 +00:00
committed by GitHub
co-authored by Henri215
parent e807de3d07
commit 766704700e
6 changed files with 61 additions and 61 deletions
@@ -13,14 +13,14 @@
var/expand = 1
var/metal = 0
/obj/effect/particle_effect/foam/New(loc, ismetal=0)
/obj/effect/particle_effect/foam/New(loc, ismetal = FALSE)
..(loc)
icon_state = "[ismetal ? "m":""]foam"
if(!ismetal && reagents)
color = mix_color_from_reagents(reagents.reagent_list)
metal = ismetal
playsound(src, 'sound/effects/bubbles2.ogg', 80, 1, -3)
spawn(3 + metal*3)
playsound(src, 'sound/effects/bubbles2.ogg', 80, TRUE, -3)
spawn(3 + metal * 3)
process()
spawn(120)
STOP_PROCESSING(SSobj, src)
@@ -171,7 +171,7 @@
for(var/obj/item/Item in T)
Item.extinguish()
/datum/effect_system/smoke_spread/freezing/set_up(amount = 5, only_cardinals = FALSE, source, desired_direction, blasting = 0)
/datum/effect_system/smoke_spread/freezing/set_up(amount = 5, only_cardinals = FALSE, source, desired_direction, blasting = FALSE)
..()
blast = blasting