From 402484c66f2cb4036e1af4bbda6345d8d79ecb41 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Wed, 6 Feb 2008 16:53:16 +0000 Subject: obeying "80 characters per row" coding style rule. --- src/game-server/monstermanager.cpp | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/game-server/monstermanager.cpp b/src/game-server/monstermanager.cpp index 2d59d690..58c146c3 100644 --- a/src/game-server/monstermanager.cpp +++ b/src/game-server/monstermanager.cpp @@ -122,14 +122,22 @@ void MonsterManager::reload() else if (xmlStrEqual(subnode->name, BAD_CAST "attributes")) { attributesSet = true; - monster->setAttribute(BASE_ATTR_HP, XML::getProperty(subnode, "hp", -1)); - monster->setAttribute(BASE_ATTR_PHY_ATK_MIN, XML::getProperty(subnode, "attack-min", -1)); - monster->setAttribute(BASE_ATTR_PHY_ATK_DELTA, XML::getProperty(subnode, "attack-delta", -1)); - monster->setAttribute(BASE_ATTR_MAG_ATK, XML::getProperty(subnode, "attack-magic", -1)); - monster->setAttribute(BASE_ATTR_EVADE, XML::getProperty(subnode, "evade", -1)); - monster->setAttribute(BASE_ATTR_HIT, XML::getProperty(subnode, "hit", -1)); - monster->setAttribute(BASE_ATTR_PHY_RES, XML::getProperty(subnode, "physical-defence", -1)); - monster->setAttribute(BASE_ATTR_MAG_RES, XML::getProperty(subnode, "magical-defence", -1)); + monster->setAttribute(BASE_ATTR_HP, + XML::getProperty(subnode, "hp", -1)); + monster->setAttribute(BASE_ATTR_PHY_ATK_MIN, + XML::getProperty(subnode, "attack-min", -1)); + monster->setAttribute(BASE_ATTR_PHY_ATK_DELTA, + XML::getProperty(subnode, "attack-delta", -1)); + monster->setAttribute(BASE_ATTR_MAG_ATK, + XML::getProperty(subnode, "attack-magic", -1)); + monster->setAttribute(BASE_ATTR_EVADE, + XML::getProperty(subnode, "evade", -1)); + monster->setAttribute(BASE_ATTR_HIT, + XML::getProperty(subnode, "hit", -1)); + monster->setAttribute(BASE_ATTR_PHY_RES, + XML::getProperty(subnode, "physical-defence", -1)); + monster->setAttribute(BASE_ATTR_MAG_RES, + XML::getProperty(subnode, "magical-defence", -1)); // TODO: speed // TODO: size @@ -143,12 +151,15 @@ void MonsterManager::reload() monster->setAttribute(i, 0); } } - if (!attributesComplete) LOG_WARN(monsterReferenceFile<<": Attributes incomplete for monster #"<setDrops(drops); - if (!attributesSet) LOG_WARN(monsterReferenceFile<<": No attributes defined for monster #"<