rarity-adventure / rarity-frontend

Front end for the rarity adventure game
https://rarity.game
39 stars 32 forks source link

Factions #8

Closed Dodecahedr0x closed 3 years ago

Dodecahedr0x commented 3 years ago

This PR adds factions & battlefields.

Each summoner can be part of a faction and factions can fight each other on battlefields.

To enter a battlefield, a summoner must pay a tribute to its faction, which goes in the faction's treasury. Entering a battlefield transfers the summoner to the battlefield contract. When on the battlefield, a summoner boosts its faction's power depending on the battlefield. Then, once a day (upgradable parameter) a clash happens: the faction with the highest power wins the treasury of all the other factions. Summoners of the winning faction that were already on the battlefield can then claim a share of the treasury.

This is still in draft, as the contracts are still highly experimental and the integration with the UI is not 100% finished. I did the PR to give some visibility on the work i did

vercel[bot] commented 3 years ago

@Dodecahedr0x is attempting to deploy a commit to the polischain Team on Vercel.

A member of the Team first needs to authorize it.