This fork contains my work for the MatchboxDAO hackathon #2 where I have tried to expand the GoblinTown module with new features.
- Goblin town launches attacks at regular intervals after spawning, trying to loot resources. In order to do this, a Goblin army is generated based on the goblin town's strength parameter
- Goblin towns can upgrade to "strongholds" after a number of successful raids, which increases their "strength" as well as allow them to have a Hobgoblin general.
- A Hobgoblin general boosts the combat strength of the goblin armies as the stats of the general are used to boost the quantity and health of the battalions comprising the goblin army.
- A scouting function to pay a $LORDS fee to try and scout the details of the goblin forces to better prepare defense/attack forces
- Functions to generate a new general with semi-randomized stats or upgrading an existing general when a stronghold increases in strength and level (strongholds can keep increasing in level with successful raids). 'Nemesis' generals have a higher chance to get better upgrades and higher levels.
- A Hobgoblin general drops bonus rewards when defeated but can be allowed to escape by not attacking the goblin town with a vastly superior force, thereby allowing them to escape and become a "nemesis", who will return the next time a stronghold appears with a higher rarity item drop.
I have added new Protostar tests accordingly in:
tests/protostar/settling_game/goblintown/test_goblintown.cairo and
tests/protostar/settling_game/combat/test_combat_2.cairo
Directory | Title | Description |
---|---|---|
/settling_game | The Realms Settling Game | A modular game engine architecture built on StarkNet. |
/desiege | Desiege | A web-based team game built on Starknet. |
/loot | Loot | Loot contracts ported to Cairo. |
/exchange | Exchange | Allows trades between pairs of ERC20 and ERC1155 contract tokens. |
/nft_marketplace | NFT Marketplace | A marketplace for Realms, Dungeons, etc. built on Starknet. |
1. Visit the Bibliotheca DAO Site for an overview of our ecosystem
2. The Master Scroll. This is our deep dive into everything about the game. The Master Scroll is the source of truth before this readme
3. Visit The Atlas to see the Settling game in action
4. Get involved at the Realms x Bibliotheca Discord
https://development.bibliothecadao.xyz/docs/getting-started/environment
The Realms Settling Game spans a number of repositories:
Content | Repository | Description |
---|---|---|
contracts | realms-contracts | StarkNet/Cairo and Ethereum/solidity contracts. |
ui, atlas | realms-react | All user-facing react code (website, Atlas, ui library). |
indexer | starknet-indexer | A graphql endpoint for the Lootverse on StarkNet. |
bot | squire | A Twitter/Discord bot for the Lootverse. |
subgraph | loot-subgraph | A subgraph (TheGraph) for the Lootverse on Eth Mainnet. |