summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-27 18:08:34 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-27 23:26:17 +0200
commitdf5c7ae83a80db63ab90142df9e3a93f5ee630d0 (patch)
tree465991eb7785c1d17e1b15f6798efa67951a0c83 /src/resources/iteminfo.cpp
parent41e84157e0eca3a494cd6d44eec96dfbde0f5626 (diff)
downloadmanaverse-df5c7ae83a80db63ab90142df9e3a93f5ee630d0.tar.gz
manaverse-df5c7ae83a80db63ab90142df9e3a93f5ee630d0.tar.bz2
manaverse-df5c7ae83a80db63ab90142df9e3a93f5ee630d0.tar.xz
manaverse-df5c7ae83a80db63ab90142df9e3a93f5ee630d0.zip
First part of implimintation item colors.
Diffstat (limited to 'src/resources/iteminfo.cpp')
-rw-r--r--src/resources/iteminfo.cpp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp
index 255a9a7b3..49aadc23d 100644
--- a/src/resources/iteminfo.cpp
+++ b/src/resources/iteminfo.cpp
@@ -81,3 +81,31 @@ std::map<int, int> &ItemInfo::addReplaceSprite(int sprite)
}
return it->second;
}
+
+std::string ItemInfo::getDyeString(int color) const
+{
+ if (mId == 1172)
+ {
+ if (color == 1)
+ return "W:#115511,22aa22,99dd99;R:#547000,a5dc00,d1ff46";
+ if (color == 0)
+ return "W:#547000,a5dc00,d1ff46;R:#115511,22aa22,99dd99";
+ if (color == 3)
+ return "W:#ffffff,000000,000000;R:#333333,333333,333333";
+ }
+ return "";
+}
+
+std::string ItemInfo::getDyeColorsString(int color) const
+{
+ if (mId == 1172)
+ {
+ if (color == 1)
+ return "#115511,22aa22,99dd99;#547000,a5dc00,d1ff46";
+ if (color == 0)
+ return "#547000,a5dc00,d1ff46;#115511,22aa22,99dd99";
+ if (color == 3)
+ return "#ffffff,000000,000000;#333333,333333,333333";
+ }
+ return "";
+} \ No newline at end of file