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,31 @@
//::///////////////////////////////////////////////
//:: Divine Recovery
//:: tob_rby_divrcvr.nss
//:://////////////////////////////////////////////
/*
Up to [turn undead] times per day the character may recover a maneuver as a swift action
*/
//:://////////////////////////////////////////////
//:: Created By: Stratovarius
//:: Created On: Oct 4, 2008
//:://////////////////////////////////////////////
#include "tob_inc_tobfunc"
void main()
{
object oPC = OBJECT_SELF;
if(!GetHasFeat(FEAT_TURN_UNDEAD, oPC))
SpeakStringByStrRef(40550);
else
{
int nList = GetPrimaryBladeMagicClass(oPC);
int nLast = GetLocalInt(oPC, "ManeuverExpended" + IntToString(nList));
int nMove = GetLocalInt(oPC, "ManeuverExpended" + IntToString(nList) + IntToString(nLast));
FloatingTextStringOnCreature(GetManeuverName(nMove) + " is recovered", oPC, FALSE);
DeleteLocalInt(oPC, "ManeuverExpended" + IntToString(nList) + IntToString(nLast));
SetLocalInt(oPC, "ManeuverExpended" + IntToString(nList), nLast - 1);
DecrementRemainingFeatUses(oPC, FEAT_TURN_UNDEAD);
}
}