mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Fixes sleeping smoke never disappearing. Also switching processing.Add(src) to processing |= src.
Makes the empty space on the chem bottles sprites clickable. Fixes a runtime with reagent_containers/throw_impact()
This commit is contained in:
@@ -29,7 +29,7 @@
|
||||
/obj/effect/effect/foam/New(loc)
|
||||
..(loc)
|
||||
create_reagents(1000) //limited by the size of the reagent holder anyway.
|
||||
SSobj.processing.Add(src)
|
||||
SSobj.processing |= src
|
||||
playsound(src, 'sound/effects/bubbles2.ogg', 80, 1, -3)
|
||||
|
||||
/obj/effect/effect/foam/Destroy()
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
/obj/effect/effect/smoke/New()
|
||||
..()
|
||||
create_reagents(500)
|
||||
SSobj.processing.Add(src)
|
||||
SSobj.processing |= src
|
||||
lifetime += rand(-1,1)
|
||||
|
||||
/obj/effect/effect/smoke/Destroy()
|
||||
@@ -276,8 +276,9 @@
|
||||
lifetime = 10
|
||||
|
||||
/obj/effect/effect/smoke/sleeping/process()
|
||||
for(var/mob/living/carbon/M in range(1,src))
|
||||
smoke_mob(M)
|
||||
if(..())
|
||||
for(var/mob/living/carbon/M in range(1,src))
|
||||
smoke_mob(M)
|
||||
|
||||
/obj/effect/effect/smoke/sleeping/smoke_mob(mob/living/carbon/M)
|
||||
if(..())
|
||||
|
||||
Reference in New Issue
Block a user