Cargo prices: Look in Shipyard.c around line 1300 for the line:
price = makeint(price * GetCharPriceMod(GetMainCharacter(), PRICE_TYPE_SELL, true) * sellMult); // TIH moved down here where it is SUPPOSED TO BE - NK now use central func 05-04-19. Yes there is an extra *0.25, not just straight tradeprice. //price /= (2 * 2 * 2); //pricescalar * orig div * extra div
Looks like Hat moved it after the cargo price calculations, so that when you sell a ship with cargo, the cargo also gets the hit to the sales price that you get for selling a captured ship. I think moving this line above the line that says:
if ( cargoHandler == "includecargo" ) {// TIH added handler Jul27'06
... will fix the problem. I agree that it's a problem, as you get full price if you sell the goods at the store, and I'm tired of having to visit the store first to get full price on the goods. I haven't tested this yet, so if someone would try it and post the results I'd be grateful.
Hook
price = makeint(price * GetCharPriceMod(GetMainCharacter(), PRICE_TYPE_SELL, true) * sellMult); // TIH moved down here where it is SUPPOSED TO BE - NK now use central func 05-04-19. Yes there is an extra *0.25, not just straight tradeprice. //price /= (2 * 2 * 2); //pricescalar * orig div * extra div
Looks like Hat moved it after the cargo price calculations, so that when you sell a ship with cargo, the cargo also gets the hit to the sales price that you get for selling a captured ship. I think moving this line above the line that says:
if ( cargoHandler == "includecargo" ) {// TIH added handler Jul27'06
... will fix the problem. I agree that it's a problem, as you get full price if you sell the goods at the store, and I'm tired of having to visit the store first to get full price on the goods. I haven't tested this yet, so if someone would try it and post the results I'd be grateful.
Hook