Skip to content

Commit

Permalink
feat(plugin): fast_fail: ignore shop
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Jun 5, 2022
1 parent 70593fe commit fae374f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion plugins/fast_fail.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,20 @@ def score(self, ctx: Context) -> float:
return 0

class _Context(Context):
@property
def shop_coin(self):
return 0

@shop_coin.setter
def shop_coin(self, v):
pass

def next_turn(self) -> None:
super().next_turn()
app.log.text(
"plugin `fast_fail` installed, nurturing is expected to fail",
level=app.WARN,
)
self.shop_coin = 0

CommandScene.max_recognition_retry = 0
auto_derby.config.single_mode_ignore_training_commands = lambda *_, **__: True
Expand Down

0 comments on commit fae374f

Please sign in to comment.