Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. int iMaxLevel = iSpecialistRanks * 6;
  2. if (iSpellLevel <= iMaxLevel)
  3. {
  4. int iSorc = SHS_GetLevelByClass(CLASS_TYPE_SORCERER);
  5. int iWiz = SHS_GetLevelByClass(CLASS_TYPE_WIZARD);
  6. int iBard = SHS_GetLevelByClass(CLASS_TYPE_BARD);
  7. if (iSorc > iLevel | iBard > iLevel)
  8. {
  9. iLevel = iSorc;
  10. iSpellDC = 10 + iSpellLevel + iSpellFocus + GetAbilityModifier(ABILITY_CHARISMA, oCaster) + (iSpecialistRanks - 1);
  11. iVariance = (iSpecialistRanks - 1) * 5;
  12. }
  13. if (iWiz > iLevel)
  14. {
  15. iLevel = iWiz;
  16. iSpellDC = 10 + iSpellLevel + iSpellFocus + GetAbilityModifier(ABILITY_INTELLIGENCE, oCaster) + (iSpecialistRanks - 1);
  17. iVariance = (iSpecialistRanks - 1) * 5;
  18. }
  19. if (iBard > iLevel)
  20. {
  21. iLevel = iBard;
  22. iSpellDC = 10 + iSpellLevel + iSpellFocus + GetAbilityModifier(ABILITY_CHARISMA, oCaster) + (iSpecialistRanks - 1);
  23. iVariance = (iSpecialistRanks - 1) * 5;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement