You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
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 inClearing
against another factionDefender
.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)
orremoveToken(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.
The text was updated successfully, but these errors were encountered: