From 17177828863de389f83af4658a6e8078939a6bb0 Mon Sep 17 00:00:00 2001 From: Jonathan Harris <jonathan@marginal.org.uk> Date: Sun, 8 Oct 2017 20:09:10 +0100 Subject: [PATCH] Suppress not normally traded commodities e.g. Salvage --- companion.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/companion.py b/companion.py index 075bed7c..4f3ce0e8 100644 --- a/companion.py +++ b/companion.py @@ -311,7 +311,9 @@ def fixup(data): if __debug__: print 'Invalid "%s":"%s" (%s) for "%s"' % (thing, commodity.get(thing), type(commodity.get(thing)), commodity.get('name', '')) break else: - if not category_map.get(commodity['categoryname'], True): # Check marketable + if not category_map.get(commodity['categoryname'], True): # Check not marketable i.e. Limpets + pass + elif commodity['demandBracket'] == 0 and commodity['stockBracket'] == 0: # Check not normally stocked e.g. Salvage pass elif commodity.get('legality'): # Check not prohibited pass