refactor(Scripts/Commands): convert cs_modify to new system (#9474)

This commit is contained in:
Kargatum
2021-12-04 21:56:47 +07:00
committed by GitHub
parent aa872743e7
commit 0b507d531d
4 changed files with 344 additions and 573 deletions

View File

@@ -25,10 +25,16 @@
#include "SharedDefines.h"
#include <map>
static uint32 ReputationRankStrIndex[MAX_REPUTATION_RANK] =
constexpr std::array<uint32, MAX_REPUTATION_RANK> ReputationRankStrIndex =
{
LANG_REP_HATED, LANG_REP_HOSTILE, LANG_REP_UNFRIENDLY, LANG_REP_NEUTRAL,
LANG_REP_FRIENDLY, LANG_REP_HONORED, LANG_REP_REVERED, LANG_REP_EXALTED
LANG_REP_HATED,
LANG_REP_HOSTILE,
LANG_REP_UNFRIENDLY,
LANG_REP_NEUTRAL,
LANG_REP_FRIENDLY,
LANG_REP_HONORED,
LANG_REP_REVERED,
LANG_REP_EXALTED
};
typedef uint32 RepListID;