mirror of
https://github.com/Sarjuuk/aowow.git
synced 2025-11-29 15:58:16 +08:00
NpcDetailPage/Skinning Skill
* fix displayed skill requirement for non-standard skinning (engineering, herbalism)
This commit is contained in:
@@ -468,6 +468,7 @@ class Game
|
|||||||
switch ($skillId)
|
switch ($skillId)
|
||||||
{
|
{
|
||||||
case SKILL_SKINNING:
|
case SKILL_SKINNING:
|
||||||
|
$reqLevel /= 5; // we pass creature level * 5 (so, skill value), but formula depends on actual creature level
|
||||||
if ($reqLevel < 10)
|
if ($reqLevel < 10)
|
||||||
$reqLevel = 0;
|
$reqLevel = 0;
|
||||||
else if ($reqLevel < 20)
|
else if ($reqLevel < 20)
|
||||||
@@ -479,6 +480,7 @@ class Game
|
|||||||
case SKILL_JEWELCRAFTING:
|
case SKILL_JEWELCRAFTING:
|
||||||
case SKILL_INSCRIPTION:
|
case SKILL_INSCRIPTION:
|
||||||
case SKILL_MINING:
|
case SKILL_MINING:
|
||||||
|
case SKILL_ENGINEERING:
|
||||||
$points = [$reqLevel]; // red/orange
|
$points = [$reqLevel]; // red/orange
|
||||||
|
|
||||||
if ($reqLevel + 25 <= MAX_SKILL) // orange/yellow
|
if ($reqLevel + 25 <= MAX_SKILL) // orange/yellow
|
||||||
|
|||||||
@@ -744,7 +744,7 @@ class NpcPage extends GenericPage
|
|||||||
if ($note)
|
if ($note)
|
||||||
$tabData['note'] = $note;
|
$tabData['note'] = $note;
|
||||||
else if ($lootTpl == LOOT_SKINNING)
|
else if ($lootTpl == LOOT_SKINNING)
|
||||||
$tabData['note'] = '<b>'.Lang::formatSkillBreakpoints(Game::getBreakpointsForSkill($skinTab[2], $this->subject->getField('maxLevel')), Lang::FMT_HTML).'</b>';
|
$tabData['note'] = '<b>'.Lang::formatSkillBreakpoints(Game::getBreakpointsForSkill($skinTab[2], $this->subject->getField('maxLevel') * 5), Lang::FMT_HTML).'</b>';
|
||||||
|
|
||||||
if ($hiddenCols)
|
if ($hiddenCols)
|
||||||
$tabData['hiddenCols'] = $hiddenCols;
|
$tabData['hiddenCols'] = $hiddenCols;
|
||||||
|
|||||||
Reference in New Issue
Block a user