Skip to content

Commit

Permalink
lamp signals
Browse files Browse the repository at this point in the history
  • Loading branch information
amylizzle committed Feb 25, 2025
1 parent 19ee459 commit 38dc144
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/obj/artifacts/artifact_objects/lamp.dm
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@

New(loc, radius=2, color=null)
.=..(get_turf(loc))
src.radius = radius
src.radius = ceil(radius)
if(isnull(color))
src.color = COLOR_MATRIX_INVERSE
else
src.color = color
src.appearance_flags |= RESET_TRANSFORM
RegisterSignal(loc, COMSIG_MOVABLE_SET_LOC, PROC_REF(update_whacky))
RegisterSignal(loc, COMSIG_MOVABLE_MOVED, PROC_REF(update_whacky))
update_whacky(loc, null, 0)

proc/update_whacky(var/atom/movable/thing)
Expand Down

0 comments on commit 38dc144

Please sign in to comment.