if (Compute.clubMechHas(entity) != null) {
if (entity.getClubs().size() > 0) {
    public static boolean canMechFindClub(IGame game, int entityId) {        final Entity entity = game.getEntity(entityId);        if ( null == entity.getPosition() ) {            return false;        }        final IHex hex = game.getBoard().getHex(entity.getPosition());        //Non biped mechs can't        if ( !(entity instanceof BipedMech) ) {            return false;        }        // Is the entity active?        if ( entity.isShutDown() || !entity.getCrew().isActive() ) {            return false;        }        // Can't find clubs while spotting.        if ( entity.isSpotting() ) {            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,        // or a blown off limb        if ( hex.terrainLevel(Terrains.WOODS) < 1 &&             hex.terrainLevel(Terrains.JUNGLE) < 1 &&             hex.terrainLevel(Terrains.RUBBLE) < Building.MEDIUM &&              hex.terrainLevel(Terrains.ARMS) < 1 &&             hex.terrainLevel(Terrains.LEGS) < 1) {            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 (Compute.clubMechHas(entity) != null) {            return false;        }        return true;    }