public string GetRaceText()
 {
     if (!base.HasTag(GAME_TAG.CARDRACE))
     {
         return(string.Empty);
     }
     return(GameStrings.GetRaceName(this.GetRace()));
 }
    private static string GetErrorDescription(ErrorType type, PlayRequirementInfo requirementInfo)
    {
        Log.PlayErrors.Print(string.Concat(new object[] { "GetErrorDescription: ", type, " ", requirementInfo }), new object[0]);
        ErrorType type2 = type;

        switch (type2)
        {
        case ErrorType.REQ_YOUR_TURN:
            return(string.Empty);

        case ErrorType.REQ_SECRET_CAP:
        {
            object[] args = new object[] { GameState.Get().GetMaxSecretsPerPlayer() };
            return(GameStrings.Format("GAMEPLAY_PlayErrors_REQ_SECRET_CAP", args));
        }

        case ErrorType.REQ_TARGET_MAX_ATTACK:
        {
            object[] objArray2 = new object[] { requirementInfo.paramMaxAtk };
            return(GameStrings.Format("GAMEPLAY_PlayErrors_REQ_TARGET_MAX_ATTACK", objArray2));
        }

        case ErrorType.REQ_TARGET_WITH_RACE:
        {
            object[] objArray3 = new object[] { GameStrings.GetRaceName((TAG_RACE)requirementInfo.paramRace) };
            return(GameStrings.Format("GAMEPLAY_PlayErrors_REQ_TARGET_WITH_RACE", objArray3));
        }

        case ErrorType.REQ_TARGET_TAUNTER:
            if (!CanShowMinionTauntError())
            {
                return(GameStrings.Get("GAMEPLAY_PlayErrors_REQ_TARGET_TAUNTER_CHARACTER"));
            }
            return(GameStrings.Get("GAMEPLAY_PlayErrors_REQ_TARGET_TAUNTER_MINION"));

        case ErrorType.REQ_ACTION_PWR_IS_MASTER_PWR:
            return(ErrorInEditorOnly("[Unity Editor] Action power must be master power", new object[0]));
        }
        if (type2 != ErrorType.NONE)
        {
            if (type2 == ErrorType.REQ_MINIMUM_ENEMY_MINIONS)
            {
                object[] objArray5 = new object[] { requirementInfo.paramMinNumEnemyMinions };
                return(GameStrings.Format("GAMEPLAY_PlayErrors_REQ_MINIMUM_ENEMY_MINIONS", objArray5));
            }
            if (type2 == ErrorType.REQ_TARGET_MIN_ATTACK)
            {
                object[] objArray6 = new object[] { requirementInfo.paramMinAtk };
                return(GameStrings.Format("GAMEPLAY_PlayErrors_REQ_TARGET_MIN_ATTACK", objArray6));
            }
            if (type2 == ErrorType.REQ_MINIMUM_TOTAL_MINIONS)
            {
                object[] objArray7 = new object[] { requirementInfo.paramMinNumTotalMinions };
                return(GameStrings.Format("GAMEPLAY_PlayErrors_REQ_MINIMUM_TOTAL_MINIONS", objArray7));
            }
            string str = null;
            if (s_playErrorsMessages.TryGetValue(type, out str))
            {
                return(GameStrings.Get(str));
            }
            object[] objArray8 = new object[] { type };
            return(ErrorInEditorOnly("[Unity Editor] Unknown play error ({0})", objArray8));
        }
        Debug.LogWarning("PlayErrors.GetErrorDescription() - Action is not valid, but no error string found.");
        return(string.Empty);
    }