PRC8/trunk/scripts/prc_archivist.nss
Jaysyn904 1662218bb4 Initial upload.
Adding base PRC 4.19a files to repository.
2022-10-07 13:51:24 -04:00

21 lines
617 B
Plaintext

//::///////////////////////////////////////////////
//:: [Archivist - Lore Mastery]
//:: [prc_archivist.nss]
//:://////////////////////////////////////////////
#include "inc_item_props"
#include "prc_class_const"
#include "prc_feat_const"
void main()
{
object oPC = OBJECT_SELF;
int nLevel = GetLevelByClass(CLASS_TYPE_ARCHIVIST, oPC);
if(nLevel > 1)
{
object oSkin = GetPCSkin(oPC);
int nLoreBonus = GetHasFeat(FEAT_EPIC_LORE_MASTERY, oPC) ? nLevel / 2 : (nLevel + 3) / 5;
SetCompositeBonus(oSkin, "Lore_Mastery", nLoreBonus, ITEM_PROPERTY_SKILL_BONUS, SKILL_LORE);
}
}