Finished PRC8 integration
Finished PRC8 integration. Moved creature abilities to top hak. Setup tooling. Created release archive
This commit is contained in:
@@ -17,6 +17,7 @@ void CheckSneak(object oMob=OBJECT_SELF);
|
||||
|
||||
#include "NW_I0_GENERIC"
|
||||
#include "jw_privates_inc"
|
||||
#include "prc_inc_spells"
|
||||
|
||||
void main()
|
||||
{
|
||||
@@ -42,7 +43,7 @@ void main()
|
||||
}
|
||||
}
|
||||
|
||||
if(GetHasEffect(EFFECT_TYPE_SLEEP))
|
||||
if(PRCGetHasEffect(EFFECT_TYPE_SLEEP))
|
||||
{
|
||||
// If we're asleep and this is the result of sleeping
|
||||
// at night, apply the floating 'z's visual effect
|
||||
@@ -87,7 +88,7 @@ nCoward=TRUE;
|
||||
|
||||
if ((!GetObjectSeen(oTarget))&&(GetIsObjectValid(oTarget))&&(GetDistanceToObject(oTarget)<12.0)&&(!GetIsFighting(OBJECT_SELF)))
|
||||
{
|
||||
if ((!GetHasEffect(EFFECT_TYPE_TRUESEEING))&&(!GetHasEffect(EFFECT_TYPE_SEEINVISIBLE)))
|
||||
if ((!PRCGetHasEffect(EFFECT_TYPE_TRUESEEING))&&(!PRCGetHasEffect(EFFECT_TYPE_SEEINVISIBLE)))
|
||||
|
||||
|
||||
{
|
||||
@@ -209,7 +210,7 @@ if((!GetIsInCombat())&&(GetSpawnInCondition(NW_FLAG_DAY_NIGHT_POSTING))&&(!GetIs
|
||||
}
|
||||
|
||||
else
|
||||
if((!GetIsInCombat())&&(!GetHasEffect(EFFECT_TYPE_SLEEP))&&(!GetIsObjectValid(oTarget))&& (!IsInConversation(OBJECT_SELF)))
|
||||
if((!GetIsInCombat())&&(!PRCGetHasEffect(EFFECT_TYPE_SLEEP))&&(!GetIsObjectValid(oTarget))&& (!IsInConversation(OBJECT_SELF)))
|
||||
{
|
||||
// make the mob sneak at this point if it should be
|
||||
CheckSneak(OBJECT_SELF);
|
||||
|
||||
Reference in New Issue
Block a user