2026/02/14 Updates

Updated PRC8 version.
Hathran can now select an ethran as a cohort.
Preliminary Circle Magic work done.
Added Choke Hold, Pain Touch, Ki Shout, Great Ki Shout, Freezing the Lifeblood, Falling Star Strikea nd Unbalancing Strike feats.
Warforged get Immunity Energy Drain, not Immunity: Ability Drain.
Forsakers can use alchemical items.
Added VectorToPerpendicular().
Added GetIsAlchemical().
Added GenerateRandomName().
Added _DoChokeHold().
Updated Shaman bonus feat list.
Updated fighter bonus feat lists.
Added Favored of the Companions to the Vow of Poverty bonus feat list.
Ur-Priest can't enter RKV, BFZ or Thrall of Orcus.
This commit is contained in:
Jaysyn904
2026-02-14 19:53:55 -05:00
parent 066590fe88
commit 41a3c945f9
94 changed files with 51583 additions and 49651 deletions

View File

@@ -16,6 +16,9 @@ const string PRC_ForcedRestDetector_Generation = "PRC_ForcedRestDetector_Generat
// FUNCTION DECLARATIONS
///////////////////////////////////////////////////////////////////////////////
//:: Returns TRUE is the item is on the Alchemy crafting 2DA.
int GetIsAlchemical(object oItem);
// Returns the number of henchmen a player has.
int GetNumHenchmen(object oPC);
@@ -35,6 +38,36 @@ void PRCForceRested(object oPC);
// FUNCTION DEFINITIONS
///////////////////////////////////////////////////////////////////////////////
/**
* Returns a perpendicular vector to the input vector
* Rotates the vector 90 degrees in the XY plane while preserving Z
*
* @param vInput The input vector
* @return A perpendicular vector
*/
vector VectorToPerpendicular(vector vInput)
{
return Vector(-vInput.y, vInput.x, vInput.z);
}
int GetIsAlchemical(object oItem)
{
if(!GetIsObjectValid(oItem)) return FALSE;
string sResRef = GetResRef(oItem);
int nRows = StringToInt(Get2DACache("prc_craft_alchem", "ResRef", -1));
// Check if item's ResRef exists in alchemical crafting 2DA
int i;
for(i = 0; i < nRows; i++)
{
if(sResRef == Get2DACache("prc_craft_alchem", "ResRef", i))
return TRUE;
}
return FALSE;
}
int GetNumHenchmen(object oPC)
{
if (!GetIsPC(oPC)) return -1;
@@ -225,4 +258,6 @@ void PRCForceRested(object oPC)
//The PC has been forced rested--fix the problems this causes.
SetLocalInt(oPC, "PRC_ForceRested", 1);
ExecuteScript("prc_rest", oPC);
}
}
//:: void main (){}