]> git.deb.at Git - rhonda/impostor.git/commit
Add Murder/Protect/Exile API without checks
authorminiduikboot <mini@duikbo.at>
Thu, 27 Feb 2025 21:34:40 +0000 (22:34 +0100)
committerminiduikboot <mini@duikbo.at>
Thu, 22 May 2025 21:50:28 +0000 (23:50 +0200)
commitbe0a0b917c0eefaa62717bb95c6ba66d64e98a00
treeed8ffffff71878ac9ac986c0e13ef6f473e906c1
parentc672e19e99c5e833d4fd14a0ccb2269011518b04
Add Murder/Protect/Exile API without checks

Force(.*)Async will perform the same function as \1Async but without
throwing exceptions. The old API is maintained for backwards
compatibility reasons.

Murder checks are now shared with the main function that handles
CheckMurder, as ProtectPlayerAsync and ExileAsync aren't used in the
code I didn't make a similar change there. Checks were also synced
between both methods
src/Impostor.Api/Net/Inner/Objects/IInnerPlayerControl.cs
src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.Api.cs
src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.cs