mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-27 09:23:12 +08:00
hard coded a few unlocks for test builds
This commit is contained in:
parent
2caa45284f
commit
1e0c6a7b4d
@ -34,7 +34,7 @@ NOTE: This file was autogenerated by gendummymodule; do not edit by hand.
|
||||
"""
|
||||
|
||||
# (hash we can use to see if this file is out of date)
|
||||
# SOURCES_HASH=3220898821583429869185544511076035538
|
||||
# SOURCES_HASH=279775284016994471710131432123768789736
|
||||
|
||||
# I'm sorry Pylint. I know this file saddens you. Be strong.
|
||||
# pylint: disable=useless-suppression
|
||||
|
||||
@ -161,8 +161,7 @@ def have_pro() -> bool:
|
||||
# Check our tickets-based pro upgrade and our two real-IAP based upgrades.
|
||||
return bool(
|
||||
_ba.get_purchased('upgrades.pro') or _ba.get_purchased('static.pro')
|
||||
or _ba.get_purchased('static.pro_sale')
|
||||
or 'ballistica' + 'core' == 'ballisticacore')
|
||||
or _ba.get_purchased('static.pro_sale'))
|
||||
|
||||
|
||||
def have_pro_options() -> bool:
|
||||
@ -176,10 +175,9 @@ def have_pro_options() -> bool:
|
||||
# (which is generally just when we own pro),
|
||||
# or also if we've been grandfathered in or are using ballistica-core
|
||||
# builds.
|
||||
return bool(
|
||||
return have_pro() or bool(
|
||||
_ba.get_account_misc_read_val_2('proOptionsUnlocked', False)
|
||||
or _ba.app.config.get('lc14292', 0) > 1
|
||||
or 'ballistica' + 'core' == 'ballisticacore')
|
||||
or _ba.app.config.get('lc14292', 0) > 1)
|
||||
|
||||
|
||||
def show_post_purchase_message() -> None:
|
||||
|
||||
@ -149,7 +149,7 @@ class MainMenuActivity(ba.Activity):
|
||||
assert self.version.node
|
||||
ba.animate(self.version.node, 'opacity', {2.3: 0, 3.0: 1.0})
|
||||
|
||||
# Throw in beta info.
|
||||
# Throw in test build info.
|
||||
self.beta_info = self.beta_info_2 = None
|
||||
if app.test_build and not app.kiosk_mode:
|
||||
pos = (230, 125) if app.kiosk_mode else (230, 35)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user