core: rip out RegionType and rework Region class (#814)

This commit is contained in:
alwaysintreble
2023-02-13 18:06:43 -06:00
committed by GitHub
parent f7a0542898
commit 7cbeb8438b
48 changed files with 1324 additions and 937 deletions

View File

@@ -6,7 +6,7 @@ from .Locations import lookup_name_to_id
from .Rules import set_rules, location_rules
from .Regions import locations_by_region, connectors
from .Options import options
from BaseClasses import Region, Item, Location, RegionType, Entrance, ItemClassification
from BaseClasses import Region, Item, Location, Entrance, ItemClassification
class OriBlindForest(World):
@@ -31,7 +31,7 @@ class OriBlindForest(World):
set_rules = set_rules
def create_region(self, name: str):
return Region(name, RegionType.Generic, name, self.player, self.multiworld)
return Region(name, self.player, self.multiworld)
def create_regions(self):
world = self.multiworld