# Do you think you understand corruption (pre-C3C)?

Discussion in 'Civ3 Strategy Articles' started by alexman, Apr 9, 2002.

1. ### alexmanKing

Joined:
Feb 28, 2002
Messages:
778
Location:
Maryland, USA
Fd = 3.6 * Distance / MapSize

As Sebastian pointed out in an earlier post, use the average of the two map dimensions for map size. The default map sizes are equal in both dimensions. (MapSize = 100 for a standard-sized map)

With 1.21f:

Nopt = OptimalCities * (1 + N/4) * DifficultyPercent / 100 + Nciv

OptimalCities is a setting in the editor for each map size. I believe 32 is the default for huge maps.

DifficultyPercent is also in the editor, under difficulty settings. It ranges from 100 (Chieftain) to 70 (deity).

Nciv = 1 for commercial civs. Zero otherwise.

N = Number of corruption-reducing buildings in that city (courthouse and police station). Add one for waste calculations for a city in WLTK.

2. ### MuddyOneWarlord

Joined:
Apr 26, 2002
Messages:
158
Alexman, very good work. I have been running some tests to get a feel for corruption under different governments though. The FP does seem to have a 5% reduction under communism, despite what the description would lead you to believe. I posted the map I was working with in the following thread.

3. ### TheNiceOneEmperor

Joined:
Feb 6, 2002
Messages:
1,372
Location:
Norway
Sorry for being late with my answer, but then this thread deserves to be upped now and again.

Take your case II: without factory, you get 70.7% of the 41 shields you would get without corruption. Add the factory (and hydro effect), and an uncorrupted city would have given 82 shields. Your city only gives 58 shields, which is still exactly 70.7%. So, the factory is affected by corruption.

Look at it another way: The factory effectively gives you 29 additional productive shields. I assume the city in question has a court house, and by selling it off, the city w/o factory would go down from 29 to f.ex. 20 productive shields due to added corruption. Since factory only increases the number of productive shields, the factory (with hydro) no longer will give you 29 additional shields, but only 20.
So the factory produces less shields just because the city became more corrupted, i.e. it is affected by corruption.

4. ### punkbass2000Des An artiste

Joined:
Apr 16, 2002
Messages:
7,230
Location:
A(sia) Minor
I believe I understand your argument, but there is a flaw in your logic. You're saying if there were no corruption in this city, there would be 41 shields w/o a factory, and 82 with one, correct? This is true. Also, if there were the given amount of corruption, there would be 12 waste and 29 shields w/o, 12 waste and 58 shields with. True as well. Now, 29/41 = 58/82, so you argue the total number of shields is relatively the same either way. However, this hypothetical scenarios are not the case at hand. Although the overall effects are the same, the factory itself is not affected by corruption and produces only usable shields. The factory does not affect waste. The results would be the same either way, for if it did double your waste, your net results would not change, and neither would the percentages.

5. ### planetfallEmperor

Joined:
Jan 18, 2002
Messages:
1,185
Location:
California
Maybe I don't. I missed in the thread, what is the difference between waste and corruption. This definition is dotted in transcript. Is it corruption we can fight but nothing can be done about waste?

6. ### MuddyOneWarlord

Joined:
Apr 26, 2002
Messages:
158
Waste refers to shield loss, corruption with money lost. Courthouses, police stations, and FP help with both.

7. ### alexmanKing

Joined:
Feb 28, 2002
Messages:
778
Location:
Maryland, USA
You are right about that. My initial statement that the FP does not affect communism is not true. In reality the FP (and capital) city does not count against the optimal number of cities limit. So having a FP actually reduces corruption a bit. The percentage of the reduction depends on the number of cities in your empire and the number of optimal cities. I edited the initial post to reflect this. Thanks for pointing that out MuddyOne.

Also, lets settle this factory and marketplace debate once and for all. TheNiceOne is right. Even though on the screen it looks as though the city improvement reduced the corruption percentage because the number of red icons stay the same, that's not the case. I think I mentioned this earlier in this thread. So, contrary to what I initially thought, the corruption (and waste) percentage is not affected by marketplaces (and factories).

8. ### DracleathWarlord

Joined:
Jan 25, 2002
Messages:
231
About the forbidden palace, am I correct in understanding that the FP essentially gives you an entirely new set of optimal cities to work with? For example, if the optimum number of cities is 4, does this mean that I can build the capital and 3 other cities, then build a forbidden palace on another continent, and build 3 cities around that, and all of them will use the low formula for corruption? And if I build the forbidden palace close to my original palace, does this effectively reduce the number of cities I get? (ex. I build a capital and forbidden palace one square apart - all cities are in the same order of closeness. Do 4 cities use the optimal formula or 8? Are intermediate cities between the capital and FP counted once for each capital or are the two capitals mutually exclusive?)

9. ### alexmanKing

Joined:
Feb 28, 2002
Messages:
778
Location:
Maryland, USA
Dracleath, you are correct in your understanding of the way the FP works. It gives you a whole new set of cities, but any overlap with the capital is lost, except for the fact that the FP city itself does not count against the optimal number of cities limit. So in your example, only 4 cities will use the optimal formula, but of course not including the capital and FP. The last city using the part of the formula for N <= Nopt will be the 6th city.

In other words, build the FP far away from your capital! That's the most important use of great leaders, IMHO...

10. ### TheNiceOneEmperor

Joined:
Feb 6, 2002
Messages:
1,372
Location:
Norway
punkbass2000, I guess we're debating semantics, because we agree on the hard numbers, but look at it this way:

A factory in a corrupt city produces less shields than a uncorrupt (but otherwise identical) city. If the city has a base shield production of 50, a factory in an uncorrupt city adds 25 shields, while a factory in a 40%-corrupt city only adds 15 shields (to the 30 productive base shields).

So since the factory in the 40%-corrupt city produces 40% less additional shields, it is clearly affected by the corruption.

11. ### punkbass2000Des An artiste

Joined:
Apr 16, 2002
Messages:
7,230
Location:
A(sia) Minor
I'll agree to this.

12. ### chiefpacoEmperor

Joined:
Dec 26, 2001
Messages:
1,381
Location:
Fanatika - Where did everybody go?
But your math is not what I observed. I didn't get 82 total shields when I had the factory+plant, I had 70. 58 were productive and 12 were wasted. Where did the other 12 go?

OTOH, the production jumped from 58 down to 29, exactly half and just what I would expect from getting rid of the 2 bonuses that increase un-wasted production by 50%.

However, I see your point. If the factory multiplied the total production, my percentage would remain the same and I would effectively get the same overall productive number of shields. However, the wasted shields would also have to multiply and they did not. Therefore, I'm sticking to the subtle & non-significant point that it affects only the unwasted shields.

13. ### IDSmokerChieftain

Joined:
Apr 2, 2002
Messages:
87
Location:
Idaho

So... with 1.21f: on a Huge Map with the Difficulty NOpt percentage set to 100% you would have:

Base NOpt=32
w/Courthouse, NOpt=40
and w/Police Station, NOpt=50
and w/WLTK, NOpt=62.5 (rounded down to 62)

Do I have this right?

What about the new Corruption slider added in 1.21f? Is this value applied to final product of the corruption/waste calculation? (or is it used in one of the previous steps of the calculation?)

14. ### alexmanKing

Joined:
Feb 28, 2002
Messages:
778
Location:
Maryland, USA
Yes, you have it exactly right.

I don't know about the corruption slider. I would guess it reduces the corruption after all modifiers, but I don't feel like testing it!

15. ### ArathornCatan player

Joined:
Jan 10, 2002
Messages:
3,778
Location:
Illinois
I would be surprised if he has it right. Everything else in CivIII does not "stack" the bonuses as he was doing. Example, 32 gold with a market and a bank is only 64 (32*(1+.5+.5)), not 72 ((32*1.5)*1.5).

I would expect the limit is

32
40 with courthouse or WLTKD
48 with courthouse and police station or courthouse and WLTKD
56 with courthouse, police station, and WLKTD

I've not tested this at all, so I can't be sure, but this seems to me to be much more likely.

Arathorn

16. ### alexmanKing

Joined:
Feb 28, 2002
Messages:
778
Location:
Maryland, USA
Arathorn, you are of course correct... It's been a while so I forgot. I should have looked at my earlier post:

17. ### RufRydyrQSC Map Maker

Joined:
Mar 26, 2002
Messages:
584
Location:
Ft. Walton Beach, FL USA
Wow. I couln't follow everything you said, but it sure helped a lot and you obviously put a lot of work into this.

Do foreign citizens affect waste/corruption?

Since a certain distance from capital/FB leaves a city with only 1 shield of production (many times), would it then make sense to dense build border cities? You wouldn't need aquaduct, temple, or anything. You'd just get the land and happy citizen points, right? Plop cities down with and set them to produce wealth.

18. ### Crazy JeromeWarlord

Joined:
Jan 8, 2002
Messages:
210
For anyone wanting to play without editor changes, there is a subtle trick that can lessen the overall affect of corruption: Play on a map one size larger than you prefer, but with 60% landmass. For example, play a large map with 60% instead of a standard map with normal land/water ratio. It's not exactly the same game, but very close. Thus it is as if you played a standard map with optimal cities set to 24.

As a bonus, this also helps when playing a larger map than your computer can reasonably handle. I found this because I wanted 12 civs but not the speed of a standard map.

19. ### royfurr"Klotzen, nicht Kleckern"

Joined:
Nov 21, 2001
Messages:
368
Location:
USA
VERY Clever idea, Crazy Jerome! I think I will try this, with at the same time editing up the cities limit- the effect on speed should be good, in the endgame. Now I wonder how this effects Strategic resources distrubition??

20. ### chiefpacoEmperor

Joined:
Dec 26, 2001
Messages:
1,381
Location:
Fanatika - Where did everybody go?
I really like your corruption calculator, alexman, but wondered if you ever update it, could you change a couple little things?

The enter key seems to close the utility when it starts up and then later just follows the focus. Could you always make it "Calculate"?

Could you add a minimize button? Sometimes I like to keep it open but get distracted by something else.

The "Set Defaults" screen. Can you make it remember the last settings I chose? I often just want to change 1 thing at a time.

Thanks. Also 1 suggestion. Why not also add it to the "Utilities" subforum?