diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-19 00:11:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-19 00:11:38 +0300 |
commit | fe2b380ffbe6070cf12ee93ac52192e210c4ca79 (patch) | |
tree | fa617c7dff25068dc53d979a8e2713fae23a3203 | |
parent | c32bbeb3674cef43df33bd1f7a249e95868b7ded (diff) | |
download | mv-fe2b380ffbe6070cf12ee93ac52192e210c4ca79.tar.gz mv-fe2b380ffbe6070cf12ee93ac52192e210c4ca79.tar.bz2 mv-fe2b380ffbe6070cf12ee93ac52192e210c4ca79.tar.xz mv-fe2b380ffbe6070cf12ee93ac52192e210c4ca79.zip |
Add new hardcoded sword to auto switch weapon code.
-rw-r--r-- | src/localplayer.cpp | 6 |
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; |