def make_ulvl_check_formula(ulvl_per_blvl, base_ulvl=0):
    """
    Returns a formula that checks if player level is same or greater than
    ulvl_per_blvl * blvl + base_ulvl.
    """
    if ulvl_per_blvl:
        formula = f"ulvl >= {ulvl_per_blvl} * blvl"
        if base_ulvl > 0:
            formula += f" + {base_ulvl}"
        elif base_ulvl < 0:
            formula += f" - {-base_ulvl}"
    elif base_ulvl > 1:
        formula = f"ulvl >= {base_ulvl}"
    else:
        formula = ""

    return formula