Displaying the condition of contained items in the inventory slot of the parent item (i.e. the amount of oxygen left in a diving suit is visible without highlighting the suit), some debug logging, colored speech bubbles
This commit is contained in:
@@ -469,7 +469,7 @@ namespace Barotrauma
|
||||
|
||||
var item = new Item(screwdriverPrefab, Vector2.Zero, null);
|
||||
|
||||
dummyCharacter.Inventory.TryPutItem(item, new List<LimbSlot>() {LimbSlot.RightHand}, false);
|
||||
dummyCharacter.Inventory.TryPutItem(item, new List<InvSlotType>() {InvSlotType.RightHand}, false);
|
||||
|
||||
wiringToolPanel = CreateWiringPanel();
|
||||
}
|
||||
@@ -537,7 +537,7 @@ namespace Barotrauma
|
||||
|
||||
var wire = new Item(userData as ItemPrefab, Vector2.Zero, null);
|
||||
|
||||
int slotIndex = dummyCharacter.Inventory.FindLimbSlot(LimbSlot.LeftHand);
|
||||
int slotIndex = dummyCharacter.Inventory.FindLimbSlot(InvSlotType.LeftHand);
|
||||
|
||||
//if there's some other type of wire in the inventory, remove it
|
||||
existingWire = dummyCharacter.Inventory.Items[slotIndex];
|
||||
|
||||
Reference in New Issue
Block a user