Server sets the condition of an item back to 100 when the item is fixed
This commit is contained in:
@@ -1854,6 +1854,11 @@ namespace Barotrauma
|
|||||||
if (!FixRequirements[requirementIndex].CanBeFixed(c.Character)) return;
|
if (!FixRequirements[requirementIndex].CanBeFixed(c.Character)) return;
|
||||||
|
|
||||||
FixRequirements[requirementIndex].Fixed = true;
|
FixRequirements[requirementIndex].Fixed = true;
|
||||||
|
if (condition <= 0.0f && FixRequirements.All(f => f.Fixed))
|
||||||
|
{
|
||||||
|
Condition = 100.0f;
|
||||||
|
}
|
||||||
|
|
||||||
GameMain.Server.CreateEntityEvent(this, new object[] { NetEntityEvent.Type.Status });
|
GameMain.Server.CreateEntityEvent(this, new object[] { NetEntityEvent.Type.Status });
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user