Class: BCDice::GameSystem::LogHorizon::ExpansionTreasureTable

Inherits:
TreasureTable
  • Object
show all
Defined in:
lib/bcdice/game_system/LogHorizon.rb

Overview

拡張ルール財宝表

Instance Method Summary collapse

Methods inherited from TreasureTable

#fix_dice_value, from_i18n, #initialize, #roll

Methods included from Translate

#translate

Constructor Details

This class inherits a constructor from BCDice::GameSystem::LogHorizon::TreasureTable

Instance Method Details

#pick_item(index) ⇒ String

Parameters:

  • index (Integer)

Returns:

  • (String)


396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
# File 'lib/bcdice/game_system/LogHorizon.rb', line 396

def pick_item(index)
  if index <= 6
    translate("LogHorizon.TRS.below_lower_limit", value: 6)
  elsif index <= 162
    @items[index]
  elsif index <= 172
    "#{@items[index - 10]}&200G"
  elsif index <= 182
    "#{@items[index - 20]}&400G"
  elsif index <= 187
    "#{@items[index - 30]}&600G"
  else
    translate("LogHorizon.TRS.exceed_upper_limit", value: 188)
  end
end