Class: PfrpgRaces::Race::Gnome

Inherits:
PfrpgRaces::Race show all
Defined in:
lib/pfrpg_races/races/gnome.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/gnome.rb', line 15

def attribute_bonuses
  [
      PfrpgRaces::StatBonus.new('CON',2),
      PfrpgRaces::StatBonus.new('CHA',2),
      PfrpgRaces::StatBonus.new('STR',-2),
  ]
end

#bonus_choicesObject



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

def bonus_choices
  []
end

#choose_ability_bonus?Boolean

Returns:

  • (Boolean)


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

def choose_ability_bonus?
  false
end

#descriptionObject



7
8
9
# File 'lib/pfrpg_races/races/gnome.rb', line 7

def description
  "Gnomes are physically weak but surprisingly hardy, and their attitude makes them naturally agreeable. They gain +2 Constitution, +2 Charisma, and –2 Strength."
end

#int_languagesObject



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

def int_languages
  ["Draconic", "Dwarven", "Elven", "Giant", "Goblin", "Orc"]
end

#languagesObject



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

def languages
  ["Common", "Gnome", "Sylvan"]
end

#martial_weaponsObject



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

def martial_weapons
  "gnome"
end

#nameObject



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

def name
  "Gnome"
end

#sizeObject



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

def size
  "SMALL"
end

#sourceObject



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

def source
  "PFRPG"
end

#speedObject



31
32
33
# File 'lib/pfrpg_races/races/gnome.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
86
87
88
89
# File 'lib/pfrpg_races/races/gnome.rb', line 55

def traits
  [
    PfrpgRaces::RacialTrait.new( :name => "Low-Light Vision",
                     :description => "See 2x as far in dim light"
                   ),
    PfrpgRaces::RacialTrait.new( :name => "Defensive Training",
                     :description => "+4 dodge AC vs giant monsters"
                   ),
    PfrpgRaces::RacialTrait.new( :name => "Hatred",
                     :description => "+1 ATK Bonus vs reptilian humanoids and goblinoid subtypes"
                   ),
    PfrpgRaces::RacialTrait.new( :name => "Illusion Resistance",
                     :description => "+2 save vs illusion spells and effects"
                   ),
    PfrpgRaces::RacialTrait.new( :name => "Obsessive",
                     :description => "+2 to Craft or Profession skill of your choice"
                   ),
    PfrpgRaces::RacialTrait.new( :name => "Gnome Magic",
                     :description => "+1 to DC of any saving throws against illusions they cast, \n
                                      with >= 11 Charisma, gain spell-like abilities once per day:\n
                                      \tdancing lights,\n
                                      \tghost sound,\n
                                      \tprestidigitation,\n
                                      \tspeak with animals\n
                                      The DC for these spells is 10 + spell level + CHA mod",
                   ),
    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/gnome.rb', line 47

def weapon_familiarity
  [ ]
end