#----------------------------------------------------------------------------
#
# Project      : Call To Power 2
# File type    : Text file
# Description  : The data for constant things
# Id           : $Id:$
#
#----------------------------------------------------------------------------
#
# Disclaimer
#
# THIS FILE IS NOT GENERATED OR SUPPORTED BY ACTIVISION.
#
# This material has been developed at apolyton.net by the Apolyton CtP2 
# Source Code Project. Contact the authors at ctp2source@apolyton.net.
#
#----------------------------------------------------------------------------
#
# Modifications from the original Activision code:
#
# - Added MAX_MATCH_LIST_CYCLES
# - Added MIN_TURNS_BETWEEN_REVOLT
# - Set back CARAVAN_COEF devision by 10 is now done inside the executable.
#   - May 7th 2005 Martin Ghmann
# - Made the meridians symetrical. (29-Oct-2007 Martin Ghmann)
# - Increase the city is watchful period to 7 turns. (06-Sep-2008 Martin Ghmann)
#
#----------------------------------------------------------------------------

# all numbers are integers ranging from 0 to 100

PERCENT_LAND         45  # how much of the world is land (from 40)
PERCENT_CONTINENT    70  # how much of the world tends toward big continents verses small islands (WW from 50)
PERCENT_HOMOGENOUS   5  # how "clumpy" the land terrain is (from 55)

# the meridians are normalize on the map at 0 to 100 - 0 is all the way north
# and 100 is all the way south - 50 is the middle  - this works on a map of
# any size

MERIDIANA  5  # north of this is north pole (K: back to 5)
MERIDIANB 25  # north of this is north mild
MERIDIANC 35  # north of this is north desert
MERIDIAND 65  # north of this is the equatioral region (AE value)
MERIDIANE 75  # north of this is south desert
MERIDIANF 95  # north of this is the south mild, south is the south pole (K: back to 95)

# The humidity controls the distribution of forest, jungle, swamp, grass, plains, desert
# tundra and glacier.
# A bump map is randomly generated. The bumps range from 0 to 100. High bumps are
# wet terrain, low bumps are dry terrain.
# What terrain is used depends on what meridian you are in.

# The height values have a gausian distribution, with middle values being the most
# common. The HLEVEL values should be adjusted to take into account the integral 
# of the gaussian.

# HLEVELA must be greater the HLEVELB, HLEVELB must be greater then HLEVELC etc

HLEVELA 80  # above this is the wet terrain (from 85)
HLEVELB 60  # above this is sort of wet terrain
HLEVELC 40  # below is ??? middle terrain
HLEVELD 20  # below this is dry terrain (from 15)

# The wet/dry slider on the custom map screen uses these values.
# The sum of all the wet values together w/ the swamp wet value will add to 100.
# Similarly for the dry values.  Actually, swamp = 100 - (forest + grass + plains + desert).

FORESTWET 35	#from 40
GRASSWET  32	#from 30
PLAINSWET 30	#from 20
DESERTWET  0
# This leaves 3 for swamp.

FORESTDRY 19	#from 15
GRASSDRY  50	#from 30
PLAINSDRY 30	#from 50
DESERTDRY  1	#from  5
# This leaves 0 for swamp.

# The warm/cold slider on the custommap screen uses these values.

WHITEWARM 5
BROWNWARM 30
TEMPERATURERANGEADJUSTWARM 75

WHITECOLD 30
BROWNCOLD 5
TEMPERATURERANGEADJUSTCOLD 120

# The goodcount slider on the custommap screen uses these values.

RICHNESSFEWGOODS         25
RIVERCELLWIDTHFEWGOODS   25
RIVERCELLHEIGHTFEWGOODS  25

RICHNESSMANYGOODS        75
RIVERCELLWIDTHMANYGOODS   5
RIVERCELLHEIGHTMANYGOODS  5


PERCENT_MOUNTAIN 7   # percentage of land with mountain on it - this is a target only
MOUNTAIN_CELL    4   # length of a side of a cell - one cell contains at most 1 mountain chain. 

PERCENT_HILLS   13   # percent of land with hills on it
MOUNTAIN_SPREAD 60   # chance that the mountain chain spreads out
MOUNTAIN_LENGTH 8   # average length of a mountain chain (from 15)

GLACIER_EXTENT   1   # number of tiles the glacier extends - should be normalized (from 3)
PERCENT_VOLCANO  1   # percent of deep sea floor with volcanos
PERCENT_TRENCH   0   # percent chance that a trench is seeded - then it spreads automatically (Has to be zero since trench graphics are bugged)

# Swamps are placed at humidity levels above what forest works out to.
PERCENT_FOREST 20   
PERCENT_GRASS  90   #from 40
PERCENT_PLAINS 35  	#from 25 
PERCENT_DESERT 1   
PERCENT_WHITE  10	#from 20
PERCENT_BROWN  10	#from 20
TEMPERATURE_RANGE_ADJUST 60 # Adjust the temperature height map by negative this amount at the
                            # poles, positive at the equator, linear scale in between

NICE_RADIUS 10   # radius of effect when calculating niceness of player placement
                 # the mininum start distance between players is 2 * NICE_RADIUS

PERCENT_RIVER     50   # percent of land with a river on it (K: from 25)
RIVER_LENGTH       30   # average river length (K: from 15)
RIVER_CELL_WIDTH   10   # Size of cells to be searched for river starts (K: from 3)
RIVER_CELL_HEIGHT  5   # (highest point in each cell) (K: from 4)

RICHNESS 65 # density of special goods in the world (from 50)

CHANCE_LOST_AT_SEA 30 # chance of a unit being lost at sea (unused?)
VETERAN_COEF 50  #percent improvement in attack and defense of vetern units
REVOLUTION_LEVEL 67  # (from 60)
DISCOVERIES_POLLUTION_SIZE_MODIFIER 0.5
DISCOVERIES_POLLUTION_PRODUCTION_MODIFIER 0.01
AVERAGE_POLLUTION_TURNS	5
POPULATION_PRODUCES_POLLUTION_THRESHOLD		6   # from 16 (unused?)
PRODUCTION_PRODUCES_POLLUTION_THRESHOLD		300 # from 200 (unused?)

MAX_EMPIRE_DIST_COST  10.0  # max distance unhappyness
HAPPINESS_LAUNCH_COST  0.0  # cost of going into space or landing for calculation happiness

UNIT_WORKDAY  0.15 # slider to work (was 0.15)
BASE_WORKDAY  1.0  # work per person when slider is zero
UNIT_WAGES    1.0  # what does 1 notch mean
BASE_WAGES    5.0  # gold per person when slider is zero (was 4)
UNIT_RATIONS  1.0  # what does 1 notch mean (was 3)
BASE_RATIONS  9.0  # food per person time POP_HUNGER when slider is zero (was 12)

CHANGE_CURRENTLY_BUILDING_ITEM_PENALTY 25  # what percent of the sheild store is lost it the current item is changed

TARIFF_REDUCTION                   1       # how much to reduce tariffs by as part of a diplomatic request/agreement
REVOLT_INFLUENCE_DISTANCE          6       # city's revolt influence radius
PACT_CAPTURE_CITY_EXPIRES          10      # number of rounds before this agreement expires
# REWARD_CAPTURE_CITY_EXPIRES      10      # number of rounds before this agreement expires
CEASE_FIRE_EXPIRES                 10      # number of rounds before this agreement expires
SHORT_CEASE_FIRE_EXPIRES           5       # number of rounds before any other agreement expires
END_OF_GAME_YEAR_EARLY_WARNING     2200
END_OF_GAME_YEAR                   2300
CAPTURE_CITY_FOR_GOLD_MULTIPLIER   100     # amount to multiply gold reward by
PACT_END_POLLUTION_EXPIRES         50      # number of rounds before this agreement expires
LEAVE_OUR_LANDS_EXPIRES            20      # number of rounds before this agreement expires (was 10)
REDUCE_POLLUTION_EXPIRES           10      # number of rounds before this agreement expires
# DESTROY_ENEMY_FOR_REWARD_EXPIRES 10      # number of rounds before this agreement expires
PATIENCE_LOST_PER_REQUEST          3       #
PATIENCE_REGAINED_PER_ROUND        1
REGAIN_PATIENCE_PROBABILITY        80
PATIENCE_LOST_THRESHOLD            5



AI_GOAL_TIME_SLICE 25       # time in milliseconds for an AI frame (was 125)
AI_MAX_TIME_SLICE  250      # (in milliseconds)if the ai exceeds this time its turn is ended (was 1250)
AI_TOTAL_TIME_SLICE 3000    # (in milliseconds) if the total time in time in the ai player  exceeds this its turn is ended  (was 15000)

ENTRENCHMENT_BONUS 0.5      # defense bonus for being entrenched
PARADROP_DISTANCE 15        # how far away can paratroopers drop? (was 10)
PARADROP_SUCCESS_PERCENT 60 # a miss results in a drop to a neighboring square (was 75)

ELITE_SPY_BONUS                       0.0 # how much more likely elite spies are to succeed (was 0.15)
CITY_SECOND_ATTEMPT_SPY_BONUS         0.5  # how much less likely a spy is to succeed on a second attempt.
ASSASINATION_HAPPINESS_EFFECT        -5    # unhappiness caused when a ruler is assasinated
ASSASINATION_HAPPINESS_EFFECT_TIMER   5    # how long the above lasts
SPIED_UPON_WARINESS_TIMER             7    # How many turns a spied upon city gets increased wariness (was 5)

MAX_PARTY_COST         500      # most than can be spent on a party
MAX_PARTY_CHANCE         0.5    # the chance of hearing gossip at a party where the
                                # max gold was spent.  Less gold decreases proportionally. (was .5)
GOSSIP_MAP_RADIUS       10      # When a map is revealed through gossip, a circle of
                                # this radius appears
HEAR_GOSSIP_CHANCE       0.05   # How likely a diplomat next to a capitol is to hear gossip (was 0.02)
FRANCHISE_EFFECT         0.1    # How much production a franchise steals
TURNS_TO_SUE_FRANCHISE   0      # How many turns a lawsuit takes to expel a franchise

SLAVER_ELITE_CHANCE 0.0 # Chance of a slaver becoming elite in a successful raid (was 0) was .25
ELITE_SLAVER_BONUS  0.0 # Bonus to success percentage an elite slaver receives (was 0)

ABOLITIONIST_ELITE_CHANCE 0.0 # chance of an abolitionist becoming elite (was 0) was .25
ELITE_ABOLITIONIST_BONUS 0.0 # Bonus an elite abolitionist receives (was 0)
WATCHFUL_CITY_SUCCESS_MODIFIER 0.5 # Multiply an abolitionist or slaver's success chance by this
WATCHFUL_CITY_DEATH_MODIFIER 1.0 # Multiply death chance by this
WATCHFUL_CITY_TURNS 7 # how long a city remains watchful

BIO_INFECTION_TURNS 5
NANO_INFECTION_TURNS 5
BIO_INFECTION_SPREAD_CHANCE  0.33 # (was .30)
NANO_INFECTION_SPREAD_CHANCE 0.20
PLAGUE_KILL_PERCENTAGE 0.20

ELITE_TERRORIST_BONUS 0.0
TERRORIST_ELITE_CHANCE 0.0
NUKE_POPULATION_PERCENTAGE 0.75

SPECIAL_ACTION_MOVE_COST 100.0

CLERIC_CONVERSION_FACTOR        0.2  # cities converted by clerics send this 
                                     # much of their gold each turn
TELEVANGELIST_CONVERSION_FACTOR 0.3  # like the above, but for televangelists (was 0.4)
                                     # and cities with televisions (cities
                                     # without TV fall back to the cleric level)
REFORMATION_CHANCE 1.0
REFORMATION_DEATH_CHANCE 0.0
REFORMATION_HAPPINESS_TIME 4
REFORMATION_HAPPINESS_AMOUNT -5

UNCONVERTED_INDULGENCE_GOLD 20		# (was 3)
UNCONVERTED_INDULGENCE_HAPPINESS 2
CONVERTED_INDULGENCE_GOLD 40 		# (was 5)
CONVERTED_INDULGENCE_HAPPINESS 4
OTHER_FAITH_INDULGENCE_GOLD 20 		# (was 2)
OTHER_FAITH_INDULGENCE_HAPPINESS 1
SOOTHSAY_HAPPY_AMOUNT -2 			# (was -5)

RUINS_BOX_WIDTH 6
RUINS_BOX_HEIGHT 6
RUINS_CHANCE_PER_BOX 1.0
MAX_RUINS_GOLD 100			# unused
MAX_RUINS_ADVANCE 10		# unused
MAX_RUINS_UNIT 30			# unused

UNIT_RUSH_MODIFIER 3		# unused
IMPROVEMENT_RUSH_MODIFIER 1	# unused
WONDER_RUSH_MODIFIER 5		# unused
BUILDING_PRODUCTION_TO_VALUE_MODIFIER 0.5	# unused

MONOPOLY_THRESHOLD                       50  # amount goods a particular city has to have to corner the market
POPULATION_POLLUTION_WARNING_THRESHOLD   10  # population pollution warning message threshold
INDUSTRIAL_POLLUTION_WARNING_THRESHOLD   10  # industrial pollution warning message threshold
VERY_HAPPY_THRESHOLD                     85  # threshold at which a city is considered "very happy"
CITY_GROWTH_COEFFICIENT                 225  # Amount of food per citizen required to grow a city (was 175)
RIOT_LEVEL                               73
POWER_POINTS_TO_MATERIALS                 1  # 1 power point can be converted to x materials (Unused)
MAX_AIRLIFT_STACK_SIZE                    2
GOLD_FROM_PIRACY                         30
NO_PIRACY_EXPIRES                         5
SPACE_LAUNCH_COST                      1000  # unused
SPACE_LAND_COST                        1000  # unused

WORMHOLE_ORBIT_HEIGHT_PERCENTAGE 10			# unused
WORMHOLE_SPEED                   10			# unused
WORMHOLE_RETURN_TIME              5			# unused
WORMHOLE_VISIBLE_TO_ALL_TURNS     5			# unused
MAX_GOVERNMENT_CHANGE_TURNS       5			# (was 4)

POLLUTION_FORCES_ANARCHY  1500
FOOD_TO_POLLUTION_COEF    1.0                # pollution to food ratio produced by food vats


EMANCIPATION_UNHAPPINESS_TURNS   5
EMANCIPATION_UNHAPPINESS_AMOUNT -3

CAPTURE_CITY_ADVANCE_CHANCE 0.33 # chance of gaining an advance when capturing a city (assuming they have advances you don't) (was 0.5)

CITY_HEAL_RATE   0.20	# from 1
NORMAL_HEAL_RATE 0.03	# from 0.1

LOCAL_POLLUTION_LEVEL 600		# from 400
LOCAL_POLLUTION_CHANCE 0.00001	# from 0.0005

ASSAULT_DESTROY_BUILDING_CHANCE 0.3  # chance of an assault on a city destroying a building (from 0.1)
BOMBARD_DESTROY_BUILDING_CHANCE 0.2  # chance of a bombardment on a city destroying a building (from 0.1)
ADVANCE_CHOICES_MIN 4
ADVANCE_CHOICES_MAX 6

ATTACK_CONVERTER_UNHAPPINESS_TURNS 5
ATTACK_CONVERTER_UNHAPPINESS_AMOUNT -3.0

MIN_START_DISTANCE_COEFFICIENT 0.45
MAX_START_DISTANCE_COEFFICIENT 0.6
MAX_SAME_TILES 4
COMBAT_VETERAN_CHANCE 0.1

STOP_TRADE_ROUNDS 5
LEAVE_OUR_LANDS_ROUNDS 3
REDUCE_POLLUTION_ROUNDS 10
CAPTURE_CITY_ROUNDS 5
END_POLLUTION_ROUNDS 10
ATTACK_ENEMY_ROUNDS 10

MIN_CONTINENT_START_SIZE 10

BOMBARD_KILL_POP_CHANCE 0.4	# from 0.1
ASSAULT_KILL_POP_CHANCE 0.6	# from 0.4
CAPTURE_KILL_POP_CHANCE 1.0

SCALED_POP_ANCIENT              10000     # (Unused)
SCALED_POP_RENAISSANCE          10000     # (Unused)
SCALED_POP_MODERN               100000    # (Unused)
SCALED_POP_GENETIC              1000000   # (Unused)
SCALED_POP_DIAMOND              5000000   # (Unused)

PIRACY_KILLS_TRADER_CHANCE 80			# unused
UPRISING_CHANCE_PER_UNGUARDED_SLAVE 3	# from 5 (Cradle previously used 2)
MAX_DISBAND_SIZE 6						# from 3
MAX_REQUESTS_PER_PLAYER_PER_TURN 6		# from 3
SLAVES_PER_MILITARY_UNIT 12				# from 3 (12 is Cradle default)
MIN_ABSOLUTE_START_DISTANCE 5

#
# These map size settings must all be defined,
# and in this order, first is height, second is width
#
MAP_SIZE_SMALL          25      50      2	# from 26      52      2
MAP_SIZE_MEDIUM         50      100     2	# from 48      96      2
MAP_SIZE_LARGE          75      150     2	# from 64      128     2
MAP_SIZE_GIGANTIC      100      200     2	# from 70      140     2

RAIL_LAUNCH_POLLUTION 50	# unused
SPACE_FUEL_COST       5		# unused
NON_SPACE_FUEL_COST   100	# unused


#
# At the end of each turn, the program does a rough projection
# of the users maintenance costs, food usage, and support. If
# the projected usages exceed the projected available resources by
# more than the specified percentage, the user is given a warning.
# 
STARVATION_WARNING_FUDGE_FACTOR  120
MAINTENANCE_WARNING_FUDGE_FACTOR 110
SUPPORT_WARNING_FUDGE_FACTOR     110

RELATIVE_AI_PRODUCTION_CHEAT_COEF 1.0
RELATIVE_AI_SCIENCE_CHEAT_COEF 1.0

NUKE_KILL_TILES 5

INCITE_REVOLUTION_GOLD_COEFFICIENT 100.0
INCITE_REVOLUTION_CAPITOL_PENALTY  5000.0

INCITE_UPRISING_GOLD_COEFFICIENT 25.0
INCITE_UPRISING_CAPITOL_PENALTY 50.0

BIO_INFECTION_UNHAPPINESS -5

MIN_ECO_PACT_VIOLATION_LEVEL 200
NANO_INFECTION_TERRORIST_DEATH_CHANCE 0.25
BIO_INFECTION_TERRORIST_DEATH_CHANCE 0.0	# from 0.25
FLOOD_CHANGES_COAST_TO_WATER_CHANCE 0.5
AI_CHEAT_ECO_PACT_MIN 10
AI_CHEAT_ECO_PACT_MAX 50

MAX_ABSOLUTE_GROWTH_RATE 2500
TRADE_DISTANCE_COEFFICIENT 1
MIN_LIKE_TILES_FOR_GOOD 1
MIN_GOOD_VALUE 0.01
MAX_GOOD_VALUE 0.05

PIRACY_WASTE_COEFFICIENT 0.8

BORDER_INT_RADIUS 4
BORDER_SQUARED_RADIUS 20

BIO_INFECTION_PRODUCTION_COEF 0.2
NANO_BUILDING_KILL_PERCENTAGE 0.3
BASE_STARVATION_PROTECTION 3

CARAVAN_COEF 0.03	# from 0.04

POLLUTION_CAUSED_BY_NUKE 1000000

# Apolyton changes (K: None of those below were in Cradle - some were changed, the rest are Apolyton defaults)
MAX_MATCH_LIST_CYCLES 6 # Amount of AI match list cycles
MIN_TURNS_BETWEEN_REVOLT 5 # K: increased to reduce possible chaos (was 1) - minimum number of turns from when a city revolts until it is possible to revolt again

MAX_CITY_WONDERS    5  # 1000 is source code default; modifying this will limit how many wonders/buildings a city can have
MAX_CITY_BUILDINGS  64  	# K: Since 64 is the hard limit (was 1000)
CAPTURED_CITY_KILL_POP   1  # when a city is captured this number of the population is lost, a -1 value makes it a random number of the population
# Like veteran but zeroed out, possible for mods
COMBAT_ELITE_CHANCE 0.05 	# K: Set at half Veteran chance (was 0)
COMBAT_LEADER_CHANCE 0.00 
CITY_ON_TRADE_ROUTE_BONUS  0.0   # if a trade route passes through a city and the desination and source is not the same as the city owner then you get this percentage of the trade route value

# Can be overwritten in strategies.txt for each strategy separately (K: Haven't seen this used in AE or any mods or scenarios) - 
TurnsAcceptedForOnePop 40  # K: AE used 999 (too high) while Alexander Scen uses 150
