From 34453fa3be9e70ff9e8c4312dd01f27062fe796d Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 16 Jun 2021 17:23:57 -0700 Subject: [PATCH] Fix incorrect conditional. --- game/procurement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/procurement.py b/game/procurement.py index aae0ce3f..430d2256 100644 --- a/game/procurement.py +++ b/game/procurement.py @@ -155,7 +155,7 @@ class ProcurementAi: of_class = set(unit_class.unit_list) & faction_units # faction has no access to needed unit type, take a random unit - if len(of_class) is 0: + if not of_class: of_class = faction_units affordable_units = [u for u in of_class if db.PRICES[u] <= budget]