Further file organization
Further file organization
This commit is contained in:
29
nwn/nwnprc/trunk/scripts/prc_knght_block.nss
Normal file
29
nwn/nwnprc/trunk/scripts/prc_knght_block.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Knight - Shield Block
|
||||
//:: prc_knght_block.nss
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Bonus with the shield vs certain monsters
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Stratovarius
|
||||
//:: Created On: July 1, 2007
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "prc_alterations"
|
||||
|
||||
void main()
|
||||
{
|
||||
//Declare main variables.
|
||||
object oTarget = PRCGetSpellTargetObject();
|
||||
int nRace = MyPRCGetRacialType(oTarget);
|
||||
int nClass = GetLevelByClass(CLASS_TYPE_KNIGHT);
|
||||
int nBonus = 1;
|
||||
|
||||
// Bonus grows at these levels.
|
||||
if (nClass > 19) nBonus = 3;
|
||||
else if (nClass > 10) nBonus = 2;
|
||||
|
||||
effect eShield = EffectACIncrease(nBonus);
|
||||
eShield = VersusRacialTypeEffect(eShield, nRace);
|
||||
|
||||
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eShield, OBJECT_SELF, 6.0);
|
||||
}
|
Reference in New Issue
Block a user