From 600810df6846d2ed000277464fbc3da010adf050 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 26 Jan 2025 16:52:57 +0200 Subject: [PATCH 1/2] Return AhpStat.AhpProcess instance after adding AHp --- EXILED/Exiled.API/Features/Player.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EXILED/Exiled.API/Features/Player.cs b/EXILED/Exiled.API/Features/Player.cs index c0bc8f40b3..7b65e365a0 100644 --- a/EXILED/Exiled.API/Features/Player.cs +++ b/EXILED/Exiled.API/Features/Player.cs @@ -3439,7 +3439,8 @@ public void ChangeEffectIntensity(string effectName, byte intensity, float durat /// Percent of incoming damage absorbed by this stat. /// The number of seconds to delay the start of the decay. /// Whether the process is removed when the value hits 0. - public void AddAhp(float amount, float limit = 75f, float decay = 1.2f, float efficacy = 0.7f, float sustain = 0f, bool persistant = false) + /// The instance.. + public AhpStat.AhpProcess AddAhp(float amount, float limit = 75f, float decay = 1.2f, float efficacy = 0.7f, float sustain = 0f, bool persistant = false) { ReferenceHub.playerStats.GetModule() .ServerAddProcess(amount, limit, decay, efficacy, sustain, persistant); From b4b2fb6baedbefc2e2f2ad7118affa91a5329e90 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 26 Jan 2025 16:54:03 +0200 Subject: [PATCH 2/2] return --- EXILED/Exiled.API/Features/Player.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EXILED/Exiled.API/Features/Player.cs b/EXILED/Exiled.API/Features/Player.cs index 7b65e365a0..a0ff8ffaaf 100644 --- a/EXILED/Exiled.API/Features/Player.cs +++ b/EXILED/Exiled.API/Features/Player.cs @@ -3442,7 +3442,7 @@ public void ChangeEffectIntensity(string effectName, byte intensity, float durat /// The instance.. public AhpStat.AhpProcess AddAhp(float amount, float limit = 75f, float decay = 1.2f, float efficacy = 0.7f, float sustain = 0f, bool persistant = false) { - ReferenceHub.playerStats.GetModule() + return ReferenceHub.playerStats.GetModule() .ServerAddProcess(amount, limit, decay, efficacy, sustain, persistant); }