debug: log production progress
This commit is contained in:
parent
1ef1c53caa
commit
99ff12292f
1 changed files with 2 additions and 0 deletions
|
|
@ -335,6 +335,8 @@ func apply_production(production: int) -> bool:
|
|||
if production_queue.is_empty():
|
||||
return false
|
||||
production_progress += production
|
||||
if production_progress % 10 == 0 or production_progress >= int(production_queue[0].get("cost", 0)):
|
||||
print("[PROD] %s: +%d = %d/%d" % [city_name, production, production_progress, int(production_queue[0].get("cost", 0))])
|
||||
var current: Dictionary = production_queue[0]
|
||||
var cost: int = int(current.get("cost", 0))
|
||||
if production_progress >= cost:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue