diff --git a/src/config.php b/src/config.php index 79385c71a..385bda07a 100644 --- a/src/config.php +++ b/src/config.php @@ -136,8 +136,7 @@ /* * Port searchs */ -const PORT_SEARCH_BASE_CHANCE = 15; -const PORT_SEARCH_REDUCTION_PER_EVIL_GOOD = 4; +const PORT_SEARCH_BASE_CHANCE = 3; const PORT_SEARCH_REDUCTION_FOR_EVIL_SHIP = 4; /* diff --git a/src/engine/Default/shop_goods.php b/src/engine/Default/shop_goods.php index 7983c263c..6da1d9f74 100644 --- a/src/engine/Default/shop_goods.php +++ b/src/engine/Default/shop_goods.php @@ -24,15 +24,6 @@ // test if we are searched, but only if we hadn't a previous trade here $baseChance = PORT_SEARCH_BASE_CHANCE; - if ($port->hasGood(GOODS_SLAVES)) { - $baseChance -= PORT_SEARCH_REDUCTION_PER_EVIL_GOOD; - } - if ($port->hasGood(GOODS_WEAPONS)) { - $baseChance -= PORT_SEARCH_REDUCTION_PER_EVIL_GOOD; - } - if ($port->hasGood(GOODS_NARCOTICS)) { - $baseChance -= PORT_SEARCH_REDUCTION_PER_EVIL_GOOD; - } if ($ship->isUnderground()) { $baseChance -= PORT_SEARCH_REDUCTION_FOR_EVIL_SHIP;