-
Notifications
You must be signed in to change notification settings - Fork 54
Create InfinityGloves.py #429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 5 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
b05a92b
Create InfinityGloves.py
anasdhaoidi 85db791
Update InfinityGloves.py
anasdhaoidi 790bd52
Update and rename InfinityGloves.py to infinity_gloves.py
anasdhaoidi cef7de0
[ci] apply-plugin-metadata-and-formatting
anasdhaoidi 9ae2b6f
[ci] apply-version-metadata
anasdhaoidi d0a0f58
Update infinity_gloves.py
anasdhaoidi 8c1e7af
Update infinity_gloves.py
anasdhaoidi b3e9cc0
Add files via upload
anasdhaoidi 400f20e
Update bs_text_on_map.py
anasdhaoidi ea2c125
Update infinity_gloves.py
anasdhaoidi a4c9c83
[ci] apply-plugin-metadata-and-formatting
anasdhaoidi 1bd9910
[ci] apply-version-metadata
anasdhaoidi 03051f2
Delete plugins/utilities/infinity_gloves.py
anasdhaoidi c3944b9
Delete plugins/utilities/bs_text_on_map.py
anasdhaoidi 13e3f8e
Modify custom_hits description and remove plugins
anasdhaoidi 45d4afd
[ci] apply-version-metadata
anasdhaoidi 500c574
Fix typo in custom_hits description
anasdhaoidi a669a15
[ci] apply-version-metadata
anasdhaoidi 28190cd
Delete plugins/utilities/custom_hits.py
anasdhaoidi 2f4d904
Delete plugins/utilities/powerup_manager.py
anasdhaoidi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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)", | ||
| 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 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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