sandbags rah rah rah

This commit is contained in:
Lularian
2016-04-25 05:04:11 -05:00
parent 58a5baff6c
commit 322fc535ad
8 changed files with 25 additions and 17 deletions
+20
View File
@@ -36,6 +36,8 @@
/obj/structure/closet/secure_closet/miner/New()
..()
new /obj/item/stack/sheet/mineral/sandbags(src, 5)
new /obj/item/weapon/storage/box/emptysandbags(src)
new /obj/item/device/radio/headset/headset_cargo(src)
new /obj/item/device/t_scanner/adv_mining_scanner/lesser(src)
new /obj/item/weapon/storage/bag/ore(src)
@@ -46,6 +48,7 @@
new /obj/item/weapon/survivalcapsule(src)
/**********************Shuttle Computer**************************/
/obj/machinery/computer/shuttle/mining
@@ -428,3 +431,20 @@
anchored = 1
layer = MOB_LAYER - 0.2
density = 0
/obj/item/weapon/emptysandbag
name = "empty sandbag"
desc = "A bag to be filled with sand."
icon = 'icons/obj/items.dmi'
icon_state = "sandbag"
w_class = 1
/obj/item/weapon/emptysandbag/attackby(obj/item/W, mob/user, params)
if(istype(W,/obj/item/weapon/ore/glass || /obj/item/weapon/ore/glass/basalt))
user << "<span class='notice'>You fill the sandbag.</span>"
var/obj/item/stack/sheet/mineral/sandbags/I = new /obj/item/stack/sheet/mineral/sandbags
user.unEquip(src)
user.put_in_hands(I)
qdel(W)
qdel(src)
return