Finished PRC8 integration

Finished PRC8 integration.  Moved creature abilities to top hak.  Setup tooling.  Created release archive
This commit is contained in:
Jaysyn904
2024-03-12 21:27:23 -04:00
parent 7b9e44ebbb
commit e5b3f6ad61
958 changed files with 1491 additions and 630 deletions

View File

@@ -14,11 +14,13 @@
#include "NW_I0_SPELLS"
#include "jw_exp_giver"
#include "prc_inc_spells"
void main()
{
//Declare major variables
object oCaster = OBJECT_SELF;
int nMetaMagic = GetMetaMagicFeat();
int nMetaMagic = PRCGetMetaMagicFeat();
int nDamage;
float fDelay;
effect eExplode = EffectVisualEffect(VFX_FNF_GAS_EXPLOSION_EVIL);
@@ -38,10 +40,10 @@ void main()
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, SPELL_FINGER_OF_DEATH));
//Get the distance between the explosion and the target to calculate delay
fDelay = GetDistanceBetweenLocations(lTarget, GetLocation(oTarget))/20;
if (!MyResistSpell(OBJECT_SELF, oTarget, fDelay))
if (!PRCDoResistSpell(OBJECT_SELF, oTarget, FloatToInt(fDelay)))
{
//Adjust the damage based on the Reflex Save, Evasion and Improved Evasion.
nDamage = GetReflexAdjustedDamage(40, oTarget, GetSpellSaveDC(), SAVING_THROW_TYPE_NEGATIVE);
nDamage = PRCGetReflexAdjustedDamage(40, oTarget, GetSpellSaveDC(), SAVING_THROW_TYPE_NEGATIVE);
//Set the damage effect
eDam = EffectDamage(nDamage, DAMAGE_TYPE_NEGATIVE);
if(nDamage > 0&&(GetIsEnemy(oTarget,OBJECT_SELF)))
@@ -59,6 +61,6 @@ void main()
givexp(OBJECT_SELF,GetLastKiller());
ExecuteScript("prc_npc_death", OBJECT_SELF);
}