More mutation test scripts
More mutation test scripts.
This commit is contained in:
49
_content/ga_scripts/mut_t_constrict.nss
Normal file
49
_content/ga_scripts/mut_t_constrict.nss
Normal file
@@ -0,0 +1,49 @@
|
||||
//::///////////////////////////////////////////////////////////////////////////
|
||||
//:: Name Constriction template test script
|
||||
//:: FileName mut_t_constrict.nss
|
||||
//:: Copyright (c) 2022 NWNDS
|
||||
//::///////////////////////////////////////////////////////////////////////////
|
||||
/*
|
||||
Constriction (Plant)
|
||||
The plant has branches, vines, or tendrils capable of grappling and constricting
|
||||
an opponent. The vines grant the plant a +6 to its grapple check & a slam
|
||||
attack of 1d4 damage if the plant does not already have one. Once it has
|
||||
grappled a target, it may add 1d6 damage each round it maintains the grapple.
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////////////////////////////////
|
||||
//:: Created By: Jaysyn
|
||||
//:: Created On: 22/03/20
|
||||
//:://////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
#include "prc_alterations"
|
||||
#include "prc_inc_template"
|
||||
#include "prc_racial_const"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = OBJECT_SELF;
|
||||
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_CONTINUE);
|
||||
|
||||
//:: Plants only
|
||||
int nRace = MyPRCGetRacialType(oPC);
|
||||
|
||||
if(nRace != RACIAL_TYPE_PLANT
|
||||
&& nRace != RACIAL_TYPE_SHRUBO
|
||||
&& nRace != RACIAL_TYPE_BLOOM
|
||||
&& nRace != RACIAL_TYPE_MYCO
|
||||
&& nRace != RACIAL_TYPE_CULEN
|
||||
&& nRace != RACIAL_TYPE_ENT
|
||||
&& nRace != RACIAL_TYPE_CREEP)
|
||||
{
|
||||
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
|
||||
}
|
||||
|
||||
//:: Can't get this mutation twice.
|
||||
if(GetHasTemplate(MUT_CONSTRICTION, oPC))
|
||||
{
|
||||
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user