更新
This commit is contained in:
@@ -6,19 +6,19 @@ namespace Continentis.Mods.Basic.Buffs
|
||||
{
|
||||
public class Consolidate : CharacterCombatBuffBase
|
||||
{
|
||||
public Consolidate(int roundCount)
|
||||
public Consolidate(int count)
|
||||
{
|
||||
Initialize(BuffType.Positive, BuffDispelLevel.Strong);
|
||||
|
||||
this.contentSubmodule = new ContentSubmodule(this)
|
||||
.AddParameterGetter("Count", () => roundCountSubmodule.remainingCount.ToString());
|
||||
.AddParameterGetter("Count", () => roundFirstActionCountSubmodule.remainingCount.ToString());
|
||||
|
||||
this.iconSubmodule = new IconSubmodule(this);
|
||||
|
||||
this.roundCountSubmodule = new CountSubmodule(this, roundCount);
|
||||
this.roundFirstActionCountSubmodule = new CountSubmodule(this, count);
|
||||
|
||||
this.generalAttributeSubmodule = new GeneralAttributeSubmodule(this);
|
||||
this.generalAttributeSubmodule.numericChange.Add("KeepBlockOnActionStart", 1);
|
||||
this.generalAttributeSubmodule.numericChange.Add("KeepBlockOnRoundFirstActionStart", 1);
|
||||
}
|
||||
|
||||
public override bool OnBuffApply(out CharacterCombatBuffBase existingBuff)
|
||||
@@ -27,7 +27,7 @@ namespace Continentis.Mods.Basic.Buffs
|
||||
|
||||
if (FindExistingSameBuff(out existingBuff))
|
||||
{
|
||||
existingBuff.roundCountSubmodule.AddCount(this.roundCountSubmodule.remainingCount);
|
||||
existingBuff.roundFirstActionCountSubmodule.AddCount(this.roundFirstActionCountSubmodule.remainingCount);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user