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,34 @@
//::///////////////////////////////////////////////
//:: Soulknife: Conversation - Show Psychokinetic
//:: psi_sk_conv_ps_s
//::///////////////////////////////////////////////
/*
Checks whether to show Psychokinetic and whether
it is to be added or removed.
*/
//:://////////////////////////////////////////////
//:: Created By: Ornedan
//:: Created On: 06.04.2005
//:://////////////////////////////////////////////
#include "psi_inc_soulkn"
int StartingConditional()
{
int nReturn; // Implicit init to FALSE
// Check if the flag is already present
if(GetLocalInt(GetPCSpeaker(), MBLADE_FLAGS + "_T") & MBLADE_FLAG_PSYCHOKINETIC)
{
SetCustomToken(106, GetStringByStrRef(7654)); // Remove
nReturn = TRUE;
}
// It isn't, so see if there is enough bonus left to add it
else if(GetTotalEnhancementCost(GetLocalInt(GetPCSpeaker(), MBLADE_FLAGS + "_T")) + GetFlagCost(MBLADE_FLAG_PSYCHOKINETIC) <= GetMaxEnhancementCost(GetPCSpeaker()))
{
SetCustomToken(106, GetStringByStrRef(62476)); // Add
nReturn = TRUE;
}
return nReturn;
}