Skip to content

Commit

Permalink
Various
Browse files Browse the repository at this point in the history
* Fix returns in draw routine
* Correctly hide doors which aren't accessible
* Correctly propogate lit status of rooms
  • Loading branch information
KrisDavie committed Oct 3, 2023
1 parent 7402bb4 commit faec701
Show file tree
Hide file tree
Showing 3 changed files with 210 additions and 164 deletions.
2 changes: 2 additions & 0 deletions DoorsTracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,8 @@ async def sni_probe(mainWindow, args: argparse.Namespace, forced_autotrack: bool

if eg_tile not in dark_tiles or not is_dark:
dp_content.auto_draw_player(dp_content, current_x, current_y, eg_tile)
else:
dp_content.canvas.delete("player")

if (previous_tile != eg_tile and previous_tile == None) or (was_mirroring and data["mirror"] != "0f"):
previous_tile = eg_tile
Expand Down
6 changes: 4 additions & 2 deletions data/doors_data.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from data.worlds_data import World
from collections import defaultdict
from typing import Union, List, Tuple, Dict
from typing import Union, List, Tuple, Dict, DefaultDict


def add_manual_drop(source, source_eg_tile, dest_eg_tile, dest_region=None):
Expand Down Expand Up @@ -50,8 +50,9 @@ def add_manual_drop(source, source_eg_tile, dest_eg_tile, dest_region=None):
(10, 11),
(11, 0),
}
door_coordinates: DefaultDict[Tuple[int, int], List[dict[str, Union[str, int]]]] = defaultdict(list)

door_coordinates: Dict[Tuple[int, int], List[dict[str, Union[str, int]]]] = {
door_coordinates.update({
(1, 6): [
{
"x": 57,
Expand Down Expand Up @@ -6158,6 +6159,7 @@ def add_manual_drop(source, source_eg_tile, dest_eg_tile, dest_region=None):
}
],
}
)

dungeon_lobbies = {
World.CastleTower: ["Agahnims Tower"],
Expand Down
Loading

0 comments on commit faec701

Please sign in to comment.