Mutation maintain scripts
Mutation maintain scripts.
This commit is contained in:
42
_content/ga_scripts/mut_m_im_sick.nss
Normal file
42
_content/ga_scripts/mut_m_im_sick.nss
Normal file
@@ -0,0 +1,42 @@
|
||||
//::///////////////////////////////////////////////////////////////////////////
|
||||
//:: Name Immunity: Disease template maintain script
|
||||
//:: FileName mut_m_im_sick.nss
|
||||
//:: Copyright (c) 2022 NWNDS
|
||||
//::///////////////////////////////////////////////////////////////////////////
|
||||
/*
|
||||
Immunity: Disease (Physical / Plant)
|
||||
The mutant is immune to a particular form of damage or hazard.
|
||||
|
||||
[Immune to disease]
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////////////////////////////////
|
||||
//:: Created By: Jaysyn
|
||||
//:: Created On: 22/03/25
|
||||
//:://////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#include "prc_alterations"
|
||||
#include "prc_inc_template"
|
||||
#include "prc_racial_const"
|
||||
|
||||
void main()
|
||||
{
|
||||
|
||||
//:: Declare major variables
|
||||
object oPC = OBJECT_SELF;
|
||||
object oSkin = GetPCSkin(oPC);
|
||||
int iHD = GetHitDice(oPC);
|
||||
int nBonus;
|
||||
itemproperty ipIP;
|
||||
|
||||
//:: Immunity to Disease
|
||||
ipIP = PRCItemPropertyBonusFeat(IP_CONST_FEAT_IMMUNITY_DISEASE);
|
||||
IPSafeAddItemProperty(oSkin, ipIP, 0.0, X2_IP_ADDPROP_POLICY_KEEP_EXISTING, FALSE, FALSE);
|
||||
|
||||
//:: Marker Feat
|
||||
ipIP = PRCItemPropertyBonusFeat(IP_CONST_FEAT_MUT_IMMUNITY_DISEASE);
|
||||
IPSafeAddItemProperty(oSkin, ipIP, 0.0, X2_IP_ADDPROP_POLICY_KEEP_EXISTING, FALSE, FALSE);
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user