src/main/java/com/dharmab/sheets/shared/character/GameLogic.java
/**
     * Calculate an ability score modifier
     *
     * @param abilityScore ability score
     * @return The ability score modifier for the given ability score
     */
Calculate an ability score modifier
@param abilityScore ability score
@return The ability score modifier for the given ability score
Calculate an ability score modifier @param abilityScore ability score @return The ability score modifier for the given ability score
public static int computeAbilityModifier(Integer abilityScore) {
        if (abilityScore >= 10) {
            return (abilityScore - 10) / 2;
        } else {
            return (int) Math.floor((abilityScore - 10) / 2d);
        }
    }
public static int computeAbilityModifier ( Integer abilityScore ) { if ( abilityScore >= 10 ) { return ( abilityScore - 10 ) / 2 ; } else { return ( int ) Math . floor ( ( abilityScore - 10 ) / 2d ) ; } }
Calculate an ability score modifier
 @param abilityScore ability score
 @return The ability score modifier for the given ability score
Calculate an ability score modifier @param abilityScore ability score @return The ability score modifier for the given ability score