stop this nonsense
This commit is contained in:
@@ -117,7 +117,7 @@ Credit dupes that require a lot of manual work shouldn't be removed, unless they
|
||||
// Checks the amount of exportable in object. Credits in the bill, sheets in the stack, etc.
|
||||
// Usually acts as a multiplier for a cost, so item that has 0 amount will be skipped in export.
|
||||
/datum/export/proc/get_amount(obj/O)
|
||||
return 1
|
||||
return TRUE
|
||||
|
||||
// Checks if the item is fit for export datum.
|
||||
/datum/export/proc/applies_to(obj/O, allowed_categories = NONE, apply_elastic = TRUE)
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
|
||||
/datum/export/material/get_amount(obj/O)
|
||||
if(!material_id)
|
||||
return 0
|
||||
return FALSE
|
||||
if(!isitem(O))
|
||||
return 0
|
||||
return FALSE
|
||||
var/obj/item/I = O
|
||||
if(!(SSmaterials.GetMaterialRef(material_id) in I.custom_materials))
|
||||
return 0
|
||||
return FALSE
|
||||
|
||||
var/amount = I.custom_materials[SSmaterials.GetMaterialRef(material_id)]
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@
|
||||
/datum/export/seed/get_cost(obj/O)
|
||||
var/obj/item/seeds/S = O
|
||||
if(!needs_discovery && (S.type in discoveredPlants))
|
||||
return 0
|
||||
return FALSE
|
||||
if(needs_discovery && !(S.type in discoveredPlants))
|
||||
return 0
|
||||
return FALSE
|
||||
return ..() * S.rarity // That's right, no bonus for potency. Send a crappy sample first to "show improvement" later.
|
||||
|
||||
/datum/export/seed/sell_object(obj/O)
|
||||
@@ -31,7 +31,7 @@
|
||||
var/obj/item/seeds/S = O
|
||||
var/cost = ..()
|
||||
if(!cost)
|
||||
return 0
|
||||
return FALSE
|
||||
|
||||
var/potDiff = (S.potency - discoveredPlants[S.type])
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
var/obj/item/stack/S = O
|
||||
if(istype(S))
|
||||
return S.amount
|
||||
return 0
|
||||
return FALSE
|
||||
|
||||
// Hides
|
||||
|
||||
|
||||
Reference in New Issue
Block a user