Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
35 lines
1.1 KiB
Plaintext
35 lines
1.1 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Soulknife: Conversation - Show Disrupting
|
|
//:: psi_sk_conv_di_s
|
|
//::///////////////////////////////////////////////
|
|
/*
|
|
Checks whether to show Disrupting 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_DISRUPTING)
|
|
{
|
|
SetCustomToken(113, 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_DISRUPTING) <= GetMaxEnhancementCost(GetPCSpeaker()))
|
|
{
|
|
SetCustomToken(113, GetStringByStrRef(62476)); // Add
|
|
nReturn = TRUE;
|
|
}
|
|
|
|
return nReturn;
|
|
}
|