diff --git a/code/game/machinery/ai_slipper.dm b/code/game/machinery/ai_slipper.dm index 6ad0d3f3ecf..742a253015c 100644 --- a/code/game/machinery/ai_slipper.dm +++ b/code/game/machinery/ai_slipper.dm @@ -51,7 +51,7 @@ /obj/machinery/ai_slipper/attack_ai(mob/user) return attack_hand(user) - + /obj/machinery/ai_slipper/attack_ghost(mob/user) return attack_hand(user) @@ -93,7 +93,7 @@ if(cooldown_on || disabled) return else - new /obj/effect/effect/foam(loc) + new /obj/structure/foam(loc) uses-- cooldown_on = 1 cooldown_time = world.timeofday + 100 diff --git a/code/game/objects/effects/effect_system.dm b/code/game/objects/effects/effect_system.dm index fa6ea110c23..2f3995c1a8d 100644 --- a/code/game/objects/effects/effect_system.dm +++ b/code/game/objects/effects/effect_system.dm @@ -877,21 +877,22 @@ steam.start() -- spawns the effect // Similar to smoke, but spreads out more // metal foams leave behind a foamed metal wall -/obj/effect/effect/foam +/obj/structure/foam name = "foam" + icon = 'icons/effects/effects.dmi' icon_state = "foam" opacity = 0 anchored = 1 density = 0 layer = OBJ_LAYER + 0.9 mouse_opacity = 0 + animate_movement = 0 var/amount = 3 var/expand = 1 - animate_movement = 0 var/metal = 0 -/obj/effect/effect/foam/New(loc, var/ismetal=0) +/obj/structure/foam/New(loc, var/ismetal=0) ..(loc) icon_state = "[ismetal ? "m":""]foam" if(!ismetal && reagents) @@ -918,11 +919,11 @@ steam.start() -- spawns the effect flick("[icon_state]-disolve", src) sleep(5) - delete() + qdel(src) return // on delete, transfer any reagents to the floor -/obj/effect/effect/foam/Destroy() +/obj/structure/foam/Destroy() if(!metal && reagents) reagents.handle_reactions() for(var/atom/A in oview(1, src)) @@ -933,7 +934,7 @@ steam.start() -- spawns the effect reagents.reaction(A, TOUCH, fraction) return ..() -/obj/effect/effect/foam/process() +/obj/structure/foam/process() if(--amount < 0) return @@ -948,11 +949,11 @@ steam.start() -- spawns the effect if(!T.Enter(src)) continue - var/obj/effect/effect/foam/F = locate() in T + var/obj/structure/foam/F = locate() in T if(F) continue - F = new /obj/effect/effect/foam(T, metal) + F = new /obj/structure/foam(T, metal) F.amount = amount if(!metal) F.create_reagents(15) @@ -963,15 +964,15 @@ steam.start() -- spawns the effect // foam disolves when heated // except metal foams -/obj/effect/effect/foam/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume) +/obj/structure/foam/temperature_expose(datum/gas_mixture/air, exposed_temperature, exposed_volume) if(!metal && prob(max(0, exposed_temperature - 475))) flick("[icon_state]-disolve", src) spawn(5) - delete() + qdel(src) -/obj/effect/effect/foam/Crossed(var/atom/movable/AM) +/obj/structure/foam/Crossed(var/atom/movable/AM) if(metal) return @@ -1016,13 +1017,13 @@ steam.start() -- spawns the effect /datum/effect/system/foam_spread/start() spawn(0) - var/obj/effect/effect/foam/F = locate() in location + var/obj/structure/foam/F = locate() in location if(F) F.amount += amount F.amount = min(F.amount, 27) return - F = new /obj/effect/effect/foam(location, metal) + F = new /obj/structure/foam(location, metal) F.amount = amount if(!metal) // don't carry other chemicals if a metal foam diff --git a/code/game/objects/items/weapons/tanks/watertank.dm b/code/game/objects/items/weapons/tanks/watertank.dm index 9068460ae80..00dc66e1b94 100644 --- a/code/game/objects/items/weapons/tanks/watertank.dm +++ b/code/game/objects/items/weapons/tanks/watertank.dm @@ -301,7 +301,7 @@ if(!Adj|| !istype(target, /turf)) return if(metal_synthesis_cooldown < 5) - var/obj/effect/effect/foam/F = new /obj/effect/effect/foam(get_turf(target), 1) + var/obj/structure/foam/F = new /obj/structure/foam(get_turf(target), 1) F.amount = 0 metal_synthesis_cooldown++ spawn(100) diff --git a/code/modules/mob/living/simple_animal/bot/cleanbot.dm b/code/modules/mob/living/simple_animal/bot/cleanbot.dm index 2aebeb5d04a..f9f1bbf1c08 100644 --- a/code/modules/mob/living/simple_animal/bot/cleanbot.dm +++ b/code/modules/mob/living/simple_animal/bot/cleanbot.dm @@ -98,7 +98,7 @@ if(prob(5)) //Spawns foam! visible_message("[src] whirs and bubbles violently, before releasing a plume of froth!") - new /obj/effect/effect/foam(loc) + new /obj/structure/foam(loc) else if(prob(5)) audible_message("[src] makes an excited beeping booping sound!")