cleanup: create constants for fire/police station maintenance cost
git-svn-id: https://micropolis.googlecode.com/svn/trunk/micropolis-java@586 d9718cc8-9f43-0410-858b-315f434eb58c
This commit is contained in:
parent
88669eabb6
commit
6ee909e10c
1 changed files with 8 additions and 2 deletions
|
@ -1732,6 +1732,12 @@ public class Micropolis
|
|||
policeFundEscrow = 0;
|
||||
}
|
||||
|
||||
/** Annual maintenance cost of each police station. */
|
||||
static final int POLICE_STATION_MAINTENANCE = 100;
|
||||
|
||||
/** Annual maintenance cost of each fire station. */
|
||||
static final int FIRE_STATION_MAINTENANCE = 100;
|
||||
|
||||
/**
|
||||
* Calculate the current budget numbers.
|
||||
*/
|
||||
|
@ -1748,8 +1754,8 @@ public class Micropolis
|
|||
assert b.taxIncome >= 0;
|
||||
|
||||
b.roadRequest = (int)Math.round((lastRoadTotal + lastRailTotal * 2) * RLevels[gameLevel]);
|
||||
b.fireRequest = 100 * lastFireStationCount;
|
||||
b.policeRequest = 100 * lastPoliceCount;
|
||||
b.fireRequest = FIRE_STATION_MAINTENANCE * lastFireStationCount;
|
||||
b.policeRequest = POLICE_STATION_MAINTENANCE * lastPoliceCount;
|
||||
|
||||
b.roadFunded = (int)Math.round(b.roadRequest * b.roadPercent);
|
||||
b.fireFunded = (int)Math.round(b.fireRequest * b.firePercent);
|
||||
|
|
Reference in a new issue