Open Popeye4242 opened 3 years ago
I have simplified the set infected logic by using the same rpc for every role already, https://github.com/NotHunter101/ExtraRolesAmongUs/blob/main/ExtraRoles/Rpc/SetRoleRpc.cs
However I think ResetVariables and SetInfeccted should be merged together and only be sent once. Currently for every set role a rpc is sent.
I have simplified the set infected logic by using the same rpc for every role already, https://github.com/NotHunter101/ExtraRolesAmongUs/blob/main/ExtraRoles/Rpc/SetRoleRpc.cs
However I think ResetVariables and SetInfeccted should be merged together and only be sent once. Currently for every set role a rpc is sent.