summaryrefslogtreecommitdiff
path: root/src/resources/beinginfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/beinginfo.cpp')
-rw-r--r--src/resources/beinginfo.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/resources/beinginfo.cpp b/src/resources/beinginfo.cpp
index 9ee0f3de9..eef4ba7b7 100644
--- a/src/resources/beinginfo.cpp
+++ b/src/resources/beinginfo.cpp
@@ -22,6 +22,7 @@
#include "resources/beinginfo.h"
+#include "configuration.h"
#include "logger.h"
#include "utils/dtor.h"
@@ -132,3 +133,13 @@ void BeingInfo::clear()
delete empty;
empty = nullptr;
}
+
+void BeingInfo::init()
+{
+ if (empty)
+ {
+ empty->mEffectId = paths.getIntValue("effectId");
+ empty->mHitEffectId = paths.getIntValue("hitEffectId");
+ empty->mCriticalHitEffectId = paths.getIntValue("criticalHitEffectId");
+ }
+}