|
|
@ -78,6 +78,8 @@ contract Main is Owned {
|
|
|
|
uint256 public unaboomerPrice = 0.01 ether;
|
|
|
|
uint256 public unaboomerPrice = 0.01 ether;
|
|
|
|
/// Price of the Mailbomb ERC-1155 token
|
|
|
|
/// Price of the Mailbomb ERC-1155 token
|
|
|
|
uint256 public bombPrice = 0.0025 ether;
|
|
|
|
uint256 public bombPrice = 0.0025 ether;
|
|
|
|
|
|
|
|
/// If mail bombs can be sent by players
|
|
|
|
|
|
|
|
bool public mayhem;
|
|
|
|
/// Unaboomer contract
|
|
|
|
/// Unaboomer contract
|
|
|
|
Unaboomer public unaboomer;
|
|
|
|
Unaboomer public unaboomer;
|
|
|
|
/// Mailbomb contract
|
|
|
|
/// Mailbomb contract
|
|
|
@ -127,6 +129,11 @@ contract Main is Owned {
|
|
|
|
mailbomb = Mailbomb(_address);
|
|
|
|
mailbomb = Mailbomb(_address);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Toggle mayhem switch to enable mail bomb sending
|
|
|
|
|
|
|
|
function toggleMayhem() external onlyOwner {
|
|
|
|
|
|
|
|
mayhem = !mayhem;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// =========================================================================
|
|
|
|
// =========================================================================
|
|
|
|
// Modifiers
|
|
|
|
// Modifiers
|
|
|
|
// =========================================================================
|
|
|
|
// =========================================================================
|
|
|
@ -234,6 +241,8 @@ contract Main is Owned {
|
|
|
|
/// @dev The likelihood of killing a boomer decreases as time goes on - i.e. more duds
|
|
|
|
/// @dev The likelihood of killing a boomer decreases as time goes on - i.e. more duds
|
|
|
|
/// @param _amount Amount of bombs to send to kill Unaboomers (dead pfps)
|
|
|
|
/// @param _amount Amount of bombs to send to kill Unaboomers (dead pfps)
|
|
|
|
function sendBombs(uint256 _amount) external missionNotCompleted {
|
|
|
|
function sendBombs(uint256 _amount) external missionNotCompleted {
|
|
|
|
|
|
|
|
// Require mayhem is set (allow time to mint and trade)
|
|
|
|
|
|
|
|
require(mayhem, "not ready for mayhem");
|
|
|
|
// Ensure _amount will not exceed wallet balance of bombs, Unaboomer supply, and active Unaboomers
|
|
|
|
// Ensure _amount will not exceed wallet balance of bombs, Unaboomer supply, and active Unaboomers
|
|
|
|
uint256 supply = unaboomersRadicalized();
|
|
|
|
uint256 supply = unaboomersRadicalized();
|
|
|
|
uint256 bal = bombBalance(msg.sender);
|
|
|
|
uint256 bal = bombBalance(msg.sender);
|
|
|
|