Class: Arkaan::Campaigns::Messages::Diceroll

Inherits:
Base
  • Object
show all
Defined in:
lib/arkaan/campaigns/messages/diceroll.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#campaign, #player

Instance Attribute Details

#modifierInteger

Returns the value added to the sum of all dices to get the final result.

Returns:

  • (Integer)

    the value added to the sum of all dices to get the final result.



17
# File 'lib/arkaan/campaigns/messages/diceroll.rb', line 17

field :modifier, type: Integer, default: 0

#number_of_dicesInteger

Returns the number of dices you want to roll.

Returns:

  • (Integer)

    the number of dices you want to roll.



11
# File 'lib/arkaan/campaigns/messages/diceroll.rb', line 11

field :number_of_dices, type: Integer, default: 1

#number_of_facesInteger

Returns the number of faces each dice is supposed to have.

Returns:

  • (Integer)

    the number of faces each dice is supposed to have.



14
# File 'lib/arkaan/campaigns/messages/diceroll.rb', line 14

field :number_of_faces, type: Integer, default: 20