From fe2b380ffbe6070cf12ee93ac52192e210c4ca79 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 19 Jul 2012 00:11:38 +0300 Subject: Add new hardcoded sword to auto switch weapon code. --- src/localplayer.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/localplayer.cpp') diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 231cfba4a..ef4d24a88 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -2309,9 +2309,15 @@ void LocalPlayer::changeEquipmentBeforeAttack(Being* target) if (!item) 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; -- cgit v1.2.3-60-g2f50