Nutritionist

The Nutritionist assists users in crafting Pet Treats used in feeding Pets. This contract is a facet on the PetCore diamond.

Contracts

Addresses

Interfaces

interface INutritionist {

    event BonusTreatsAwarded(address indexed player, uint8 treatType, uint256 quantity);
    event PetFed(address indexed fedBy, uint256 petId, uint8 foodType, uint256 hungryAt);
    event TreatCrafted(address indexed player, uint8 treatType, uint256 quantity, address item1, address item2);
    
    function craftTreats(tuple(uint8 treatType, uint256 treatQuantity, address item1, address item2)[] _treatData);
    function feedPets(tuple(uint256 petId, uint8 treatType)[] _feedData);
    function treatInfo(uint8) view returns (address treatAddress, uint256 goldCost, bool isActive);
    function treatIngredientRequirements(uint8, address) view returns (uint256);

}

ABIs

Types

Treat Type

Use the following Treat Types when crafting Pet Treats and feeding Pets.

enum TreatType {
    REGULAR,
    PREMIUM
}

Last updated