Parcourir la source

movers: handle NPC asks

raylu il y a 1 jour
Parent
commit
9270f267a8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      movers.py

+ 1 - 1
movers.py

@@ -62,7 +62,7 @@ def main() -> None:
 				if len(asks) == 0:
 					expected_price = float('infinity')
 					break
-				if asks[-1]['ItemCount'] > remaining:
+				if (asks[-1]['ItemCount'] or float('infinity')) > remaining:
 					expected_price = asks[-1]['ItemCost']
 					break
 				remaining -= asks.pop()['ItemCount']