(svn r18268) -Feature: [NewGRF] Make price base multipliers related to vehicles only apply to the GRF locally, if it defines engines of that type itself.

This commit is contained in:
frosch
2009-11-24 13:15:58 +00:00
parent 5e247b6e43
commit d507136e04
12 changed files with 186 additions and 64 deletions

View File

@@ -121,6 +121,7 @@ enum Price {
DECLARE_POSTFIX_INCREMENT(Price)
typedef Money Prices[PR_END];
typedef int8 PriceMultipliers[PR_END];
enum ExpensesType {
EXPENSES_CONSTRUCTION = 0,
@@ -155,6 +156,7 @@ enum PriceCategory {
struct PriceBaseSpec {
Money start_price; ///< Default value at game start, before adding multipliers.
PriceCategory category; ///< Price is affected by certain difficulty settings.
uint grf_feature; ///< GRF Feature, that decides whether price multipliers apply locally or globally. GSF_END if none.
};
/** The "steps" in loan size, in British Pounds! */