mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-26 08:53:32 +08:00
Update browser.py
This commit is contained in:
parent
203f659aac
commit
7b2879275e
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user