Add robot components and phazon material to mechfab

This commit is contained in:
Rob Nelson
2013-09-20 17:31:50 -07:00
parent 39423f53fa
commit b3f99eed5d
2 changed files with 20 additions and 2 deletions

View File

@@ -23,7 +23,8 @@
"diamond"=0,
"plasma"=0,
"uranium"=0,
"bananium"=0
"bananium"=0,
"phazon"=0
)
var/res_max_amount = 200000
var/datum/research/files
@@ -44,7 +45,13 @@
/obj/item/robot_parts/l_arm,
/obj/item/robot_parts/r_arm,
/obj/item/robot_parts/l_leg,
/obj/item/robot_parts/r_leg
/obj/item/robot_parts/r_leg,
/obj/item/robot_parts/robot_component/binary_communication_device,
/obj/item/robot_parts/robot_component/radio,
/obj/item/robot_parts/robot_component/actuator,
/obj/item/robot_parts/robot_component/diagnosis_unit,
/obj/item/robot_parts/robot_component/camera,
/obj/item/robot_parts/robot_component/armour
),
"Ripley"=list(
/obj/item/mecha_parts/chassis/ripley,
@@ -690,6 +697,8 @@
type = /obj/item/stack/sheet/mineral/uranium
if("bananium")
type = /obj/item/stack/sheet/mineral/clown
if("phazon")
type = /obj/item/stack/sheet/mineral/phazon
else
return 0
var/result = 0
@@ -750,6 +759,9 @@
if(src.resources["bananium"] >= 2000)
var/obj/item/stack/sheet/mineral/clown/G = new /obj/item/stack/sheet/mineral/clown(src.loc)
G.amount = round(src.resources["bananium"] / G.perunit)
if(src.resources["phazon"] >= 2000)
var/obj/item/stack/sheet/mineral/phazon/G = new /obj/item/stack/sheet/mineral/phazon(src.loc)
G.amount = round(src.resources["phazon"] / G.perunit)
del(src)
return 1
else
@@ -777,6 +789,8 @@
material = "bananium"
if(/obj/item/stack/sheet/mineral/uranium)
material = "uranium"
if(/obj/item/stack/sheet/mineral/phazon)
material = "phazon"
else
return ..()

View File

@@ -143,9 +143,13 @@
/obj/item/robot_parts/robot_component/armour
name = "armour plating"
icon = 'icons/obj/clothing/suits.dmi'
icon_state = "bulletproof"
/obj/item/robot_parts/robot_component/camera
name = "camera"
icon = 'icons/obj/monitors.dmi'
icon_state = "cameracase"
/obj/item/robot_parts/robot_component/diagnosis_unit
name = "diagnosis unit"