StatScienceUpgradeable
Last updated
Last updated
Frisky Fox - Defi Kingdoms
StatScience contains the logic to calculate starting stats.
Name | Type | Description |
---|---|---|
ROLES ///
Name | Type | Description |
---|---|---|
Gets the job tier for genes.
Returns the admin role that controls role
. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.
Grants role
to account
. If account
had not been already granted role
, emits a {RoleGranted} event. Requirements: - the caller must have role
's admin role.
Returns true
if account
has been granted role
.
Revokes role
from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked role
, emits a {RoleRevoked} event. Requirements: - the caller must be account
.
Revokes role
from account
. If account
had been granted role
, emits a {RoleRevoked} event. Requirements: - the caller must have role
's admin role.
See {IERC165-supportsInterface}.
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
_0
bytes32
undefined
_0
bytes32
undefined
_heroStats
HeroStats
undefined
_rarity
enum Rarity
undefined
_crystal
HeroCrystal
undefined
_crystalId
uint256
undefined
_0
HeroStats
undefined
_1
uint8[8]
undefined
_stats
HeroStats
undefined
_stat
uint256
undefined
_increase
uint8
undefined
_0
HeroStats
undefined
_statGenes
uint256
undefined
_1
HeroCrystal
undefined
_2
enum Rarity
undefined
_isPrimary
bool
undefined
_0
HeroStatGrowth
undefined
_statGenes
uint256
undefined
_crystal
HeroCrystal
undefined
_rarity
enum Rarity
undefined
_crystalId
uint256
undefined
_0
HeroStats
undefined
_genes
uint256
undefined
_position
uint8
undefined
_0
uint8
undefined
_class
uint8
undefined
_0
enum JobTier
undefined
role
bytes32
undefined
_0
bytes32
undefined
role
bytes32
undefined
account
address
undefined
role
bytes32
undefined
account
address
undefined
_0
bool
undefined
role
bytes32
undefined
account
address
undefined
role
bytes32
undefined
account
address
undefined
interfaceId
bytes4
undefined
_0
bool
undefined
role indexed
bytes32
undefined
previousAdminRole indexed
bytes32
undefined
newAdminRole indexed
bytes32
undefined
role indexed
bytes32
undefined
account indexed
address
undefined
sender indexed
address
undefined
role indexed
bytes32
undefined
account indexed
address
undefined
sender indexed
address
undefined