Skip to content
Closed
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions plugins/utilities.json
Original file line number Diff line number Diff line change
Expand Up @@ -2401,6 +2401,25 @@
"md5sum": "5082acb27f3dbe701d8bd42d8948b352"
}
}
},
"infinity_gloves": {
"description": "this plugin give you infinity gloves (isn't mine)",
"external_url": "",
"authors": [
{
"name": "ATD",
"email": "anasdhaoidi001@gmail.com",
"discord": ""
}
],
"versions": {
"1.0.0": {
"api_version": 9,
"commit_sha": "cef7de0",
"released_on": "22-01-2026",
"md5sum": "afbd3cd3055254e8c8a060a484f153ee"
}
}
}
}
}
59 changes: 59 additions & 0 deletions plugins/utilities/infinity_gloves.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# ba_meta require api 9
# mod actualizado por: SOMBR1
# mod updated by: SOMBR1
# (see https://ballistica.net/wiki/meta-tag-system)

from __future__ import annotations

from typing import TYPE_CHECKING

import bascenev1lib
import babase
import bascenev1 as bs
from bascenev1lib.actor import playerspaz

if TYPE_CHECKING:
from typing import Sequence

plugman = dict(
plugin_name="infinity_gloves",
description="this plugin give you infinity gloves (isn't mine)",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix the grammer
Also get permission from the creator of the plugin and remove the "(isn't mine)" text
Instead u can add the creator as author

external_url="",
authors=[
{"name": "ATD", "email": "anasdhaoidi001@gmail.com", "discord": ""},
],
version="1.0.0",
)


class NewPlayerSpaz(playerspaz.PlayerSpaz):

def __init__(self,
player: bascenev1.Player,
color: Sequence[float] = (1.0, 1.0, 1.0),
highlight: Sequence[float] = (0.5, 0.5, 0.5),
character: str = 'Spaz',
powerups_expire: bool = True):
super().__init__(player=player,
color=color,
highlight=highlight,
character=character,
powerups_expire=powerups_expire)
self.equip_boxing_gloves()

def handlemessage(self, msg: Any) -> Any:
if isinstance(msg, bs.PowerupMessage):
if msg.poweruptype == 'punch':
self.equip_boxing_gloves()
self.node.handlemessage('flash')
if msg.sourcenode:
msg.sourcenode.handlemessage(bs.PowerupAcceptMessage())
else:
return super().handlemessage(msg)
else:
return super().handlemessage(msg)


# ba_meta export babase.Plugin
class InfinityGlovesPlugin(babase.Plugin):
playerspaz.PlayerSpaz = NewPlayerSpaz