https://linear.app/star-sailors/issue/WB3-7/🫥🔬-↝-interacting-with-anomalies-from-smart-contract
msg.sender
(player’s address) so they can manipulate it in-gamemsg.sender
0xdf35Bb26d9AAD05EeC5183c6288f13c0136A7b43
(erc1155
token drop)This Next.js demo will show the user flow for when a user has minted a planet and wants to generate resources from it. The contract is a duplicate of the Thirdweb 1155 Edition Drop (with Lazy Minting). It will be for both planets and unconfirmed candidates.
Right now, I’m lazy minting planets that are on the “Star Sailors Planet” contract (goerli/0x766215a318E2AD1EbdC4D92cF2A3b70CBedeac31
). However, in the next test phase, I’ll add the evolution code to the current drop contract.
Rewards will be calculated based on different parameters/traits, but also on the status of the object (i.e. if it’s been confirmed). Multiple ERC20 tokens will be created and based on the primary and secondary resource traits, these will then be substituted in (e.g. if a planet with metal
and water
is selected, these two ERC20 tokens will be added as rewards).
When a planet is being staked, other work on the planet (e.g. buildings) is cut by 50%, the planet is non-transferrable, etc.
Currently, I’ve set it so that Planets will mine Planets, as I’m not entirely sure what is going to be the equipment yet. This is not going to be the case in the next test phase.