Skip to content

Commit

Permalink
ForceMinimapVisibility on GameServerConfig.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdroppy committed Feb 12, 2023
1 parent fc36094 commit 4d3272c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/DiIiS-NA/D3-GameServer/GSSystem/MapSystem/Scene.cs
Original file line number Diff line number Diff line change
Expand Up @@ -546,17 +546,15 @@ or 313853 or 311313 or 311301 or 313857
MiniMapVisibility = true
};
}
else

return new MapRevealSceneMessage
{
return new MapRevealSceneMessage
{
ChunkID = GlobalID,
SceneSNO = SceneSNO.Id,
Transform = Transform,
WorldID = World.GlobalID,
MiniMapVisibility = false
};
}
ChunkID = GlobalID,
SceneSNO = SceneSNO.Id,
Transform = Transform,
WorldID = World.GlobalID,
MiniMapVisibility = GameServerConfig.Instance.ForceMinimapVisibility
};
}

#endregion
Expand Down
6 changes: 6 additions & 0 deletions src/DiIiS-NA/D3-GameServer/GameServerConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,12 @@ public float NephalemRiftOrbsChance
get => GetFloat(nameof(NephalemRiftOrbsChance), 0f);
set => Set(nameof(NephalemRiftOrbsChance), value);
}

public bool ForceMinimapVisibility
{
get => GetBoolean(nameof(ForceMinimapVisibility), false);
set => Set(nameof(ForceMinimapVisibility), value);
}

#endregion
public static GameServerConfig Instance { get; } = new();
Expand Down

0 comments on commit 4d3272c

Please sign in to comment.