static bool Prefix(MapRoom __instance)
        {
            if (!PlayerControl.LocalPlayer.isPlayerRole(Role.Engineer))
            {
                return(true);
            }
            if (!PlayerTools.canEngineerUseAbility())
            {
                return(false);
            }

            PlayerControl.LocalPlayer.getModdedControl().UsedAbility = true;
            Rpc <FixLightsRpc> .Instance.Send(data : true, immediately : true);

            return(false);
        }
Exemplo n.º 2
0
        static bool Prefix(MapRoom __instance)
        {
            if (!PlayerControl.LocalPlayer.isPlayerRole(Role.Engineer))
            {
                return(true);
            }

            if (!PlayerTools.canEngineerUseAbility())
            {
                return(false);
            }

            PlayerControl.LocalPlayer.getModdedControl().UsedAbility = true;
            ShipStatus.Instance.RpcRepairSystem(SystemTypes.Reactor, 16);

            return(false);
        }