Piercing Cold now inflicts untyped damage

Piercing Cold now inflicts untyped damage.
Cleaned up Midnight Augmentation.
Dread Necromancer is an Arcane class.
Expanded  Iron Mind for epic progression.
Expanded  War Mind for epic progression.
Fixed Gloura / Bard / Sublime Chord issues.
Restored Nezumi race.
Reverted Bard Armored spellcasting (change originally made due to incorrect SRD).
Fixed Aura of Despair to only affect hostiles.
Fixed damage cap on Disintegrate.
Fixed bug where you could still wear armor under the effects of Luminous Armor.
Fixed PsyWar bug with NUI Spellcast menu (@rakiov).
This commit is contained in:
Jaysyn904
2025-06-01 10:30:29 -04:00
parent 051083061b
commit 188047149c
28 changed files with 2226 additions and 826 deletions

View File

@@ -5,6 +5,22 @@ void main()
object oPC = GetAreaOfEffectCreator();
object oTarget = GetEnteringObject();
// Apply the Aura of Despair penalties to hostiles only.
if (!GetIsReactionTypeFriendly(oTarget, oPC))
{
int nPen = 2;
if (GetHasFeat(FEAT_IMPROVED_AURA_OF_DESPAIR, oPC)) nPen += 2;
effect eLink = EffectSavingThrowDecrease(SAVING_THROW_ALL, nPen);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, 6.0);
}
}
/* void main()
{
object oPC = GetAreaOfEffectCreator();
object oTarget = GetEnteringObject();
// Apply the Aura of Despair penalties.
// Doesn't affect allies
if(!GetIsFriend(oTarget, oPC))
@@ -14,4 +30,4 @@ void main()
effect eLink = EffectSavingThrowDecrease(SAVING_THROW_ALL, nPen);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, 6.0);
}
}
} */

View File

@@ -7,6 +7,26 @@ void main()
if (GetHasFeat(FEAT_IMPROVED_AURA_OF_DESPAIR, oPC)) nPen += 2;
effect eLink = EffectSavingThrowDecrease(SAVING_THROW_ALL, nPen);
object oTarget = GetFirstInPersistentObject(OBJECT_SELF);
while(GetIsObjectValid(oTarget))
{
// Apply the Aura of Despair penalties to hostiles only.
if (!GetIsReactionTypeFriendly(oTarget, oPC))
{
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oTarget, 6.0);
}
oTarget = GetNextInPersistentObject(OBJECT_SELF);
}
}
/* void main()
{
object oPC = GetAreaOfEffectCreator();
int nPen = 2;
if (GetHasFeat(FEAT_IMPROVED_AURA_OF_DESPAIR, oPC)) nPen += 2;
effect eLink = EffectSavingThrowDecrease(SAVING_THROW_ALL, nPen);
object oTarget = GetFirstInPersistentObject(OBJECT_SELF);
while(GetIsObjectValid(oTarget))
{
@@ -19,4 +39,4 @@ void main()
//Get next target.
oTarget = GetNextInPersistentObject(OBJECT_SELF);
}
}
} */

View File

@@ -240,7 +240,7 @@ json CreateSpellbookCircleButtons(int nClass)
int i;
// Get the current selected circle and the class caster level.
int currentCircle = GetLocalInt(OBJECT_SELF, PRC_SPELLBOOK_SELECTED_CIRCLE_VAR);
int casterLevel = GetPrCAdjustedCasterLevel(nClass, OBJECT_SELF);
int casterLevel = GetCasterLevelByClass(nClass, OBJECT_SELF);
// Get what the lowest level of a circle is for the class (some start at 1,
// some start higher, some start at cantrips)