summaryrefslogtreecommitdiff
path: root/src/town_type.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-05-11 11:55:41 +0000
committersmatz <smatz@openttd.org>2009-05-11 11:55:41 +0000
commite1e6687bfd2e8e41ecafa3e4b9d5ff7d38aebcb6 (patch)
tree8d588eadde2aed571ec6d103ee296dfdf9791bf7 /src/town_type.h
parentd9e1de0281152f30a2df04ccad9b6cda4d34f51d (diff)
downloadopenttd-e1e6687bfd2e8e41ecafa3e4b9d5ff7d38aebcb6.tar.xz
(svn r16277) -Codechange: enumerize values and remove unneeded values used for testing town rating
Diffstat (limited to 'src/town_type.h')
-rw-r--r--src/town_type.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/src/town_type.h b/src/town_type.h
index 179254b73..a032c8bea 100644
--- a/src/town_type.h
+++ b/src/town_type.h
@@ -50,12 +50,19 @@ enum {
RATING_STATION_UP_STEP = 12, ///< when a town grows, company gains reputation for all well serviced stations ...
RATING_STATION_DOWN_STEP = -15, ///< ... but loses for bad serviced stations
- RATING_TUNNEL_BRIDGE_DOWN_STEP = -250,
- RATING_TUNNEL_BRIDGE_MINIMUM = 0,
+ RATING_TUNNEL_BRIDGE_DOWN_STEP = -250, ///< penalty for removing town owned tunnel or bridge
+ RATING_TUNNEL_BRIDGE_MINIMUM = 0, ///< minimum rating after removing tunnel or bridge
+ RATING_TUNNEL_BRIDGE_NEEDED_PERMISSIVE = 144, ///< rating needed, "Permissive" difficulty settings
+ RATING_TUNNEL_BRIDGE_NEEDED_NEUTRAL = 208, ///< "Neutral"
+ RATING_TUNNEL_BRIDGE_NEEDED_HOSTILE = 400, ///< "Hostile"
+
+ RATING_ROAD_DOWN_STEP_INNER = -50, ///< removing a roadpiece in the middle
+ RATING_ROAD_DOWN_STEP_EDGE = -18, ///< removing a roadpiece at the edge
+ RATING_ROAD_MINIMUM = -100, ///< minimum rating after removing town owned road
+ RATING_ROAD_NEEDED_PERMISSIVE = 16, ///< rating needed, "Permissive" difficulty settings
+ RATING_ROAD_NEEDED_NEUTRAL = 64, ///< "Neutral"
+ RATING_ROAD_NEEDED_HOSTILE = 112, ///< "Hostile"
- RATING_ROAD_DOWN_STEP_INNER = -50, ///< removing a roadpiece in the middle
- RATING_ROAD_DOWN_STEP_EDGE = -18, ///< removing a roadpiece at the edge
- RATING_ROAD_MINIMUM = -100,
RATING_HOUSE_MINIMUM = RATING_MINIMUM,
RATING_BRIBE_UP_STEP = 200,