Further file organization
Further file organization
This commit is contained in:
29
nwn/nwnprc/trunk/psionics/psi_aug_select_d.nss
Normal file
29
nwn/nwnprc/trunk/psionics/psi_aug_select_d.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Augment Psionics - Set single digit
|
||||
//:: psi_aug_select_d
|
||||
//:://////////////////////////////////////////////
|
||||
/** @file
|
||||
Sets the first digit of augmentation profile
|
||||
index to the selected number.
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Ornedan
|
||||
//:: Created On: 01.05.2005
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "prc_alterations"
|
||||
#include "psi_inc_augment"
|
||||
|
||||
|
||||
const int START = 2359; // Spells.2da of 0
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = OBJECT_SELF;
|
||||
int nVal = ((GetLocalInt(oPC, PRC_CURRENT_AUGMENT_PROFILE) / 10) * 10) // Remove the old first digit
|
||||
+ GetSpellId() - START;
|
||||
|
||||
SetLocalInt(oPC, PRC_CURRENT_AUGMENT_PROFILE, nVal);
|
||||
// "Current augmentation"
|
||||
FloatingTextStringOnCreature(GetStringByStrRef(16823589) + " - " + UserAugmentationProfileToString(GetUserAugmentationProfile(oPC, nVal)), oPC, FALSE);
|
||||
}
|
Reference in New Issue
Block a user