Class: PfrpgRaces::Race::Halfling
- Inherits:
-
PfrpgRaces::Race
- Object
- PfrpgRaces::Race
- PfrpgRaces::Race::Halfling
- Defined in:
- lib/pfrpg_races/races/halfling.rb
Instance Method Summary collapse
- #attribute_bonuses ⇒ Object
- #bonus_choices ⇒ Object
- #choose_ability_bonus? ⇒ Boolean
- #description ⇒ Object
- #int_languages ⇒ Object
- #languages ⇒ Object
- #martial_weapons ⇒ Object
- #name ⇒ Object
- #size ⇒ Object
- #source ⇒ Object
- #speed ⇒ Object
- #traits ⇒ Object
- #weapon_familiarity ⇒ Object
Methods inherited from PfrpgRaces::Race
#as_json, #attributes, #bonus_feats, fetch, race_list, #size_modifier
Instance Method Details
#attribute_bonuses ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/pfrpg_races/races/halfling.rb', line 15 def attribute_bonuses [ PfrpgRaces::StatBonus.new('DEX',2), PfrpgRaces::StatBonus.new('CHA',2), PfrpgRaces::StatBonus.new('STR',-2) ] end |
#bonus_choices ⇒ Object
23 24 25 |
# File 'lib/pfrpg_races/races/halfling.rb', line 23 def bonus_choices [] end |
#choose_ability_bonus? ⇒ Boolean
43 44 45 |
# File 'lib/pfrpg_races/races/halfling.rb', line 43 def choose_ability_bonus? false end |
#description ⇒ Object
7 8 9 |
# File 'lib/pfrpg_races/races/halfling.rb', line 7 def description "Halflings are nimble and strong-willed, but their small stature makes them weaker than other races. They gain +2 Dexterity, +2 Charisma, and –2 Strength." end |
#int_languages ⇒ Object
35 36 37 |
# File 'lib/pfrpg_races/races/halfling.rb', line 35 def int_languages ["Dwarven", "Elven", "Gnome", "Goblin"] end |
#languages ⇒ Object
27 28 29 |
# File 'lib/pfrpg_races/races/halfling.rb', line 27 def languages ["Common", "Halfling"] end |
#martial_weapons ⇒ Object
51 52 53 |
# File 'lib/pfrpg_races/races/halfling.rb', line 51 def martial_weapons "halfling" end |
#name ⇒ Object
3 4 5 |
# File 'lib/pfrpg_races/races/halfling.rb', line 3 def name "Halfling" end |
#size ⇒ Object
39 40 41 |
# File 'lib/pfrpg_races/races/halfling.rb', line 39 def size "SMALL" end |
#source ⇒ Object
11 12 13 |
# File 'lib/pfrpg_races/races/halfling.rb', line 11 def source "PFRPG" end |
#speed ⇒ Object
31 32 33 |
# File 'lib/pfrpg_races/races/halfling.rb', line 31 def speed 20 end |
#traits ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/pfrpg_races/races/halfling.rb', line 55 def traits [ PfrpgRaces::RacialTrait.new( :name => "Fearless", :description => "+2 racial bonus save vs fear (This stacks with Luck)" ), PfrpgRaces::RacialTrait.new( :name => "Halfling Luck", :description => "+1 racial bonus to all saving throws", :effects => [ PfrpgUtility::Effect.new("racial", "fort_save", 1), PfrpgUtility::Effect.new("racial", "will_save", 1), PfrpgUtility::Effect.new("racial", "ref_save", 1) ] ), PfrpgRaces::RacialTrait.new( :name => "Sure Footed", :description => "+2 racial bonus on Acrobatic & Climb skill checks", :effects => [ PfrpgUtility::Effect.new("skill", "climb", 2), PfrpgUtility::Effect.new("skill", "acrobatics", 2) ] ), PfrpgRaces::RacialTrait.new( :name => "Keen Senses", :description => "+2 Perception", :effects => [ PfrpgUtility::Effect.new("skill", "perception", 2) ] ) ] end |
#weapon_familiarity ⇒ Object
47 48 49 |
# File 'lib/pfrpg_races/races/halfling.rb', line 47 def weapon_familiarity [ "Sling" ] end |