/** Processes a Piloting Skill check. Returns true if check succeeds, false otherwise. */ public static boolean rollPiloting(int modifier, MechRemote mech) { try { if (mech.isShutdown() || mech.getMW() .isUnconscious()) // If mech is shutdown or mechwarrior is unconscious, we fail and // fall automatically { mech.fall(); return false; } boolean pilotingCheck = checkPiloting(modifier, mech); if (pilotingCheck == false) // See if pilot can avoid fall { mech.fall(); return false; } mech.getOwner().addOutput("Mech avoided fall!"); } catch (java.rmi.RemoteException e) { System.out.println("Rules RemoteException!"); } return true; }