-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRaces.py
More file actions
81 lines (80 loc) · 4.04 KB
/
Races.py
File metadata and controls
81 lines (80 loc) · 4.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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
from ETypes import Race
from ETypes import Size
def applyRaceHuman(character):
character.race = Race.HUMAN
character.size = Size.MEDIUM
character.firstLevelBonusFeats = 1
character.bonusSkillPoints = 1
character.speed = 30
def applyRaceDwarf(character):
character.race = Race.DWARF
character.size = Size.MEDIUM
character.conRacialMod = 2
character.chaRacialMod = -2
character.speed = 20
character.darkvision = 60
character.languages.append("Dwarven")
#stonecunning
#weapon familiarity
#stability: when standing on the ground a dwarf gains a +4 bonus on ability checks made to resist being bull rushed or tripped
#+2 racial bonus on saving throws against poison
#+2 racial bonus on saving throws against spells and spell like effects
#+1 racial bonus on attack rolls against orcs and goblinoids
#+4 dodge bonus to Armor Class against monsters of the giant type. Any time a creature loses its Dexterity bonus (if any) to Armor Class, such as when it's caught flat footed, it loses its dodge bonus, too.
#+2 racial bonus on Appraise checks that are related to stone or metal.
#+2 racial bonus on Craft checks that are related to stone or metal.
def applyRaceElf(character):
character.race = Race.ELF
character.size = Size.MEDIUM
character.dexRacialMod = 2
character.conRacialMod = -2
character.speed = 30
character.lowLightVision = True
#immunity to magic sleep effects, and a +2 racial saving throw bonus against enchantment spells or effects
#weapon proficiency: Elves receive the Martial Weapon Proficiency feats for the longsword, rapier, longbow (including composite longbow), and shortbow (including composite shortbow) as bonus feats
#+2 racial bonus on Listen, Search, and Spot checks. An elf who merely passes within 5 feet of a secret or concealed door is entitled to a Search check to notice it as if she were actively looking for it.
character.languages.append("Elven")
def applyRaceGnome(character):
character.race = Race.GNOME
character.size = Size.SMALL
character.speed = 20
#low light vision
#weapon familiarity
#+2 racial bonus on saving throws against illusions
#+1 DC for saving throws against illusion spells cast by gnomes. This adjustment stacks with those from similar effects.
#+4 dodge bonus to AC against monsters of the giant type.
#+2 racial bonus on listen checks
#+2 racial bonus on Craft (alchemy) checks.
character.languages.append("Gnome")
#spell like abilities: 1/day-speak with animals (burrowing mammal only, duration 1 minute). A gnome with a Charisma score of at least 10 also has the following spell like abilities: 1/day-dancing lights, ghost sound, prestidigitation. Caster level 1st; save DC 10+gnome's Cha modifier+spell level
def applyRaceHalfElf(character):
character.race = Race.HALFELF
character.size = Size.MEDIUM
character.speed = 30
#immunity to magic sleep effects, and a +2 racial saving throw bonus against enchantment spells or effects
#low light vision
#+1 racial bonus on listen, search, and spot checks
#Elven blood: For all effects related to race, a half-elf is considered an elf
character.languages.append("Elven")
def applyRaceHalfOrc(character):
character.race = Race.HALFORC
character.size = Size.MEDIUM
character.speed = 30
character.strRacialMod = 2
character.intRacialMod = -2
character.chaRacialMod = -2
# a half orc's starting intelligence score is always at least 3. If this adjustment would lower the character's score to 1 or 2, his score is nevertheless 3.
character.darkvision = 60
#Orc blood: For all effects related to race, a half-orc is considered an orc
character.languages.append("Orc")
def applyRaceHalfling(character):
character.race = Race.HALFLING
character.size = Size.SMALL
character.speed = 20
character.dexRacialMod = 2
character.strRacialMod = -2
#+2 racial bonus on climb, jump, listen, and move silently checks
#+1 racial bonus on all saving throws
#+2 morale bonus on saving throws against fear: This bonus stacks with the halfling's +1 bonus on saving throws in general
#+1 racial bonus on attack rolls with thrown weapons and slings
character.languages.append("Halfling")