Skip to content

Commit 0ec6164

Browse files
authored
feat: simplified addregeneration method (#610)
Update Player.cs
1 parent 837340f commit 0ec6164

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

EXILED/Exiled.API/Features/Player.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3514,6 +3514,13 @@ public void AddAhp(float amount, float limit = 75f, float decay = 1.2f, float ef
35143514
.ServerAddProcess(amount, limit, decay, efficacy, sustain, persistant);
35153515
}
35163516

3517+
/// <summary>
3518+
/// Adds a new <see cref="RegenerationProcess"/> to the player.
3519+
/// </summary>
3520+
/// <param name="rate">Health points regenerated per second.</param>
3521+
/// <param name="duration">Total duration of the regeneration (in seconds).</param>
3522+
public void AddRegeneration(float rate, float duration) => AddRegeneration(0, rate, duration, 1f, 1f);
3523+
35173524
/// <summary>
35183525
/// Adds a new <see cref="RegenerationProcess"/> to the player.
35193526
/// </summary>

0 commit comments

Comments
 (0)