lib/xiv_lodestone/lodestone_character_gear.rb
# Calculates the total gear list ilevel
# Rounds to the nearest whole number like FFXIV ingame calculation
# returns a #Integer

Calculates the total gear list ilevel
Rounds to the nearest whole number like FFXIV ingame calculation
returns a #Integer
Calculates the total gear list ilevel Rounds to the nearest whole number like FFXIV ingame calculation returns a #Integer
def ilevel()
      ilevel = 0
      ilevel = @items[:weapon].ilevel if @items[:shield].nil?
      @items.each_value do |value|
        ilevel += value.ilevel unless value.name =~ /Soul of the/i
      end
      (ilevel/13).round
    end
def ilevel ( ) ilevel = 0 ilevel = @items [ :weapon ] . ilevel if @items [ :shield ] . nil? @items . each_value do | value | ilevel += value . ilevel unless value . name =~ / Soul of the /i end ( ilevel / 13 ) . round end
Calculates the total gear list ilevel
Rounds to the nearest whole number like FFXIV ingame calculation
returns a #Integer
Calculates the total gear list ilevel Rounds to the nearest whole number like FFXIV ingame calculation returns a #Integer