Exemple #1
0
        /// <summary>
        /// Get maximum backpack capacity.
        /// </summary>
        /// <returns></returns>
        public int GetMaxBagCount()
        {
            if (br.BtList == null)
            {
                throw new Exception("Save file not open.");
            }
            int index = br.FindIndexByString("inventory_limit")[0] + AmalurSaveEditor.InventoryCapacityOffset;

            byte[] bt = br.GetBytesByIndexAndLength(index, 4);
            return(BitConverter.ToInt32(bt, 0));
        }