def allowed(tool: str, region: str):
    """
    Returns whether tool is allowed at region.
    """
    # Rocky
    if region == '.':
        return tool in ('t', 'c')
    # Wet
    elif region == '=':
        return tool in ('c', 'n')
    # Narrow
    else:
        return tool in ('t', 'n')