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 @@
//::///////////////////////////////////////////////
//:: Extend Power switch
//:: psi_meta_extend
//::///////////////////////////////////////////////
/*
Switches the metapsionic feat Extend Power on or off.
*/
//:://////////////////////////////////////////////
//:: Modified By: Ornedan
//:: Modified On: 25.03.2005
//:://////////////////////////////////////////////
#include "psi_inc_psifunc"
void main()
{
object oPC = OBJECT_SELF;
// Can't activate too many feats
if(!GetLocalInt(oPC, METAPSIONIC_EXTEND_VAR) &&
GetPsionicFocusUsingFeatsActive(oPC) >= GetPsionicFocusUsesPerExpenditure(oPC))
{
FloatingTextStringOnCreature(GetStringByStrRef(16826549/*You already have the maximum amount of psionic focus expending feats active.*/), oPC, FALSE);
return;
}
SetLocalInt(oPC, METAPSIONIC_EXTEND_VAR, !GetLocalInt(oPC, METAPSIONIC_EXTEND_VAR));
FloatingTextStringOnCreature(GetStringByStrRef(16826536) + " " + (GetLocalInt(oPC, METAPSIONIC_EXTEND_VAR) ? GetStringByStrRef(63798/*Activated*/):GetStringByStrRef(63799/*Deactivated*/)), oPC, FALSE);
}