Skip to content

Commit

Permalink
[MIRROR] Add smoke particles to fireplace [MDB IGNORE] (#287)
Browse files Browse the repository at this point in the history
* Add smoke particles to fireplace (#79228)

---------

Co-authored-by: SkyratBot <[email protected]>
Co-authored-by: Tim <[email protected]>
  • Loading branch information
3 people authored Oct 25, 2023
1 parent eb5fff8 commit e4e39cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/game/objects/effects/particles/smoke.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
/particles/smoke/burning
position = list(0, 0, 0)

/particles/smoke/burning/fireplace
position = list(0, 29, 0)

/particles/smoke/burning/small
spawning = 1
scale = list(0.8, 0.8)
Expand Down
2 changes: 2 additions & 0 deletions code/game/objects/structures/fireplace.dm
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
fuel_added = 0
update_appearance()
adjust_light()
particles = new /particles/smoke/burning/fireplace()

/obj/structure/fireplace/proc/put_out()
STOP_PROCESSING(SSobj, src)
Expand All @@ -175,6 +176,7 @@
update_appearance()
adjust_light()
desc = initial(desc)
QDEL_NULL(particles)

#undef LOG_BURN_TIMER
#undef PAPER_BURN_TIMER
Expand Down

0 comments on commit e4e39cb

Please sign in to comment.