summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-04 22:08:04 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-04 22:08:04 +0300
commita865b10749df829ef46a14e244bc88ac52bc10b4 (patch)
tree244f283ab8ba6cfcc9683eafe51be7a9d7bbabbe /src/localplayer.cpp
parent9b3e13d4246930f0aa4dfb86e735466032d283dd (diff)
downloadManaVerse-a865b10749df829ef46a14e244bc88ac52bc10b4.tar.gz
ManaVerse-a865b10749df829ef46a14e244bc88ac52bc10b4.tar.bz2
ManaVerse-a865b10749df829ef46a14e244bc88ac52bc10b4.tar.xz
ManaVerse-a865b10749df829ef46a14e244bc88ac52bc10b4.zip
Add colors support for drops panel.
Delete search item function without colors support.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index fc0e17a6f..93c27c0e7 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -1896,16 +1896,16 @@ void LocalPlayer::changeEquipmentBeforeAttack(Being* target)
if (allowSword)
{
//finding sword
- item = PlayerInfo::getInventory()->findItem(571);
+ item = PlayerInfo::getInventory()->findItem(571, 1);
if (!item)
- item = PlayerInfo::getInventory()->findItem(570);
+ item = PlayerInfo::getInventory()->findItem(570, 1);
if (!item)
- item = PlayerInfo::getInventory()->findItem(579);
+ item = PlayerInfo::getInventory()->findItem(579, 1);
if (!item)
- item = PlayerInfo::getInventory()->findItem(536);
+ item = PlayerInfo::getInventory()->findItem(536, 1);
//no swords
if (!item)
@@ -1921,9 +1921,9 @@ void LocalPlayer::changeEquipmentBeforeAttack(Being* target)
if (mAttackWeaponType == 3)
{
//finding shield
- item = PlayerInfo::getInventory()->findItem(601);
+ item = PlayerInfo::getInventory()->findItem(601, 1);
if (!item)
- item = PlayerInfo::getInventory()->findItem(602);
+ item = PlayerInfo::getInventory()->findItem(602, 1);
if (item && !item->isEquipped())
{
Net::getInventoryHandler()->equipItem(item);
@@ -1935,10 +1935,10 @@ void LocalPlayer::changeEquipmentBeforeAttack(Being* target)
else
{
//finding bow
- item = PlayerInfo::getInventory()->findItem(545);
+ item = PlayerInfo::getInventory()->findItem(545, 1);
if (!item)
- item = PlayerInfo::getInventory()->findItem(530);
+ item = PlayerInfo::getInventory()->findItem(530, 1);
//no bow
if (!item)