浏览代码

movers: handle NPC asks

raylu 1 天之前
父节点
当前提交
9270f267a8
共有 1 个文件被更改,包括 1 次插入1 次删除
  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']