Пример #1
0
 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();
 }
Пример #2
0
 public void assignFoodUse(byte hungerVal, byte timeRequiredToConsume)
 {
     IDofItem  = 1;
     foodStats = new foodNutritionalValue(hungerVal, timeRequiredToConsume);
 }