FS#6581 - Vehicles: make vehicle purchase base cost address available like running cost base address is

Attached to Project: OpenTTD
Opened by Michael Blunck (mb) - Wednesday, 05 July 2017, 20:20 GMT
Last edited by andythenorth (andythenorth) - Monday, 04 September 2017, 07:00 GMT
Type Feature Request
Category Vehicles
Status New
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


For running costs, a newgrf may set different base amounts, but for purchase prices, the game does use hard-coded memory locations, e.g. for train engines and train "wagons". This results into a very limited variety, especially because "wagons" covers (more expensive) coaches as well as (cheaper) freight cars.

In addition, making purchase base cost addresses available to newgrfs would allow to use different base costs with different multipliers, which is not possible ATM.
This task depends upon