mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-20 11:31:12 +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>
115 lines
3.2 KiB
Plaintext
115 lines
3.2 KiB
Plaintext
/obj/item/flashlight/lamp
|
|
name = "desk lamp"
|
|
desc = "A desk lamp with an adjustable mount."
|
|
icon_state = "lamp"
|
|
item_state = "lamp"
|
|
center_of_mass = list("x" = 13,"y" = 11)
|
|
w_class = WEIGHT_CLASS_HUGE
|
|
obj_flags = OBJ_FLAG_CONDUCTABLE
|
|
power_use = FALSE
|
|
on = TRUE
|
|
slot_flags = 0 //No wearing desklamps
|
|
toggle_sound = SFX_SWITCH
|
|
activation_sound = 'sound/effects/lighton.ogg'
|
|
light_system = MOVABLE_LIGHT
|
|
light_range = 3
|
|
flashlight_power = 1.0
|
|
|
|
/obj/item/flashlight/lamp/mechanics_hints(mob/user, distance, is_adjacent)
|
|
. += ..()
|
|
. += "Left-click this item in-hand to toggle the light, or right-click it and use the 'Toggle Light' verb."
|
|
|
|
/obj/item/flashlight/lamp/antagonist_hints(mob/user, distance, is_adjacent)
|
|
. += ..()
|
|
. += "As a Cultist, this item can be reforged to become a pylon."
|
|
|
|
/obj/item/flashlight/lamp/off
|
|
on = FALSE
|
|
|
|
// green-shaded desk lamp
|
|
/obj/item/flashlight/lamp/green
|
|
desc = "A classic green-shaded desk lamp."
|
|
icon_state = "lampgreen"
|
|
item_state = "lampgreen"
|
|
light_range = 4
|
|
light_color = "#FFC58F"
|
|
toggle_sound = 'sound/machines/switch_chain.ogg'
|
|
|
|
/obj/item/flashlight/lamp/verb/toggle_light()
|
|
set name = "Toggle Light"
|
|
set category = "Object"
|
|
set src in oview(1)
|
|
|
|
if(!usr.stat)
|
|
attack_self(usr)
|
|
|
|
//Lava Lamps: Because we're already stuck in the 70ies with those fax machines.
|
|
/obj/item/flashlight/lamp/lava
|
|
name = "data encryption lamp"
|
|
desc = "Random oil globules within were parsed in photos for your protection. Enjoy this kitschy memorabilia by sticking it on your desk."
|
|
icon_state = "lavalamp"
|
|
light_range = 3
|
|
flashlight_power = 0.5
|
|
matter = list(DEFAULT_WALL_MATERIAL = 250, MATERIAL_GLASS = 200)
|
|
|
|
/obj/item/flashlight/lamp/lava/update_icon()
|
|
if(on)
|
|
set_light_range_power_color(light_range, flashlight_power, light_color)
|
|
else
|
|
set_light(0)
|
|
set_light_on(on)
|
|
ClearOverlays()
|
|
var/image/I = image(icon = icon, icon_state = "lavalamp-[on ? "on" : "off"]")
|
|
I.color = light_color
|
|
AddOverlays(I)
|
|
|
|
/obj/item/flashlight/lamp/lava/red
|
|
light_color = COLOR_RED
|
|
|
|
/obj/item/flashlight/lamp/lava/blue
|
|
light_color = COLOR_BLUE
|
|
|
|
/obj/item/flashlight/lamp/lava/cyan
|
|
light_color = COLOR_CYAN
|
|
|
|
/obj/item/flashlight/lamp/lava/green
|
|
light_color = COLOR_GREEN
|
|
|
|
/obj/item/flashlight/lamp/lava/orange
|
|
light_color = COLOR_ORANGE
|
|
|
|
/obj/item/flashlight/lamp/lava/purple
|
|
light_color = COLOR_PURPLE
|
|
|
|
/obj/item/flashlight/lamp/lava/pink
|
|
light_color = COLOR_PINK
|
|
|
|
/obj/item/flashlight/lamp/lava/yellow
|
|
light_color = COLOR_YELLOW
|
|
|
|
/obj/item/flashlight/lamp/stage
|
|
name = "stage lamp"
|
|
desc = "A portable, beautiful and flashy stage light!"
|
|
light_color = COLOR_ORANGE
|
|
icon_state = "stage"
|
|
|
|
/obj/item/flashlight/lamp/holodeck
|
|
name = "holographic lighting orb"
|
|
desc = "A floating orb that comes in a variety of colors. Optional holodeck lighting."
|
|
anchored = 1
|
|
light_range = 12
|
|
light_color = "#ffcb9b"
|
|
icon = 'icons/effects/props/holodeck/holodeck_tools.dmi'
|
|
icon_state = "orb"
|
|
|
|
/obj/item/flashlight/lamp/holodeck/attack_hand(mob/user)
|
|
toggle()
|
|
|
|
/obj/item/flashlight/lamp/box
|
|
name = "box lamp"
|
|
desc = "A box-shaped traditional flame lamp. Less safe, more pretty."
|
|
light_range = 5
|
|
light_color = "#ffcb9b"
|
|
icon = 'icons/effects/props/holodeck/konyang/32x32.dmi'
|
|
icon_state = "boxlamp"
|