def calc_used_dungeon_items(builder):
    base = 4
    if (builder.bk_required and (not builder.bk_provided)):
        base += 1
    if (builder.name == 'Hyrule Castle'):
        base -= 1
    if (builder.name == 'Agahnims Tower'):
        base -= 2
    return base
def calc_used_dungeon_items(builder):
    base = 4
    if (builder.bk_required and (not builder.bk_provided)):
        base += 1
    if (builder.name == 'Hyrule Castle'):
        base -= 1
    if (builder.name == 'Agahnims Tower'):
        base -= 2
    return base