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)
|
||||
|
||||
Reference in New Issue
Block a user