From 7b2879275e46cce7655b0b92ef58d8ce2d688342 Mon Sep 17 00:00:00 2001 From: Vishal Date: Thu, 11 Jan 2024 22:33:03 +0530 Subject: [PATCH] Update browser.py --- src/assets/ba_data/python/bauiv1lib/coop/browser.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/assets/ba_data/python/bauiv1lib/coop/browser.py b/src/assets/ba_data/python/bauiv1lib/coop/browser.py index c5efa88c..2898a707 100644 --- a/src/assets/ba_data/python/bauiv1lib/coop/browser.py +++ b/src/assets/ba_data/python/bauiv1lib/coop/browser.py @@ -501,7 +501,7 @@ class CoopBrowserWindow(bui.Window): def _set_campaign_difficulty( self, difficulty: str, - check: bool | True + check: bool ) -> None: # pylint: disable=cyclic-import from bauiv1lib.purchase import PurchaseWindow @@ -519,8 +519,7 @@ class CoopBrowserWindow(bui.Window): if check: PurchaseWindow(items=['pro']) return - else: - difficulty = 'easy' + difficulty = 'easy' bui.getsound('gunCocking').play() if difficulty not in ('easy', 'hard'): print('ERROR: invalid campaign difficulty:', difficulty)