mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 03:51:49 +01:00
This has zero reason to exist in our code base. We have no procs or variables tied to this. I removed it to make future modifications cleaner. --------- Signed-off-by: Cody Brittain <1779662+Generalcamo@users.noreply.github.com>
81 lines
2.2 KiB
Plaintext
81 lines
2.2 KiB
Plaintext
/obj/item/flashlight/flare/glowstick
|
|
name = "green glowstick"
|
|
desc = "A green military-grade glowstick."
|
|
w_class = WEIGHT_CLASS_SMALL
|
|
light_system = MOVABLE_LIGHT
|
|
light_range = 1.2
|
|
flashlight_power = 2
|
|
light_color = "#49F37C"
|
|
icon_state = "glowstick"
|
|
item_state = "glowstick"
|
|
produce_heat = 0
|
|
activation_sound = 'sound/items/glowstick.ogg'
|
|
toggle_sound = null
|
|
|
|
/obj/item/flashlight/flare/glowstick/Initialize()
|
|
. = ..()
|
|
fuel = rand(9 MINUTES, 12 MINUTES)
|
|
set_light_color(color)
|
|
|
|
/obj/item/flashlight/flare/glowstick/process()
|
|
fuel = max(fuel - 1, 0)
|
|
if(!fuel || !on)
|
|
turn_off()
|
|
if(!fuel)
|
|
src.icon_state = "[initial(icon_state)]-empty"
|
|
STOP_PROCESSING(SSprocessing, src)
|
|
|
|
/obj/item/flashlight/flare/glowstick/update_icon()
|
|
overlays.Cut()
|
|
if(!fuel)
|
|
icon_state = "[initial(icon_state)]-empty"
|
|
set_light_on(0)
|
|
else if(on)
|
|
var/image/I = overlay_image(icon, "glowstick-overlay", color)
|
|
I.blend_mode = BLEND_ADD
|
|
AddOverlays(I)
|
|
icon_state = "[initial(icon_state)]-on"
|
|
item_state = "[initial(icon_state)]-on"
|
|
set_light_range_power_color(light_range, flashlight_power, light_color)
|
|
set_light_on(on)
|
|
else
|
|
icon_state = initial(icon_state)
|
|
update_held_icon()
|
|
|
|
/obj/item/flashlight/flare/glowstick/activate(mob/user)
|
|
if(istype(user))
|
|
user.visible_message(
|
|
SPAN_NOTICE("\The [user] cracks and shakes \the [src]."),
|
|
SPAN_NOTICE("You crack and shake \the [src], turning it on!"),
|
|
SPAN_NOTICE("You hear someone crack and shake a glowstick.")
|
|
)
|
|
|
|
/obj/item/flashlight/flare/glowstick/red
|
|
name = "red glowstick"
|
|
desc = "A red military-grade glowstick."
|
|
color = "#FC0F29"
|
|
|
|
/obj/item/flashlight/flare/glowstick/blue
|
|
name = "blue glowstick"
|
|
desc = "A blue military-grade glowstick."
|
|
color = "#599DFF"
|
|
|
|
/obj/item/flashlight/flare/glowstick/orange
|
|
name = "orange glowstick"
|
|
desc = "A orange military-grade glowstick."
|
|
color = "#FA7C0B"
|
|
|
|
/obj/item/flashlight/flare/glowstick/yellow
|
|
name = "yellow glowstick"
|
|
desc = "A yellow military-grade glowstick."
|
|
color = "#FEF923"
|
|
|
|
/obj/item/flashlight/flare/glowstick/random
|
|
name = "glowstick"
|
|
desc = "A party-grade glowstick."
|
|
color = "#FF00FF"
|
|
|
|
/obj/item/flashlight/flare/glowstick/random/Initialize()
|
|
color = rgb(rand(50, 255), rand(50, 255), rand(50, 255))
|
|
. = ..()
|