diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-08-04 19:03:03 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-09-01 00:52:17 +0200 |
commit | 4fc1974292861485729ef72609311cb47632d47f (patch) | |
tree | c71390916ec55373edfa5ffb7587ea016e80578e /src/game-server/attributemanager.cpp | |
parent | b4ddc47bd54a0de8be8798a0416dd09cc4da662b (diff) | |
download | manaserv-4fc1974292861485729ef72609311cb47632d47f.tar.gz manaserv-4fc1974292861485729ef72609311cb47632d47f.tar.bz2 manaserv-4fc1974292861485729ef72609311cb47632d47f.tar.xz manaserv-4fc1974292861485729ef72609311cb47632d47f.zip |
Do not make all attributes persistent
By default they are not persistent now (meaning that they wont get
stored in the database).
Diffstat (limited to 'src/game-server/attributemanager.cpp')
-rw-r--r-- | src/game-server/attributemanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game-server/attributemanager.cpp b/src/game-server/attributemanager.cpp index cb922511..3a19e1b6 100644 --- a/src/game-server/attributemanager.cpp +++ b/src/game-server/attributemanager.cpp @@ -114,6 +114,8 @@ void AttributeManager::readAttributeNode(xmlNodePtr attributeNode) AttributeInfo *attribute = new AttributeInfo(id, name); + attribute->persistent = XML::getBoolProperty(attributeNode, "persistent", + false); attribute->modifiers = std::vector<AttributeModifier>(); attribute->minimum = XML::getFloatProperty(attributeNode, "minimum", std::numeric_limits<double>::min()); |