<!--quoteo(post=173575:date=Nov 27 2006, 09:18 AM:name=IncredibleHat)--><div class='quotetop'>QUOTE(IncredibleHat @ Nov 27 2006, 09:18 AM) [snapback]173575[/snapback]</div><div class='quotemain'><!--quotec-->Re: Selling goods for less at shipyard:
It was NOT my intention to make the goods sell for less at the shipyard.
Re: Sell All at stores not right:
This is because each time you 'click' on an amount of good to sell manually, the whole pricing system updates itself to current economy...
What the "Sell All" does, is grab the 'current price' of the good, then sell the total quantity of that good for that price. Instead of looping through each single good and figuring out a new price for each single quantity for each good you may have.
You can make more money (or less?) by manually selling each good at the store using the individual sell action because of this economy based on each good sold thingy.<!--QuoteEnd--></div><!--QuoteEEnd-->
Hey Hat! <img src="style_emoticons/<#EMO_DIR#>/biggrin.gif" style="vertical-align:middle" emoid="
" border="0" alt="biggrin.gif" />
Fixing the shipyard was moving one line. The cargo price is added after the price hit the ship takes for being stolen, rather than before. Easy fix.
The Sell All at store was actually doing all the necessary calculations properly, but it was doing them on the wrong character! There was refCharacter (your companion who was captain of the ship) and mainRef (the player character). Amount and type of goods needed to be calculated on refCharacter, but the commerce skill needed to be calculated on mainRef. This was the only reason you saw weird numbers there. After my changes, selling a ship with cargo, selling all at the store, or selling each good one at a time at the store will all give you the same amount of gold. I won't tell you how much I had to go through just to find that problem! But when I started seeing traces with the skill multiplier at 0.788 instead of 0.99 I figured it out quickly.
Overall I think you did a great job on it.
Hook