Further file organization
Further file organization
This commit is contained in:
37
nwn/nwnprc/trunk/newspellbook/moi_mld_trthskr.nss
Normal file
37
nwn/nwnprc/trunk/newspellbook/moi_mld_trthskr.nss
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
11/1/20 by Stratovarius
|
||||
|
||||
Truthseeker Goggles
|
||||
|
||||
Descriptors: None
|
||||
Classes: Incarnate, Soulborn
|
||||
Chakra: Brow
|
||||
Saving Throw: None
|
||||
|
||||
Incarnum forms blue-lensed goggles that hover in front of your eyes. The world does not seem blue to you; rather, small details become apparent, whether they are in something you search or in someone<6E>s facial expression and posture.
|
||||
|
||||
While you wear your truthseeker goggles, you gain a +2 insight bonus on Search and Sense Motive checks.
|
||||
|
||||
Essentia: Every point of essentia you invest in your truthseeker goggles increases the insight bonus by 2.
|
||||
|
||||
Chakra Bind (Brow)
|
||||
|
||||
Your truthseeker goggles rest firmly before your eyes, granting you sight even in darkness.
|
||||
|
||||
You gain darkvision.
|
||||
*/
|
||||
|
||||
#include "moi_inc_moifunc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oMeldshaper = PRCGetSpellTargetObject();
|
||||
int nEssentia = GetEssentiaInvested(oMeldshaper);
|
||||
int nBonus = 2 + (nEssentia * 2);
|
||||
effect eLink = EffectLinkEffects(EffectSkillIncrease(SKILL_SEARCH, nBonus), EffectSkillIncrease(SKILL_SEARCH, nBonus));
|
||||
|
||||
if (GetIsMeldBound(oMeldshaper) == CHAKRA_BROW) eLink = EffectLinkEffects(eLink, EffectUltravision());
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, SupernaturalEffect(eLink), oMeldshaper, 9999.0);
|
||||
IPSafeAddItemProperty(GetPCSkin(oMeldshaper), ItemPropertyBonusFeat(IP_CONST_MELD_TRUTHSEEKER_GOGGLES), 9999.0, X2_IP_ADDPROP_POLICY_KEEP_EXISTING);
|
||||
}
|
Reference in New Issue
Block a user