viewing paste Unknown #196 | C

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13
/**
 * retrieves the maximum parameter value for a player based on their job class.
 *
 * @param sd the player to retrieve the maximum parameter for
 * @return the maximum parameter value
 */
inline int pc_maxparameter(struct map_session_data* sd)
{
        if( (sd->class_&MAPID_UPPERMASK) == MAPID_KAGEROUOBORO || sd->class_&JOBL_THIRD )
                return (sd->class_&JOBL_BABY) ? battle_config.max_baby_third_parameter : battle_config.max_third_parameter;
       
        return (sd->class_&JOBL_BABY) ? battle_config.max_baby_parameter : battle_config.max_parameter;
}
Viewed 312 times, submitted by Epoque.