2025/09/16 Update

XP System was turned off somehow.
This commit is contained in:
Jaysyn904
2025-09-16 12:36:52 -04:00
parent 0b5b6912d2
commit aa4680cac9
9 changed files with 19 additions and 13 deletions

View File

@@ -107,7 +107,7 @@ void ApplyGreenboundEffects(object oCreature, int nBaseHD)
int nMaxHP = GetMaxPossibleHP(oCreature);
SetCurrentHitPoints(oCreature, nMaxHP);
DoDebug("nMaxHP is: "+IntToString(nMaxHP)+",");
if(DEBUG) DoDebug("nMaxHP is: "+IntToString(nMaxHP)+",");
//:: Resistance to Cold and Electricity (Ex): A greenbound creature gains resistance 10 to cold and electricity.
eGreenbound = EffectLinkEffects(eGreenbound, EffectDamageResistance(DAMAGE_TYPE_ELECTRICAL, 10));
@@ -176,14 +176,14 @@ void main ()
//:: No Template Stacking
if(GetLocalInt(oBaseCreature, "TEMPLATE_GREENBOUND") > 0)
{
if(DEBUG) DoDebug("No Template Stacking");
DoDebug("No Template Stacking");
return;
}
//:: Creatures & NPCs only
if ((GetObjectType(oBaseCreature) != OBJECT_TYPE_CREATURE) || (GetIsPC(oBaseCreature) == TRUE))
{
if(DEBUG) DoDebug("Not a creature");
DoDebug("Not a creature");
return;
}
/*
@@ -210,14 +210,13 @@ void main ()
json jFinalCreature;
//:: The creature's type changes to plant with the appropriate augmented subtype.
//:: Hit Dice: Change all current Hit Dice to d8s.
jNewCreature = JsonModifyRacialType(jBaseCreature, RACIAL_TYPE_PLANT);
//:: Armor Class: A greenbound creature's natural armor bonus improves by 6 over that of the base creature.
jNewCreature = json_IncreaseBaseAC(jNewCreature, 6);
//:: Abilities: Increase from the base creature as follows: Str +6, Dex +2, Con +4, Cha +4.
jNewCreature = json_UpdateCreatureStats(jNewCreature, oBaseCreature, 6, 2, 4, 0, 0, 4);
jNewCreature = json_UpdateTemplateStats(jNewCreature, 6, 2, 4, 0, 0, 4);
if (GetIsObjectValid(oBaseCreature))
{
@@ -238,7 +237,7 @@ void main ()
//:: Challenge Rating: Same as the base creature +2
jFinalCreature = json_UpdateCR(jNewCreature, nBaseCR, 2);
//:: Update the creature
oNewCreature = JsonToObject(jFinalCreature, lSpawnLoc);