WizardryEE/Notes/spells/sp_daylightB.nss
2025-04-26 15:20:45 -04:00

13 lines
335 B
Plaintext

///////////////////////////////////////////////////////
// Daylignt On Exit
// sp_daylightB.nss
///////////////////////////////////////////////////////
void main()
{
object oTarget = GetExitingObject();
int nLight = GetLocalInt(oTarget, "PRCInLight");
nLight--;
SetLocalInt(oTarget, "PRCInLight", nLight);
}