Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very WIP PR to add a map generator #54

Open
wants to merge 8 commits into
base: DoorDev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion BaseClasses.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ def __init__(self, player, name, type, entrance=None):

# logical properties
# self.connected = False # combine with Dest?
self.dest = None
self.dest = None # The door this door leads to, if any
self.blocked = False # Indicates if the door is normally blocked off as an exit. (Sanc door or always closed)
self.stonewall = False # Indicate that the door cannot be enter until exited (Desert Torches, PoD Eye Statue)
self.smallKey = False # There's a small key door on this side
Expand Down
2 changes: 1 addition & 1 deletion CLI.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def parse_settings():
"keyshuffle": False,
"bigkeyshuffle": False,
"keysanity": False,
"door_shuffle": "basic",
"door_shuffle": "crossed",
"experimental": False,
"dungeon_counters": "default",

Expand Down
7 changes: 7 additions & 0 deletions Controller.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import DungeonRandomizer




DungeonRandomizer.start()

3 changes: 3 additions & 0 deletions DoorShuffle.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ def vanilla_key_logic(world, player):
def switch_dir(direction):
return oppositemap[direction]

def switch_dir_safe(direction):
return oppositemap.get(direction)


def convert_key_doors(key_doors, world, player):
result = []
Expand Down
4 changes: 4 additions & 0 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
from ItemList import generate_itempool, difficulties, fill_prizes
from Utils import output_path, parse_player_names

import Mapper

__version__ = '0.0.21dev'


Expand Down Expand Up @@ -157,6 +159,8 @@ def main(args, seed=None, fish=None):
player
)
)
Mapper.map(world)


logger.info(world.fish.translate("cli","cli","fill.world"))

Expand Down
Loading