Merge pull request #652 from vishal332008/master

Bug Fix and Passing CI
This commit is contained in:
Eric Froemling 2024-03-01 18:25:42 -08:00 committed by GitHub
commit 9d173c90c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -104,6 +104,19 @@ class CoopBrowserWindow(bui.Window):
'campaignDifficulty', 'easy'
)
if (
self._campaign_difficulty == 'hard'
and not app.classic.accounts.have_pro_options()
):
plus.add_v1_account_transaction(
{
'type': 'SET_MISC_VAL',
'name': 'campaignDifficulty',
'value': 'easy',
}
)
self._campaign_difficulty = 'easy'
super().__init__(
root_widget=bui.containerwidget(
size=(self._width, self._height + top_extra),