Good job, Th & St!
I am sceptical about the GL+SGs combination. I think somebody else should care of links updating. The GL index could be divided into 2 posts, the general info would remain in the SGs 1st post, links would be moved to the new one...
I agree with you. Usually you have the gunpowder when you reach commie.I have run tests with attacker's Gue. I had to rebuild the formula, because the logic is lost:
In general attacker's Gue lowers the number of partisans. But in reverse it allows partisans to appear from cities of level 1 when defender has Gue only!
Please verify the formula.
shortcuts from rules.txt:
Communism=Cmn, Conscription=Csc, Guerrilla Warfare=Gue, Gunpowder=Gun
CityLevel = RoundDown[( CitySize+4)/8 ]
BNP: basic number of partisans
TypeMultiplier: a multiplier that affects the result
| defender's techs | attacker has Gue | BNP | TypeMultiplier |
| Gue | no | (CityLevel -1)*2 | 2 |
| Gue | yes | CityLevel | 1 |
| Cmn+Gun | irrelevant | CityLevel -1 | 1 |
CscModifier: Conscription modifier
defender has not Conscription: then CscModifier=0
defender has Conscription: then CscModifier=1
GovtModifier: Government modifier
GovtModifier=1/2*abs(govindexD-govindexA)
(abs...absolute value)
govindexD- defender's government index value
govindexA- attacker's government index value
Index values:
Anarchy=1,Desp=2, Mon=3, Com=4, Fund=5, Rep =6, Dem=7
The formula:
Partisans = BNP + (CscModifier + GovtModifier) * TypeMultiplier
(the result is rounded down)
Notes:
Partisans can pop up only on empty ground squares in "the working city radius" (squares that may be worked in the city window).
The max. number of partisans is 20 - i.e. only one partisan may pop up on one square.
If city was founded by attacker then no partisans pop up.
No effect: unhappy, content, happy people; wltxd, city improvements, killed defender/attacker, decrease of inhabitants by siege, type of terrain.
A simplified conclusion:
There are two situations when partisans arise: the defender has Guerilla Warfare or the defender has Gunpowder+Communism. Guerilla Warfare produces twice more partisans than the combination Gunpowder+Communism.
The effect of Guerilla Warfare and Gunpowder+Communism is not cumulated: only Guerilla Warfare applies.
Conscription adds 1 or 2 partisans.
Every point of "governments difference" raises the number of partisans by 50%.
The number of partisans depends on the city size: The smallest city that produces them has size 4. Next turning points are 12, 20, 28, 36 etc.
Guerilla Warfare is the only attacker's tech that affects the number of partisans.
Overview:
| defender's techs / attacker's techs | gue | gue+csc | cmn+gun | cmn+gun+csc |
| number of partisans for citylevel1 citylevel2 citylevel3 citylevel4... | 0 2 4 6 ... | 2 4 6 8... | 0 1 2 3... | 1 2 3 4... |
| gue/gue | gue+csc/gue | |||
| 1 2 3 4... | 2 3 4 5... | |||
What concept?
GP, don't you head to Deity? Your posts are always very short...
And I won't respond till you will post a link to that gibe.
Sorry, I missed it.
GP, I didn't want to be bad to you. A humor at my expense is always welcomed. Try again.
There was a mistake in the formula: missing CityLevel at GovtModifier. The formula is changed a little. I also edited the notes.
shortcuts from rules.txt:
Communism=Cmn, Conscription=Csc, Guerrilla Warfare=Gue, Gunpowder=Gun
CityLevel = RoundDown[( CitySize+4)/8 ]
CitySize is the size of the city before the capture.
BNP: basic number of partisans
TypeMultiplier: a multiplier that affects the result
| defender's techs | attacker has Gue | BNP | TypeMultiplier |
| Gue | no | CityLevel -1 | 2 |
| Gue | yes | CityLevel | 1 |
| Cmn+Gun | irrelevant | CityLevel -1 | 1 |
CscModifier: Conscription modifier
| defender has Csc | CscModifier |
| yes | 1 |
| no | 0 |
GovtModifier: Government modifier
GovtModifier=1/2*abs(govindexD-govindexA)
(abs...absolute value)
govindexD- defender's government index value
govindexA- attacker's government index value
Index values:
Anarchy=1,Desp=2, Mon=3, Com=4, Fund=5, Rep =6, Dem=7
The formula:
Partisans = (BNP + CscModifier + GovtModifier*CityLevel) * TypeMultiplier
(the result is rounded down)
Notes:
Partisans can pop up only on empty ground squares in "the working city radius" (squares that may be worked in the city window).
The max. number of partisans is 20 - i.e. only one partisan may pop up on one square.
If city was founded by attacker then no partisans pop up.
The Guerilla Warfare obtained by conquering the city counts, in other words it affects the number of partisans (partisans pop up after the attacker chooses a defender's tech).
No effect: unhappy, content, happy people; wltxd, city improvements, killed defender/attacker, decrease of inhabitants by siege, type of terrain.
The defensive value of a terrain affect where the emerging partisans are placed: first partisan to the best devensive terrain and so on. There is a special pattern of placing partisans if all terrain is the same: first square is north-east from the city, then clockwise around the city (this pattern is equal to the pattern of barbs coming from huts and to the pattern of cultivating squares around cities by AI).
A simplified conclusion:
There are two situations when partisans arise: the defender has Guerilla Warfare or the defender has Gunpowder+Communism. Guerilla Warfare produces twice more partisans than the combination Gunpowder+Communism.
The effect of Guerilla Warfare and Gunpowder+Communism is not cumulated: only Guerilla Warfare applies.
Conscription adds 1 or 2 partisans.
Every point of "governments difference" raises the number of partisans by 50%.
The number of partisans depends on the city size: The smallest city that produces them has size 4. Next turning points are 12, 20, 28, 36 etc.
Guerilla Warfare is the only attacker's tech that affects the number of partisans.
Overview (for equal governments):
| defender's techs / attacker's techs | gue | gue+csc | cmn+gun | cmn+gun+csc |
| number of partisans for citylevel1 citylevel2 citylevel3 citylevel4... | 0 2 4 6 ... | 2 4 6 8... | 0 1 2 3... | 1 2 3 4... |
| gue/gue | gue+csc/gue | |||
| 1 2 3 4... | 2 3 4 5... | |||
Comment