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,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);
}