LimbSlot combinations for pickable items ("Any,RightHand+LeftHand"...)

This commit is contained in:
Regalis
2015-11-19 21:24:49 +02:00
parent a46f724f1f
commit 8ec7fd44ff
18 changed files with 272 additions and 152 deletions
+2 -2
View File
@@ -186,12 +186,12 @@ namespace Barotrauma
}
//which type of inventory slots (head, torso, any, etc) the item can be placed in
public LimbSlot AllowedSlots
public List<LimbSlot> AllowedSlots
{
get
{
Pickable p = GetComponent<Pickable>();
return (p==null) ? LimbSlot.Any : p.AllowedSlots;
return (p==null) ? new List<LimbSlot>() { LimbSlot.Any } : p.AllowedSlots;
}
}