PETSkillFunctionsTrait
- trait SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETSkillFunctionsTrait
Methods
- public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETSkillFunctionsTrait::getSkillLevel($playerId, $skill)
- Method responsible for fetching a skill level from the DB
- Source
- Parameters
$playerId (int)
$skill (string)
- Returns
int
- private SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETSkillFunctionsTrait::getSkillValue($playerId, $skill)
- Method responsible for fetching the skill level from the DB and returning the corresponding value
- Source
- Parameters
$playerId (int)
$skill (string)
- Returns
mixed
- private SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETSkillFunctionsTrait::incrementSkillLevel($skill, $playerId, $returnArray=false)
- Adds one level to the skill level, if below 6, and add to score if needed.
- Source
- Parameters
$skill (string)
$playerId (int)
$returnArray (bool)
- Returns
array | void