summaryrefslogtreecommitdiff
path: root/src/game-server/testing.cpp
diff options
context:
space:
mode:
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);