public override Dictionary <Type, int> GetStorableTypesFromItem(Item item) { Dictionary <Type, int> types = base.GetStorableTypesFromItem(item); if (types == null) { return(new Dictionary <Type, int>(0)); } if (types.Count == 0) { return(types); } //UOSI - I don't know what this does. Quantity has been removed from SackFlour as per Oct 2019 merge. SackFlour sack = item as SackFlour; //if (sack != null && sack.Quantity > 0 && types.ContainsKey(typeof(SackFlour))) // types[typeof(SackFlour)] = sack.Quantity; return(types); }
public override Dictionary <Type, int> GetStorableTypesFromItem(Item item) { Dictionary <Type, int> types = base.GetStorableTypesFromItem(item); if (types == null) { return(new Dictionary <Type, int>(0)); } if (types.Count == 0) { return(types); } SackFlour sack = item as SackFlour; if (sack != null && sack.Quantity > 0 && types.ContainsKey(typeof(SackFlour))) { types[typeof(SackFlour)] = sack.Quantity; } return(types); }