20255/17/19 Update
Added PEPS AI. Full compile.
This commit is contained in:
@@ -15,6 +15,7 @@
|
||||
|
||||
|
||||
#include "colors_inc"
|
||||
#include "prc_inc_spells"
|
||||
#include "zep_inc_scrptdlg"
|
||||
|
||||
|
||||
@@ -522,13 +523,16 @@ int ZEPDemilichChooseSoulGem(object oPC)
|
||||
// Get the threshold for our attention from the demilich.
|
||||
int nThreshold = GetLocalInt(OBJECT_SELF, "ZEP_DEMI_Power_Threshold");
|
||||
if ( nThreshold == 0 )
|
||||
{
|
||||
// Use the module default.
|
||||
nThreshold = ZEP_DEMI_POWER_THRESHOLD;
|
||||
}
|
||||
// See if oPC is not worthy of attention.
|
||||
if ( PRCGetCasterLevel(oPC) < nThreshold )
|
||||
{
|
||||
// Do not trap.
|
||||
return -1;
|
||||
|
||||
}
|
||||
// Find the weakest entrapped soul.
|
||||
int nWeakestGem = -1;
|
||||
int nWeakestLevel = 99;
|
||||
@@ -881,3 +885,5 @@ object ZEPDemilichGetVictimParty(int nGem)
|
||||
ZEP_DEMI_LOCAL_SGCORPSE);
|
||||
}
|
||||
|
||||
//;; void main() {}
|
||||
|
||||
|
Reference in New Issue
Block a user