Added "Removed Files" folder
Added "Removed Files" folder in case we needed to review any of them.
This commit is contained in:
62
_module/_removed files/x2_s2_mghtyrage.nss
Normal file
62
_module/_removed files/x2_s2_mghtyrage.nss
Normal file
@@ -0,0 +1,62 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Mighty Rage
|
||||
//:: X2_S2_MghtyRage
|
||||
//:: Copyright (c) 2001 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
The Str and Con of the Barbarian increases,
|
||||
Will Save are +2, AC -2.
|
||||
Greater Rage starts at level 15.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Andrew Nobbs
|
||||
//:: Created On: May 16, 2003
|
||||
//:://////////////////////////////////////////////
|
||||
#include "x2_i0_spells"
|
||||
void main()
|
||||
{
|
||||
if(!GetHasFeatEffect(FEAT_BARBARIAN_RAGE))
|
||||
{
|
||||
//Declare major variables
|
||||
int nLevel = GetLevelByClass(CLASS_TYPE_BARBARIAN);
|
||||
PlayVoiceChat(VOICE_CHAT_BATTLECRY1);
|
||||
//Determine the duration by getting the con modifier after being modified
|
||||
int nCon = 3 + GetAbilityModifier(ABILITY_CONSTITUTION) + 8;
|
||||
effect eStr = EffectAbilityIncrease(ABILITY_CONSTITUTION, 8);
|
||||
effect eCon = EffectAbilityIncrease(ABILITY_STRENGTH, 8);
|
||||
effect eSave = EffectSavingThrowIncrease(SAVING_THROW_WILL, 4);
|
||||
effect eDur = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
|
||||
//Added by Guile(This offsets the +12 Cap Some.
|
||||
effect eAtk;
|
||||
eAtk = EffectAttackIncrease(6);
|
||||
eAtk = SupernaturalEffect(eAtk);
|
||||
effect eDmg;
|
||||
eDmg = EffectDamageIncrease(DAMAGE_BONUS_8, DAMAGE_TYPE_BLUDGEONING);
|
||||
eDmg = SupernaturalEffect(eDmg);
|
||||
effect eHP;
|
||||
eHP = EffectTemporaryHitpoints(nLevel * 6);
|
||||
eHP = SupernaturalEffect(eHP);
|
||||
|
||||
effect eLink = EffectLinkEffects(eCon, eStr);
|
||||
eLink = EffectLinkEffects(eLink, eSave);
|
||||
eLink = EffectLinkEffects(eLink, eDur);
|
||||
SignalEvent(OBJECT_SELF, EventSpellCastAt(OBJECT_SELF, GetSpellId(), FALSE));
|
||||
//Make effect extraordinary
|
||||
eLink = ExtraordinaryEffect(eLink);
|
||||
effect eVis = EffectVisualEffect(VFX_IMP_IMPROVE_ABILITY_SCORE); //Change to the Rage VFX
|
||||
|
||||
if (nCon > 0)
|
||||
{
|
||||
//Apply the VFX impact and effects
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, OBJECT_SELF, RoundsToSeconds(nCon));
|
||||
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, OBJECT_SELF) ;
|
||||
//This part was added by Guile to offset +12 Cap.
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eAtk, OBJECT_SELF, RoundsToSeconds(nCon));
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eDmg, OBJECT_SELF, RoundsToSeconds(nCon));
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eHP, OBJECT_SELF, RoundsToSeconds(nCon));
|
||||
|
||||
// 2003-07-08, Georg: Rage Epic Feat Handling
|
||||
CheckAndApplyEpicRageFeats(nCon);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user