Further file organization

Further file organization
This commit is contained in:
Jaysyn904
2023-08-23 22:11:00 -04:00
parent 3062876237
commit d87fe14826
22364 changed files with 0 additions and 3253 deletions

View File

@@ -0,0 +1,34 @@
/*:://////////////////////////////////////////////
//:: Spell Name Darkness: On Enter
//:: Spell FileName PHS_S_DarknessA
//:://////////////////////////////////////////////
//:: Spell Effects Applied / Notes
//:://////////////////////////////////////////////
AOE mearly applies a 20% consealment bonus. Note that if they have Daylight
applied to them, then it cannot be consealed as the effects negate each
other.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//::////////////////////////////////////////////*/
#include "PHS_INC_SPELLS"
void main()
{
// Check AOE status
if(!PHS_CheckAOECreator()) return;
// Declare major variables
object oTarget = GetEnteringObject();
object oCreator = GetAreaOfEffectCreator();
//Declare major effects
effect eConseal = EffectConcealment(20);
//Fire cast spell at event for the target
PHS_SignalSpellCastAt(oTarget, PHS_SPELL_DARKNESS);
// Apply effects
// * Cosealment doesn't overlap.
PHS_ApplyPermanent(oTarget, eConseal);
}