diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-09-27 20:27:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-09-27 20:27:11 +0300 |
commit | 64d30eda264c342aced8d791b47a35def0e4d15c (patch) | |
tree | c680d467213104dd8ae4a030c04fe212f3a6b23c /src/enums | |
parent | 68a7dd225969fcdfb9c07b99db43756a2b1dec7c (diff) | |
download | plus-64d30eda264c342aced8d791b47a35def0e4d15c.tar.gz plus-64d30eda264c342aced8d791b47a35def0e4d15c.tar.bz2 plus-64d30eda264c342aced8d791b47a35def0e4d15c.tar.xz plus-64d30eda264c342aced8d791b47a35def0e4d15c.zip |
Rename Attributes::PLAYER_LEVEL to Attributes::PLAYER_BASE_LEVEL.
Diffstat (limited to 'src/enums')
-rw-r--r-- | src/enums/being/attributes.h | 2 | ||||
-rw-r--r-- | src/enums/being/attributesstrings.cpp | 2 | ||||
-rw-r--r-- | src/enums/simpletypes/stringdefines.h | 3 |
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 \ } |