mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
Adds the conveyor belt placer for easier conveyor belt production
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
/obj/item/storage/conveyor //Stores conveyor belts, click floor to make belt, use a conveyor switch on this to link all belts to that lever.
|
||||
name = "conveyor belt placer"
|
||||
desc = "This device facilitates the rapid deployment of conveyor belts."
|
||||
icon_state = "belt_placer"
|
||||
w_class = WEIGHT_CLASS_BULKY //Because belts are large things, you know?
|
||||
can_hold = list(/obj/item/conveyor_construct)
|
||||
max_w_class = WEIGHT_CLASS_BULKY
|
||||
max_combined_w_class = 28 //7 belts
|
||||
allow_quick_gather = TRUE
|
||||
allow_quick_empty = TRUE
|
||||
display_contents_with_number = TRUE
|
||||
use_to_pickup = TRUE
|
||||
origin_tech = "engineering=1"
|
||||
|
||||
/obj/item/storage/conveyor/bluespace
|
||||
name = "bluespace conveyor belt placer"
|
||||
desc = "This device facilitates the rapid deployment of conveyor belts. This one has an unlimited capacity for belts, thanks to bluespace technology."
|
||||
icon_state = "bluespace_belt_placer"
|
||||
w_class = WEIGHT_CLASS_NORMAL
|
||||
storage_slots = INFINITY
|
||||
max_combined_w_class = INFINITY
|
||||
origin_tech = "engineering=2;bluespace=1"
|
||||
|
||||
/obj/item/storage/conveyor/attackby(obj/item/conveyor_switch_construct/S, mob/user, params) //So we can link belts en masse
|
||||
if(istype(S))
|
||||
var/linked = FALSE //For nice message
|
||||
for(var/obj/item/conveyor_construct/C in src)
|
||||
C.id = S.id
|
||||
linked = TRUE
|
||||
if(linked)
|
||||
to_chat(user, "<span class='notice'>All belts in [src] linked with [S].</span>")
|
||||
else
|
||||
..()
|
||||
|
||||
/obj/item/storage/conveyor/afterattack(atom/A, mob/user, proximity)
|
||||
var/obj/item/conveyor_construct/C = locate() in src
|
||||
if(!C)
|
||||
to_chat(user, "<span class='notice'>There are no belts in [src].</span>")
|
||||
else
|
||||
C.afterattack(A, user, proximity)
|
||||
Reference in New Issue
Block a user