class RulesHashes::CreationArray
In this class, you define the variables of the warrior sheet. The key is a symbol: :full_name, :nickname, :hp, :weapon and :armor The elements is an array of three
- The question symbol that has to match in the symbol in the Questionnaire in texts_system.rb - The type as a symbol: :string, :integer, :bool are supported :weapon and :armor are treated specificallly to list supported values and accept only values in that list - The default value.
Public Class Methods
new()
click to toggle source
# File data/rpg-prompt/rules_default_hashes.rb, line 59 def initialize self[:full_name] = [:question_full_name, :string, nil] self[:nickname] = [:question_nickname, :string, nil] self[:race] = [:question_race, :string, ""] #not used self[:hp] = [:question_hp, :integer, 10] self[:weapon] = [:question_weapon, :weapon, :broad_sword] self[:armor] = [:question_armor, :armor, :no_armor] self[:move_capacity] = [:question_move_capacity, :integer, 10] #not used end