mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-11 15:15:32 +01:00
Cargo Material Purchasing (#19435)
* material sell tweaks * material purchases * test this * missing 50 spawners * fix * missing mats * oops --------- Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
@@ -70,6 +70,8 @@
|
||||
/datum/element/sellable/material_stack/calculate_sell_value(obj/source)
|
||||
var/obj/item/stack/P = source
|
||||
var/datum/material/mat = P.get_material()
|
||||
if(!mat || !mat.supply_conversion_value)
|
||||
return 0
|
||||
return P.get_amount() * mat.supply_conversion_value
|
||||
|
||||
/datum/element/sellable/material_stack/calculate_sell_quantity(obj/source)
|
||||
|
||||
@@ -167,3 +167,136 @@
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
contains = list(/obj/fiftyspawner/concrete)
|
||||
containername = "Concrete bricks crate"
|
||||
|
||||
/datum/supply_pack/materials/aluminium50
|
||||
name = "50 aluminium ingots"
|
||||
contains = list(/obj/fiftyspawner/aluminium)
|
||||
cost = 120
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Aluminium ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/iron50
|
||||
name = "50 iron ingots"
|
||||
contains = list(/obj/fiftyspawner/iron)
|
||||
cost = 30
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Iron ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/uranium50
|
||||
name = "50 uranium ingots"
|
||||
contains = list(/obj/fiftyspawner/uranium)
|
||||
cost = 240
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Uranium ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/gold50
|
||||
name = "50 gold ingots"
|
||||
contains = list(/obj/fiftyspawner/gold)
|
||||
cost = 240
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Gold ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/silver50
|
||||
name = "50 silver ingots"
|
||||
contains = list(/obj/fiftyspawner/silver)
|
||||
cost = 120
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Silver ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/platinum50
|
||||
name = "50 platinum ingots"
|
||||
contains = list(/obj/fiftyspawner/platinum)
|
||||
cost = 600
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Platinum ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/osmium50
|
||||
name = "50 osmium ingots"
|
||||
contains = list(/obj/fiftyspawner/osmium)
|
||||
cost = 720
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Osmium ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/titanium50
|
||||
name = "50 titanium ingots"
|
||||
contains = list(/obj/fiftyspawner/titanium)
|
||||
cost = 480
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Titanium ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/graphite50
|
||||
name = "50 graphite ingots"
|
||||
contains = list(/obj/fiftyspawner/graphite)
|
||||
cost = 25
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Graphite ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/durasteel50
|
||||
name = "50 durasteel ingots"
|
||||
contains = list(/obj/fiftyspawner/durasteel)
|
||||
cost = 1000
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Durasteel ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/plasteel50
|
||||
name = "50 plasteel ingots"
|
||||
contains = list(/obj/fiftyspawner/plasteel)
|
||||
cost = 720
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Plasteel ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/diamond50
|
||||
name = "50 diamond ingots"
|
||||
contains = list(/obj/fiftyspawner/diamond)
|
||||
cost = 960
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Diamond ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/verdantium50
|
||||
name = "50 verdantium ingots"
|
||||
contains = list(/obj/fiftyspawner/verdantium)
|
||||
cost = 1000
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Verdantium ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/sandstone50
|
||||
name = "50 sandstone blocks"
|
||||
contains = list(/obj/fiftyspawner/sandstone)
|
||||
cost = 10
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Sandstone blocks crate"
|
||||
|
||||
/datum/supply_pack/materials/marble50
|
||||
name = "50 marble blocks"
|
||||
contains = list(/obj/fiftyspawner/marble)
|
||||
cost = 10
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "marble blocks crate"
|
||||
|
||||
/datum/supply_pack/materials/leather50
|
||||
name = "50 leather bolts"
|
||||
contains = list(/obj/fiftyspawner/leather)
|
||||
cost = 120
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Leather bolts crate"
|
||||
|
||||
/datum/supply_pack/materials/phoron50
|
||||
name = "50 phoron ingots"
|
||||
contains = list(/obj/fiftyspawner/phoron)
|
||||
cost = 600
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Phoron ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/painite50
|
||||
name = "50 painite ingots"
|
||||
contains = list(/obj/fiftyspawner/painite)
|
||||
cost = 480
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Painite ingots crate"
|
||||
|
||||
/datum/supply_pack/materials/cloth50
|
||||
name = "50 cloth bolts"
|
||||
contains = list(/obj/fiftyspawner/cloth)
|
||||
cost = 120
|
||||
containertype = /obj/structure/closet/crate/grayson
|
||||
containername = "Cloth bolts crate"
|
||||
|
||||
Reference in New Issue
Block a user