Page 1 of 1

Purchase cost of new ship

Posted: Tue Mar 03, 2015 6:52 am
by phkb
When you purchase a new ship, is there somewhere I can go to find what the actual cost of the ship is? In the playerBoughtNewShip event, the "ship" property has a price, but that doesn't seem to correlate to the price shown in the shipyard.

Re: Purchase cost of new ship

Posted: Tue Mar 03, 2015 4:40 pm
by ralph_hh
The price of the ship goes together with the price for the equipment installed. Thus the actual price shown in the offers list is higher.

Re: Purchase cost of new ship

Posted: Tue Mar 03, 2015 6:53 pm
by cim
There seems to be some difference between how the shipyard calculates the value of extra equipment when buying and how it's calculated for trade-in value when selling. I'm not sure what, though. Ships bought with just standard equipment had the price then reported by player.ship.price match exactly.

It's probably easier to stick a second "price" parameter on the playerBoughtNewShip event than to dig through the shipyard code, though.