(edc1704a5) Added: A checkmark and small delay before removal for completed objectives
This commit is contained in:
@@ -804,8 +804,7 @@ namespace Barotrauma
|
||||
var newItem = Item.Load(itemElement, inventory.Owner.Submarine, createNetworkEvent: true);
|
||||
if (newItem == null) { continue; }
|
||||
|
||||
if (!MathUtils.NearlyEqual(newItem.Condition, newItem.MaxCondition) &&
|
||||
GameMain.NetworkMember != null && GameMain.NetworkMember.IsServer)
|
||||
if (!MathUtils.NearlyEqual(newItem.Condition, newItem.MaxCondition))
|
||||
{
|
||||
GameMain.NetworkMember.CreateEntityEvent(newItem, new object[] { NetEntityEvent.Type.Status });
|
||||
}
|
||||
|
||||
@@ -192,7 +192,6 @@ namespace Barotrauma.Items.Components
|
||||
get { return name; }
|
||||
}
|
||||
|
||||
//TODO: this shouldn't be saved as-is, causes tags ("ItemMsgPressSelect" etc) to be converted into actual texts when saving the subs
|
||||
[Editable, Serialize("", true)]
|
||||
public string Msg
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user