about summary refs log tree commit diff stats
path: root/data/maps/the_graveyard/rooms/Inside.txtpb
blob: 1f58d3fbed91421cd47d4623d678f9a6755df181 (plain) (blame)
1
2
3
4
5
6
7
8
generated by cgit-pink 1.4.1 (git 2.36.1) at 2026-01-13 00:13:19 +0000
 


span class="p">) -> Region:
    new_region = Region(room.name, world.player, world.multiworld)

    for location in world.player_logic.locations_by_room.get(room.id, {}):
        new_location = Lingo2Location(world.player, world.static_logic.location_id_to_name[location.code],
                                      location.code, new_region)
        new_region.locations.append(new_location)

    return new_region


def create_regions(world: "Lingo2World"):
    regions = {
        "Menu": Region("Menu", world.player, world.multiworld)
    }

    for room in world.static_logic.objects.rooms:
        regions[room.name] = create_region(room, world)

    world.multiworld.regions += regions.values()