summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-19 00:11:38 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-19 00:11:38 +0300
commitfe2b380ffbe6070cf12ee93ac52192e210c4ca79 (patch)
treefa617c7dff25068dc53d979a8e2713fae23a3203 /src/localplayer.cpp
parentc32bbeb3674cef43df33bd1f7a249e95868b7ded (diff)
downloadplus-fe2b380ffbe6070cf12ee93ac52192e210c4ca79.tar.gz
plus-fe2b380ffbe6070cf12ee93ac52192e210c4ca79.tar.bz2
plus-fe2b380ffbe6070cf12ee93ac52192e210c4ca79.tar.xz
plus-fe2b380ffbe6070cf12ee93ac52192e210c4ca79.zip
Add new hardcoded sword to auto switch weapon code.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 231cfba4a..ef4d24a88 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -2310,8 +2310,14 @@ void LocalPlayer::changeEquipmentBeforeAttack(Being* target)
item = inv->findItem(579, 0);
if (!item)
+ item = inv->findItem(867, 0);
+
+ if (!item)
item = inv->findItem(536, 0);
+ if (!item)
+ item = inv->findItem(758, 0);
+
//no swords
if (!item)
return;