diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-06-11 16:17:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-06-11 16:17:36 +0300 |
commit | dde2d920e07d651b9571ada0b4c6a8cc58e4982a (patch) | |
tree | a1b7b52d9f35222ff7e30dcf458191bb4ed33ace /src/resources/chardb.cpp | |
parent | b6df3c3999d4be067e7314e3887e583c13ad1624 (diff) | |
download | plus-dde2d920e07d651b9571ada0b4c6a8cc58e4982a.tar.gz plus-dde2d920e07d651b9571ada0b4c6a8cc58e4982a.tar.bz2 plus-dde2d920e07d651b9571ada0b4c6a8cc58e4982a.tar.xz plus-dde2d920e07d651b9571ada0b4c6a8cc58e4982a.zip |
add partial support for player look.
can change look in char creation dialog, but cant render different look.
Diffstat (limited to 'src/resources/chardb.cpp')
-rw-r--r-- | src/resources/chardb.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/resources/chardb.cpp b/src/resources/chardb.cpp index 1111177e1..73582e989 100644 --- a/src/resources/chardb.cpp +++ b/src/resources/chardb.cpp @@ -37,6 +37,8 @@ namespace unsigned mMinStat = 0; unsigned mMaxStat = 0; unsigned mSumStat = 0; + unsigned mMinLook = 0; + unsigned mMaxLook = 0; std::vector<int> mDefaultItems; } // namespace @@ -67,6 +69,10 @@ void CharDB::load() { loadMinMax(node, &mMinHairStyle, &mMaxHairStyle); } + else if (xmlNameEqual(node, "look")) + { + loadMinMax(node, &mMinLook, &mMaxLook); + } else if (xmlNameEqual(node, "stat")) { loadMinMax(node, &mMinStat, &mMaxStat); @@ -134,6 +140,16 @@ unsigned CharDB::getSumStat() return mSumStat; } +unsigned CharDB::getMinLook() +{ + return mMinLook; +} + +unsigned CharDB::getMaxLook() +{ + return mMaxLook; +} + const std::vector<int> &CharDB::getDefaultItems() { return mDefaultItems; |