mechanic: start acts as their loading task does

Upstream calls CompleteAct() when it dequeues the plot task, so the act
number, the plot bar and the act rewards change as "Loading Act N"
begins. pqcli did all that when the task ended. The random sequence is
the same either way, so the parity traces are unchanged; only the 1-2
seconds of the loading task differ.
This commit is contained in:
Dash committed 2026-10-17 15:55:56 +02:00
1 parent 0a4358e2b8
commit 9ad3bee59b
2 files changed
+35 -24

No files matched your search

+9 -4
View File
@@ -618,12 +618,17 @@ class Simulation:
)
break
elif isinstance(self.player.task, PlotTask):
self.complete_act()
old = self.player.task
if self.player.queue:
self.player.set_task(self.player.queue.pop(0))
task = self.player.queue.pop(0)
if isinstance(task, PlotTask):
# the act starts as its loading task does, as upstream
self.complete_act()
task = PlotTask(
f"Loading {act_name(self.player.quest_book.act)}",
task.duration,
)
self.player.set_task(task)
elif self.player.inventory.encum_bar.done:
self.player.set_task(
HeadingToMarketTask("Heading to market to sell loot", 4000)