return false; }   if ( entity.isShutDown() || !entity.getCrew().isActive() ) { return false; }   if ( entity.isSpotting() ) {
    public static boolean canMechFindClub(Game game, int entityId) {        final Entity entity = game.getEntity(entityId);        if ( null == entity.getPosition() ) {            return false;        }        final Hex hex = game.board.getHex(entity.getPosition());        //Non bipeds can't        if ( entity.getMovementType() != Entity.MovementType.BIPED ) {            return false;        }        //Check game options        if (game.getOptions().booleanOption("no_clan_physical") &&            entity.isClan()) {            return false;        }        // The hex must contain woods or rubble from        // a medium, heavy, or hardened building.        //TODO: missing limbs are clubs.        if ( hex.levelOf(Terrain.WOODS) < 1 &&             hex.levelOf(Terrain.RUBBLE) < Building.MEDIUM ) {            return false;        }        // also, need shoulders and hands        if (!entity.hasWorkingSystem(Mech.ACTUATOR_SHOULDER, Mech.LOC_RARM)        || !entity.hasWorkingSystem(Mech.ACTUATOR_SHOULDER, Mech.LOC_LARM)        || !entity.hasWorkingSystem(Mech.ACTUATOR_HAND, Mech.LOC_RARM)        || !entity.hasWorkingSystem(Mech.ACTUATOR_HAND, Mech.LOC_LARM)) {            return false;        }        // and last, check if you already have a club, greedy        if (clubMechHas(entity) != null) {            return false;        }        return true;    }