31 lines
587 B
C#
31 lines
587 B
C#
namespace Gameplay.Buff
|
|
{
|
|
public class BuffDeadRetreat : BaseBuff
|
|
{
|
|
|
|
public float morale2DmgRate = 1f;
|
|
|
|
protected override void _OnInit()
|
|
{
|
|
base._OnInit();
|
|
|
|
morale2DmgRate = _TryGetFloatParam(0);
|
|
}
|
|
|
|
protected override void _OnAdd()
|
|
{
|
|
base._OnAdd();
|
|
|
|
owner.statusData.isDeadRetreat = true;
|
|
}
|
|
|
|
protected override void _OnRemove()
|
|
{
|
|
base._OnRemove();
|
|
|
|
owner.statusData.isDeadRetreat = false;
|
|
}
|
|
|
|
}
|
|
}
|