Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Void Trade #347

Merged
merged 5 commits into from
Nov 25, 2024
Merged

Void Trade #347

merged 5 commits into from
Nov 25, 2024

Conversation

Salzkorn
Copy link

What is this fixing or adding?

This adds an option for trade functionality based on my proposal here: #336 (comment)
The concrete implementation has changed slightly, but overall the functionality is the same: Enable the option, build the structure, send units for free or get units for a token cost.
The core of the networking system was taken from Pokemon Emerald's Wonder Trade system.

This also includes a small patch to the bot, to allow reading ability data from the game.

The accompanying data PR is here: Ziktofel/Archipelago-SC2-data#315

How was this tested?

Generating a multiworld with 4 players, of whom 3 had trade enabled, and then sending various units back and forth. I also made sure to at least load a map from each campaign mod (WoL, HotS, LotV Prologue, LotV and NCO) to test the updated dependencies.

Notably simultaneous trade requests weren't tested, owing to me only being one person, but I have some confidence that it works since it's based on a working system.

@Salzkorn Salzkorn requested a review from Ziktofel as a code owner November 22, 2024 14:32
worlds/sc2/client.py Show resolved Hide resolved
worlds/sc2/client.py Show resolved Hide resolved
worlds/sc2/__init__.py Outdated Show resolved Hide resolved
@Ziktofel Ziktofel merged commit 9dd49d6 into Ziktofel:sc2-next Nov 25, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants