public Item(string nameOfItem, string detailsOfItem, byte stackLim = 64, byte amountLoaded = 16) { itemName = nameOfItem; description = detailsOfItem; itemStackLimit = stackLim; stackValue = amountLoaded; //default ID is 0 IDofItem = 0; foodStats = new foodNutritionalValue(); potionInfo = new potionValue(); weaponStats = new weaponSpecialization(); clothingInfo = new clothingValue(); specificDetailsOfItem = new toolDetails(); lingeringEffects = new List <Effects>(); enchantmentsOfItem = new List <Enchantments>(); bookDetails = new bookValue(); }
public void turnIntoBook(string contentsWanted, string authorOfBook = "unknown") { IDofItem = 5; bookDetails = new bookValue(contentsWanted, authorOfBook); }