mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Done with utilities. Need some testing on ultraparty and few fix on auto stunt and quick customgame
This commit is contained in:
parent
39845e7b61
commit
77d16e63c7
19 changed files with 1221 additions and 1093 deletions
|
|
@ -370,7 +370,7 @@ def get_event_loop(force_fresh=False):
|
|||
|
||||
def _generate_join_secret(self):
|
||||
# resp = requests.get('https://legacy.ballistica.net/bsAccessCheck').text
|
||||
connection_info = bs.get_connection_to_host_info_2()
|
||||
connection_info = bs.get_connection_to_host_info() if build_number < 21697 else bs.get_connection_to_host_info_2()
|
||||
if connection_info:
|
||||
addr = _last_server_addr
|
||||
port = _last_server_port
|
||||
|
|
@ -870,7 +870,7 @@ class DiscordRP(babase.Plugin):
|
|||
|
||||
def update_status(self) -> None:
|
||||
roster = bs.get_game_roster()
|
||||
connection_info = bs.get_connection_to_host_info_2()
|
||||
connection_info = bs.get_connection_to_host_info() if build_number < 21697 else bs.get_connection_to_host_info_2()
|
||||
|
||||
self.rpc_thread.large_image_key = "bombsquadicon"
|
||||
self.rpc_thread.large_image_text = "BombSquad"
|
||||
|
|
@ -963,7 +963,7 @@ class DiscordRP(babase.Plugin):
|
|||
points = act._score
|
||||
self.rpc_thread.details += f" ({points} points)"
|
||||
elif isinstance(act, MeteorShowerGame):
|
||||
with bs.ContextRef(act):
|
||||
with act.context:
|
||||
sec = bs.time() - act._timer.getstarttime()
|
||||
secfmt = ""
|
||||
if sec < 60:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue