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,59 @@
//::///////////////////////////////////////////////
//:: Name Blades of Fire
//:: FileName sp_blades_ofire.nss
//:://////////////////////////////////////////////
/**@file Blades of Fire
Conjuration (Creation) [Fire]
Level: Ranger 2, sorcerer/wizard 2, warmage 2
Components: V
Range: Touch
Targets: Up to two melee weapons you are wielding
Duration: 1 round
Saving Throw: None
Spell Resistence: None
Flames sheathe your melee weapons, harming neither
you nor the weapons but possibly burning your
opponents. Your melee weapons each deal an extra
1d6 points of fire damage. This damage stacks with
any energy damage your weapons already deal.
Author: Tenjac
Created: 7/6/07
*/
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
#include "prc_inc_spells"
void main()
{
if(!X2PreSpellCastCode()) return;
PRCSetSchool(SPELL_SCHOOL_CONJURATION);
object oPC = OBJECT_SELF;
object oSword1 = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC);
object oSword2 = GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oPC);
float fDur = 9.0f;
int nMetaMagic = PRCGetMetaMagicFeat();
itemproperty iprop = ItemPropertyDamageBonus(IP_CONST_DAMAGETYPE_FIRE, IP_CONST_DAMAGEBONUS_1d6);
if(nMetaMagic & METAMAGIC_EXTEND)
{
fDur += fDur;
}
if(IPGetIsMeleeWeapon(oSword1))
{
IPSafeAddItemProperty(oSword1, iprop, fDur);
}
if(IPGetIsMeleeWeapon(oSword2))
{
IPSafeAddItemProperty(oSword2, iprop, fDur);
}
PRCSetSchool();
}