Skip to content

Commit

Permalink
Merge pull request Blackstone-SS13#177 from Contrabang/fix-shrunken-lamp
Browse files Browse the repository at this point in the history
Fix shrunken lamps
  • Loading branch information
Contrabang authored Apr 18, 2024
2 parents ca4e394 + 57619b4 commit f3fa034
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions code/modules/underworld/underworld.dm
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,22 @@
// shit that eventually will need moved elsewhere
/obj/item/flashlight/lantern/shrunken
name = "shrunken lamp"
desc = "A beacon."
icon_state = "shrunkenlamp"
item_state = "shrunkenlamp"
lefthand_file = 'icons/mob/inhands/equipment/mining_lefthand.dmi'
righthand_file = 'icons/mob/inhands/equipment/mining_righthand.dmi'
desc = "A beacon."
light_range = 2 // luminosity when on
light_range = 4
light_power = 20
light_color = LIGHT_COLOR_BLOOD_MAGIC

/obj/item/flashlight/lantern/shrunken/update_brightness(mob/user = null)
if(on)
icon_state = "[initial(icon_state)]-on"
set_light(3, 20, LIGHT_COLOR_BLOOD_MAGIC)
set_light_on(TRUE)
else
icon_state = initial(icon_state)
set_light(0)
set_light_on(FALSE)


/obj/structure/underworld/carriageman
Expand Down

0 comments on commit f3fa034

Please sign in to comment.