From 4ff019f56e4f1b4b74e7ebcf3b23792e4b421492 Mon Sep 17 00:00:00 2001 From: Putnam3145 Date: Mon, 21 Jun 2021 07:47:13 -0700 Subject: [PATCH] Inelastic exports shouldn't process --- code/modules/cargo/exports.dm | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/modules/cargo/exports.dm b/code/modules/cargo/exports.dm index 12a5002ac7..b72e497a5f 100644 --- a/code/modules/cargo/exports.dm +++ b/code/modules/cargo/exports.dm @@ -84,17 +84,19 @@ Credit dupes that require a lot of manual work shouldn't be removed, unless they /datum/export/New() ..() - SSprocessing.processing += src + START_PROCESSING(SSprocessing, src) init_cost = cost export_types = typecacheof(export_types) exclude_types = typecacheof(exclude_types) /datum/export/Destroy() - SSprocessing.processing -= src + STOP_PROCESSING(SSprocessing, src) return ..() /datum/export/process() - ..() + . = ..() + if(!k_elasticity) + return PROCESS_KILL cost *= NUM_E**(k_elasticity * (1/30)) if(cost > init_cost) cost = init_cost