mirror of
https://github.com/rr-/pq-cli.git
synced 2026-11-12 22:40:36 -07:00
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:
2 files changed
+35
-24
No files matched your search
+9
-4
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user