Fixed waypoints appearing unlocked even though they were reportedly locked
It would only set in DEBUG mode to unlock all, so I've changed to a config in the [Game-Server] section named "UnlockAllWaypoints".
This commit is contained in:
parent
61005bb1b9
commit
3d123f409f
@ -4093,12 +4093,7 @@ public class Player : Actor, IMessageConsumer, IUpdateable
|
||||
},
|
||||
SkillSlotEverAssigned = 0x0F, //0xB4,
|
||||
PlaytimeTotal = Toon.TimePlayed,
|
||||
#if DEBUG
|
||||
WaypointFlags = 0x0000ffff,
|
||||
#else
|
||||
WaypointFlags = this.World.Game.WaypointFlags,
|
||||
#endif
|
||||
|
||||
WaypointFlags = GameServerConfig.Instance.UnlockAllWaypoints ? 0x0000ffff : this.World.Game.WaypointFlags,
|
||||
HirelingData = new HirelingSavedData()
|
||||
{
|
||||
HirelingInfos = HirelingInfo,
|
||||
|
||||
@ -187,7 +187,18 @@ namespace DiIiS_NA.GameServer
|
||||
get => GetFloat(nameof(HealthPotionCooldown), 30f);
|
||||
set => Set(nameof(HealthPotionCooldown), value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Unlocks all waypoints in the campaign.
|
||||
/// </summary>
|
||||
public bool UnlockAllWaypoints
|
||||
{
|
||||
get => GetBoolean(nameof(UnlockAllWaypoints), false);
|
||||
set => Set(nameof(UnlockAllWaypoints), value);
|
||||
}
|
||||
|
||||
public static GameServerConfig Instance { get; } = new();
|
||||
|
||||
|
||||
private GameServerConfig() : base("Game-Server")
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
user.block.title