-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fog of war mechanic (Bandit) #1
Conversation
error WaitForNFTTick(address tokenAddress, uint256 tokenID); | ||
error NFTNotOwnedByPlayer(address player, address tokenAddress, uint256 tokenID); | ||
|
||
function _preRollForNFT(address tokenAddress, uint256 tokenID) internal virtual {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there also be a preRollForPlayer
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a comment clarifying why there isn't symmetry between player and NFT - NFT has preroll, but player doesn't.
vm.roll(block.number + blockDeadline + 1); | ||
vm.expectRevert(abi.encodeWithSelector(Bandit.NFTDeadlineExceeded.selector, address(nfts), tokenID)); | ||
bandit.resolveForNFT(address(nfts), tokenID); | ||
vm.stopPrank(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this test supposed to rerollForNFT
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lg
This pull request introduces the single player fog of war mechanic that we will be using in The Degen Trail.