forked from Jaysyn/PRC8
Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
//#include "prc_alterations"
|
|
#include "prc_feat_const"
|
|
#include "inc_item_props"
|
|
|
|
//King of Lies +4 Bonus to Cha
|
|
void KingofLies(object oPC ,object oSkin ,int iLevel)
|
|
{
|
|
int iTest = GetPersistantLocalInt(oPC, "NWNX_KingofLies");
|
|
|
|
if(iTest != iLevel)
|
|
SetCompositeBonus(oSkin, "KingofLies", iLevel, ITEM_PROPERTY_ABILITY_BONUS,IP_CONST_ABILITY_CHA);
|
|
}
|
|
|
|
//Int Modifier applied to Bluff Checks aswell as Charisma
|
|
void DevilTongue(object oPC ,object oSkin ,int iLevel)
|
|
{
|
|
if(GetLocalInt(oSkin, "TongueoftheDevil") == iLevel) return;
|
|
|
|
SetCompositeBonus(oSkin, "TongueoftheDevil", iLevel, ITEM_PROPERTY_SKILL_BONUS,SKILL_BLUFF);
|
|
}
|
|
|
|
void main()
|
|
{
|
|
|
|
//Declare main variables.
|
|
object oPC = OBJECT_SELF;
|
|
object oSkin = GetPCSkin(oPC);
|
|
object oWeapon = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC);
|
|
int iInt = GetAbilityModifier(ABILITY_INTELLIGENCE,oPC);
|
|
|
|
int bKing = GetHasFeat(FEAT_KING_LIES, oPC) ? 4 : 0;
|
|
int bDevil = GetHasFeat(FEAT_TONGUE_DEVIL, oPC) ? iInt : 0;
|
|
|
|
if (bKing>0) KingofLies(oPC, oSkin,bKing);
|
|
if (bDevil>0) DevilTongue(oPC, oSkin,bDevil);
|
|
|
|
}
|