Class: PfrpgRaces::Race::Gnome
- Inherits:
-
PfrpgRaces::Race
- Object
- PfrpgRaces::Race
- PfrpgRaces::Race::Gnome
- Defined in:
- lib/pfrpg_races/races/gnome.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/gnome.rb', line 15 def attribute_bonuses [ PfrpgRaces::StatBonus.new('CON',2), PfrpgRaces::StatBonus.new('CHA',2), PfrpgRaces::StatBonus.new('STR',-2), ] end |
#bonus_choices ⇒ Object
23 24 25 |
# File 'lib/pfrpg_races/races/gnome.rb', line 23 def bonus_choices [] end |
#choose_ability_bonus? ⇒ Boolean
43 44 45 |
# File 'lib/pfrpg_races/races/gnome.rb', line 43 def choose_ability_bonus? false end |
#description ⇒ Object
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_languages ⇒ Object
35 36 37 |
# File 'lib/pfrpg_races/races/gnome.rb', line 35 def int_languages ["Draconic", "Dwarven", "Elven", "Giant", "Goblin", "Orc"] end |
#languages ⇒ Object
27 28 29 |
# File 'lib/pfrpg_races/races/gnome.rb', line 27 def languages ["Common", "Gnome", "Sylvan"] end |
#martial_weapons ⇒ Object
51 52 53 |
# File 'lib/pfrpg_races/races/gnome.rb', line 51 def martial_weapons "gnome" end |
#name ⇒ Object
3 4 5 |
# File 'lib/pfrpg_races/races/gnome.rb', line 3 def name "Gnome" end |
#size ⇒ Object
39 40 41 |
# File 'lib/pfrpg_races/races/gnome.rb', line 39 def size "SMALL" end |
#source ⇒ Object
11 12 13 |
# File 'lib/pfrpg_races/races/gnome.rb', line 11 def source "PFRPG" end |
#speed ⇒ Object
31 32 33 |
# File 'lib/pfrpg_races/races/gnome.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 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_familiarity ⇒ Object
47 48 49 |
# File 'lib/pfrpg_races/races/gnome.rb', line 47 def weapon_familiarity [ ] end |