Light Replacer Improvements (#772)

rscadd: "Light Replacers can now be used on a box of lights to automatically refill them."
rscadd: "Added an Advanced Light Replacer, creatable at science. It sucks up broken bulbs into an internal storage, greatly expediting mass-light-fixing"
tweak: "Custodial cyborg module now comes with an advanced light replacer."
This commit is contained in:
NanakoAC
2016-09-10 22:40:16 +03:00
committed by skull132
parent cac92dfcc9
commit 2e0389ed19
9 changed files with 183 additions and 21 deletions
@@ -468,7 +468,7 @@ var/global/list/robot_modules = list(
src.modules += new /obj/item/weapon/soap/nanotrasen(src)
src.modules += new /obj/item/weapon/storage/bag/trash(src)
src.modules += new /obj/item/weapon/mop(src)
src.modules += new /obj/item/device/lightreplacer(src)
src.modules += new /obj/item/device/lightreplacer/advanced(src)
src.emag = new /obj/item/weapon/reagent_containers/spray(src)
src.emag.reagents.add_reagent("lube", 250)
src.emag.name = "Lube spray"
+15
View File
@@ -105,6 +105,21 @@
update()
return
else if (istype (I, /obj/item/device/lightreplacer))
var/count = 0
var/obj/item/device/lightreplacer/R = I
if (R.store_broken)
for(var/obj/item/weapon/light/L in R.contents)
count++
L.forceMove(src)
if (count)
user << "\blue You empty [count] broken bulbs into the disposal."
else
user << "\blue There are no broken bulbs to empty out."
update()
return
var/obj/item/weapon/grab/G = I
if(istype(G)) // handle grabbed mob
if(ismob(G.affecting))
+8
View File
@@ -1684,6 +1684,14 @@ datum/design/item/experimental_welder
materials = list("$metal" = 500)
build_path =/obj/item/weapon/weldingtool/experimental
datum/design/item/advanced_light_replacer
name = "Advanced Light Replacer"
desc = "A specialised light replacer which stores more lights, refills faster from boxes, and sucks up broken bulbs."
id = "advanced_light_replacer"
req_tech = list("materials" = 3, "powerstorage" = 3)
materials = list("$metal" = 500)
build_path =/obj/item/device/lightreplacer/advanced
//////exosuit modules - allow robotics to print some modules, maybe a generic rig, but more things for them to do --Alberyk
datum/design/item/rigmodule