Harvestable produce restocking fix

SCREENSHOTS
Downloaded 6,300 times 950 Thanks 122 Favourited 48,887 Views
 Say Thanks!
Picked Upload!   This is a picked upload! It showcases some of the best talent and creativity available on MTS and in the community.
Uploaded: 7th Jun 2009 at 11:00 AM
Updated: 7th Jun 2009 at 9:53 PM - add note to description
* Requires : Open For Business, Seasons
* Compatibility: The Sims 2, University, Nightlife, Open For Business, Pets,
Seasons, Bon Voyage, Store Edition, FreeTime, Apartment Life,
Mansion & Garden Stuff, all Stuff Packs
* Modifications: Semi-Global (affects all harvestable produce)
* Hack Version#: 1.0

Quick Info
~~~~~~~~~~
Produce comes in 3 different qualities: Bland, Tasty, Mouthwatering. Each quality type has a unique monetary value. So Mouthwatering Produce will sell for a higher price than Bland Produce. Fish come in all sorts of different species and sizes, each being worth a different amount of money.

There is a problem in the game code though. When you restock a produce item, it may be replaced with one of a different quality. So if you had a Bland Cucumber on sale for $11 and it got restocked with a Mouthwatering Cucumber, the sale price would still be $11 for that new Mouthwatering variety. The game should be setting the price to the value of that new Mouthwatering Cucumber, which is $34. Had you placed a brand new Mouthwatering Cucumber up for sale, the price would have been set for $34. So it is only restocking that is buggy.

Fish already restock correctly. But this hack will correct the problem for produce, by only allowing a piece of produce to be restocked with another one of the exact same type at the exact same quality. This way, you won't be "giving away" your valuable Mouthwatering produce at super-low Bland prices.

Open For Business is necessary or else you can't have stores and can't restock. Seasons is necessary because it is the only expansion pack that gives you Produce (fruits, veggies, fish) which can be sold on OFB owned lots. This hack only affects Seasons Produce. If you don't have those 2 Expansion Packs, the hack will not crash your game (it just won't do anything useful for you).

Note: this hack essentially separates different qualities of produce into separate objects. So when you are out of a particular quality of the produce that is for sale, the game will display this standard message:

"There are no more harvestable items in the owner's inventory. Harvest some more items and the out of stock products will be replaced."

You may not actually be "out" of that item, but instead just out of it in the quality level that is required to correctly restock it.


* Check out the readme.txt file for more information.