Skip to content

Commit

Permalink
fix delete
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle committed Jan 28, 2025
1 parent f5d64db commit 27a58ae
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/obj/artifacts/artifact_objects/lamp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,14 @@
light.set_brightness(light_brightness)
light.set_color(light_r, light_g, light_b)
light.attach(src)
if(prob(20)) //20 chance this is an inverting lamp
if(prob(100)) //20 chance this is an inverting lamp
bonus_light = new /obj/effect/whackylight(src, light.radius)
src.vis_contents += bonus_light

disposing()
. = ..()
QDEL_NULL(bonus_light) //because it exists on the map, it won't get cleaned up automatically

/datum/artifact/lamp
associated_object = /obj/artifact/lamp
type_name = "Lamp"
Expand Down

0 comments on commit 27a58ae

Please sign in to comment.