def random_door_type(door, partner, world, player, type_a, type_b, room_a, room_b):
    r_kind = random.choices([DoorKind.Normal, DoorKind.Bombable, DoorKind.Dashable], [5, 2, 3], k=1)[0]
    if (r_kind != DoorKind.Normal):
        if (door.type == DoorType.Normal):
            add_pair(door, partner, world, player)
        if (type_a != r_kind):
            room_a.change(door.doorListPos, r_kind)
        if (type_b != r_kind):
            room_b.change(partner.doorListPos, r_kind)
        spoiler_type = ('Bomb Door' if (r_kind == DoorKind.Bombable) else 'Dash Door')
        world.spoiler.set_door_type(((door.name + ' <-> ') + partner.name), spoiler_type, player)
def random_door_type(door, partner, world, player, type_a, type_b, room_a, room_b):
    r_kind = random.choices([DoorKind.Normal, DoorKind.Bombable, DoorKind.Dashable], [5, 2, 3], k=1)[0]
    if (r_kind != DoorKind.Normal):
        if (door.type == DoorType.Normal):
            add_pair(door, partner, world, player)
        if (type_a != r_kind):
            room_a.change(door.doorListPos, r_kind)
        if (type_b != r_kind):
            room_b.change(partner.doorListPos, r_kind)
        spoiler_type = ('Bomb Door' if (r_kind == DoorKind.Bombable) else 'Dash Door')
        world.spoiler.set_door_type(((door.name + ' <-> ') + partner.name), spoiler_type, player)