mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
[MIRROR] Bluespace Light Replacer!! [MDB IGNORE] (#17293)
This commit is contained in:
@@ -57,6 +57,9 @@
|
||||
// when we get this many shards, we get a free bulb.
|
||||
var/shards_required = 4
|
||||
|
||||
// whether it is "bluespace powered" (can be used at a range)
|
||||
var/bluespace_toggle = FALSE
|
||||
|
||||
/obj/item/lightreplacer/examine(mob/user)
|
||||
. = ..()
|
||||
. += status_string()
|
||||
@@ -227,7 +230,7 @@
|
||||
|
||||
/obj/item/lightreplacer/afterattack(atom/T, mob/U, proximity)
|
||||
. = ..()
|
||||
if(!proximity)
|
||||
if(!proximity && !bluespace_toggle)
|
||||
return
|
||||
if(!isturf(T))
|
||||
return
|
||||
@@ -238,6 +241,9 @@
|
||||
break
|
||||
used = TRUE
|
||||
if(istype(A, /obj/machinery/light))
|
||||
if(!proximity && bluespace_toggle)
|
||||
U.Beam(A, icon_state = "rped_upgrade", time = 1 SECONDS)
|
||||
playsound(src, 'sound/items/pshoom.ogg', 40, 1)
|
||||
ReplaceLight(A, U)
|
||||
|
||||
if(!used)
|
||||
@@ -246,3 +252,12 @@
|
||||
/obj/item/lightreplacer/cyborg/Initialize(mapload)
|
||||
. = ..()
|
||||
ADD_TRAIT(src, TRAIT_NODROP, CYBORG_ITEM_TRAIT)
|
||||
|
||||
/obj/item/lightreplacer/blue
|
||||
name = "bluespace light replacer"
|
||||
desc = "A modified light replacer that zaps lights into place. Refill with broken or working lightbulbs, or sheets of glass."
|
||||
icon_state = "lightreplacer_blue0"
|
||||
bluespace_toggle = TRUE
|
||||
|
||||
/obj/item/lightreplacer/blue/emag_act()
|
||||
return // balancing against longrange explosions
|
||||
|
||||
@@ -486,6 +486,18 @@
|
||||
)
|
||||
departmental_flags = DEPARTMENT_BITFLAG_SERVICE
|
||||
|
||||
/datum/design/light_replacer_blue
|
||||
name = "Bluespace Light Replacer"
|
||||
desc = "A device to automatically replace lights at a distance. Refill with working light bulbs."
|
||||
id = "light_replacer_blue"
|
||||
build_type = PROTOLATHE
|
||||
materials = list(/datum/material/iron = 1500, /datum/material/silver = 150, /datum/material/glass = 3000, /datum/material/bluespace = 300)
|
||||
build_path = /obj/item/lightreplacer/blue
|
||||
category = list(
|
||||
RND_CATEGORY_TOOLS + RND_SUBCATEGORY_TOOLS_JANITORIAL
|
||||
)
|
||||
departmental_flags = DEPARTMENT_BITFLAG_SERVICE | DEPARTMENT_BITFLAG_ENGINEERING
|
||||
|
||||
/datum/design/buffer_upgrade
|
||||
name = "Floor Buffer Upgrade"
|
||||
desc = "A floor buffer that can be attached to vehicular janicarts."
|
||||
|
||||
@@ -66,6 +66,7 @@
|
||||
"kitchen_knife",
|
||||
"laptop",
|
||||
"light_bulb",
|
||||
"light_replacer",
|
||||
"light_tube",
|
||||
"mechfab",
|
||||
"micro_mani",
|
||||
@@ -1460,7 +1461,7 @@
|
||||
"buffer",
|
||||
"vacuum",
|
||||
"holobarrier_jani",
|
||||
"light_replacer",
|
||||
"light_replacer_blue",
|
||||
"paint_remover",
|
||||
"spraybottle",
|
||||
)
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 32 KiB |
Reference in New Issue
Block a user