Class: PfrpgClasses::Assassin

Inherits:
Heroclass show all
Defined in:
lib/pfrpg_classes/heroclass/assassin.rb

Instance Attribute Summary

Attributes inherited from Heroclass

#level_for_json

Instance Method Summary collapse

Methods inherited from Heroclass

#as_json, #bab, #bonus_choices_for_level, #bonus_features_for_level, by_name, class_list, class_list_json, #features, fetch, #initialize, #meets_prerequisites?, prestige_class_list, prestige_list_json, #pretty_choice_string, #pretty_feature_string, #saves, #spells, #spells_per_day, #starting_feats, #starting_wealth, #starting_wealth_avg, #starting_wealth_str

Constructor Details

This class inherits a constructor from PfrpgClasses::Heroclass

Instance Method Details

#alignmentObject



15
16
17
# File 'lib/pfrpg_classes/heroclass/assassin.rb', line 15

def alignment
  PfrpgUtility::Alignment.any_evil
end

#bonuses_for_level(level) ⇒ Object



42
43
44
# File 'lib/pfrpg_classes/heroclass/assassin.rb', line 42

def bonuses_for_level(level)
  PfrpgTables::Tables::Heroclasses::Assassin.level_bonus(level)
end

#descriptionObject



19
20
21
# File 'lib/pfrpg_classes/heroclass/assassin.rb', line 19

def description
  " Assassins tend to be loners by nature, seeing companions as liabilities at best. Sometimes an assassin's missions put him in the company of adventurers for long stretches at a time, but few people are comfortable trusting a professional assassin to watch their backs in a fight, and are more likely to let the emotionless killer scout ahead or help prepare ambushes."
end

#feature_typeObject



54
55
56
# File 'lib/pfrpg_classes/heroclass/assassin.rb', line 54

def feature_type
  'AssassinFeature'
end

#get_spells_tableObject



46
47
48
# File 'lib/pfrpg_classes/heroclass/assassin.rb', line 46

def get_spells_table
  return PfrpgTables::Tables::Spells::SpellsPerDay.empty
end

#hit_dieObject



11
12
13
# File 'lib/pfrpg_classes/heroclass/assassin.rb', line 11

def hit_die
  PfrpgUtility::Dice.new(1,8)
end

#nameObject



3
4
5
# File 'lib/pfrpg_classes/heroclass/assassin.rb', line 3

def name
  "Assassin"
end

#prerequisitesObject



58
59
60
61
62
63
64
65
# File 'lib/pfrpg_classes/heroclass/assassin.rb', line 58

def prerequisites
  [
    PfrpgUtility::Prerequisite::SkillPrereq.new('disguise', 2),
    PfrpgUtility::Prerequisite::SkillPrereq.new('stealth', 5),
    PfrpgUtility::Prerequisite::AlignmentPrereq.new(nil, 'any_evil'),
    PfrpgUtility::Prerequisite::HeroclassFeaturePrereq.new('Sneak Attack', nil),
  ]
end

#prestigeObject



7
8
9
# File 'lib/pfrpg_classes/heroclass/assassin.rb', line 7

def prestige
  true
end

#skillsObject



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# File 'lib/pfrpg_classes/heroclass/assassin.rb', line 23

def skills
  [PfrpgSkills::Skill::Acrobatics.new,
   PfrpgSkills::Skill::Bluff.new,
   PfrpgSkills::Skill::Climb.new,
   PfrpgSkills::Skill::Diplomacy.new,
   PfrpgSkills::Skill::DisableDevice.new,
   PfrpgSkills::Skill::Disguise.new,
   PfrpgSkills::Skill::EscapeArtist.new,
   PfrpgSkills::Skill::Intimidate.new,
   PfrpgSkills::Skill::Linguistics.new,
   PfrpgSkills::Skill::Perception.new,
   PfrpgSkills::Skill::SenseMotive.new,
   PfrpgSkills::Skill::SleightOfHand.new,
   PfrpgSkills::Skill::Stealth.new,
   PfrpgSkills::Skill::Swim.new,
   PfrpgSkills::Skill::UseMagicDevice.new,
  ]
end

#skills_per_levelObject



50
51
52
# File 'lib/pfrpg_classes/heroclass/assassin.rb', line 50

def skills_per_level
  4
end