summaryrefslogtreecommitdiff
path: root/src/enums
diff options
context:
space:
mode:
Diffstat (limited to 'src/enums')
-rw-r--r--src/enums/being/attributes.h2
-rw-r--r--src/enums/being/attributesstrings.cpp2
-rw-r--r--src/enums/simpletypes/stringdefines.h3
3 files changed, 5 insertions, 2 deletions
diff --git a/src/enums/being/attributes.h b/src/enums/being/attributes.h
index c98413c69..7252a539a 100644
--- a/src/enums/being/attributes.h
+++ b/src/enums/being/attributes.h
@@ -27,7 +27,7 @@
enumStart(Attributes)
{
// player attributes
- PLAYER_LEVEL = 0,
+ PLAYER_BASE_LEVEL = 0,
PLAYER_HP,
PLAYER_MAX_HP,
PLAYER_MP,
diff --git a/src/enums/being/attributesstrings.cpp b/src/enums/being/attributesstrings.cpp
index 4d75d54a4..51c116355 100644
--- a/src/enums/being/attributesstrings.cpp
+++ b/src/enums/being/attributesstrings.cpp
@@ -31,7 +31,7 @@ namespace AttributesEnum
{
stringEnumStart(AttributesT)
// player attributes
- strEnumDef(Attributes, PLAYER_LEVEL)
+ strEnumDef2(Attributes, PLAYER_BASE_LEVEL, "PLAYER_LEVEL")
strEnumDef(Attributes, PLAYER_HP)
strEnumDef(Attributes, PLAYER_MAX_HP)
strEnumDef(Attributes, PLAYER_MP)
diff --git a/src/enums/simpletypes/stringdefines.h b/src/enums/simpletypes/stringdefines.h
index 67631aa8a..3d3dc273a 100644
--- a/src/enums/simpletypes/stringdefines.h
+++ b/src/enums/simpletypes/stringdefines.h
@@ -40,6 +40,9 @@
#define strEnumDef(prefix, name) \
mStringsArray[#name] = prefix::name; \
+#define strEnumDef2(prefix, name, str) \
+ mStringsArray[str] = prefix::name; \
+
#define stringEnumEnd \
}