mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Compare commits
5 Commits
hermensbas
...
feature/co
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
35b52b65ba | ||
|
|
0a88aa9abe | ||
|
|
bcc173d920 | ||
|
|
24d4c1f0a0 | ||
|
|
4c87a04201 |
@@ -92,18 +92,10 @@ float StatsWeightCalculator::CalculateItem(uint32 itemId, int32 randomPropertyId
|
||||
CalculateSocketBonus(player_, proto);
|
||||
|
||||
if (enable_quality_blend_)
|
||||
{
|
||||
// Heirloom items scale with player level
|
||||
// Use player level as effective item level for heirlooms - Quality EPIC
|
||||
// Else - Blend with item quality and level for normal items
|
||||
if (proto->Quality == ITEM_QUALITY_HEIRLOOM)
|
||||
weight_ *= PlayerbotFactory::CalcMixedGearScore(lvl, ITEM_QUALITY_EPIC);
|
||||
else
|
||||
weight_ *= PlayerbotFactory::CalcMixedGearScore(proto->ItemLevel, proto->Quality);
|
||||
|
||||
return weight_;
|
||||
}
|
||||
// Blend with item quality and level
|
||||
weight_ *= PlayerbotFactory::CalcMixedGearScore(proto->ItemLevel, proto->Quality);
|
||||
|
||||
return weight_;
|
||||
}
|
||||
|
||||
float StatsWeightCalculator::CalculateEnchant(uint32 enchantId)
|
||||
|
||||
@@ -210,7 +210,7 @@ bool MovementAction::MoveTo(uint32 mapId, float x, float y, float z, bool idle,
|
||||
mm.Clear();
|
||||
if (!backwards)
|
||||
{
|
||||
mm.MovePoint(0, x, y, z, generatePath);
|
||||
mm.MovePoint(0, x, y, z, FORCED_MOVEMENT_NONE, 0.0f, 0.0f, generatePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -245,7 +245,7 @@ bool MovementAction::MoveTo(uint32 mapId, float x, float y, float z, bool idle,
|
||||
mm.Clear();
|
||||
if (!backwards)
|
||||
{
|
||||
mm.MovePoint(0, x, y, z, generatePath);
|
||||
mm.MovePoint(0, x, y, z, FORCED_MOVEMENT_NONE, 0.0f, 0.0f, generatePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -287,7 +287,7 @@ bool MovementAction::MoveTo(uint32 mapId, float x, float y, float z, bool idle,
|
||||
mm.Clear();
|
||||
if (!backwards)
|
||||
{
|
||||
mm.MovePoint(0, x, y, z, generatePath);
|
||||
mm.MovePoint(0, x, y, z, FORCED_MOVEMENT_NONE, 0.0f, 0.0f, generatePath);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user