예제 #1
0
        /* The ToString() function describes the Berry as a string.
         * It currently has no use. */
        public override string ToString()
        {
            string berryString = "Berry: ";

            berryString += berryType.ToString();
            berryString += Name;
            berryString += Price;
            return(berryString);
        }
예제 #2
0
 /* The Berry constructor only takes a BerryType.
  * The parent BaseItem is initialized using Holdable as true.
  * The item name is created by using the Berry Type and the word "Berry".
  * For example, the name of a Berry with the Razz Type will be "Razz Berry".
  * The price is set to 0, as berries cannot be bought or sold. */
 public Berry(BerryType berryType) : base(true, berryType.ToString() + " Berry", 0)
 {
     this.berryType = berryType;
 }