diff --git a/src/GameConstantsAndTypes.cpp b/src/GameConstantsAndTypes.cpp index 3d557fdbb8..41c2e0b6e8 100644 --- a/src/GameConstantsAndTypes.cpp +++ b/src/GameConstantsAndTypes.cpp @@ -124,6 +124,13 @@ static const char *HealthStateNames[] = { XToString( HealthState ); LuaXType( HealthState ); +static const char *StageResultNames[] = { + "Win", + "Lose", + "Draw", +}; +XToString( StageResult ); +LuaXType( StageResult ); static const char *CoinModeNames[] = { "Home", diff --git a/src/GameConstantsAndTypes.h b/src/GameConstantsAndTypes.h index 639c061a9a..11c94418ba 100644 --- a/src/GameConstantsAndTypes.h +++ b/src/GameConstantsAndTypes.h @@ -405,11 +405,13 @@ LuaDeclareType( HealthState ); /** @brief The different stage results during battle. */ enum StageResult { - RESULT_WIN, /**< The player has won the battle. */ - RESULT_LOSE, /**< The player has lost the battle. */ - RESULT_DRAW /**< The player has tied with the competitor. */ + RESULT_WIN, /**< The player has won the battle. */ + RESULT_LOSE, /**< The player has lost the battle. */ + RESULT_DRAW, /**< The player has tied with the competitor. */ + NUM_StageResult, + StageResult_Invalid }; - +LuaDeclareType( StageResult ); // Battle stuff /** @brief The number of inventory slots available for attacks. */