Core: add generic interface to add ER data to hints (#1014)

This commit is contained in:
Fabian Dill
2022-09-18 14:30:43 +02:00
committed by GitHub
parent 58f66e0f42
commit c2d69cb05e
5 changed files with 52 additions and 35 deletions

View File

@@ -4,6 +4,10 @@ import typing
from BaseClasses import Region, Entrance, RegionType
def is_main_entrance(entrance: Entrance) -> bool:
return entrance.parent_region.type in {RegionType.DarkWorld, RegionType.LightWorld, RegionType.Generic}
def create_regions(world, player):
world.regions += [