mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Merge branch 'dev' of https://github.com/Zuhayr/Baystation12 into dev
This commit is contained in:
@@ -316,22 +316,22 @@
|
|||||||
switch(type)
|
switch(type)
|
||||||
if("metal")
|
if("metal")
|
||||||
if(!stack_metal)
|
if(!stack_metal)
|
||||||
stack_metal = new(src.module)
|
stack_metal = new /obj/item/stack/sheet/metal/cyborg(src.module)
|
||||||
stack_metal.amount = 1
|
stack_metal.amount = 1
|
||||||
stack = stack_metal
|
stack = stack_metal
|
||||||
if("glass")
|
if("glass")
|
||||||
if(!stack_glass)
|
if(!stack_glass)
|
||||||
stack_glass = new(src.module)
|
stack_glass = new /obj/item/stack/sheet/glass/cyborg(src.module)
|
||||||
stack_glass.amount = 1
|
stack_glass.amount = 1
|
||||||
stack = stack_glass
|
stack = stack_glass
|
||||||
if("wood")
|
if("wood")
|
||||||
if(!stack_wood)
|
if(!stack_wood)
|
||||||
stack_wood = new(src.module)
|
stack_wood = new /obj/item/stack/sheet/wood/cyborg(src.module)
|
||||||
stack_wood.amount = 1
|
stack_wood.amount = 1
|
||||||
stack = stack_wood
|
stack = stack_wood
|
||||||
if("plastic")
|
if("plastic")
|
||||||
if(!stack_plastic)
|
if(!stack_plastic)
|
||||||
stack_plastic = new(src.module)
|
stack_plastic = new /obj/item/stack/sheet/mineral/plastic/cyborg(src.module)
|
||||||
stack_plastic.amount = 1
|
stack_plastic.amount = 1
|
||||||
stack = stack_plastic
|
stack = stack_plastic
|
||||||
|
|
||||||
|
|||||||
@@ -310,17 +310,7 @@
|
|||||||
var/obj/item/weapon/reagent_containers/spray/cleaner/C = locate() in src.modules
|
var/obj/item/weapon/reagent_containers/spray/cleaner/C = locate() in src.modules
|
||||||
C.reagents.add_reagent("cleaner", 10)
|
C.reagents.add_reagent("cleaner", 10)
|
||||||
|
|
||||||
var/list/stacks = list (
|
for(var/T in stacktypes)
|
||||||
/obj/item/stack/sheet/metal,
|
|
||||||
/obj/item/weapon/cable_coil,
|
|
||||||
/obj/item/stack/sheet/glass/cyborg,
|
|
||||||
/obj/item/stack/rods,
|
|
||||||
/obj/item/stack/sheet/rglass/cyborg,
|
|
||||||
/obj/item/stack/tile/plasteel,
|
|
||||||
/obj/item/stack/tile/wood
|
|
||||||
)
|
|
||||||
|
|
||||||
for(var/T in stacks)
|
|
||||||
var/O = locate(T) in src.modules
|
var/O = locate(T) in src.modules
|
||||||
var/obj/item/stack/sheet/S = O
|
var/obj/item/stack/sheet/S = O
|
||||||
|
|
||||||
@@ -329,11 +319,8 @@
|
|||||||
S = new T(src)
|
S = new T(src)
|
||||||
src.modules += S
|
src.modules += S
|
||||||
S.amount = 1
|
S.amount = 1
|
||||||
var/max = 15
|
|
||||||
if(stacktypes[T])
|
|
||||||
max = stacktypes[T]
|
|
||||||
|
|
||||||
if(S && S.amount < max)
|
if(S && S.amount < stacktypes[T])
|
||||||
S.amount++
|
S.amount++
|
||||||
|
|
||||||
var/obj/item/device/lightreplacer/LR = locate() in src.modules
|
var/obj/item/device/lightreplacer/LR = locate() in src.modules
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 21 KiB |
BIN
icons/mob/human_races/r_armalis.dmi
Normal file
BIN
icons/mob/human_races/r_armalis.dmi
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 4.2 KiB |
Reference in New Issue
Block a user