public InventoryHumanoid(MobileEntity ent) { heldWeapon = null; bag = new List<Item>(); this.ent = ent; //super hacky, consider creating interface or something for ents that can have inventory (or just position, really) and moving up to Inventory }
public void DropWeapon(Weapon w) { if (heldWeapon == w) { heldWeapon = null; DroppedItem d = w.Drop(ent.Position); d.AddToWorld(); } }
public void AddWeapon(Weapon w) { if (heldWeapon != null) { Drop(heldWeapon); } heldWeapon = w; }
public void DropWeapon(Weapon w) { DroppedItem d = w.Drop(ent.Position); d.AddToWorld(); }
public void AddWeapon(Weapon w) { }