mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-28 15:48:49 +01:00
[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:
co-authored by
Will
Cameron Lennox
Kashargul
parent
b4b442bcdc
commit
9fcaf0265f
@@ -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