除了充盈都做完了
This commit is contained in:
@@ -15,6 +15,10 @@ namespace Continentis.Mods.Basic.Buffs
|
||||
{
|
||||
Initialize(BuffType.Neutral, BuffDispelLevel.DeathOnly, 100);
|
||||
|
||||
this.protectingSources = new List<Protecting>();
|
||||
|
||||
this.statusSubmodule = new StatusSubmodule(this, StatusType.Protected);
|
||||
|
||||
this.contentSubmodule = new ContentSubmodule(this);//TODO: 以后增加角色的ContentSubmodule
|
||||
|
||||
this.iconSubmodule = new IconSubmodule(this).SetTextFunctions();
|
||||
@@ -36,6 +40,13 @@ namespace Continentis.Mods.Basic.Buffs
|
||||
public override bool OnBuffApply(out CharacterCombatBuffBase existingBuff)
|
||||
{
|
||||
MainGameManager.Instance.basePrefabs.GenerateInfoText(contentSubmodule.displayName, attachedCharacter.characterView);
|
||||
|
||||
if (attachedCharacter.combatBuffSubmodule.TryGetBuffs(out List<Protecting> conflictProtectings))
|
||||
{
|
||||
//如果目标正在保护其他角色时,被保护,则应当将目标的所有Protecting Buff移除,以防止冲突.
|
||||
Debug.Log($"Conflicted Protecting buffs found, count: {conflictProtectings.Count}. Removing all.");
|
||||
conflictProtectings.For(cp => cp.Remove());
|
||||
}
|
||||
|
||||
if (FindExistingSameBuff(out existingBuff))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user