-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: drain_filter to extract_if * feat: submaps (aka respawn maps) - Submaps are collections of territories within regions of a map - Respawn maps are implemented through submaps of the main map; currently submap id 0 is the main map and submap id 1 is the respawn map - For respawn, the order of execution is as follows: 1. We process submap 0 (the main map) as normal 2. We determine which team(s) were eliminated on the main map and which have not yet used any respawns (teams.respawn_count < 1) 3. If any teams have previously been on submap id 1 but are now present on submap 0, then we discard any turns made on submap id 1 by players on those teams 4. We process submap 1 (the secondary map), assigning the protected territories of any team which has succesfully returned to submap 0 to the NCAA (team id 0) 5. We randomly shuffle the eligible eliminated teams 6. We take all submap 1 territories owned by NCAA and add them to a pool of re-assignable territories 7. We take all teams that own more than one territory on submap 1 and select all but one of their territories to add to the pool of re-assignable territories randomly (but all such territories will be placed after any NCAA territories to ensure NCAA territories are exhausted first) 8. We reassign the territories from the re-assignable pool until either it is exhausted or all respawn-eligible teams have recevied a single territory 9. We merge all results from all submaps and write it to the database * fix: update auth to use territory ownership as sot * fix: minor bugs * fix: lints * fix: back to green * chore: clippies
- Loading branch information
Showing
16 changed files
with
1,572 additions
and
851 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 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 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 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 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 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 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 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 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 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 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
Oops, something went wrong.