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,41 @@
//::///////////////////////////////////////////////
//:: Spiritual Force
//:: psi_sk_spiritfrc
//::///////////////////////////////////////////////
/*
Expends the Psionic Focus to grant Cha to damage
for 1 round to your mindblade.
*/
//:://////////////////////////////////////////////
//:: Created By: Fox
//:: Created On: 2008.2.14
//:://////////////////////////////////////////////
#include "psi_inc_soulkn"
#include "psi_inc_psifunc"
void main()
{
object oPC = OBJECT_SELF;
// Make sure the PC is wielding at least one mindblade
if(!(GetStringLeft(GetTag(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC)), 14) == "prc_sk_mblade_" ||
GetStringLeft(GetTag(GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oPC)), 14) == "prc_sk_mblade_"
) )
{
// Inform the player and return
SendMessageToPCByStrRef(oPC, 16824509); // "You must have a mindblade manifested to use this feat."
return;
}
if(!UsePsionicFocus(oPC)){
SendMessageToPC(oPC, "You must be psionically focused to use this feat");
return;
}
//Add Charisma to damage
int nDmgBonus = GetAbilityModifier(ABILITY_CHARISMA, oPC);
effect eDmgBonus = EffectDamageIncrease(nDmgBonus, DAMAGE_TYPE_SLASHING);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eDmgBonus, oPC, RoundsToSeconds(1));
}