mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
This commit is contained in:
@@ -22,10 +22,11 @@ var/list/marker_beacon_colors = list(
|
||||
description_info = "Use inhand to drop one marker beacon. You can pick them up again with an empty hand or \
|
||||
hitting them with this marker stack. Alt-click to select a specific color."
|
||||
icon = 'icons/obj/lighting.dmi'
|
||||
icon_state = "marker"
|
||||
icon_state = "markerrandom"
|
||||
max_amount = 100
|
||||
no_variants = TRUE
|
||||
w_class = ITEMSIZE_SMALL
|
||||
var/icon_base = "marker"
|
||||
var/picked_color = "random"
|
||||
|
||||
/obj/item/stack/marker_beacon/ten
|
||||
@@ -47,7 +48,7 @@ var/list/marker_beacon_colors = list(
|
||||
. += span_notice("Alt-click to select a color. Current color is [picked_color].")
|
||||
|
||||
/obj/item/stack/marker_beacon/update_icon()
|
||||
icon_state = "[initial(icon_state)][lowertext(picked_color)]"
|
||||
icon_state = "[icon_base][lowertext(picked_color)]"
|
||||
|
||||
/obj/item/stack/marker_beacon/attack_self(mob/user)
|
||||
if(!isturf(user.loc))
|
||||
@@ -79,11 +80,12 @@ var/list/marker_beacon_colors = list(
|
||||
name = "marker beacon"
|
||||
desc = "A prismatic path illumination device. It is anchored in place and glowing steadily."
|
||||
icon = 'icons/obj/lighting.dmi'
|
||||
icon_state = "marker"
|
||||
icon_state = "markerrandom"
|
||||
// layer = BELOW_OPEN_DOOR_LAYER
|
||||
anchored = TRUE
|
||||
light_range = 2
|
||||
light_power = 0.8
|
||||
var/icon_base = "marker"
|
||||
var/remove_speed = 15
|
||||
var/picked_color
|
||||
var/perma = FALSE
|
||||
@@ -105,7 +107,7 @@ var/list/marker_beacon_colors = list(
|
||||
/obj/structure/marker_beacon/update_icon()
|
||||
if(!picked_color || !marker_beacon_colors[picked_color])
|
||||
picked_color = pick(marker_beacon_colors)
|
||||
icon_state = "[initial(icon_state)][lowertext(picked_color)]-on"
|
||||
icon_state = "[icon_base][lowertext(picked_color)]-on"
|
||||
set_light(light_range, light_power, marker_beacon_colors[picked_color])
|
||||
|
||||
/obj/structure/marker_beacon/attack_hand(mob/living/user)
|
||||
|
||||
Reference in New Issue
Block a user