Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dragon Discipile WIP #619

Draft
wants to merge 44 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
54ec304
Dragon Disciple WIP
Sagenlicht Sep 16, 2021
0312673
Updated Dragon Disciple
Sagenlicht Sep 17, 2021
b9d12de
Update dragon_disciple.py
Sagenlicht Sep 17, 2021
6e6b68f
Merge branch 'master' into DragonDisciple
Sagenlicht Sep 20, 2021
783606e
Added Ability Boost
Sagenlicht Sep 20, 2021
0cb6e91
Fixed Heritage bug
Sagenlicht Sep 20, 2021
809df43
Fixed Cone Breath Weapon
Sagenlicht Sep 20, 2021
1ad5cfa
Further progress for the DD
Sagenlicht Sep 21, 2021
6e4d1e0
Finished help file for DD
Sagenlicht Sep 22, 2021
7fcad2c
DD: Dropped Blindsense, fixed fire smoke
Sagenlicht Sep 23, 2021
d02b5fb
Added Flying Toggle (Nonfunctional yet)
Sagenlicht Sep 30, 2021
e641ab5
Moved Flying to seperate condtion
Sagenlicht Oct 1, 2021
2ebb5a7
added Darley Wings Mesh as Wings for the DD
Sagenlicht Oct 14, 2021
f77c9dc
Merge branch 'master' into DragonDisciple
Sagenlicht Oct 26, 2021
d8ae0ec
Merge branch 'master' into DragonDisciple
Nov 21, 2021
7ec38ee
String fixes: DD requirements fit inside scroll box; feat descrition …
Nov 22, 2021
b085be2
Added PyObjHndl method anim_goal_throw_spell_w_cast_anim to properly …
Nov 22, 2021
9696b90
DD fixes Breath weapon
Nov 22, 2021
d1daf13
Merge branch 'DragonDisciple' of https://github.com/GrognardsFromHell…
Sagenlicht Nov 22, 2021
1aabeb1
Update to DD Draconic Heritage Handling
Sagenlicht Nov 23, 2021
2d2d8cb
First Draft of Bonus Spells Feature
Sagenlicht Nov 24, 2021
fbbfe61
Merge branch 'master' into DragonDisciple
Sagenlicht Nov 24, 2021
4099c50
Merge branch 'master' into DragonDisciple
Nov 24, 2021
67e6a9e
Merge branch 'DragonDisciple' of https://github.com/GrognardsFromHell…
Nov 24, 2021
a43fa6a
Forgot to merge the draconic_heritage feat to the DD
Sagenlicht Nov 25, 2021
8f9182e
Added new error codes
Sagenlicht Dec 6, 2021
1586499
Condition hashtable init replacement; added log message for when it o…
Dec 22, 2021
96c76ef
Merge branch 'DragonDisciple' of https://github.com/GrognardsFromHell…
Dec 22, 2021
b43a73d
reflex throw will now use SpellSaveThrow when used for spell actions,…
Dec 22, 2021
e21d766
Added get_caster_class method to python EventObjSpellsPerDay
Dec 22, 2021
05c1d8e
Renamed chargeAfterPicker for more accurate meaning
Dec 23, 2021
5fe70c7
Minor magic number cleanup from natural attacks review
Dec 24, 2021
370c30b
Changed Bonus Spells per Day
Sagenlicht Jan 18, 2022
422d1c4
Update dragon_disciple.py
Sagenlicht Jan 18, 2022
69a037a
Merge pull request #701 from GrognardsFromHell/bugfixes
DudeMcDude Sep 6, 2022
e590df5
Fixes animation script particle errors on map load
Sep 7, 2022
0a2315f
Merge pull request #702 from GrognardsFromHell/bugfixes
DudeMcDude Sep 7, 2022
fdb94bf
Minor wiki help errors
Sep 7, 2022
bb602d2
Merge branch 'bugfixes' into develop
Sep 9, 2022
b750dd0
Scribe scroll - automated infrastructure instead of the old manual pr…
Sep 9, 2022
9b6d579
Fixes crash issue when AI party member casts Dominate Monster (aka 'S…
Sep 10, 2022
9eefcb0
Fixes #682
Sep 10, 2022
d1b2858
Fixed error in targeting.py will_kos
Sep 10, 2022
c4ef9bd
Merge from develop
Sep 11, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,10 @@ def alreadyHasDraconicHeritage(obj):

def IsSelectingFeatsOnLevelup(obj):
newLvl = char_editor.stat_level_get(classEnum)
if not newLvl == 1:
return 0
if alreadyHasDraconicHeritage(obj):
if newLvl == 1:
if alreadyHasDraconicHeritage(obj):
return 0
elif newLvl not in [2, 4, 5, 6, 8, 9]:
return 0
return 1

Expand All @@ -128,6 +129,8 @@ def LevelupGetBonusFeats(obj):
bonus_feats = []
if newLvl == 1:
bonus_feats.append("Draconic Heritage")
elif newLvl in [2, 4, 5, 6, 8, 9]:
bonus_feats.append("Bonus Spell")

bonFeatInfo = []
for ft in bonus_feats:
Expand Down
6 changes: 6 additions & 0 deletions tpdatasrc/tpgamefiles/rules/feats/bonus spell bard 0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Bonus Spell (Bard 0)
flags: 9
prereqs: 8 1
description: Grants a Bard bonus Spell per Day for Spell Level 0
prereq descr:
parent: Bonus Spell
6 changes: 6 additions & 0 deletions tpdatasrc/tpgamefiles/rules/feats/bonus spell bard 1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Bonus Spell (Bard 1)
flags: 9
prereqs: 8 2
description: Grants a Bard bonus Spell per Day for Spell Level 1
prereq descr:
parent: Bonus Spell
6 changes: 6 additions & 0 deletions tpdatasrc/tpgamefiles/rules/feats/bonus spell bard 2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Bonus Spell (Bard 2)
flags: 9
prereqs: 8 4
description: Grants a Bard bonus Spell per Day for Spell Level 2
prereq descr:
parent: Bonus Spell
6 changes: 6 additions & 0 deletions tpdatasrc/tpgamefiles/rules/feats/bonus spell bard 3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Bonus Spell (Bard 3)
flags: 9
prereqs: 8 7
description: Grants a Bard bonus Spell per Day for Spell Level 3
prereq descr:
parent: Bonus Spell
6 changes: 6 additions & 0 deletions tpdatasrc/tpgamefiles/rules/feats/bonus spell sorcerer 0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Bonus Spell (Sorcerer 0)
flags: 9
prereqs: 16 1
description: Grants a Sorcerer bonus Spell per Day for Spell Level 0
prereq descr:
parent: Bonus Spell
6 changes: 6 additions & 0 deletions tpdatasrc/tpgamefiles/rules/feats/bonus spell sorcerer 1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Bonus Spell (Sorcerer 1)
flags: 9
prereqs: 16 1
description: Grants a Sorcerer bonus Spell per Day for Spell Level 1
prereq descr:
parent: Bonus Spell
6 changes: 6 additions & 0 deletions tpdatasrc/tpgamefiles/rules/feats/bonus spell sorcerer 2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Bonus Spell (Sorcerer 2)
flags: 9
prereqs: 16 4
description: Grants a Sorcerer bonus Spell per Day for Spell Level 2
prereq descr:
parent: Bonus Spell
6 changes: 6 additions & 0 deletions tpdatasrc/tpgamefiles/rules/feats/bonus spell sorcerer 3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Bonus Spell (Sorcerer 3)
flags: 9
prereqs: 16 6
description: Grants a Sorcerer bonus Spell per Day for Spell Level 3
prereq descr:
parent: Bonus Spell
6 changes: 6 additions & 0 deletions tpdatasrc/tpgamefiles/rules/feats/bonus spell wizard 0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Bonus Spell (Wizard 0)
flags: 9
prereqs: 17 1
description: Grants a Wizard bonus Spell per Day for Spell Level 0
prereq descr:
parent: Bonus Spell
6 changes: 6 additions & 0 deletions tpdatasrc/tpgamefiles/rules/feats/bonus spell wizard 1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Bonus Spell (Wizard 1)
flags: 9
prereqs: 17 1
description: Grants a Wizard bonus Spell per Day for Spell Level 1
prereq descr:
parent: Bonus Spell
6 changes: 6 additions & 0 deletions tpdatasrc/tpgamefiles/rules/feats/bonus spell wizard 2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Bonus Spell (Wizard 2)
flags: 9
prereqs: 17 3
description: Grants a Wizard bonus Spell per Day for Spell Level 2
prereq descr:
parent: Bonus Spell
6 changes: 6 additions & 0 deletions tpdatasrc/tpgamefiles/rules/feats/bonus spell wizard 3.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Bonus Spell (Wizard 3)
flags: 9
prereqs: 17 5
description: Grants a Wizard bonus Spell per Day for Spell Level 3
prereq descr:
parent: Bonus Spell
5 changes: 5 additions & 0 deletions tpdatasrc/tpgamefiles/rules/feats/bonus spell.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
name: Bonus Spell
flags: 9
prereqs:
description: Grants a Bonus Spell per Day
prereq descr:
24 changes: 24 additions & 0 deletions tpdatasrc/tpgamefiles/rules/partsys/breath_weapons_partsys.tab
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
sp-Breath Weapon Cone Medium Acid smoke emit 10 20 600 Object YPR Sprite Same as Emitter Polar Cartesian fire-sprite 120 Blend 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0?30 0 -30?30 30?360 5?40 0 0 0?360 0 0 0,16,0 0 255 144 100
sp-Breath Weapon Cone Medium Acid Fire Strike 30 75 Object YPR Disc Same as Emitter Polar flare 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 64,0 0 0 0 0 0 0 0 0 0 -30?30 0 0,360 20?60 0 0 0?720 0 0 0,255,0 0 255 144 20
sp-Breath Weapon Cone Medium Acid Fire Strike 2 30 300 Object YPR Disc Same as Emitter Polar flare 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -30?30 0 0,360 0,10 0 0 0?720 0 0 0,255,0 0 255 144 30
sp-Breath Weapon Cone Medium Cold smoke emit 10 20 600 Object YPR Sprite Same as Emitter Polar Cartesian fire-sprite 120 Blend 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0?30 0 -30?30 30?330 5?40 0 0 0?360 0 0 0,16,0 255 255 255 100
sp-Breath Weapon Cone Medium Cold Fire Strike 30 100 Object YPR Sprite Same as Emitter Polar flare-big 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 64,0 0 0 0 0 0 0 0 0 0 -30?30 0 0,360 20?60 0 0 0?720 0 0 0 0 128 255 20
sp-Breath Weapon Cone Medium Cold fire strike 3 sparklies 30 50 Object YPR Sprite Same as Emitter Polar flare-1 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 255,0 0 0 0 0 0 0 0 0 0 -30?30 0 0,360 1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3, 0 0 0,360 0 0 0 255 255 255 100
sp-Breath Weapon Cone Medium Electricity Fire Strike 30 100 Object YPR Sprite Same as Emitter Polar flare-big 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 64,0 0 0 0 0 0 0 0 0 0 -30?30 0 0,360 20?60 0 0 0?720 0 0 0 0 128 255 20
sp-Breath Weapon Cone Medium Electricity fire strike 3 sparklies 30 50 Object YPR Sprite Same as Emitter Polar flare-1 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 255,0 0 0 0 0 0 0 0 0 0 -30?30 0 0,360 1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3, 0 0 0,360 0 0 255,0 255,64,64,64,64 255,128,128,128,128 255,255 100
sp-Breath Weapon Cone Medium Electricity water droplets 15 30 30 Object YPR bip01 head Sprite Same as Emitter Polar Cartesian flare-1 5 Add 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -30?30 0 0,360 3?15 0 0 0?360 0 0 255,0 255,64,64,64,64 255,128,128,128,128 255,255 5
sp-Breath Weapon Cone Medium Fire smoke emit 10 20 600 Object YPR Sprite Same as Emitter Polar Cartesian fire-sprite 120 Blend 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0?30 0 -30?30 30?330 5?40 0 0 0?360 0 0 0,32,0 0 0 0 100
sp-Breath Weapon Cone Medium Fire Fire Strike 30 75 Object YPR Disc Same as Emitter Polar flare 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 64,0 0 0 0 0 0 0 0 0 0 -30?30 0 0,360 20?60 0 0 0?720 0 0 0,255,255,0 255(6),255(10) 255(6),130(10) 0 20
sp-Breath Weapon Cone Medium Fire Fire Strike 2 30 300 Object YPR Disc Same as Emitter Polar flare 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -30?30 0 0,360 0,10 0 0 0?720 0 0 0,255,255,0 255(6),255(10) 255(6),130(10) 0 30
sp-Breath Weapon Line Medium Acid smoke emit 10 20 600 Object YPR Sprite Same as Emitter Polar Cartesian fire-sprite 120 Blend 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0?30 0 -3?3 30?600 5?40 0 0 0?360 0 0 0,16,0 0 255 144 100
sp-Breath Weapon Line Medium Acid Fire Strike 30 75 Object YPR Disc Same as Emitter Polar flare 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 64,0 0 0 0 0 0 0 0 0 0 -3?3 0 0,600 20?60 0 0 0?720 0 0 0,255,0 0 255 144 20
sp-Breath Weapon Line Medium Acid Fire Strike 2 30 300 Object YPR Disc Same as Emitter Polar flare 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3?3 0 0,600 0,10 0 0 0?720 0 0 0,255,0 0 255 144 30
sp-Breath Weapon Line Medium Cold smoke emit 10 20 600 Object YPR Sprite Same as Emitter Polar Cartesian fire-sprite 120 Blend 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0?30 0 -3?3 30?330 5?40 0 0 0?360 0 0 0,16,0 255 255 255 100
sp-Breath Weapon Line Medium Cold Fire Strike 30 100 Object YPR Sprite Same as Emitter Polar flare-big 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 64,0 0 0 0 0 0 0 0 0 0 -3?3 0 0,360 20?60 0 0 0?720 0 0 0 0 128 255 20
sp-Breath Weapon Line Medium Cold fire strike 3 sparklies 30 50 Object YPR Sprite Same as Emitter Polar flare-1 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 255,0 0 0 0 0 0 0 0 0 0 -3?3 0 0,360 1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3, 0 0 0,360 0 0 0 255 255 255 100
sp-Breath Weapon Line Medium Electricity Fire Strike 30 100 Object YPR Sprite Same as Emitter Polar flare-big 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 64,0 0 0 0 0 0 0 0 0 0 -3?3 0 0,360 20?60 0 0 0?720 0 0 0 0 128 255 20
sp-Breath Weapon Line Medium Electricity fire strike 3 sparklies 30 50 Object YPR Sprite Same as Emitter Polar flare-1 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 255,0 0 0 0 0 0 0 0 0 0 -3?3 0 0,360 1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3,1,30,20,25,6,26,15,2,28,3, 0 0 0,360 0 0 255,0 255,64,64,64,64 255,128,128,128,128 255,255 100
sp-Breath Weapon Line Medium Electricity water droplets 15 30 30 Object YPR bip01 head Sprite Same as Emitter Polar Cartesian flare-1 5 Add 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3?3 0 0,360 3?15 0 0 0?360 0 0 255,0 255,64,64,64,64 255,128,128,128,128 255,255 5
sp-Breath Weapon Line Medium Fire smoke emit 10 20 400 Object YPR Sprite Same as Emitter Polar Cartesian fire-sprite 120 Blend 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0?30 0 -3?3 30?330 5?40 0 0 0?360 0 0 0,32,0 0 0 0 100
sp-Breath Weapon Line Medium Fire Fire Strike 30 50 Object YPR Disc Same as Emitter Polar flare 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 64,0 0 0 0 0 0 0 0 0 0 -3?3 0 0,360 20?60 0 0 0?720 0 0 0,255,255,0 255(6),255(10) 255(6),130(10) 0 20
sp-Breath Weapon Line Medium Fire Fire Strike 2 30 300 Object YPR Disc Same as Emitter Polar flare 30 Add 0 0 0 0 0 0 0 0 40 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3?3 0 0,360 0,10 0 0 0?720 0 0 0,255,255,0 255(6),255(10) 255(6),130(10) 0 30
24 changes: 0 additions & 24 deletions tpdatasrc/tpgamefiles/rules/partsys/dragon_disciple_partsys.tab

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@
{3231}{Dragon Disciple Cone Breath}
{3232}{Dragon Disciple Line Breath}

{8231}{Dragon Disciple Cone Breath}
{8232}{Dragon Disciple Line Breath}

{23231}{DRAGON_DISCIPLE_CONE_BREATH}
{23232}{DRAGON_DISCIPLE_LINE_BREATH}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from toee import *
from heritage_feat_utils import getDraconicHeritageElement

def OnBeginSpellCast(spell):
print "Dragon Disciple Cone Breath OnBeginSpellCast"
Expand All @@ -10,10 +11,7 @@ def OnSpellEffect(spell):

targetsToRemove = []
spell.duration = 0
spell.dc = 10 + spell.caster_level + ((spell.caster.stat_level_get(stat_constitution)-10)/2)
print "Debug Dragon Disciple Cone Breath"
print "Dragon Disciple Breath Weapon DC: {}".format(spell.dc)
print "Dragon Disciple Caster Level: {}".format(spell.caster_level)
spell.dc = 10 + spell.caster_level + ((spell.caster.stat_level_get(stat_constitution)- 10 ) / 2)

spellDamageDice = dice_new('1d8')
if spell.caster_level < 7:
Expand All @@ -22,27 +20,26 @@ def OnSpellEffect(spell):
spellDamageDice.number = 4
else:
spellDamageDice.number = 6
print "spellDamageDice: {}".format(spellDamageDice)
saveType = D20_Save_Reduction_Half
damageType = spell.caster.d20_query("PQ_Dragon_Disciple_Element_Type")
print "Dragon Disciple Breath Weapon Element: {}".format(damageType)
#If different Breath Weapon Types get added (e.g. Sonic) add them here

heritage = spell.caster.d20_query("PQ_Selected_Draconic_Heritage")
damageType = getDraconicHeritageElement(heritage)
if damageType == D20DT_ACID:
saveDescriptor = D20STD_F_SPELL_DESCRIPTOR_ACID
particleEffect = "sp-Dragon Disciple Cone Breath Acid"
elementString = "Acid"
elif damageType == D20DT_COLD:
saveDescriptor = D20STD_F_SPELL_DESCRIPTOR_COLD
particleEffect = "sp-Dragon Disciple Cone Breath Cold"
elementString = "Cold"
elif damageType == D20DT_ELECTRICITY:
saveDescriptor = D20STD_F_SPELL_DESCRIPTOR_ELECTRICITY
particleEffect = "sp-Dragon Disciple Cone Breath Electricity"
elementString = "Electricity"
elif damageType == D20DT_FIRE:
saveDescriptor = D20STD_F_SPELL_DESCRIPTOR_FIRE
particleEffect = "sp-Dragon Disciple Cone Breath Fire"
elementString = "Fire"
else: #Fallback
saveDescriptor = D20STD_F_NONE
particleEffect = "sp-Dragon Disciple Cone Breath Fire"
print "Dragon Disciple Breath Weapon Descriptor: {}".format(saveDescriptor)
elementString = "Fire"
particleEffect = "sp-Breath Weapon Cone Medium {}".format(elementString)

game.particles(particleEffect, spell.caster)

Expand Down
Loading