v1.5.9.1 (Summer Update Hotfix 2)

This commit is contained in:
Regalis11
2024-06-27 16:46:33 +03:00
parent 85e5d806e6
commit 4f556236b8
31 changed files with 410 additions and 131 deletions
@@ -475,6 +475,16 @@ namespace Barotrauma.Networking
get;
private set;
}
[Serialize(100f, IsPropertySaveable.Yes)]
/// <summary>
/// Percentage modifier for the cost of hiring a new character to replace a permanently killed one.
/// </summary>
public float ReplaceCostPercentage
{
get;
private set;
}
[Serialize(true, IsPropertySaveable.Yes)]
/// <summary>
@@ -647,6 +657,8 @@ namespace Barotrauma.Networking
set
{
if (respawnMode == value) { return; }
//can't change this when a round is running (but clients can, if the server says so, e.g. when a client joins and needs to know what it's set to despite a round being running)
if (GameMain.NetworkMember is { GameStarted: true, IsServer: true }) { return; }
respawnMode = value;
ServerDetailsChanged = true;
}