This commit is contained in:
SoulliesOfficial
2025-10-24 09:11:22 -04:00
parent 61a397dd4c
commit 76157e3cb1
329 changed files with 8609 additions and 4549 deletions

View File

@@ -1,6 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
using SLSFramework.General;
using UnityEngine;
namespace Continentis.MainGame
@@ -17,20 +18,22 @@ namespace Continentis.MainGame
{
Positive,
Negative,
Neutral
Neutral,
Focusing
}
public abstract partial class BuffBase<T>
public abstract partial class BuffBase<T> : IPrioritized
{
public BuffType buffType;
public BuffDispelLevel dispelThreshold;
public ContentSubmodule contentSubmodule;
protected void Initialize(BuffType buffType, BuffDispelLevel dispelThreshold)
public int Priority { get; private set; }
protected void Initialize(BuffType buffType, BuffDispelLevel dispelThreshold, int priority = 0)
{
this.buffType = buffType;
this.dispelThreshold = dispelThreshold;
this.Priority = priority + (buffType == BuffType.Focusing ? 10000 : 0);
}
}
@@ -105,8 +108,8 @@ namespace Continentis.MainGame
}
/// <summary>
/// Buff被正常移除时调用。在Buff生命周期结束时调用。
/// UntriggerRemove不会调用此函数。但是此函数通常情况下绝不会被调用。
/// Buff被正常移除(包括驱散)时调用。在Buff生命周期结束时调用。
/// UntriggerRemove不会调用此函数。但是UntriggerRemove通常情况下绝不会被调用。
/// </summary>
public virtual void OnBuffRemove()
{