[ci] apply-plugin-metadata-and-formatting

This commit is contained in:
anasdhaoidi 2026-01-22 20:01:53 +00:00 committed by github-actions[bot]
parent 790bd52d93
commit cef7de0413
2 changed files with 39 additions and 25 deletions

View file

@ -2401,6 +2401,20 @@
"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": null
}
}
}
}

View file

@ -13,7 +13,7 @@ import bascenev1 as bs
from bascenev1lib.actor import playerspaz
if TYPE_CHECKING:
from typing import Sequence
from typing import Sequence
plugman = dict(
plugin_name="infinity_gloves",
@ -28,32 +28,32 @@ plugman = dict(
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 __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)
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
playerspaz.PlayerSpaz = NewPlayerSpaz