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:
Will
2026-05-03 19:43:46 -04:00
committed by GitHub
parent 1d2cbea8e9
commit 8bbb5a00a9
29 changed files with 216 additions and 13 deletions
+2
View File
@@ -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)