Added "user" parameter to Inventory.PutItem and Inventory.TryPutItem. + More descriptive wiring logging: the logs don't list all the wires in a connectionpanel but only the changes a player does to the wiring. Disconnecting wires by picking them up and wiring done by the host are also logged now.
This commit is contained in:
@@ -724,7 +724,7 @@ namespace Barotrauma
|
||||
|
||||
var item = new Item(screwdriverPrefab, Vector2.Zero, null);
|
||||
|
||||
dummyCharacter.Inventory.TryPutItem(item, new List<InvSlotType>() {InvSlotType.RightHand});
|
||||
dummyCharacter.Inventory.TryPutItem(item, null, new List<InvSlotType>() { InvSlotType.RightHand });
|
||||
|
||||
wiringToolPanel = CreateWiringPanel();
|
||||
}
|
||||
@@ -816,7 +816,7 @@ namespace Barotrauma
|
||||
existingWire.Remove();
|
||||
}
|
||||
|
||||
dummyCharacter.Inventory.TryPutItem(wire, slotIndex, false);
|
||||
dummyCharacter.Inventory.TryPutItem(wire, slotIndex, false, dummyCharacter);
|
||||
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user