PRC8/nwn/trunk/newspellbook/shd_child_blur.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
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.
2023-08-22 10:00:21 -04:00

30 lines
735 B
Plaintext

/*
----------------
Child of Night Blur
shd_child_blur.nss
----------------
You blur (20% concealment)
27.02.19 by Stratovarius
*/
#include "shd_inc_shdfunc"
void main()
{
// Set up some data
object oShadow = OBJECT_SELF;
int nChild = GetLevelByClass(CLASS_TYPE_CHILD_OF_NIGHT);
int nBlur = 20;
float fDuration = TurnsToSeconds(nChild);
if (nChild >= 10)
{
nBlur = 50;
fDuration = 60.0;
}
effect eDur = SupernaturalEffect(EffectLinkEffects(EffectVisualEffect(PSI_DUR_SHADOW_BODY), EffectConcealment(nBlur)));
SPApplyEffectToObject(DURATION_TYPE_TEMPORARY, eDur, oShadow, fDuration, FALSE);
}