mirror of
http://prc.nwn.ee:3000/Jaysyn/PRC8.git
synced 2025-12-16 16:07:14 -05:00
Expanded Eldritch Disciple for epic progression.
Expanded Eldritch Disciple for epic progression. Tweaked Wild Mage bonus feat list. Started updating prc_getbest_inc
This commit is contained in:
@@ -746,7 +746,15 @@ const int FEAT_ABFOC_STEAL_SUMMONING = 25211;
|
||||
const int FEAT_ABFOC_ELDRITCH_BLAST = 25212;
|
||||
const int FEAT_ABFOC_WORD_OF_CHANGING = 25213;
|
||||
|
||||
|
||||
//::: Eldritch Disciple Divine Gifts
|
||||
const int FEAT_ED_CORRUPTING_BLAST = 23521;
|
||||
const int FEAT_ED_DAMAGE_REDUCTION = 23522;
|
||||
const int FEAT_ED_FEARFUL_GLARE = 23523;
|
||||
const int FEAT_ED_FIENDISH_RESISTANCE = 23524;
|
||||
const int FEAT_ED_HEALING_BLAST = 23525;
|
||||
const int FEAT_ED_PROTECTIVE_AURA = 23526;
|
||||
const int FEAT_ED_STRENGTH_OF_WILL = 23527;
|
||||
const int FEAT_ED_WILD_FRENZY = 23528;
|
||||
|
||||
//Passive Feats
|
||||
const int FEAT_ETERNAL_FREEDOM = 4298;
|
||||
|
||||
@@ -15,7 +15,35 @@ int GetBestAvailableSpell(object oTarget);
|
||||
|
||||
#include "prc_inc_core"
|
||||
|
||||
int GetBestL0Spell(object oTarget, int nSpell)
|
||||
int GetBestL0Spell(object oTarget, int nFallbackSpell)
|
||||
{
|
||||
int nRow = 0;
|
||||
string s2DA = "spells";
|
||||
string sInnate, sStrRef;
|
||||
int nSpellID;
|
||||
|
||||
while (TRUE)
|
||||
{
|
||||
sInnate = Get2DACache(s2DA, "Innate", nRow);
|
||||
if (sInnate == "") break; // End of 2DA
|
||||
|
||||
if (StringToInt(sInnate) == 0)
|
||||
{
|
||||
nSpellID = nRow;
|
||||
|
||||
if (PRCGetHasSpell(nSpellID, oTarget))
|
||||
{
|
||||
return nSpellID;
|
||||
}
|
||||
}
|
||||
|
||||
nRow++;
|
||||
}
|
||||
|
||||
return nFallbackSpell;
|
||||
}
|
||||
|
||||
/* int GetBestL0Spell(object oTarget, int nSpell)
|
||||
{
|
||||
if(PRCGetHasSpell(SPELL_ACID_SPLASH, oTarget)) return SPELL_ACID_SPLASH;
|
||||
if(PRCGetHasSpell(SPELL_RAY_OF_FROST, oTarget)) return SPELL_RAY_OF_FROST;
|
||||
@@ -28,7 +56,7 @@ int GetBestL0Spell(object oTarget, int nSpell)
|
||||
if(PRCGetHasSpell(SPELL_CURE_MINOR_WOUNDS, oTarget)) return SPELL_CURE_MINOR_WOUNDS;
|
||||
if(PRCGetHasSpell(SPELL_INFLICT_MINOR_WOUNDS, oTarget)) return SPELL_INFLICT_MINOR_WOUNDS;
|
||||
return nSpell;
|
||||
}
|
||||
} */
|
||||
|
||||
int GetBestL1Spell(object oTarget, int nSpell)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user