Class: PfrpgRaces::Race::Halfling

Inherits:
PfrpgRaces::Race show all
Defined in:
lib/pfrpg_races/races/halfling.rb

Instance Method Summary collapse

Methods inherited from PfrpgRaces::Race

#as_json, #attributes, #bonus_feats, fetch, race_list, #size_modifier

Instance Method Details

#attribute_bonusesObject



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_choicesObject



23
24
25
# File 'lib/pfrpg_races/races/halfling.rb', line 23

def bonus_choices
  []
end

#choose_ability_bonus?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/pfrpg_races/races/halfling.rb', line 43

def choose_ability_bonus?
  false
end

#descriptionObject



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_languagesObject



35
36
37
# File 'lib/pfrpg_races/races/halfling.rb', line 35

def int_languages
  ["Dwarven", "Elven", "Gnome", "Goblin"]
end

#languagesObject



27
28
29
# File 'lib/pfrpg_races/races/halfling.rb', line 27

def languages
  ["Common", "Halfling"]
end

#martial_weaponsObject



51
52
53
# File 'lib/pfrpg_races/races/halfling.rb', line 51

def martial_weapons
  "halfling"
end

#nameObject



3
4
5
# File 'lib/pfrpg_races/races/halfling.rb', line 3

def name
  "Halfling"
end

#sizeObject



39
40
41
# File 'lib/pfrpg_races/races/halfling.rb', line 39

def size
  "SMALL"
end

#sourceObject



11
12
13
# File 'lib/pfrpg_races/races/halfling.rb', line 11

def source
  "PFRPG"
end

#speedObject



31
32
33
# File 'lib/pfrpg_races/races/halfling.rb', line 31

def speed
  20
end

#traitsObject



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_familiarityObject



47
48
49
# File 'lib/pfrpg_races/races/halfling.rb', line 47

def weapon_familiarity
  [ "Sling" ]
end