Skip to content

Commit

Permalink
feat: added clash mode and associated maps (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
TeKrop committed Sep 12, 2024
1 parent 04eca3e commit 95e23fc
Show file tree
Hide file tree
Showing 9 changed files with 420 additions and 4 deletions.
1 change: 1 addition & 0 deletions app/data/gamemodes.csv
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
key,name,description
assault,Assault,"Teams fight to capture or defend two successive points against the enemy team. It's an inactive Overwatch 1 gamemode, also called 2CP."
capture-the-flag,Capture the Flag,Teams compete to capture the enemy team’s flag while defending their own.
clash,Clash,"Vie for dominance across a series of capture points with dynamic spawns and linear map routes, so you spend less time running back to the battle and more time in the heart of it."
control,Control,Teams fight to hold a single objective. The first team to win two rounds wins the map.
deathmatch,Deathmatch,Race to reach 20 points first by racking up kills in a free-for-all format.
elimination,Elimination,"Dispatch all enemies to win the round. Win three rounds to claim victory. Available with teams of one, three, or six."
Expand Down
4 changes: 3 additions & 1 deletion app/data/maps.csv
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,6 @@ antarctic_peninsula,Antarctic Peninsula,control,Antarctica,AQ
new_junk_city,New Junk City,flashpoint,Central Australia,AU
suravasa,Suravasa,flashpoint,India,IN
samoa,Samoa,control,Samoa,WS
runasapi,Runasapi,push,Peru,PE
runasapi,Runasapi,push,Peru,PE
hanaoka,Hanaoka,clash,"Tokyo, Japan",JP
throne_of_anubis,Throne of Anubis,clash,"Giza Plateau, Egypt",EG
5 changes: 5 additions & 0 deletions static/gamemodes/clash-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/gamemodes/clash.avif
Binary file not shown.
Binary file added static/maps/hanaoka.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/maps/throne_of_anubis.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions tests/fixtures/json/gamemodes.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
"description": "Teams compete to capture the enemy team’s flag while defending their own.",
"screenshot": "https://overfast-api.tekrop.fr/static/gamemodes/capture-the-flag.avif"
},
{
"key": "clash",
"name": "Clash",
"icon": "https://overfast-api.tekrop.fr/static/gamemodes/clash-icon.svg",
"description": "Vie for dominance across a series of capture points with dynamic spawns and linear map routes, so you spend less time running back to the battle and more time in the heart of it.",
"screenshot": "https://overfast-api.tekrop.fr/static/gamemodes/clash.avif"
},
{
"key": "control",
"name": "Control",
Expand Down
403 changes: 402 additions & 1 deletion tests/fixtures/json/maps.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions tests/views/test_maps_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ def test_get_maps_invalid_gamemode(client: TestClient):
{
"type": "enum",
"loc": ["query", "gamemode"],
"msg": "Input should be 'assault', 'capture-the-flag', 'control', 'deathmatch', 'elimination', 'escort', 'flashpoint', 'hybrid', 'push' or 'team-deathmatch'",
"msg": "Input should be 'assault', 'capture-the-flag', 'clash', 'control', 'deathmatch', 'elimination', 'escort', 'flashpoint', 'hybrid', 'push' or 'team-deathmatch'",
"input": "invalid",
"ctx": {
"expected": "'assault', 'capture-the-flag', 'control', 'deathmatch', 'elimination', 'escort', 'flashpoint', 'hybrid', 'push' or 'team-deathmatch'",
"expected": "'assault', 'capture-the-flag', 'clash', 'control', 'deathmatch', 'elimination', 'escort', 'flashpoint', 'hybrid', 'push' or 'team-deathmatch'",
},
},
],
Expand Down

0 comments on commit 95e23fc

Please sign in to comment.