Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions code/HellMapManager/Helpers/Mapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ public List<string> Dilate(List<string> src, int iterations)
if (!Walked.ContainsKey(step.To))
{
Walked[step.To] = step;
var sc = step.Exit as RoomConditionExit;
if (sc != null)
{
Shortcuts.Remove(sc);
}
AddRoomWalkingSteps(step, pending, step.To, step.TotalCost);
}
}
Expand Down Expand Up @@ -286,7 +291,6 @@ public QueryResult QueryPathAll(string start, List<string> target)
//用于在有某些限制条件的情况下,是指最新的上下文,然后尽可能多的遍历原路径中的房间
public QueryResult QueryPathOrdered(string start, List<string> target)
{
InitShortcuts();
target.RemoveAll(x => x == "");
if (target.Count == 0 || start == "")
{
Expand Down Expand Up @@ -331,7 +335,7 @@ private List<Exit> GetRoomExitsWithoutShortcuts(Room room)
}
//验证并转换路径
//如果路径无效,返回空
public WalkingStep? ValidateToWalkingStep(WalkingStep? prev, string from, Exit exit, int TotalCost)
private WalkingStep? ValidateToWalkingStep(WalkingStep? prev, string from, Exit exit, int TotalCost)
{
if (exit.To == "" || exit.To == from)
{
Expand All @@ -351,7 +355,7 @@ private List<Exit> GetRoomExitsWithoutShortcuts(Room room)
//转换
return WalkingStep.FromExit(prev, from, exit, cost, TotalCost);
}
public WalkingStep? ValidateShortcutToWalkingStep(WalkingStep? prev, string from, RoomConditionExit shortcut, int TotalCost)
private WalkingStep? ValidateShortcutToWalkingStep(WalkingStep? prev, string from, RoomConditionExit shortcut, int TotalCost)
{
if (shortcut.To == "" || shortcut.To == from)
{
Expand Down
2 changes: 1 addition & 1 deletion code/HellMapManager/Misc/AppVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace HellMapManager.Misc;

public class AppVersion(int major, int minor, int patch)
{
public static AppVersion Current { get; } = new(0, 20260403, 0);
public static AppVersion Current { get; } = new(0, 20260420, 0);
public int Major { get; } = major;
public int Minor { get; } = minor;
public int Patch { get; } = patch;
Expand Down