[MIRROR] Cargo Material Purchasing (#12734)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-05-05 20:18:56 -04:00
committed by GitHub
co-authored by Will Cameron Lennox Kashargul
parent b4b442bcdc
commit 9fcaf0265f
31 changed files with 221 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)