Finished PRC8 integration
Finished PRC8 integration. Moved creature abilities to top hak. Setup tooling. Created release archive
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
#include "NW_I0_GENERIC"
|
||||
#include "NW_I0_SPELLS"
|
||||
#include "jw_privates_inc"
|
||||
#include "prc_inc_spells"
|
||||
|
||||
|
||||
void JumpToWeakestEnemy(object oTarget)
|
||||
{
|
||||
@@ -35,6 +37,8 @@ void JumpToWeakestEnemy(object oTarget)
|
||||
|
||||
void main()
|
||||
{
|
||||
ExecuteScript("prc_npc_userdef", OBJECT_SELF);
|
||||
|
||||
int nUser = GetUserDefinedEventNumber();
|
||||
|
||||
if(nUser == 1001) //HEARTBEAT
|
||||
@@ -71,7 +75,7 @@ void main()
|
||||
{
|
||||
//Declare major variables
|
||||
object oCaster = OBJECT_SELF;
|
||||
int nMetaMagic = GetMetaMagicFeat();
|
||||
int nMetaMagic = PRCGetMetaMagicFeat();
|
||||
int nDamage;
|
||||
float fDelay;
|
||||
location llocation = GetLocation(OBJECT_SELF);
|
||||
@@ -95,12 +99,12 @@ void main()
|
||||
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, SPELL_ICE_STORM));
|
||||
//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(d4(2), oTarget, GetSpellSaveDC(), SAVING_THROW_TYPE_COLD);
|
||||
nDamage = PRCGetReflexAdjustedDamage(d4(2), oTarget, GetSpellSaveDC(), SAVING_THROW_TYPE_COLD);
|
||||
//Set the damage effect
|
||||
eDam = EffectDamage(nDamage, DAMAGE_TYPE_COLD);
|
||||
if(nDamage > 0)
|
||||
|
||||
Reference in New Issue
Block a user