Further file organization
Further file organization
This commit is contained in:
21
nwn/nwnprc/trunk/spells/sp_daylightA.nss
Normal file
21
nwn/nwnprc/trunk/spells/sp_daylightA.nss
Normal file
@@ -0,0 +1,21 @@
|
||||
///////////////////////////////////////////////////
|
||||
// Daylight On Enter
|
||||
// sp_daylightA.nss
|
||||
////////////////////////////////////////////////////
|
||||
|
||||
void main()
|
||||
{
|
||||
object oTarget = GetEnteringObject();
|
||||
int nLight = GetLocalInt(oTarget, "PRCInLight");
|
||||
nLight++;
|
||||
SetLocalInt(oTarget, "PRCInLight", nLight);
|
||||
|
||||
effect eTest = GetFirstEffect(oTarget);
|
||||
|
||||
while(GetIsEffectValid(eTest))
|
||||
{
|
||||
if(GetEffectSpellId(eTest) == SPELL_DARKNESS) RemoveEffect(oTarget, eTest);
|
||||
eTest = GetNextEffect(oTarget);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user