Ejemplo n.º 1
0
        public override Item getOne()
        {
            ColoredObject coloredObject = new ColoredObject(parentSheetIndex, 1, color);

            coloredObject.Quality                 = quality;
            coloredObject.Price                   = price;
            coloredObject.HasBeenInInventory      = base.HasBeenInInventory;
            coloredObject.HasBeenPickedUpByFarmer = hasBeenPickedUpByFarmer;
            coloredObject.SpecialVariable         = base.SpecialVariable;
            coloredObject.preserve.Set(preserve.Value);
            coloredObject.preservedParentSheetIndex.Set(preservedParentSheetIndex.Value);
            coloredObject.Name = Name;
            return(coloredObject);
        }
Ejemplo n.º 2
0
        public override Item getOne()
        {
            ColoredObject coloredObject = new ColoredObject(this.parentSheetIndex, 1, this.color);
            int           quality       = this.quality;

            coloredObject.quality = quality;
            int price = this.price;

            coloredObject.price = price;
            int num1 = this.hasBeenInInventory ? 1 : 0;

            coloredObject.hasBeenInInventory = num1 != 0;
            int num2 = this.hasBeenPickedUpByFarmer ? 1 : 0;

            coloredObject.hasBeenPickedUpByFarmer = num2 != 0;
            int specialVariable = this.specialVariable;

            coloredObject.specialVariable = specialVariable;
            return((Item)coloredObject);
        }