23 lines
415 B
C#
23 lines
415 B
C#
|
|
namespace Gameplay.Buff
|
|||
|
|
{
|
|||
|
|
public class BuffRecoverHp : BaseBuff
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
private int _recoverValue;
|
|||
|
|
|
|||
|
|
protected override void _OnInit()
|
|||
|
|
{
|
|||
|
|
base._OnInit();
|
|||
|
|
_recoverValue = _TryGetIntParam(0);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected override void _OnTrigger()
|
|||
|
|
{
|
|||
|
|
base._OnTrigger();
|
|||
|
|
|
|||
|
|
owner.RecoverHp(_recoverValue);
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|