Updated to PRC8

Updated to PRC8.  Full compile.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-02-20 22:52:59 -05:00
parent 5cc69fb9b9
commit 33b1e808c6
310 changed files with 12016 additions and 8979 deletions

View File

@@ -12,7 +12,7 @@ void ExplodeAtLocation(location lTarget, int nDamage, int nSaveDC = 18, float fR
ApplyEffectAtLocation( DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_HORRID_WILTING), lTarget);
object oObject = GetFirstObjectInShape(SHAPE_SPHERE, fRadius, lTarget);
do {
// int nDamageAfterSave = GetReflexAdjustedDamage(nDamage, oObject, nSaveDC);
// int nDamageAfterSave = PRCGetReflexAdjustedDamage(nDamage, oObject, nSaveDC);
ApplyEffectToObject( DURATION_TYPE_INSTANT, EffectDamage(nDamage, DAMAGE_TYPE_NEGATIVE), oObject);
} while ((oObject = GetNextObjectInShape(SHAPE_SPHERE, fRadius, lTarget)) != OBJECT_INVALID);
}

View File

@@ -74,7 +74,7 @@ void IcestormAtLocation(location lTarget, int nDamage, int nSaveDC = 30, float f
ApplyEffectAtLocation( DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_ICESTORM), lTarget);
object oObject = GetFirstObjectInShape(SHAPE_SPHERE, fRadius, lTarget);
do {
int nDamageAfterSave = GetReflexAdjustedDamage(nDamage, oObject, nSaveDC);
int nDamageAfterSave = PRCGetReflexAdjustedDamage(nDamage, oObject, nSaveDC);
ApplyEffectToObject( DURATION_TYPE_INSTANT, EffectDamage(nDamageAfterSave, DAMAGE_TYPE_COLD), oObject);
} while ((oObject = GetNextObjectInShape(SHAPE_SPHERE, fRadius, lTarget)) != OBJECT_INVALID);
}

View File

@@ -26,7 +26,7 @@ void main()
int nDuration = 1 + (GetHitDice(oNPC)/3);
int nCHAMod = GetAbilityModifier(ABILITY_CHARISMA, oNPC);
int nDC = 10 +nCHAMod+ (GetHitDice(oNPC)/2);
int nLevel = GetCasterLevel(OBJECT_SELF);
int nLevel = PRCGetCasterLevel(OBJECT_SELF);
int nMetaMagic = PRCGetMetaMagicFeat();
effect eVis = EffectVisualEffect(VFX_IMP_DOOM);

View File

@@ -42,7 +42,7 @@ void main()
{
nDamage = nDamage + d6(2);
}
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eCone;
effect eVis = EffectVisualEffect(VFX_IMP_ACID_S);

View File

@@ -42,7 +42,7 @@ void main()
{
nDamage = nDamage + d6(2);
}
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eCone;
effect eVis = EffectVisualEffect(VFX_IMP_FROST_S);

View File

@@ -27,7 +27,7 @@ void main()
int nRacial = MyPRCGetRacialType(oNPC);
int nDisease;
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
float fDelay;

View File

@@ -42,7 +42,7 @@ void main()
{
nDamage = nDamage + d6(2);
}
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eLightning = EffectBeam(VFX_BEAM_LIGHTNING, oNPC, BODY_NODE_HAND);
effect eCone;

View File

@@ -42,7 +42,7 @@ void main()
{
nDamage = nDamage + d6(2);
}
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eCone;
effect eVis = EffectVisualEffect(VFX_IMP_SONIC);

View File

@@ -92,7 +92,7 @@ void main()
nCount = 12;
}
PlayDragonBattleCry();
oTarget = GetFirstObjectInShape(SHAPE_SPELLCONE, 14.0, GetSpellTargetLocation(), TRUE);
oTarget = GetFirstObjectInShape(SHAPE_SPELLCONE, 14.0, PRCGetSpellTargetLocation(), TRUE);
//Get first target in spell area
while(GetIsObjectValid(oTarget))
{
@@ -112,7 +112,7 @@ void main()
}
}
//Get next target in spell area
oTarget = GetNextObjectInShape(SHAPE_SPELLCONE, 14.0, GetSpellTargetLocation(), TRUE);
oTarget = GetNextObjectInShape(SHAPE_SPELLCONE, 14.0, PRCGetSpellTargetLocation(), TRUE);
}
}

View File

@@ -37,7 +37,7 @@ void main()
int nCHAMod = GetAbilityModifier(ABILITY_CHARISMA, oNPC);
int nDC = 10 +nCHAMod+ (nHD/2);
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eGaze = EffectDeath();
effect eVis = EffectVisualEffect(VFX_IMP_DEATH);

View File

@@ -39,7 +39,7 @@ void main()
int nDuration = 1 + (nHD / 3);
if(nDuration == 0) { nDuration = 1; }
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eGaze = EffectCharmed();

View File

@@ -39,7 +39,7 @@ void main()
int nDuration = 1 + (nHD / 3);
if(nDuration == 0) { nDuration = 1; }
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eGaze = EffectConfused();
effect eVis = EffectVisualEffect(VFX_IMP_CONFUSION_S);

View File

@@ -39,7 +39,7 @@ void main()
int nDuration = 1 + (nHD / 3);
if(nDuration == 0) { nDuration = 1; }
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eGaze = EffectDazed();
effect eVis = EffectVisualEffect(VFX_IMP_DAZED_S);

View File

@@ -37,7 +37,7 @@ void main()
int nCHAMod = GetAbilityModifier(ABILITY_CHARISMA, oNPC);
int nDC = 10 +nCHAMod+ (nHD/2);
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eGaze = EffectDeath();
effect eVis = EffectVisualEffect(VFX_IMP_DEATH);

View File

@@ -39,7 +39,7 @@ void main()
int nDuration = 1 + (nHD / 3);
if(nDuration == 0) { nDuration = 1; }
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eGaze = EffectDominated();
effect eVis = EffectVisualEffect(VFX_IMP_DOMINATE_S);

View File

@@ -40,7 +40,7 @@ void main()
int nDuration = 1 + (nHD / 3);
if(nDuration == 0) { nDuration = 1; }
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eVis = EffectVisualEffect(VFX_IMP_DOOM);
effect eSaves = EffectSavingThrowDecrease(SAVING_THROW_ALL, 2);
@@ -53,7 +53,7 @@ void main()
eLink = EffectLinkEffects(eLink, eSkill);
eLink = EffectLinkEffects(eLink, eDur);
oTarget = GetFirstObjectInShape(SHAPE_SPELLCONE, 10.0, GetSpellTargetLocation());
oTarget = GetFirstObjectInShape(SHAPE_SPELLCONE, 10.0, PRCGetSpellTargetLocation());
while(GetIsObjectValid(oTarget))
{
if(!GetIsReactionTypeFriendly(oTarget) && oTarget != oNPC)
@@ -69,6 +69,6 @@ void main()
}
}
}
oTarget = GetNextObjectInShape(SHAPE_SPELLCONE, 10.0, GetSpellTargetLocation());
oTarget = GetNextObjectInShape(SHAPE_SPELLCONE, 10.0, PRCGetSpellTargetLocation());
}
}

View File

@@ -38,7 +38,7 @@ void main()
int nDC = 10 +nCHAMod+ (nHD/2);
int nDuration = 1 + (nHD / 3);
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eGaze = EffectDeath();
effect eVis = EffectVisualEffect(VFX_IMP_DEATH);

View File

@@ -40,7 +40,7 @@ void main()
if(nDuration == 0) { nDuration = 1; }
nDuration = GetScaledDuration(nDuration , oTarget);
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eGaze = EffectFrightened();
effect eVis = EffectVisualEffect(VFX_IMP_FEAR_S);

View File

@@ -38,7 +38,7 @@ void main()
int nDC = 10 +nCHAMod+ (nHD/2);
int nDuration = 1 + (nHD / 3);
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eGaze = EffectDeath();
effect eVis = EffectVisualEffect(VFX_IMP_DEATH);

View File

@@ -39,7 +39,7 @@ void main()
int nDuration = 1 + (nHD / 3);
if(nDuration == 0) { nDuration = 1; }
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eGaze = EffectDeath();
effect eVis = EffectVisualEffect(VFX_IMP_DEATH);

View File

@@ -38,7 +38,7 @@ void main()
int nDC = 10 +nCHAMod+ (nHD/2);
int nDuration = 1 + (nHD / 3);
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eGaze = EffectStunned();
effect eVis = EffectVisualEffect(VFX_IMP_STUN);

View File

@@ -10,13 +10,14 @@
//:: Created By: Preston Watamaniuk
//:: Created On: May 22, 2001
//:://////////////////////////////////////////////
#include "prc_inc_spells"
//#include "wm_include"
void main()
{
//if (WildMagicOverride()) { return; }
//Declare major variables
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
object oTarget;
effect eCone = EffectPoison(POISON_IRON_GOLEM);
//Get first target in spell area

View File

@@ -28,7 +28,7 @@ void main()
float fDelay;
location lTargetLocation = GetSpellTargetLocation();
location lTargetLocation = PRCGetSpellTargetLocation();
effect eCone;
effect eVis = EffectVisualEffect(VFX_IMP_FLAME_S);

View File

@@ -38,7 +38,7 @@ void main()
//Get first target in the spell cone
oTarget = GetFirstObjectInShape(SHAPE_CONE, 10.0, GetSpellTargetLocation(), TRUE);
oTarget = GetFirstObjectInShape(SHAPE_CONE, 10.0, PRCGetSpellTargetLocation(), TRUE);
while(GetIsObjectValid(oTarget))
{
//Make faction check
@@ -56,6 +56,6 @@ void main()
}
}
//Get next target in the spell cone
oTarget = GetNextObjectInShape(SHAPE_CONE, 10.0, GetSpellTargetLocation(), TRUE);
oTarget = GetNextObjectInShape(SHAPE_CONE, 10.0, PRCGetSpellTargetLocation(), TRUE);
}
}