diff --git a/plugins/utilities.json b/plugins/utilities.json index c347d34..a5b30a9 100644 --- a/plugins/utilities.json +++ b/plugins/utilities.json @@ -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" + } + } } } } diff --git a/plugins/utilities/TowerD-Unlocked.py b/plugins/utilities/TowerD-Unlocked.py new file mode 100644 index 0000000..e6d29b4 --- /dev/null +++ b/plugins/utilities/TowerD-Unlocked.py @@ -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