mirror of
https://github.com/bombsquad-community/plugin-manager.git
synced 2025-10-08 14:54:36 +00:00
Needs some testing
This commit is contained in:
parent
1bce1d7d76
commit
4719c3e718
23 changed files with 2124 additions and 1626 deletions
|
|
@ -27,7 +27,7 @@ import _babase
|
|||
import bascenev1 as bs
|
||||
import bascenev1lib
|
||||
import bauiv1 as bui
|
||||
from baenv import TARGET_BALLISTICA_BUILD
|
||||
from baenv import TARGET_BALLISTICA_BUILD as build_number
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
|
|
@ -37,8 +37,8 @@ if TYPE_CHECKING:
|
|||
|
||||
ANDROID = babase.app.classic.platform == "android"
|
||||
DIRPATH = Path(
|
||||
f"{_babase.app.python_directory_user if TARGET_BALLISTICA_BUILD < 21282 else _babase.app.env.python_directory_user}/image_id.json")
|
||||
APP_VERSION = _babase.app.version if TARGET_BALLISTICA_BUILD < 21282 else _babase.app.env.version
|
||||
f"{_babase.app.python_directory_user if build_number < 21282 else _babase.app.env.python_directory_user}/image_id.json")
|
||||
APP_VERSION = _babase.app.version if build_number < 21282 else _babase.app.env.version
|
||||
|
||||
if ANDROID: # !can add ios in future
|
||||
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@ class RagdollBGone(babase.Plugin):
|
|||
# Pick a random death noise
|
||||
sound = death_sounds[random.randrange(len(death_sounds))]
|
||||
# Play the sound where our Spaz is
|
||||
sound.play(position=args[0].node.position)
|
||||
bs.Sound.play(sound, position=args[0].node.position)
|
||||
# Delete our Spaz node immediately.
|
||||
# Removing stuff is weird and prone to errors, so we're gonna delay it.
|
||||
bs.timer(0.001, args[0].node.delete)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue