Skills/Breakpoints

* display skill learning breakpoints for gathering skills
 * fixed mixed up mining-skinning and savanging-skinning filters for NPCs
 * defined some magic skill numbers
This commit is contained in:
Sarjuuk
2021-03-14 01:54:48 +01:00
parent fbc5d43aab
commit c456ade870
10 changed files with 107 additions and 49 deletions

View File

@@ -2078,7 +2078,7 @@ class SpellList extends BaseType
return $x;
}
public function getColorsForCurrent()
public function getColorsForCurrent() : array
{
$gry = $this->curTpl['skillLevelGrey'];
$ylw = $this->curTpl['skillLevelYellow'];
@@ -2094,7 +2094,7 @@ class SpellList extends BaseType
if ($org >= $ylw || $org >= $grn || $org >= $gry)
$org = 0;
return $gry > 1 ? [$org, $ylw, $grn, $gry] : null;
return $gry > 1 ? [$org, $ylw, $grn, $gry] : [];
}
public function getListviewData($addInfoMask = 0x0)