Merge pull request #12 from Freaku17/main

Adding a new plugin
This commit is contained in:
Rikko 2022-08-30 23:43:07 +05:30 committed by GitHub
commit e8781474fa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 37 additions and 0 deletions

View file

@ -63,6 +63,25 @@
"md5sum": "233dfaa7f0e9394d21454f4ffa7d0205"
}
}
},
"TowerD-Unlocked": {
"description": "Ability to play Tower-D map in ffa/team games!",
"external_url": "",
"authors": [
{
"name": "Freaku",
"email": "",
"discord": "[Just] Freak#4999"
}
],
"versions": {
"1.0.0": {
"api_version": 7,
"commit_sha": "ece4b806",
"released_on": "30-08-2022",
"md5sum": "aac4edfcaeca1dc2910f97e739d67482"
}
}
}
}
}

View file

@ -0,0 +1,18 @@
# By Freaku / @[Just] Freak#4999
import ba
from bastd.maps import TowerD
@classmethod
def new_play_types(cls):
"""return valid play types for this map."""
return ['melee', 'keep_away', 'team_flag', 'king_of_the_hill']
# ba_meta require api 7
# ba_meta export plugin
class byFreaku(ba.Plugin):
def on_app_running(self):
TowerD.get_play_types = new_play_types