app/controllers/concerns/utils.rb
# Any given spec uses only one of Intellect, Agility, or Strength
# Remove the two that are not highest from the provided hash
Any given spec uses only one of Intellect, Agility, or Strength
Remove the two that are not highest from the provided hash
Any given spec uses only one of Intellect Agility or Strength Remove the two that are not highest from the provided hash
def remove_unused_stats hash
    med_agility = hash["agility"][:med]
    med_intellect = hash["intellect"][:med]
    med_strength = hash["strength"][:med]
    if (med_agility > med_intellect && med_agility > med_strength)
      hash.delete("intellect")
      hash.delete("strength")
    elsif (med_intellect > med_agility && med_intellect > med_strength)
      hash.delete("agility")
      hash.delete("strength")
    elsif (med_strength > med_agility && med_strength > med_intellect)
      hash.delete("agility")
      hash.delete("intellect")
    end
  end
def remove_unused_stats hash med_agility = hash [ "agility" ] [ :med ] med_intellect = hash [ "intellect" ] [ :med ] med_strength = hash [ "strength" ] [ :med ] if ( med_agility > med_intellect && med_agility > med_strength ) hash . delete ( "intellect" ) hash . delete ( "strength" ) elsif ( med_intellect > med_agility && med_intellect > med_strength ) hash . delete ( "agility" ) hash . delete ( "strength" ) elsif ( med_strength > med_agility && med_strength > med_intellect ) hash . delete ( "agility" ) hash . delete ( "intellect" ) end end
Any given spec uses only one of Intellect, Agility, or Strength
Remove the two that are not highest from the provided hash
Any given spec uses only one of Intellect Agility or Strength Remove the two that are not highest from the provided hash
hash
<not_specific>