make repo compilable under nsc
This commit is contained in:
@@ -26,7 +26,7 @@ int GetSpellFromAbrev(string sAbrev);
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
#include "inc_utility"
|
||||
//#include "inc_epicspelldef"
|
||||
#include "inc_epicspells"
|
||||
|
||||
// SEED FUNCTIONS
|
||||
|
||||
|
||||
@@ -108,11 +108,10 @@ void ProcessPreparedSpellLevel(object oPC, int nClass, int nSpellLevel, int nLev
|
||||
//#include "prc_effect_inc" //access via prc_inc_core
|
||||
//#include "inc_lookups" //access via prc_inc_core
|
||||
#include "prc_inc_core"
|
||||
#include "inc_sp_gain_mem" //providing child access to prc_inc_core
|
||||
//Must load in this order.
|
||||
#include "inc_sp_gain_mem"
|
||||
//#include "prc_inc_castlvl" //access via prc_inc_core
|
||||
//#include "prc_inc_descrptr" //access via prc_inc_core
|
||||
#include "inc_item_props"
|
||||
#include "inc_item_props"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Function definitions */
|
||||
@@ -1622,6 +1621,3 @@ void DoCleanUp(int nMetamagic)
|
||||
DeleteLocalInt(OBJECT_SELF, "NSB_SpellLevel");
|
||||
DeleteLocalInt(OBJECT_SELF, "NSB_SpellbookID");
|
||||
}
|
||||
|
||||
//:: Test Void
|
||||
//:: void main (){}
|
||||
@@ -30,6 +30,7 @@ int GetDamageFromConstant(int nIPConst);
|
||||
void DoFrostRend(object oTarget, object oAttacker, object oWeapon);
|
||||
|
||||
#include "moi_inc_moifunc"
|
||||
#include "prc_inc_combat"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Function defintions */
|
||||
|
||||
@@ -17,9 +17,6 @@ Created: May 1, 2008
|
||||
|
||||
//:: Updated for .35 by Jaysyn 2023/03/11
|
||||
|
||||
//:: Test Void
|
||||
//void main (){}
|
||||
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Constants
|
||||
//:://////////////////////////////////////////////
|
||||
@@ -63,6 +60,14 @@ string GetMetaMagicString(int nMetaMagic);
|
||||
int GetMetaMagicFromFeat(int nFeat);
|
||||
int GetMetaMagicOfCaster(object oPC = OBJECT_SELF);
|
||||
|
||||
string GetFileForClass(int nClass);
|
||||
int GetSpellslotLevel(int nClass, object oPC);
|
||||
int GetSpellKnownMaxCount(int nLevel, int nSpellLevel, int nClass, object oPC);
|
||||
int GetSpellbookTypeForClass(int nClass);
|
||||
|
||||
#include "inc_pers_array"
|
||||
#include "inc_2dacache"
|
||||
|
||||
// name of the new spellbook file (cls_spell_*)
|
||||
string GetNSBDefinitionFileName(int nClass)
|
||||
{
|
||||
|
||||
@@ -44,6 +44,7 @@ void CreateSwitchNameArray();
|
||||
|
||||
#include "prc_inc_array" // Needs direct include instead of inc_utility
|
||||
#include "prc_inc_switch"
|
||||
#include "inc_2dacache"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Function definitions */
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "prc_inc_clsfunc"
|
||||
#include "prc_inc_sp_tch"
|
||||
|
||||
int GetBlastDamageDices(object oInvoker, int nInvokerLevel)
|
||||
{
|
||||
|
||||
@@ -135,6 +135,9 @@ int GetHasInvocation(int nInvocation, object oCreature = OBJECT_SELF);
|
||||
/* Includes */
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
int GetPrimaryInvocationClass(object oCreature = OBJECT_SELF);
|
||||
int GetInvocationPRCLevels(object oCaster);
|
||||
|
||||
#include "inc_item_props"
|
||||
#include "prc_x2_itemprop"
|
||||
#include "inc_lookups"
|
||||
|
||||
@@ -123,7 +123,7 @@ void DeleteLocalInvocation(object oObject, string sName);
|
||||
/* Includes */
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
//#include "inv_inc_invfunc" //Access in parent
|
||||
#include "inv_inc_invfunc" //Access in parent
|
||||
#include "prc_spellf_inc"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
@@ -54,7 +54,7 @@ int SPGetPenetrAOE(object oCaster = OBJECT_SELF, int nCasterLvl = 0);
|
||||
/* Includes */
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
//#include "prc_inc_spells"
|
||||
#include "prc_inc_spells"
|
||||
//#include "prc_alterations"
|
||||
//#include "prcsp_archmaginc"
|
||||
//#include "prc_inc_racial"
|
||||
|
||||
@@ -124,6 +124,8 @@ void ApplyBreath(struct breath BreathUsed, location lTargetArea, int bLinger = F
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
#include "prc_alterations"
|
||||
#include "prcsp_archmaginc"
|
||||
#include "prc_inc_spells"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Internal functions */
|
||||
|
||||
@@ -16,6 +16,7 @@ Command summary:
|
||||
*/
|
||||
|
||||
#include "prc_inc_chat"
|
||||
#include "inc_persist_loca"
|
||||
|
||||
const string CMD_POWER_ATTACK = "pow-erattack";
|
||||
|
||||
|
||||
@@ -133,6 +133,7 @@ const int METAMAGIC_QUICKEN_LEVEL = 4;
|
||||
#include "prc_inc_damage"
|
||||
#include "prc_inc_sb_const" // Spell Book Constants
|
||||
#include "x0_i0_position"
|
||||
#include "inc_newspellbook"
|
||||
|
||||
/*
|
||||
access to prc_inc_nwscript via prc_inc_damage
|
||||
|
||||
@@ -169,8 +169,8 @@ int GetSubschoolFlags(int nSpellID);
|
||||
/* Includes */
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
#include "inc_2dacache" // already has access via inc_utility
|
||||
//#include "inc_utility"
|
||||
#include "inc_2dacache"
|
||||
#include "inc_utility"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Function definitions */
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
#include "prc_feat_const"
|
||||
#include "inc_item_props"
|
||||
#include "prc_inc_spells"
|
||||
|
||||
const string BRUTAL_STRIKE_MODE_VAR = "PRC_BRUTAL_STRIKE_MODE";
|
||||
|
||||
|
||||
@@ -36,6 +36,8 @@ void CheckForPnPHolyAvenger(object oItem);
|
||||
|
||||
#include "inc_utility"
|
||||
#include "prc_inc_newip"
|
||||
#include "prc_inc_castlvl"
|
||||
#include "inc_newspellbook"
|
||||
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "prc_spell_const"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Function prototypes */
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
@@ -73,6 +73,7 @@ void SetMasteryOfElements();
|
||||
|
||||
//#include "lookup_2da_spell"
|
||||
#include "prcsp_reputation"
|
||||
#include "prc_inc_core"
|
||||
//#include "prc_inc_spells"
|
||||
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "prc_ipfeat_const"
|
||||
#include "prc_feat_const"
|
||||
#include "inc_vfx_const"
|
||||
#include "prc_inc_nwscript"
|
||||
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
@@ -110,6 +110,7 @@ object GetSplitPsionicRayTarget(struct manifestation manif, object oPrimaryTarge
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
#include "psi_inc_core"
|
||||
#include "psi_inc_psifunc"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Internal functions */
|
||||
|
||||
@@ -40,7 +40,8 @@ void IdentifyPower(object oManifester, int nPowerId);
|
||||
|
||||
// Always access via psi_inc_psifunc.
|
||||
|
||||
//#include "psi_inc_core"
|
||||
#include "psi_inc_core"
|
||||
#include "inc_2dacache"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Internal functions */
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "prc_class_const"
|
||||
*/
|
||||
#include "prc_alterations"
|
||||
#include "prcsp_engine"
|
||||
|
||||
// Constants that dictate ResistPower results
|
||||
const int POWER_RESIST_FAIL = 1;
|
||||
|
||||
@@ -192,7 +192,8 @@ int PathFeatToIPFeat(int nFeat);
|
||||
/* Includes */
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
|
||||
#include "inc_lookups"
|
||||
#include "inc_pers_array"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Internal functions */
|
||||
@@ -519,7 +520,7 @@ int GetMaxMysteryLevelLearnable(object oShadow, int nClass, int nType)
|
||||
if(DEBUG) DoDebug("GetMaxMysteryLevelLearnable nType: " + IntToString(nType));
|
||||
|
||||
// Rules Quote:
|
||||
// Within a category<72>Apprentice, Initiate, Master<65>you must have at least two mysteries of any given level
|
||||
// Within a category<72>Apprentice, Initiate, Master<65>you must have at least two mysteries of any given level
|
||||
// before you can take any mysteries of the next higher level. For instance, you must have two 1st-level
|
||||
// mysteries before you can take any 2nds, and at least two 2nds before you can take any 3rds.
|
||||
int nMaxLrn, i, nMystLevel, nCount1, nCount2;
|
||||
|
||||
@@ -210,6 +210,7 @@ int GetHasNocturnal(object oShadow, int nPath);
|
||||
#include "prc_alterations"
|
||||
#include "shd_inc_myst"
|
||||
#include "shd_inc_mystknwn"
|
||||
#include "lookup_2da_spell"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Internal functions */
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
#include "prc_inc_spells"
|
||||
#include "inc_utility"
|
||||
#include "prc_inc_itmrstr"
|
||||
#include "shd_inc_shdfunc"
|
||||
#include "lookup_2da_spell"
|
||||
|
||||
// This function holds all functions that are supposed to run before the actual
|
||||
// spellscript gets run. If this functions returns FALSE, the spell is aborted
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "prc_inc_spells"
|
||||
#include "inc_utility"
|
||||
#include "x2_inc_spellhook"
|
||||
#include "tob_inc_tobfunc"
|
||||
|
||||
// This function holds all functions that are supposed to run before the actual
|
||||
// spellscript gets run. If this functions returns FALSE, the spell is aborted
|
||||
|
||||
@@ -109,11 +109,14 @@ int GetIsSyllable(int nSpellId);
|
||||
*/
|
||||
int DoSpellTruenameCheck(object oTrueSpeaker, object oTarget, int nPersonal = FALSE);
|
||||
|
||||
string GetNormalUtterSpellId(int nSpellId);
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Includes */
|
||||
//////////////////////////////////////////////////
|
||||
|
||||
#include "prc_inc_spells"
|
||||
#include "true_inc_trufunc"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Internal functions */
|
||||
|
||||
@@ -260,6 +260,7 @@ int GetCadenceCount(object oTrueSpeaker);
|
||||
#include "prc_alterations"
|
||||
#include "true_inc_utter"
|
||||
#include "true_inc_truknwn"
|
||||
#include "true_inc_truespk"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Function definitions */
|
||||
|
||||
@@ -141,6 +141,7 @@ int GetHasUtterance(int nUtter, object oCreature = OBJECT_SELF);
|
||||
#include "inc_pers_array"
|
||||
#include "prc_inc_nwscript"
|
||||
#include "inc_lookups"
|
||||
#include "prc_x2_itemprop"
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
/* Internal functions */
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include "prc_inc_spells"
|
||||
#include "inc_utility"
|
||||
#include "prc_inc_itmrstr"
|
||||
#include "true_inc_trufunc"
|
||||
|
||||
|
||||
// This function holds all functions that are supposed to run before the actual
|
||||
|
||||
Reference in New Issue
Block a user