PETSkillFunctionsTrait

trait SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETSkillFunctionsTrait
Source

modules/php/Traits/Utility/PETSkillFunctionsTrait.php#17

Methods

public SwHawk\ProgressEvolutionOfTechnologySWH\Modules\Traits\Utility\PETSkillFunctionsTrait::getSkillLevel($playerId, $skill)
Method responsible for fetching a skill level from the DB
Source

modules/php/Traits/Utility/PETSkillFunctionsTrait.php#28

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

modules/php/Traits/Utility/PETSkillFunctionsTrait.php#49

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

modules/php/Traits/Utility/PETSkillFunctionsTrait.php#63

Parameters
  • $skill (string)

  • $playerId (int)

  • $returnArray (bool)

Returns

array | void