-
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 #275 from doug1234/master
Made Turn Undead accessible to python and added extra rage feat
- Loading branch information
Showing
9 changed files
with
54 additions
and
23 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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
name: Extend Rage | ||
flags: 12582912 | ||
flags: 12582913 | ||
prereqs: | ||
description: Each of your rages lasts 5 rounds longer than its normal duration. | ||
description: Each of your rages lasts 5 rounds longer than its normal duration. | ||
prereq descr: Barbarian rage ability. |
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: Extra Rage | ||
flags: 12582913 | ||
prereqs: | ||
description: You rage two more times per day than you otherwise could. | ||
prereq descr: Barbarian rage ability. |
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,10 @@ | ||
from toee import * | ||
|
||
|
||
def CheckPrereq(attachee, classLevelled, abilityScoreRaised): | ||
|
||
#Barbarian Rage Check | ||
if not attachee.has_feat(feat_barbarian_rage): | ||
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 @@ | ||
#Extra Rage: Complete Warrior, p. 98 | ||
|
||
from templeplus.pymod import PythonModifier | ||
from toee import * | ||
import tpdp | ||
|
||
print "Registering Extra Rage" | ||
|
||
def ExtraRageNewDay(attachee, args, evt_obj): | ||
ExtraRageCount = attachee.has_feat("Extra Rage") | ||
|
||
#Extra Rage grands 2 additional uses or rage each time the feat is taken | ||
args.set_arg(0, args.get_arg(0) + 2 * ExtraRageCount) | ||
return 0 | ||
|
||
extendRageFeat = PythonModifier() | ||
extendRageFeat.ExtendExisting("Barbarian_Rage") | ||
extendRageFeat.AddHook(ET_OnNewDay, EK_NEWDAY_REST, ExtraRageNewDay, ()) |