Class: BCDice::GameSystem::LogHorizon::HeroineTreasureTable

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)


381
382
383
384
385
386
387
388
389
# File 'lib/bcdice/game_system/LogHorizon.rb', line 381

def pick_item(index)
  if index <= 6
    translate("LogHorizon.TRS.below_lower_limit", value: 6)
  elsif index <= 53
    @items[index]
  else
    translate("LogHorizon.TRS.exceed_upper_limit", value: 54)
  end
end