Fix counter attack, divine cards

This commit is contained in:
FrazeRIP
2025-11-12 23:44:20 -06:00
parent 24656aba1a
commit edbae155bd
4 changed files with 94 additions and 36 deletions

View File

@@ -12,14 +12,10 @@ namespace Continentis.Mods.Basic.Buffs
Initialize(BuffType.Positive, BuffDispelLevel.Strong);
this.contentSubmodule = new ContentSubmodule(this)
.AddParameterGetter("Stack", () => actionCountSubmodule.remainingCount.ToString());
.AddParameterGetter("Stack", () => unitedStackSubmodule.stackAmount.ToString());
this.iconSubmodule = new IconSubmodule(this);
this.unitedStackSubmodule = new UnitedStackSubmodule(this, true, -1, stack, true);
this.coreAttributeSubmodule = new CoreAttributeSubmodule(this);
this.coreAttributeSubmodule.numericChange.Add("PhysicsDamageDealtOffset", stack);
this.eventSubmodule = new EventSubmodule(this);
this.eventSubmodule.onGetAttacked.Add(this.GetType().FullName, new PrioritizedAction<AttackResult>(atkResult =>
{
@@ -33,12 +29,8 @@ namespace Continentis.Mods.Basic.Buffs
if (FindExistingSameBuff(out existingBuff))
{
existingBuff.unitedStackSubmodule.ModifyStack(this.unitedStackSubmodule.stackAmount);
int newStack = existingBuff.unitedStackSubmodule.stackAmount;
existingBuff.coreAttributeSubmodule.numericChange["PhysicsDamageDealtOffset"] = newStack;
return false;
}
return true;
}
}

View File

@@ -116,7 +116,7 @@ MonoBehaviour:
index: 14
isKeyDuplicated: 0
- Key: MaximumStamina
Value: 2
Value: 99
index: 15
isKeyDuplicated: 0
- Key: MaximumMana