Added PW hook for alcohol & onUserDefined. Removed ability score check for Psilike [PRC_IsPsiLike] creatures. Updated scripted Favored Enemy for Plant & Ooze. Removed extra scythe entry from CheckCraftingMaterial(). Added missing morningstar entry in GetBaseResRef(). Increased Template limit to 250. Changed Lich templates to count Practiced Spellcaster in calculation.

This commit is contained in:
Jaysyn904
2024-07-24 18:17:19 -04:00
parent beeac117f7
commit e5b7389319
19 changed files with 38 additions and 19419 deletions
+1 -1
View File
@@ -396,7 +396,7 @@ int GetRunningEvent();
//#include "inc_utility"
//#include "prc_inc_array"
#include "inc_pers_array" // link higher than inc_array
#include "inc_pers_array" // link higher than prc_inc_array
@@ -3685,6 +3685,9 @@ string GetBaseResRef(int nBaseItemType)
case BASE_ITEM_LONGSWORD:
sResRef = "nw_wswls001";
break;
case BASE_ITEM_MORNINGSTAR:
sResRef = "nw_wblms001";
break;
case BASE_ITEM_MAUL:
sResRef = "prc_wxblma001";
break;
@@ -783,7 +783,7 @@ void SetDefaultFileEnds()
SetPRCSwitch("PRC_FILE_END_tdr01_edge", 18);
SetPRCSwitch("PRC_FILE_END_tds01_edge", 12);
SetPRCSwitch("PRC_FILE_END_tdt01_edge", 11);
SetPRCSwitch("PRC_FILE_END_templates", 105);
SetPRCSwitch("PRC_FILE_END_templates", 250);
SetPRCSwitch("PRC_FILE_END_tib01_edge", 3);
SetPRCSwitch("PRC_FILE_END_tic01_edge", 18);
SetPRCSwitch("PRC_FILE_END_tid01_edge", 10);
@@ -1727,7 +1727,6 @@ int CheckCraftingMaterial(int nBaseItem, int nMaterial, int nBaseAC = -1)
(nBaseItem == BASE_ITEM_QUARTERSTAFF) ||
(nBaseItem == BASE_ITEM_CLUB) ||
(nBaseItem == BASE_ITEM_NUNCHAKU) || //nunchaku
(nBaseItem == BASE_ITEM_SCYTHE) ||
(nBaseItem == BASE_ITEM_SCYTHE) ||
(nBaseItem == BASE_ITEM_SHORTSPEAR) ||
(nBaseItem == BASE_ITEM_TRIDENT) ||
@@ -3905,6 +3905,8 @@ int GetFavoredEnemyFeat(int iRacialType)
case RACIAL_TYPE_SHAPECHANGER: return FEAT_FAVORED_ENEMY_SHAPECHANGER;
case RACIAL_TYPE_UNDEAD: return FEAT_FAVORED_ENEMY_UNDEAD;
case RACIAL_TYPE_VERMIN: return FEAT_FAVORED_ENEMY_VERMIN;
case RACIAL_TYPE_PLANT: return FEAT_FAVORED_ENEMY_PLANT;
case RACIAL_TYPE_OOZE: return FEAT_FAVORED_ENEMY_OOZE;
}
return -1;
}
@@ -145,7 +145,7 @@ int ApplyTemplateToObject(int nTemplate, object oPC = OBJECT_SELF, int bApply =
//sanity checks
if(GetObjectType(oPC) != OBJECT_TYPE_CREATURE)
return FALSE;
if(nTemplate < 0 || nTemplate > 200)
if(nTemplate < 0 || nTemplate > 250)
return FALSE;
//test if it can be applied
+6 -1
View File
@@ -17,6 +17,7 @@
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//void main (){}
//////////////////////////////////////////////////
/* Constants */
@@ -714,7 +715,11 @@ struct manifestation EvaluateManifestation(object oManifester, object oTarget, s
manif.nSpellID = PRCGetSpellId();
// Run an ability score check to see if the manifester can manifest the power at all
if(GetAbilityScoreOfClass(oManifester, nClass) - 10 < nPowerLevel && !bIgnoreConstraints && !bIsPsiLike && !GetHasSpellEffect(VESTIGE_ARETE, oManifester) && !GetHasSpellEffect(VESTIGE_THETRIAD, oManifester) && !GetHasSpellEffect(VESTIGE_ABYSM, oManifester) && manif.nSpellID != POWER_ELAN_RESILIANCE)
if (bIsPsiLike)
{
manif.bCanManifest = TRUE;
}
else if(GetAbilityScoreOfClass(oManifester, nClass) - 10 < nPowerLevel && !bIgnoreConstraints && !bIsPsiLike && !GetHasSpellEffect(VESTIGE_ARETE, oManifester) && !GetHasSpellEffect(VESTIGE_THETRIAD, oManifester) && !GetHasSpellEffect(VESTIGE_ABYSM, oManifester) && manif.nSpellID != POWER_ELAN_RESILIANCE)
{
FloatingTextStrRefOnCreature(16826411, oManifester, FALSE); // "You do not have a high enough ability score to manifest this power"
manif.bCanManifest = FALSE;