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

Battles #64

Open
foxfriends opened this issue Mar 19, 2021 · 0 comments
Open

Battles #64

foxfriends opened this issue Mar 19, 2021 · 0 comments
Labels
backend Requires updating the backend (Rust) code frontend Requires updating the frontend (JS/Svelte) code game Requires updating the game (Lumber) code

Comments

@foxfriends
Copy link
Owner

This will require a "random" function added to Lumber. Also add current dice values to the game state.

The server will provide to the client an action battle(Clearing, Defender), indicating that a battle can be performed in Clearing against another faction Defender.

To perform the battle, simulate the dice and remove warriors/tokens/buildings accordingly. If there are choices to be made (the defender decides which buildings/tokens to remove) the server will provide actions removeBuilding(Id) or removeToken(Id) respectively, until no more tokens need to be removed. This will require some internal state to the battle action to be stored on the game object...

It would be nice to show the dice values, and animate the removal somehow, but that will be a future frontend problem. 🤷

Skip ambushes for now, that can be added later.

@foxfriends foxfriends added frontend Requires updating the frontend (JS/Svelte) code backend Requires updating the backend (Rust) code game Requires updating the game (Lumber) code labels Mar 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Requires updating the backend (Rust) code frontend Requires updating the frontend (JS/Svelte) code game Requires updating the game (Lumber) code
Projects
None yet
Development

No branches or pull requests

1 participant