Added PnP Dire Rat.

Added PnP Dire Rat.
This commit is contained in:
Jaysyn904
2021-07-21 17:48:43 -04:00
parent 552f1686c8
commit b01c5cc7db
10849 changed files with 171143 additions and 1 deletions

View File

@@ -0,0 +1,37 @@
/************************************
* Cannibalize *
* *
* Cost: 0 *
* Power Score: Con *
* *
*************************************/
#include "lib_psionic"
void main()
{
object oPC=OBJECT_SELF;
int nCost=0;
int nPowerScore=GetAbilityScore(oPC, ABILITY_CONSTITUTION);
int nCon=GetAbilityScore(oPC, ABILITY_CONSTITUTION);
if (nCon==3)
{
FloatingTextStringOnCreature("You do not have enough constitution.", oPC, FALSE);
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(292), oPC);
return;
}
if (!PowerCheck(oPC, nCost, nPowerScore, FEAT_PSIONIC_CANNIBALIZE, TRUE)) return;
if (GetIsImmune(oPC, IMMUNITY_TYPE_ABILITY_DECREASE))
{
FloatingTextStringOnCreature("You are immune to the draining effects of this power.", oPC, FALSE);
ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(292), oPC);
return;
}
SetLocalObject(GetModule(), "Cani", oPC);
ExecuteScript("ps_cani2", GetModule());
}