class RulesHashes::WeaponHash
In this class, you may define the parameters that characterize the weapon type As with ArmorHash
, the value may be a Hash with any number of key=>element pairs In these simple default rules, the value is a combination of distance and malus to the attack roll
Public Class Methods
new()
click to toggle source
# File data/rpg-prompt/rules_default_hashes.rb, line 30 def initialize self[:broad_sword] = {:distance_mod => []} self[:dagger] = {:distance_mod => []} self[:scimitar] = {:distance_mod => []} self[:hand_axe] = {:distance_mod => []} self[:composite_bow] = {:distance_mod => [[0,0], [30,0], [60,-3], [90,-6]]} self[:mace] = {:distance_mod => []} self[:warhammer] = {:distance_mod => []} self[:battle_axe] = {:distance_mod => []} self[:claw_and_bite] = {:distance_mod => []} @@weapons = self.keys end
Public Instance Methods
weapons()
click to toggle source
# File data/rpg-prompt/rules_default_hashes.rb, line 44 def weapons @@weapons end