mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-31 03:52:31 +00:00
Converts most spans into span procs. Mostly used regex for this and sorted out any compile time errors afterwards so there could be some bugs. Was initially going to do defines, but ninja said to make it into a proc, and if there's any overhead, they can easily be changed to defines. Makes it easier to control the formatting and prevents typos when creating spans as it'll runtime if you misspell instead of silently failing. Reduces the code you need to write when writing spans, as you don't need to close the span as that's automatically handled by the proc. (Note from Lemon: This should be converted to defines once we update the minimum version to 514. Didn't do it now because byond pain and such)
101 lines
3.6 KiB
Plaintext
101 lines
3.6 KiB
Plaintext
/**********************Light************************/
|
|
|
|
//this item is intended to give the effect of entering the mine, so that light gradually fades
|
|
/obj/effect/light_emitter
|
|
name = "Light emitter"
|
|
anchored = TRUE
|
|
invisibility = 101
|
|
var/set_luminosity = 8
|
|
var/set_cap = 0
|
|
|
|
/obj/effect/light_emitter/Initialize()
|
|
. = ..()
|
|
set_light(set_luminosity, set_cap)
|
|
|
|
/obj/effect/light_emitter/singularity_pull()
|
|
return
|
|
|
|
/obj/effect/light_emitter/singularity_act()
|
|
return
|
|
|
|
/**********************Miner Lockers**************************/
|
|
|
|
/obj/structure/closet/wardrobe/miner
|
|
name = "mining wardrobe"
|
|
icon_door = "mixed"
|
|
|
|
/obj/structure/closet/wardrobe/miner/PopulateContents()
|
|
new /obj/item/storage/backpack/duffelbag(src)
|
|
new /obj/item/storage/backpack/explorer(src)
|
|
new /obj/item/storage/backpack/satchel/explorer(src)
|
|
new /obj/item/clothing/under/rank/cargo/miner/lavaland(src)
|
|
new /obj/item/clothing/under/rank/cargo/miner/lavaland(src)
|
|
new /obj/item/clothing/under/rank/cargo/miner/lavaland(src)
|
|
new /obj/item/clothing/shoes/workboots/mining(src)
|
|
new /obj/item/clothing/shoes/workboots/mining(src)
|
|
new /obj/item/clothing/shoes/workboots/mining(src)
|
|
new /obj/item/clothing/gloves/color/black(src)
|
|
new /obj/item/clothing/gloves/color/black(src)
|
|
new /obj/item/clothing/gloves/color/black(src)
|
|
new /obj/item/clothing/suit/hooded/wintercoat/miner(src)
|
|
new /obj/item/clothing/suit/hooded/wintercoat/miner(src)
|
|
new /obj/item/clothing/suit/hooded/wintercoat/miner(src)
|
|
|
|
/obj/structure/closet/secure_closet/miner
|
|
name = "miner's equipment"
|
|
icon_state = "mining"
|
|
req_access = list(ACCESS_MINING)
|
|
|
|
/obj/structure/closet/secure_closet/miner/unlocked
|
|
locked = FALSE
|
|
|
|
/obj/structure/closet/secure_closet/miner/PopulateContents()
|
|
..()
|
|
new /obj/item/stack/sheet/mineral/sandbags(src, 5)
|
|
new /obj/item/storage/box/emptysandbags(src)
|
|
new /obj/item/shovel(src)
|
|
new /obj/item/pickaxe/mini(src)
|
|
new /obj/item/radio/headset/headset_cargo/mining(src)
|
|
new /obj/item/flashlight/seclite(src)
|
|
new /obj/item/storage/bag/plants(src)
|
|
new /obj/item/storage/bag/ore(src)
|
|
new /obj/item/t_scanner/adv_mining_scanner/lesser(src)
|
|
new /obj/item/gun/energy/kinetic_accelerator(src)
|
|
new /obj/item/clothing/glasses/meson(src)
|
|
new /obj/item/survivalcapsule(src)
|
|
new /obj/item/assault_pod/mining(src)
|
|
|
|
|
|
/**********************Shuttle Computer**************************/
|
|
|
|
/obj/machinery/computer/shuttle/mining
|
|
name = "mining shuttle console"
|
|
desc = "Used to call and send the mining shuttle."
|
|
circuit = /obj/item/circuitboard/computer/mining_shuttle
|
|
shuttleId = "mining"
|
|
possible_destinations = "mining_home;mining_away;landing_zone_dock;mining_public"
|
|
no_destination_swap = TRUE
|
|
var/static/list/dumb_rev_heads = list()
|
|
|
|
//ATTACK HAND IGNORING PARENT RETURN VALUE
|
|
/obj/machinery/computer/shuttle/mining/attack_hand(mob/user, list/modifiers)
|
|
if(is_station_level(user.z) && user.mind && IS_HEAD_REVOLUTIONARY(user) && !(user.mind in dumb_rev_heads))
|
|
to_chat(user, span_warning("You get a feeling that leaving the station might be a REALLY dumb idea..."))
|
|
dumb_rev_heads += user.mind
|
|
return
|
|
. = ..()
|
|
|
|
/obj/machinery/computer/shuttle/mining/common
|
|
name = "lavaland shuttle console"
|
|
desc = "Used to call and send the lavaland shuttle."
|
|
circuit = /obj/item/circuitboard/computer/mining_shuttle/common
|
|
shuttleId = "mining_common"
|
|
possible_destinations = "commonmining_home;lavaland_common_away;landing_zone_dock;mining_public"
|
|
|
|
/**********************Mining car (Crate like thing, not the rail car)**************************/
|
|
|
|
/obj/structure/closet/crate/miningcar
|
|
desc = "A mining car. This one doesn't work on rails, but has to be dragged."
|
|
name = "Mining car (not for rails)"
|
|
icon_state = "miningcar"
|