krille
CivDOS Fanatic
- Joined
- Sep 5, 2005
- Messages
- 337
Pollution is annoying. Terribly annoying. I'd love to see it gone as it serves no real purpose other than annoy to no end (I don't care about 'realism' in this matter).
Keep the text from the FAQ in the spoiler below in mind, shouldn't it be possible to find the offset(s) where either of these lines are evaluated: "Pollution = Pollution - 20" or "If (HydroPlant) Then IndustrialPollution = IndustrialPollution / 2"
and change them into something like "Pollution = Pollution - 127*" (if unsigned bytes are used, 255 is an option) and "If (True) IP = IP / 127" or something like this?
Now I'm a terrible n00b at assembler and "debugging", but I'm sure not everyone is. Could anyone help here?
Keep the text from the FAQ in the spoiler below in mind, shouldn't it be possible to find the offset(s) where either of these lines are evaluated: "Pollution = Pollution - 20" or "If (HydroPlant) Then IndustrialPollution = IndustrialPollution / 2"
and change them into something like "Pollution = Pollution - 127*" (if unsigned bytes are used, 255 is an option) and "If (True) IP = IP / 127" or something like this?
Spoiler :
12) How do you calculate pollution?
The book "Rome on 640K a Day" gives the formula for calculating the probability of pollution around a city each turn. According to the book:
Each city has a "tolerance" for 20 Smokestack Points per turn. Each point
generated beyond that become a smokestack on the city display, representing
a 1% chance per turn that a square around the city will become polluted.
Smokestack Points = Industrial Pollution + Pop. Pollution
Industrial Pollution = # of shields generated by city.
Divide by 2 if city has hydro or nuclear Plant; OR
Divide by 3 if city has a Recycling Center.
Population Pollution = City Size * Pollution Modifier.
Pollution Modifiers = 0.25 with Industrialization;
0.50 with Automobile;
0.75 with Mass Production;
1.00 with Plastics;
0.00 with Mass Transit.
Note: Mass Transit eliminates Population Pollution.
The book "Rome on 640K a Day" gives the formula for calculating the probability of pollution around a city each turn. According to the book:
Each city has a "tolerance" for 20 Smokestack Points per turn. Each point
generated beyond that become a smokestack on the city display, representing
a 1% chance per turn that a square around the city will become polluted.
Smokestack Points = Industrial Pollution + Pop. Pollution
Industrial Pollution = # of shields generated by city.
Divide by 2 if city has hydro or nuclear Plant; OR
Divide by 3 if city has a Recycling Center.
Population Pollution = City Size * Pollution Modifier.
Pollution Modifiers = 0.25 with Industrialization;
0.50 with Automobile;
0.75 with Mass Production;
1.00 with Plastics;
0.00 with Mass Transit.
Note: Mass Transit eliminates Population Pollution.
Now I'm a terrible n00b at assembler and "debugging", but I'm sure not everyone is. Could anyone help here?