Skip to content

Commit

Permalink
was doing it wrong, fixed now
Browse files Browse the repository at this point in the history
  • Loading branch information
SECBATON-GRIFFON committed Jan 1, 2025
1 parent 73a1f3c commit ab257c1
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions code/game/objects/effects/effect_system.dm
Original file line number Diff line number Diff line change
Expand Up @@ -752,12 +752,15 @@ steam.start() -- spawns the effect

if(metal)
var/turf/T = get_turf(src)
if(istype(T, /turf/space) || istype(T, /turf/simulated/open))
T.ChangeTurf(/turf/simulated/floor/foamedmetal)
if(metal == 2)
var/obj/structure/foamedmetal/M = new(src.loc)
M.metal = metal
M.updateicon()
if(metal > 2)
T.ChangeTurf(/turf/simulated/floor/mineral/reticulite)
else
if(istype(T, /turf/space) || istype(T, /turf/simulated/open))
T.ChangeTurf(/turf/simulated/floor/foamedmetal)
if(metal == 2)
var/obj/structure/foamedmetal/M = new(src.loc)
M.metal = metal
M.updateicon()

flick("[icon_state]-disolve", src)
sleep(5)
Expand Down Expand Up @@ -878,9 +881,6 @@ steam.start() -- spawns the effect

/datum/effect/system/foam_spread/start()
spawn(0)
if(metal > 2)
location.ChangeTurf(/turf/simulated/floor/mineral/reticulite)
return
var/obj/effect/foam/F = locate() in location
if(F)
F.amount += amount
Expand Down

0 comments on commit ab257c1

Please sign in to comment.