public void assignWeaponRole(short DfsOrDmgValue, short weaponRange, short durabilityGiven = 100) { IDofItem = 3; specificDetailsOfItem = new toolDetails(durabilityGiven); enchantmentsOfItem = new List <Enchantments>(); weaponStats = new weaponSpecialization(DfsOrDmgValue, weaponRange); }
public void assignClothingRole(short armorValue, short weightAssigned = 0, short durabilityGiven = 100, string clothingType = "cloth") { IDofItem = 4; specificDetailsOfItem = new toolDetails(durabilityGiven); enchantmentsOfItem = new List <Enchantments>(); clothingInfo = new clothingValue(armorValue, weightAssigned, clothingType); clothingInfo.setTypeofClothing = clothingType; }
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(); }