Purchase cost of new ship

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 4830
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Purchase cost of new ship

Post 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.
ralph_hh
---- E L I T E ----
---- E L I T E ----
Posts: 297
Joined: Tue Nov 11, 2014 12:42 pm
Location: Germany

Re: Purchase cost of new ship

Post 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.
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Purchase cost of new ship

Post 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.
Post Reply