Initial upload.

Adding base PRC 4.19a files to repository.
This commit is contained in:
Jaysyn904
2022-10-07 13:51:24 -04:00
parent 646eb01834
commit 1662218bb4
22441 changed files with 1274376 additions and 0 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);
}