More mutation test scripts

More mutation test scripts.
This commit is contained in:
Jaysyn904
2022-03-20 17:04:14 -04:00
parent d05b6f5971
commit c8f548cf57
24 changed files with 648 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
//::///////////////////////////////////////////////////////////////////////////
//:: Name Dissolving Juices template test script
//:: FileName mut_t_dissolv.nss
//:: Copyright (c) 2022 NWNDS
//::///////////////////////////////////////////////////////////////////////////
/*
Dissolving Juices (Plant)
The plant can secrete a fluid that does 1d6 + CON modifier of acid damage each
round of contact for up to one minute. The plant can secrete the fluid once
every four hours.
(Grapple, Acid Shealth, melee acid damage, 4 hour cooldown)
*/
//:://////////////////////////////////////////////////////////////////////////
//:: 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_DISSOLVING_JUICES, oPC))
{
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
}
}