Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // -------------------------------------------------------------------
- // Returns the highest level of Eldritch Blast available
- // AFW-OEI 02/21/2007: Removed hard damage cap.
- int GetEldritchBlastLevel(object oCaster)
- {
- int nBlstLvl = 0;
- if ( GetHasFeat(FEAT_ELDRITCH_BLAST_14, oCaster ) ) { nBlstLvl = 14; }
- else if ( GetHasFeat(FEAT_ELDRITCH_BLAST_13, oCaster ) ) { nBlstLvl = 13; }
- else if ( GetHasFeat(FEAT_ELDRITCH_BLAST_12, oCaster ) ) { nBlstLvl = 12; }
- else if ( GetHasFeat(FEAT_ELDRITCH_BLAST_11, oCaster ) ) { nBlstLvl = 11; }
- else if ( GetHasFeat(FEAT_ELDRITCH_BLAST_10, oCaster ) ) { nBlstLvl = 10; }
- else if ( GetHasFeat(FEAT_ELDRITCH_BLAST_9, oCaster ) ) { nBlstLvl = 9; }
- else if ( GetHasFeat(FEAT_ELDRITCH_BLAST_8, oCaster ) ) { nBlstLvl = 8; }
- else if ( GetHasFeat(FEAT_ELDRITCH_BLAST_7, oCaster ) ) { nBlstLvl = 7; }
- else if ( GetHasFeat(FEAT_ELDRITCH_BLAST_6, oCaster ) ) { nBlstLvl = 6; }
- else if ( GetHasFeat(FEAT_ELDRITCH_BLAST_5, oCaster ) ) { nBlstLvl = 5; }
- else if ( GetHasFeat(FEAT_ELDRITCH_BLAST_4, oCaster ) ) { nBlstLvl = 4; }
- else if ( GetHasFeat(FEAT_ELDRITCH_BLAST_3, oCaster ) ) { nBlstLvl = 3; }
- else if ( GetHasFeat(FEAT_ELDRITCH_BLAST_2, oCaster ) ) { nBlstLvl = 2; }
- else if ( GetHasFeat(FEAT_ELDRITCH_BLAST_1, oCaster ) ) { nBlstLvl = 1; }
- // AFW-OEI 02/21/2007: Epic Eldritch Blasts
- if (GetHasFeat(FEAT_EPIC_ELDRITCH_BLAST_10, oCaster)) { nBlstLvl += 10; }
- else if (GetHasFeat(FEAT_EPIC_ELDRITCH_BLAST_9, oCaster) ) { nBlstLvl += 9; }
- else if (GetHasFeat(FEAT_EPIC_ELDRITCH_BLAST_8, oCaster) ) { nBlstLvl += 8; }
- else if (GetHasFeat(FEAT_EPIC_ELDRITCH_BLAST_7, oCaster) ) { nBlstLvl += 7; }
- else if (GetHasFeat(FEAT_EPIC_ELDRITCH_BLAST_6, oCaster) ) { nBlstLvl += 6; }
- else if (GetHasFeat(FEAT_EPIC_ELDRITCH_BLAST_5, oCaster) ) { nBlstLvl += 5; }
- else if (GetHasFeat(FEAT_EPIC_ELDRITCH_BLAST_4, oCaster) ) { nBlstLvl += 4; }
- else if (GetHasFeat(FEAT_EPIC_ELDRITCH_BLAST_3, oCaster) ) { nBlstLvl += 3; }
- else if (GetHasFeat(FEAT_EPIC_ELDRITCH_BLAST_2, oCaster) ) { nBlstLvl += 2; }
- else if (GetHasFeat(FEAT_EPIC_ELDRITCH_BLAST_1, oCaster) ) { nBlstLvl += 1; }
- // NOTE: Need to Add in Prestige "+1 Spellcasting" Bonuses here...
- return nBlstLvl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement