summaryrefslogtreecommitdiff
path: root/src/game-server/testing.cpp
diff options
context:
space:
mode:
authorRogier Polak <rogier.l.a.polak@gmail.com>2007-03-14 17:47:44 +0000
committerRogier Polak <rogier.l.a.polak@gmail.com>2007-03-14 17:47:44 +0000
commit7ee29dd31113ea6419801e42de0e4b4a122b7aca (patch)
treed72ab243f5f378d7254d4765b3df0b46b63f5aa3 /src/game-server/testing.cpp
parentd69f5bc43d0d08f9b47465598d6b53552a252dfc (diff)
downloadmanaserv-7ee29dd31113ea6419801e42de0e4b4a122b7aca.tar.gz
manaserv-7ee29dd31113ea6419801e42de0e4b4a122b7aca.tar.bz2
manaserv-7ee29dd31113ea6419801e42de0e4b4a122b7aca.tar.xz
manaserv-7ee29dd31113ea6419801e42de0e4b4a122b7aca.zip
Modified the game-server to use AbstractCharacterData, some renaming
Diffstat (limited to 'src/game-server/testing.cpp')
-rw-r--r--src/game-server/testing.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/game-server/testing.cpp b/src/game-server/testing.cpp
index 7c3f87af..e09f4feb 100644
--- a/src/game-server/testing.cpp
+++ b/src/game-server/testing.cpp
@@ -5,6 +5,8 @@
#include <cassert>
#include "controller.h"
+
+#include "defines.h"
#include "game-server/itemmanager.hpp"
#include "game-server/state.hpp"
#include "game-server/trigger.hpp"
@@ -39,12 +41,12 @@ void testingMap(int id)
being->setSize(8);
// some bogus stats for testing
- being->setBaseStat(Being::STAT_HP_MAXIMUM, 42);
- being->setBaseStat(Being::STAT_PHYSICAL_ATTACK_MINIMUM, 1);
- being->setBaseStat(Being::STAT_PHYSICAL_ATTACK_FLUCTUATION, 0);
- being->setBaseStat(Being::STAT_PHYSICAL_DEFENCE, 5);
+ being->setCompoundAttribute(ATT_HP_MAXIMUM, 42);
+ being->setCompoundAttribute(ATT_PHYSICAL_ATTACK_MINIMUM, 1);
+ being->setCompoundAttribute(ATT_PHYSICAL_ATTACK_FLUCTUATION, 0);
+ being->setCompoundAttribute(ATT_PHYSICAL_DEFENCE, 5);
- being->setHitpoints(being->getRealStat(Being::STAT_HP_MAXIMUM));
+ being->setHitpoints(42);
being->setMapId(1);
Point pos(720, 900);