Class: BCDice::GameSystem::StellarLife::StellarLife2D10Table::RollResult

Inherits:
DiceTable::RollResult show all
Defined in:
lib/bcdice/game_system/StellarLife.rb

Overview

出目 10 を 0 と読むため、ゼロパディングしなければならない

Instance Attribute Summary

Attributes inherited from DiceTable::RollResult

#body, #table_name, #value

Instance Method Summary collapse

Methods inherited from DiceTable::RollResult

#empty?, #initialize, #last_body

Constructor Details

This class inherits a constructor from BCDice::DiceTable::RollResult

Instance Method Details

#to_sObject



155
156
157
# File 'lib/bcdice/game_system/StellarLife.rb', line 155

def to_s
  "#{@table_name}(#{format('%02d', @value)}) > #{@body}"
end