All pastes #371238 Raw Edit

Stuff

public text v1 · immutable
#371238 ·published 2007-02-25 05:05 UTC
rendered paste body
//::///////////////////////////////////////////////
//:: [Fast Healing Feats]
//:: [script_name_here.nss]
//:://////////////////////////////////////////////
//:: Grants a creature with the fast Healing feats 
//:: the appropriate regeneration.
//:://////////////////////////////////////////////
//:: Created By: Silver
//:: Created On: June 8, 2005
//:://////////////////////////////////////////////

#include "inc_item_props"
#include "prc_feat_const"

void main()
{
    //Declare main variables.
    object oPC = OBJECT_SELF;
    object oSkin = GetPCSkin(oPC);

	int nFHeal = GetHasFeat(FAST_HEALING_3,oPC) ? 9 :
	             GetHasFeat(FAST_HEALING_2,oPC) ? 6 :
	             GetHasFeat(FAST_HEALING_1,oPC) ? 3 :
	             -1;

    SetCompositeBonus(oSkin, "DragonDisciple_FastHealing", nFHeal, ITEM_PROPERTY_REGENERATION);
}