Refactor audio effect handling: remove cooldown logic and enhance sound playback functionality
This commit is contained in:
@@ -58,8 +58,10 @@ func produce_for_period(previous: Dictionary, target: Dictionary, quantities: Di
|
||||
amount = world.ledger.credit(target, id, amount)
|
||||
world.batches.append_batch(target, id, amount, from_year, to_year)
|
||||
|
||||
# Keep unused automatic resources across cycles; they are part of free amounts.
|
||||
var budget: Dictionary = previous.get("auto_resources", {}).duplicate(true)
|
||||
# Automation may spend only the automatic output produced during this cycle.
|
||||
# Any unused part becomes an ordinary free resource on the next cycle instead
|
||||
# of remaining eligible for later automatic production.
|
||||
var budget: Dictionary = {}
|
||||
for id in automatic:
|
||||
budget[id] = E.add(budget.get(id, 0), automatic[id])
|
||||
for id in budget:
|
||||
|
||||
Reference in New Issue
Block a user