static void Postfix(Vector3 clickPos, Pawn pawn, ref List <FloatMenuOption> __result)
 {
     if (!pawn.Drafted)
     {
         GUC_FloatMenuUtility.AddMountingOptions(clickPos, pawn, __result);
     }
 }
Exemplo n.º 2
0
 static void Postfix(Vector3 clickPos, Pawn pawn, List <FloatMenuOption> opts)
 {
     foreach (LocalTargetInfo current in GenUI.TargetsAt(clickPos, TargetingParameters.ForAttackHostile(), true))
     {
         if ((current.Thing is Pawn target) && target.RaceProps.Animal)
         {
             GUC_FloatMenuUtility.AddMountingOptions(target, pawn, opts);
         }
     }
 }
        static void Postfix(Vector3 clickPos, Pawn pawn, List <FloatMenuOption> opts)
        {
            if (Base.IsAllowedInModOptions(pawn.def.defName)) //don't allow mechs that are mountable to be mounted
            {
                return;
            }

            foreach (LocalTargetInfo current in GenUI.TargetsAt(clickPos, TargetingParameters.ForAttackHostile(), true))
            {
                if ((current.Thing is Pawn target) && target.IsHacked())
                {
                    GUC_FloatMenuUtility.AddMountingOptions(target, pawn, opts);
                }
            }
        }
Exemplo n.º 4
0
 static void Postfix(Vector3 clickPos, Pawn pawn, List <FloatMenuOption> opts)
 {
     GUC_FloatMenuUtility.AddMountingOptions(clickPos, pawn, opts);
 }