Partisans
Features:
Spawns Partisans around Cities when Conquered
Original Mod by GIR
Changes:
1) Partisan Unit is best Conscript Unit rather than fixed type. Thus, not too strong early game, or totally useless late game.
2) Number of Partisans based on City Population and Nationality % of Original Owner rather than Conquerer
3) Partisans will always spawn in Highest Defense Plot, Inner Radius preferable, rather than "higher chance"
4) No longer possible to spawn more partisans than city population
5) Weak VS Strong Power Bonus removed
6) Beside 3 Extra Partisans for Nationality, Added 1 Extra Partisan for Hereditary Rule just to demostrate how to add more to the list
7) Instead of a whole list of techs giving more promotions, simplified to 1 Free Promotion Per 2 Era Advances (Since the Partisan Unit is much stronger now anyway, no need so many free promos)
8) Free Guerilla I on Hills and Free Woodsman I on Forest/Jungle no longer given to units which cannot acquire them.
9) BTS Partisan Event no longer triggered, else double partisans...
10) Available right from start now, rather than after Rifling, since Partisan Unit no longer fixed, although chances are there won't be any due to population
11) Fix bug in choice of enemy units to damage.
Code:
self.iBasePartisan = 4 ## 1 Partisan for every X Population
self.iDamage = 8 ## X% Damage to Conquering Unit Per Partisan
self.lTraitBonus = [("TRAIT_PROTECTIVE", 1)] ## X Extra Partisans for having Trait Y
self.lCivicBonus = [("CIVIC_HEREDITARY_RULE", 1), ("CIVIC_NATIONHOOD", 3)] ## X Extra Partisans for having Civic Y
self.lFeaturePromotion = [("FEATURE_JUNGLE", "PROMOTION_WOODSMAN1"), ("FEATURE_FOREST", "PROMOTION_WOODSMAN1")] ## Free Promotions for Features
self.lHillPromotion = [("PROMOTION_GUERILLA1")] ## Free Promotions for Hills
self.iEraPromotion = 2 ## Free Promotion per X Era Advance
1) Free March because it is Mech Infantry
2) Free Combat I from Aggressive Trait
3) Free City Garrison I and Drill I from Protective Trait
4) Free Guerilla I on Hills
5) Free Woodsman I on Jungle
6) 3 Random Promotions at Future Era