Added NWN Dark Sun module contents
Added NWN Dark Sun module contents.
This commit is contained in:
22
nwnds_module/lib_psionrest.nss
Normal file
22
nwnds_module/lib_psionrest.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
#include "lib_psionic"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC=OBJECT_SELF;
|
||||
object oWeap=GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC);
|
||||
object oHide=GetItemInSlot(INVENTORY_SLOT_CARMOUR, oPC);
|
||||
|
||||
if(GetEffectivePsionicLevel(oPC)<=0) return;
|
||||
|
||||
PSPCheck(oPC);
|
||||
SetPSP(oPC, GetMaxPSP(oPC));
|
||||
|
||||
if(GetTag(oWeap)=="Ps_PsychBlade_it")
|
||||
DestroyObject(oWeap);
|
||||
|
||||
if(GetTag(oHide)=="Ps_CosAware_it")
|
||||
DestroyObject(oHide);
|
||||
|
||||
SetEnhancement(oPC, PSIONIC_ENH_NONE);
|
||||
|
||||
}
|
Reference in New Issue
Block a user