-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #393 from doug1234/master
Add Swift Ambusher and Daring Outlaw feats also Atari Bug 81 and 90 fix
- Loading branch information
Showing
21 changed files
with
169 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: Daring Outlaw | ||
flags: 12582912 | ||
prereqs: | ||
description: Your rogue and swashbuckler levels stack for the purpose of determining your competence bonus on Reflex saves from the grace class feature and the swashbuckler's dodge bonus to AC. Your rogue and swashbuckler levels also stack for the purpose of determining your sneak attack bonus damage. | ||
prereq descr: Sneak attack +2d6, Grace +1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
name: Swift Ambusher | ||
flags: 12582912 | ||
prereqs: | ||
description: Your rogue and scout levels stack for the purpose of determining the extra damage and bonus to Armor Class granted when skirmishing. | ||
prereq descr: Sneak attack +1d6, Skirmish +1d6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from toee import * | ||
import char_editor | ||
|
||
def CheckPrereq(attachee, classLeveled, abilityScoreRaised): | ||
|
||
#Sneak Attack Bonus +2D6 | ||
if attachee.d20_query_with_data("Sneak Attack Dice", classLeveled) < 2: | ||
return 0 | ||
|
||
#Grace +1 requirement | ||
swashBucklerLevel = attachee.stat_level_get(stat_level_swashbuckler) | ||
if classLeveled == stat_level_swashbuckler: | ||
swashBucklerLevel = swashBucklerLevel + 1 | ||
if swashBucklerLevel < 2: | ||
return 0 | ||
|
||
return 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from toee import * | ||
import char_editor | ||
|
||
def CheckPrereq(attachee, classLeveled, abilityScoreRaised): | ||
|
||
#Sneak Attack Bonus +1D6 | ||
if attachee.d20_query_with_data("Sneak Attack Dice", classLeveled) < 1: | ||
if classLeveled != stat_level_rogue: | ||
return 0 | ||
|
||
#Skirmish +1D6 | ||
scoutLevel = attachee.stat_level_get(stat_level_scout) | ||
if classLeveled == stat_level_scout: | ||
scoutLevel = scoutLevel + 1 | ||
if scoutLevel < 1: | ||
return 0 | ||
|
||
return 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tpdatasrc/tpgamefiles/scr/tpModifiers/bracers_of_archery.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from templeplus.pymod import PythonModifier | ||
from toee import * | ||
import tpdp | ||
|
||
# Fix for Atari Bug 90 | ||
# Extend bracers of archery (greater - 6267 and lesser - 6268) to provide the appropriate proficiencies | ||
print "Bracers of Archery extender" | ||
|
||
def BracersOfArcheryProficientWithWeapon(attachee, args, evt_obj): | ||
# Makes the character proficient with all bows (except crossbows) | ||
weaponType = evt_obj.data1 | ||
if (weaponType == wt_longbow or weaponType == wt_shortbow or weaponType == wt_composite_shortbow or weaponType == wt_composite_longbow): | ||
evt_obj.return_val = 1 | ||
return 0 | ||
|
||
modExtender = PythonModifier() | ||
modExtender.ExtendExisting("Bracers of Archery") | ||
modExtender.AddHook(ET_OnD20PythonQuery, "Proficient with Weapon", BracersOfArcheryProficientWithWeapon, ()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
from templeplus.pymod import PythonModifier | ||
from toee import * | ||
import tpdp | ||
import math | ||
|
||
#Daring Outlaw: Complete Scoundrel, p. 76 | ||
|
||
print "Registering Daring Outlaw" | ||
|
||
def SneakAttackLevelBonus(attachee, args, evt_obj): | ||
swashLevel = attachee.stat_level_get(stat_level_swashbuckler) | ||
evt_obj.return_val += swashLevel | ||
return 0 | ||
|
||
def GraceLevelBonus(attachee, args, evt_obj): | ||
rogueLevel = attachee.stat_level_get(stat_level_rogue) | ||
evt_obj.return_val += rogueLevel | ||
return 0 | ||
|
||
def DodgeLevelBonus(attachee, args, evt_obj): | ||
rogueLevel = attachee.stat_level_get(stat_level_rogue) | ||
evt_obj.return_val += rogueLevel | ||
return 0 | ||
|
||
daringOutlaw = PythonModifier("Daring Outlaw", 2) # args are just-in-case placeholders | ||
daringOutlaw.MapToFeat("Daring Outlaw") | ||
daringOutlaw.AddHook(ET_OnD20PythonQuery, "Rogue Sneak Attack Level Bonus", SneakAttackLevelBonus, ()) | ||
daringOutlaw.AddHook(ET_OnD20PythonQuery, "Swashbuckler Grace Level Bonus", GraceLevelBonus, ()) | ||
daringOutlaw.AddHook(ET_OnD20PythonQuery, "Swashbuckler Dodge Level Bonus", DodgeLevelBonus, ()) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
from templeplus.pymod import PythonModifier | ||
from toee import * | ||
import tpdp | ||
import math | ||
|
||
#Swift Ambusher: Complete Scoundrel, p. 81 | ||
|
||
print "Registering Complete Scoundrel" | ||
|
||
def SkirmishBonusLevels(attachee, args, evt_obj): | ||
rogueLevel = attachee.stat_level_get(stat_level_rogue) | ||
evt_obj.return_val += rogueLevel | ||
return 0 | ||
|
||
|
||
daringOutlaw = PythonModifier("Swift Ambusher", 2) # args are just-in-case placeholders | ||
daringOutlaw.MapToFeat("Swift Ambusher") | ||
daringOutlaw.AddHook(ET_OnD20PythonQuery, "Skrimish Level Bonus", SkirmishBonusLevels, ()) | ||
|