public void Equip(Item i, Inventory inv, bool force) { if(!force && equipped != null ) { throw new Exception( "Tried to equip ("+i.name+") without first removing ("+equipped.name+")" ); } if( i.type != ItemType.Equipment ) { throw new Exception( "Tried to equip a non-equipment." ); } inv.TakeItem( i, 1 ); equipped = i; }