Exemplo n.º 1
0
    /// <summary>
    /// Compare a given stat to see if it passes this room's challenge
    /// </summary>
    /// <param name="adventurerDexterity"></param>
    /// <returns>TRUE if stat beat challenge rating for room</returns>
    public bool challengeDexterity(float adventurerDexterity)
    {
        bool retVal = false;
        int  cr     = (int)challengeRoll(adventurerDexterity);

        DebugLogger.DebugChallenge(cr, m_challenge_dexterity, Enums.ChallengeType.e_challenge_DEX);

        if (cr >= m_challenge_dexterity)
        {
            retVal = true;
        }

        return(retVal);
    }
Exemplo n.º 2
0
    /// <summary>
    /// Compare a given stat to see if it passes this room's challenge
    /// </summary>
    /// <param name="adventurerWisdom"></param>
    /// <returns>TRUE if stat beat challenge rating for room</returns>
    public bool challengeWisdom(float adventurerWisdom)
    {
        bool retVal = false;

        int cr = (int)challengeRoll(adventurerWisdom);

        DebugLogger.DebugChallenge(cr, m_challenge_wisdom, Enums.ChallengeType.e_challenge_WIS);

        if (cr >= m_challenge_wisdom)
        {
            retVal = true;
        }

        return(retVal);
    }
Exemplo n.º 3
0
    /// <summary>
    /// Compare a given stat to see if it passes this room's challenge
    /// </summary>
    /// <param name="adventurerStrength"></param>
    /// <returns>TRUE if stat beat challenge rating for room</returns>
    public bool challengeStrength(float adventurerStrength)
    {
        bool retVal = false;

        int cr = (int)challengeRoll(adventurerStrength);

        DebugLogger.DebugChallenge(cr, m_challenge_strength, Enums.ChallengeType.e_challenge_STR);

        if (cr >= m_challenge_strength)
        {
            retVal = true;
        }

        return(retVal);
    }