Skip to content

Commit 6fbb10a

Browse files
committed
fix: Remove breaking change
1 parent cf6d36a commit 6fbb10a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

EXILED/Exiled.API/Features/Cassie.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,21 @@ public static string ConvertNumber(int num)
192192
public static void ScpTermination(Player scp, DamageHandlerBase info)
193193
=> CassieScpTerminationAnnouncement.AnnounceScpTermination(scp.ReferenceHub, info);
194194

195+
/// <summary>
196+
/// Announces the termination of a custom SCP Number.
197+
/// </summary>
198+
/// <param name="scpNumber">SCP Number. Note that for larger numbers, C.A.S.S.I.E will pronounce the place (eg. "457" -> "four hundred fifty seven"). Spaces can be used to prevent this behavior.</param>
199+
/// <param name="info">Hit Information.</param>
200+
[Obsolete("Use this instead CustomScpTermination(string, CustomHandler)")]
201+
public static void CustomScpTermination(string scpNumber, DamageHandlers.DamageHandlerBase info)
202+
{
203+
if (scpNumber.StartsWith("SCP", StringComparison.InvariantCultureIgnoreCase))
204+
scpNumber = scpNumber.Remove(0, 3);
205+
206+
if (info is CustomHandler customHandler)
207+
CustomScpTermination(scpNumber, customHandler);
208+
}
209+
195210
/// <summary>
196211
/// Announces the termination of a custom SCP Number.
197212
/// </summary>

0 commit comments

Comments
 (0)