Thread:QuickNick/@comment-26829117-20170726202536/@comment-30967537-20170729080419

Hi Dave.

Ok, I checked my code ...

1. Phew. The PR value for an already upgraded car is re-calculated by passing the current upgrade string to the minimum-upgrades function so there shouldn't be any rounding issues for already upgraded cars.

2. The best-car selection. I tried a variety of methods to determine the best car with different weights assigned to upgrade costs, upgraded PR and subsequent series requiring/featuring the car and even the upgrade costs for the car in subsequent series but found that the best method was as follows. In simple terms, the current method uses the following calculation ...

1000 + Upgrade Cost Gold + Upgrade Cost R$ / 20,000 - Upgrade PR * 10 - Number of Subsequent Series featuring the Car * 100

Then sort the cars in lowest-to-highest value order and the lowest one is the "best" one.

As I suspected, the BMW 1 Series Coupe was selected because the lower Upgrade Cost R$ and higher Upgrade PR slightly outweighed the higher Upgraded Cost Gold. I initially thought that Gold should be the main factor but it was pointed out to me that some people are short of R$ and that a higher PR car might be considered more desirable. I'm happy to tweak the values and/or change the calculation if you think it's necessary.

Back to you ...

Nick