diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-02-14 02:06:09 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-02-14 02:06:09 +0200 |
commit | 36ccecd553539955929f1ce535b8925533922e4e (patch) | |
tree | 7bb7d4bd0f3d3343ae76b567335050b782c4fc93 /src/resources | |
parent | b9df76baf8ec7d853d81096fb33647bdec1f0106 (diff) | |
download | mv-36ccecd553539955929f1ce535b8925533922e4e.tar.gz mv-36ccecd553539955929f1ce535b8925533922e4e.tar.bz2 mv-36ccecd553539955929f1ce535b8925533922e4e.tar.xz mv-36ccecd553539955929f1ce535b8925533922e4e.zip |
Fix slot names in reordering/hiding function.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/itemdb.cpp | 47 |
1 files changed, 39 insertions, 8 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index 97a6ba1f4..00987ff9d 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -441,28 +441,59 @@ const std::map<int, ItemInfo*> &ItemDB::getItemInfos() int parseSpriteName(std::string &name) { int id = -1; - if (name == "shoes") + if (name == "shoes" || name == "boot" || name == "boots") + { id = 1; + } else if (name == "bottomclothes" || name == "bottom" || name == "pants") + { id = 2; - else if (name == "topclothes" || name == "top" || name == "torso") + } + else if (name == "topclothes" || name == "top" + || name == "torso" || name == "body") + { id = 3; + } else if (name == "misc1") + { id = 4; - else if (name == "misc2") + } + else if (name == "misc2" || name == "scarf" || name == "scarfs") + { id = 5; + } else if (name == "hair") + { id = 6; - else if (name == "hat") + } + else if (name == "hat" || name == "hats") + { id = 7; - else if (name == "cap") + } + else if (name == "wings") + { id = 8; - else if (name == "gloves") + } + else if (name == "glove" || name == "gloves") + { id = 9; - else if (name == "weapon") + } + else if (name == "weapon" || name == "weapons") + { id = 10; - else if (name == "shield") + } + else if (name == "shield" || name == "shields") + { id = 11; + } + else if (name == "amulet" || name == "amulets") + { + id = 12; + } + else if (name == "ring" || name == "rings") + { + id = 13; + } return id; } |