OpenTTD Source  20241121-master-g67a0fccfad
pricebase.h
Go to the documentation of this file.
1 /*
2  * This file is part of OpenTTD.
3  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6  */
7 
10 extern const PriceBaseSpec _price_base_specs[] = {
11  { 100, PCAT_NONE, GSF_END, INVALID_PRICE },
12  { 100, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
13  { 95, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
14  { 65, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
15  { 275, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
16  { 600, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
17  { 500, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
18  { 700, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
19  { 450, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
20  { 200, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
21  { 180, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
22  { 600, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
23  { 200, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
24  { 200, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
25  { 350, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
26  { 400000, PCAT_CONSTRUCTION, GSF_TRAINS, INVALID_PRICE },
27  { 2000, PCAT_CONSTRUCTION, GSF_TRAINS, INVALID_PRICE },
28  { 700000, PCAT_CONSTRUCTION, GSF_AIRCRAFT, INVALID_PRICE },
29  { 14000, PCAT_CONSTRUCTION, GSF_ROADVEHICLES, INVALID_PRICE },
30  { 65000, PCAT_CONSTRUCTION, GSF_SHIPS, INVALID_PRICE },
31  { 20, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
32  { 250, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
33  { 20, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
34  { 40, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
35  { 200, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
36  { 500, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
37  { 20, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
38  { -70, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
39  { 10, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
40  { 50, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
41  { 80, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
42  { 80, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
43  { 90, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
44  { 30, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
45  { 10000, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
46  { 50, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
47  { 30, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
48  { 50, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
49  { 50, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
50  { 55, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
51  { 1600, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
52  { 40, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
53  { 5600, PCAT_RUNNING, GSF_TRAINS, INVALID_PRICE },
54  { 5200, PCAT_RUNNING, GSF_TRAINS, INVALID_PRICE },
55  { 4800, PCAT_RUNNING, GSF_TRAINS, INVALID_PRICE },
56  { 9600, PCAT_RUNNING, GSF_AIRCRAFT, INVALID_PRICE },
57  { 1600, PCAT_RUNNING, GSF_ROADVEHICLES, INVALID_PRICE },
58  { 5600, PCAT_RUNNING, GSF_SHIPS, INVALID_PRICE },
59  {1000000, PCAT_CONSTRUCTION, GSF_END, INVALID_PRICE },
60  { 1600, PCAT_CONSTRUCTION, GSF_END, PR_CLEAR_HOUSE },
61  { 40, PCAT_CONSTRUCTION, GSF_OBJECTS, PR_CLEAR_ROUGH },
62  { 40, PCAT_CONSTRUCTION, GSF_OBJECTS, PR_CLEAR_ROUGH },
63  { 600, PCAT_CONSTRUCTION, GSF_END, PR_BUILD_DEPOT_TRAIN },
64  { 80, PCAT_CONSTRUCTION, GSF_END, PR_CLEAR_DEPOT_TRAIN },
65  { 350, PCAT_CONSTRUCTION, GSF_END, PR_BUILD_STATION_DOCK },
66  { 50, PCAT_CONSTRUCTION, GSF_END, PR_CLEAR_STATION_TRUCK},
67  {1000000, PCAT_CONSTRUCTION, GSF_END, PR_BUILD_INDUSTRY },
68  { 250, PCAT_CONSTRUCTION, GSF_END, PR_TERRAFORM },
69  {8000000, PCAT_CONSTRUCTION, GSF_END, PR_BUILD_INDUSTRY },
70  {1000000, PCAT_CONSTRUCTION, GSF_END, PR_BUILD_INDUSTRY },
71  { 5000, PCAT_CONSTRUCTION, GSF_END, PR_CLEAR_WATER },
72  { 5000, PCAT_CONSTRUCTION, GSF_END, PR_CLEAR_WATER },
73  { 10000, PCAT_CONSTRUCTION, GSF_END, PR_CLEAR_WATER },
74  { 2000, PCAT_CONSTRUCTION, GSF_END, PR_CLEAR_BRIDGE },
75  { 7500, PCAT_CONSTRUCTION, GSF_END, PR_CLEAR_WATER },
76  { 2000, PCAT_CONSTRUCTION, GSF_END, PR_CLEAR_WATER },
77  { 10, PCAT_RUNNING, GSF_END, PR_BUILD_RAIL },
78  { 10, PCAT_RUNNING, GSF_END, PR_BUILD_ROAD },
79  { 8, PCAT_RUNNING, GSF_END, PR_BUILD_CANAL },
80  { 100, PCAT_RUNNING, GSF_END, PR_STATION_VALUE },
81  { 5000, PCAT_RUNNING, GSF_END, PR_BUILD_STATION_AIRPORT},
82 };
83 static_assert(lengthof(_price_base_specs) == PR_END);
@ PCAT_RUNNING
Price is affected by "vehicle running cost" difficulty setting.
Definition: economy_type.h:200
@ PCAT_CONSTRUCTION
Price is affected by "construction cost" difficulty setting.
Definition: economy_type.h:201
@ PCAT_NONE
Not affected by difficulty settings.
Definition: economy_type.h:199
#define lengthof(array)
Return the length of an fixed size array.
Definition: stdafx.h:280
Describes properties of price bases.
Definition: economy_type.h:207