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

@@ -4,7 +4,7 @@
// Modified by Celedhros, 29 July 2002
// Added PHB deviation rules, enhanced visual effects, and various bug fixes
#include "prc_inc_racial"
#include "hc_text_grenade"
void main()
@@ -100,7 +100,7 @@ void main()
DestroyObject(oItem);
return;
}
if(sNM == "hc_holywater" && GetRacialType(oTarget) != RACIAL_TYPE_UNDEAD)
if(sNM == "hc_holywater" && MyPRCGetRacialType(oTarget) != RACIAL_TYPE_UNDEAD)
{
SendMessageToPC(oPC, NOEFFECT);
DestroyObject(oItem);
@@ -169,7 +169,7 @@ void main()
lTarget = Location(oDeviation,vDeviation,fDeviation);
}
// Apply visual effects at target location
if (sNM == "hc_holywater" && GetRacialType(oTarget) == RACIAL_TYPE_UNDEAD && touchAttack == 1)
if (sNM == "hc_holywater" && MyPRCGetRacialType(oTarget) == RACIAL_TYPE_UNDEAD && touchAttack == 1)
{
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eVis, lTarget);
ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, eExplode, lTarget);
@@ -202,7 +202,7 @@ void main()
ApplyEffectToObject(DURATION_TYPE_INSTANT, eSplash, oSplashTarget);
SignalEvent(oSplashTarget, EventSpellCastAt(oPC, SPELL_MAGIC_MISSILE));
oSplashTarget = GetNextObjectInShape(SHAPE_SPHERE, nSplashRange, lTarget, TRUE, OBJECT_TYPE_CREATURE);
} else if (sNM == "hc_holywater" && GetRacialType(oTarget) == RACIAL_TYPE_UNDEAD){
} else if (sNM == "hc_holywater" && MyPRCGetRacialType(oTarget) == RACIAL_TYPE_UNDEAD){
// Apply holy water splash damage to valid target in radius and get next target
ApplyEffectToObject(DURATION_TYPE_INSTANT, eSplash, oSplashTarget);
SignalEvent(oSplashTarget, EventSpellCastAt(oPC, SPELL_MAGIC_MISSILE));