Add files via upload

This commit is contained in:
Freaku17 2022-02-06 11:45:13 +05:30 committed by GitHub
parent bf42b704ab
commit 3b72c59756
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 160 additions and 0 deletions

View file

@ -0,0 +1,24 @@
#Made by @[Just] Freak#4999 / Freaku
# ba_meta require api 6
from __future__ import annotations
from typing import TYPE_CHECKING
import ba
import _ba
from bastd.maps import TowerD
if TYPE_CHECKING:
from typing import List, Tuple, Any, Optional
@classmethod
def new_play_types(cls) -> List[str]:
"""return valid play types for this map."""
return ['melee', 'keep_away', 'team_flag', 'king_of_the_hill']
# ba_meta export plugin
class byFreaku(ba.Plugin):
def on_app_launch(self):
TowerD.get_play_types = new_play_types