Files
CHOMPStation2/code/modules/mining/alloys.dm
Mloc 1d8e015334 fixes #10141
also clean up alloy_data handling

Signed-off-by: Mloc <colmohici@gmail.com>
2015-07-27 10:49:51 +01:00

27 lines
651 B
Plaintext

//Alloys that contain subsets of each other's ingredients must be ordered in the desired sequence
//eg. steel comes after plasteel because plasteel's ingredients contain the ingredients for steel and
//it would be impossible to produce.
/datum/alloy
var/list/requires
var/product_mod = 1
var/product
var/metaltag
/datum/alloy/plasteel
metaltag = "plasteel"
requires = list(
"platinum" = 1,
"carbon" = 2,
"hematite" = 2
)
product_mod = 0.3
product = /obj/item/stack/material/plasteel
/datum/alloy/steel
metaltag = DEFAULT_WALL_MATERIAL
requires = list(
"carbon" = 1,
"hematite" = 1
)
product = /obj/item/stack/material/steel