Added "removed" folder
This commit is contained in:
77
_removed/nw_s0_magearm.nss
Normal file
77
_removed/nw_s0_magearm.nss
Normal file
@@ -0,0 +1,77 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Mage Armor
|
||||
//:: [NW_S0_MageArm.nss]
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Gives the target +1 AC Bonus to Deflection,
|
||||
Armor Enchantment, Natural Armor and Dodge.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Preston Watamaniuk
|
||||
//:: Created On: Jan 12, 2001
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Last Updated By: Preston Watamaniuk, On: April 10, 2001
|
||||
//:: VFX Pass By: Preston W, On: June 22, 2001
|
||||
/*
|
||||
bugfix by Kovi 2002.07.23
|
||||
- dodge bonus was stacking
|
||||
|
||||
Patch 1.70
|
||||
- fixed stacking the shadow conjuration variant with itself
|
||||
*/
|
||||
|
||||
#include "70_inc_spells"
|
||||
#include "x0_i0_spells"
|
||||
#include "x2_inc_spellhook"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
/*
|
||||
Spellcast Hook Code
|
||||
Added 2003-06-23 by GeorgZ
|
||||
If you want to make changes to all spells,
|
||||
check x2_inc_spellhook.nss to find out more
|
||||
|
||||
*/
|
||||
|
||||
if (!X2PreSpellCastCode())
|
||||
{
|
||||
// If code within the PreSpellCastHook (i.e. UMD) reports FALSE, do not run this spell
|
||||
return;
|
||||
}
|
||||
|
||||
// End of Spell Cast Hook
|
||||
|
||||
//Declare major variables
|
||||
spellsDeclareMajorVariables();
|
||||
int nDuration = spell.Level;
|
||||
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_AC_BONUS);
|
||||
effect eAC1, eAC2, eAC3, eAC4;
|
||||
//Fire cast spell at event for the specified target
|
||||
SignalEvent(spell.Target, EventSpellCastAt(spell.Caster, spell.Id, FALSE));
|
||||
//Check for metamagic extend
|
||||
if (spell.Meta == METAMAGIC_EXTEND) //Duration is +100%
|
||||
{
|
||||
nDuration = nDuration * 2;
|
||||
}
|
||||
//Set the four unique armor bonuses
|
||||
eAC1 = EffectACIncrease(1, AC_ARMOUR_ENCHANTMENT_BONUS);
|
||||
eAC2 = EffectACIncrease(1, AC_SHIELD_ENCHANTMENT_BONUS);
|
||||
eAC3 = EffectACIncrease(1, AC_DODGE_BONUS);
|
||||
eAC4 = EffectACIncrease(1, AC_NATURAL_BONUS);
|
||||
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
|
||||
|
||||
effect eLink = EffectLinkEffects(eAC1, eAC2);
|
||||
eLink = EffectLinkEffects(eLink, eAC3);
|
||||
eLink = EffectLinkEffects(eLink, eAC4);
|
||||
eLink = EffectLinkEffects(eLink, eDur);
|
||||
|
||||
RemoveEffectsFromSpell(spell.Target, spell.Id);
|
||||
|
||||
//Apply the armor bonuses and the VFX impact
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, spell.Target, HoursToSeconds(nDuration));
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, spell.Target);
|
||||
}
|
Reference in New Issue
Block a user