diff -Naur Doomsday Data Files.old/DD-DAIM-Readme.txt Doomsday Data Files/DD-DAIM-Readme.txt
--- Doomsday Data Files.old/DD-DAIM-Readme.txt	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/DD-DAIM-Readme.txt	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,175 @@
+|-----------------------------------------|
+| DAIM for Doomsday - version 06-Apr-2007 |
+|-----------------------------------------|
+
+This is a collection of frequently asked questions regarding DAIM. You can
+contribute or ask your questions at our subforum at the Paradox forum:
+http://www.europa-universalis.com/forum/forumdisplay.php?f=298
+
+Your modders,
+G'Kar and Spocky
+
+
+
+...and now, the F.A.Q.:
+
+
+What the hell is DAIM? Can I eat it?
+
+"DAIM" is an abbreviation and stands for "more Determined AI Modification". It
+is a mod for Hearts of Iron 2 that changes the behaviour of the AIs of the major
+powers and some minors in the scenarios starting in 1936, 1938 and 1939. It was
+developed primarily with 1936 in mind, but works also in the other two mentioned
+scenarios.
+
+
+Which countries' AIs are affected by DAIM?
+
+Currently there are DAIM AI sets for Germany, Italy, Japan, Great Britain,
+Soviet Union, U.S.A. and Nationalist China. Additionally some minors have been
+adapted to help their corresponding major power more, e.g. Canada for the UK or
+Manchukuo for Japan. We didn't touch France or Spain though.
+
+
+How do I install your mod?
+
+You download the installer of the latest version, usually available in our
+subforum at the Paradox forum, and execute it. It will automatically retrieve
+the path to your installation of HoI 2 (which can be manually altered if
+necessary) and install DAIM there. Several files of HoI will be overwritten, but
+an uninstall function is included so there's no need to do a manual backup by
+yourself. Once you start your next game of HoI 2, the changed AIs will be
+active. Every AI nation with DAIM installed will have a short event saying "DAIM
+installed" as a reminder for you and to confirm that everything went right.
+
+
+What is modified when I install DAIM?
+
+First of all, we only change AI files and the events necessary to switch between
+them. The other mechanisms of the game, like scenario setups, leaders and
+ministers etc. remain unchanged. We don't use gifts like free divisions or other
+bonuses for the AI just to increase the challenge. The AI plays with the same
+possibilities and restrictions as in "vanilla" HoI, our goal is to make the AI
+play more like a human usually plays the game: Focussed on the really important
+issues in production and research, anticipating the upcoming war.
+
+
+Okay, but what is changed exactly?
+
+Concerning the AI files: A lot. We rebuilt the production and research sections
+of the AI files more or less from scratch and changed a lot of other parameters
+dealing with placement and usage of the units. In general the AI nations will
+build more land units and disregard the less important parts of the research
+tree. For example: AI usage of paratroopers isn't that specific, so why spend a
+lot of money and production on them? A German surface fleet is very likely to be
+sunk, so why build a lot of it?
+Playing with DAIM you'll notice a different buildup of the AI nations,
+especially the Soviet Union, the US and Japan will field more land divisions. We
+also refrained from telling AI Japan to stop its advance in China, so DAIM Japan
+will usually conquer all of China relatively fast. These are just examples, the
+AI plays quite different with DAIM overall.
+
+
+There is a "Customized Events" option when installing DAIM, what is it?
+
+We changed a few events for various reasons: We changed the surrender of China
+to Japan in order to prevent a supply convoy bug that happens every once in a
+while. Now Japan gets the whole coast when China surrenders (changed japan.txt
+and nationalist_china.txt). And we added two events: "Mers-el-Kebir" which gives
+Great Britain the option to attack Vichy France (for historical reasons) and a
+"Slider Reminder Event" which fires within a few days whenever one of your
+domestic policy sliders can be moved (we replaced the content of
+japanmanpower.txt with them because the events there didn't work anyway).
+If you uncheck the corresponding checkbox, no standard game events will be
+changed (except AI switches, of course).
+
+
+How do I upgrade from one version of DAIM to another?
+
+Quite simple: You uninstall the previous version and install the new one. We
+recommend not to upgrade with ongoing games, so do it at your own peril.
+Hint: You can see which version is currently installed by the date at the
+beginning of the readme.
+
+
+Your mod is crap, how do I get rid of it?
+
+There's a file called "DAIM-uninstall.exe" in the main folder of HoI when DAIM
+is installed, simply execute it to revert the AI back to the standard settings.
+All changed files will be replaced with standard ones and all additional DAIM
+files will be removed from your system. If there's any problem that slipped
+through our tests, please let us know and we'll try to help you out.
+
+
+Is DAIM a "historical" mod?
+
+I consider it to be semi-historical at least. We didn't change the initial
+setups of the nations, and the AI will respect the historical starting dates
+approximately. The results can vary, yes, e.g. Japan usually conquers China
+successfully, but it's the engine of the game itself that allows these results
+to happen, it's not our "fault". A human player would do the same: There's no
+point in repeating the historical course of events when playing the Axis, you'd
+have to loose in the end every time. The DAIM AIs were developed with a human
+player in mind who starts the war historically – but then tries to do better.
+
+
+I saw the "Backup" option in the installer, what's it for?
+
+First of all, the DAIM installer has an uninstall option included, so the
+overwritten files can be reverted back to the standard files anyway. But if you
+want, you can install a backup of the standard AI files additionally, in this
+case a subfolder called "backup-daim" will be created upon installation in which
+you can find these files. It is meant as an optional security measure for our
+users.
+Please note that the AI files of your installation will not be moved to the
+backup folder, they’ll be overwritten and standard AI files will be copied to
+the backup folder.
+
+
+Is your mod compatible with other mods?
+
+Yes and no. Only the AI behaviour is changed, so it can be used with other mods.
+But the problem lies in the details: It can be difficult to get several mods to
+work together, the work needed will be different from case to case and is up to
+the ability of the user.
+
+
+Why do you mod the AI for yourselves, wouldn't it be better to participate
+actively in AI discussions, share your insights and help develop a better AI for
+"vanilla" HoI?
+
+The problem with AI modding is that it is very time intensive and results can be
+strongly dependent on what happened in one specific game. It is difficult to
+compare the results of different modding approaches. What you'll like or dislike
+with an AI modification depends on your expectations: Do you want a perfectly
+historical AI or would you prefer a more "efficient" approach? That's what makes
+AI modding difficult to discuss: Nobody would directly compare the Great War
+modification and C.O.R.E. either, I think that's right to a lesser extent for AI
+modifications. By the way - there was a subforum for AI modifications of HoI 1,
+but there was little action and it disappeared later.
+We don't claim to do everything better in our versions of the AI, we simply make
+the AI act in a different way which we consider more interesting and challenging
+for the human player. We explicitly respect the work of Lothos, the scripter of
+the standard HoI 2 AI, but we have a different philosophy and – in contrast to
+him – as free modders we can afford to follow our goals without having to keep
+in mind the interests of the whole community of HoI players concerning
+historicity and such. We have the luxury to do what we want with the AI and we
+use it to give ourselves and everybody interested a more challenging AI.
+
+
+Doomsday specific questions
+---------------------------
+
+Is DAIM for Doomsday compatible with the original HOI 2?
+
+No, that's why there is a separate version for it.
+
+
+Does DAIM for Doomsday support the new Doomsday scenario?
+
+No, DAIM still is for the 1936, 1938 and 1939 scenarios exclusively.
+
+
+Does DAIM for Doomsday use new features like the spying system?
+
+Yes, sure.
diff -Naur Doomsday Data Files.old/ai/ast_1936.ai Doomsday Data Files/ai/ast_1936.ai
--- Doomsday Data Files.old/ai/ast_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/ast_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,20 +1,18 @@
-# Australia 1936 AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 4.0 
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
-neutrality = 110
-war = 1
-upgrading = 0.25
-reinforcement = 0.2
+neutrality = 50 
+war = 20
 strat_redeploy_threshold = 25
-exp_force_ratio = 0.15
+exp_force_ratio = 0.50
 exp_force_ratios = {
 	ENG = 1.0
 } 
-no_exp_forces_to = { FRA BEL HOL NOR DEN POL LUX SPA SPR GRE YUG }
-evac_islands = no
 
 ###################################
 # Diplomacy
@@ -22,12 +20,7 @@
 combat = { }
 
 befriend = {
-	USA = 100
-	ENG = 100
-	FRA = 80 
-	NZL = 80 
-	SAF = 80
-	CAN = 80
+
 	HOL = 50
 	BEL = 50 
 }
@@ -43,8 +36,6 @@
 }
 target = { } 
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -73,91 +64,20 @@
 	}
 	embargo = { }
 	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Naval Bomber
-		4190 = 100
-		4200 = 100
-		4210 = 100
-
-		# Marines
-		1150 = 100
-		1160 = 100
-		1170 = 100
-		1180 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 3
-		counter_espionage =  10
-		country = AST
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
+	prioritized = {	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
 #Default values
 construction = { 
-	max_factor = 1.0
+	max_factor = 0.1 
+
 
 	AA_batteries = no
 	max_AA_level = 3
 	AA_provs = { 
-		1730 # Melbourne
-		1728 # Canberra
-		1727 # Sydney
 	}
 
 	coastal_fort = no
@@ -168,7 +88,7 @@
 	max_radar = 5 
 	radar_provs = { } 
 
-	air_base = yes
+	air_base = no
 	max_air_base = 4
 	air_base_provs = {
 		1696 # Townsville
@@ -184,8 +104,8 @@
 	fort_borders = { } 
 
 	ic_at_war = yes 
-	force_ic_until = 1945
-	ic_end_year = 1945
+	force_ic_until = 1935
+	ic_end_year = 1940
 	IC_provs = {
 		1730 # Melbourne
 		1728 # Canberra
@@ -194,217 +114,161 @@
 }
 
 military = { 
-	relative_build_scheme 	= no
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 360 
+	max_batch_war 		= 180 
 	max_batch_home_front 	= 180
 
 	#### Divisions etc...
-	infantry 		= 25
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
+	infantry 	= 30
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 0
+	armor 		= 10
 	paratrooper 	= 0
-	marine 			= 0
+	marine 		= 10
 	bergsjaeger 	= 0
-	garrison		= 0
-    hq 				= 0
-	militia 		= 0
-#				25 %
-	interceptor 	= 5
-	multi_role 		= 5
-	cas 			= 5
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				50 %
+	interceptor 	= 0
+	multi_role 	= 0
+	cas 		= 0
 	strategic_bomber = 0
-	tactical_bomber = 5
-	naval_bomber 	= 5
+	tactical_bomber = 0
+	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				25 %
-	battleship 		= 0
-	carrier 		= 0
-	escort_carrier	= 0
-	destroyer 		= 30
-	light_cruiser 	= 8
-	heavy_cruiser 	= 5
+#				0 %
+	battleship 	= 0
+	carrier 	= 0
+	destroyer 	= 10
+	light_cruiser 	= 10
+	heavy_cruiser 	= 10
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 7
+	submarine 	= 0
+	transports 	= 20
 #				50 %
 
 	#### Brigades
-	artillery 			= 25
+	artillery 		= 30
 	sp_artillery 		= 0
 	rocket_artillery	= 0 
 	sp_rct_artillery 	= 0
-	anti_tank 			= 10
+	anti_tank 		= 0
 	tank_destroyer 		= 0
-	light_armor_brigade = 0
-	heavy_armor 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 10
 	super_heavy_armor 	= 0
-	armored_car 		= 0
-	anti_air 			= 0
-	police 				= 0	
-	engineer 			= 10 
+	armored_car 		= 10
+	anti_air 		= 0
+	police 			= 10	
+	engineer 		= 10 
 
 	cag = 100.000 
 }
 
 technology = { 
 	endgoal 	= { } 
-	preference = {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Naval Doctrines
-		8200 8250 8140 8260
-
-		# Land Doctrines
-		6170
-
-		# Air Doctrines
-		9040 9050 9060 9070 9080 9090 9100 9110 9120 9130 9190 9210 9220 9230 9240 9250 9350
-
-		# CAS
-		4170 4280 4180
-	} 
-	ignore 	= {
-		# Vehicle Assembly & Rocket Assembly
-		5160 5170
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Cavalry
-		1190 1200 1210 1220
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Motorized
-		1230 1240 1250
-
-		# Air Transports
-		4250 4260 4270
-
-		# Strategic bombers
-		4220 4230 4240
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Test and Research
-		5550 5560 5570 5580 5590
-
-		# Bas Decimetric
-		5410 5420 5430 5440 5450 5460
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Medium tanks
-		2010 2070 2080 2090
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Heavy Tanks and Semi-Modern Tank
-		2100 2110 2120 2140
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-		
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-		
-		# Anti Air Brigade
-		2510 2520 2530 2540
-
-		# Armoured Cars
-		2150 2160
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Battleship
-		3250 3260 3270 3280 3290 3300 3310
-
-		# Carrier
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Submarines
-		3400 3410 3420 3430 3440 3450
-		
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
-	}
+	preference 	= { 
+			# inf
+			1310 1320 1330 1340 1350 1360 # supply 
+			1010 1020 1030 1040 1050 1060 # inf 
+			1150 1160 1170 1180 # marine			 
+			 
+			# tank & ARI 
+			2150 2160 # AC 
+			2290 2300 2310 2320 2340 2350 2360 # ARI 
+			2100 2110 2120 # heavy tanks 
+			 
+			# navy 
+			3130 3140 3150 3160 3170 # hc 
+			3010 3020 3040 3050 3060 # destroyer			 
+			3070 3080 3090 3100 3110 # lc	
+
+			# industry 
+			5010 5020 5030 5040 #  agriculture 
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 # industry 
+			 
+			# nav docs 
+			8200  8130
+			} 
+	ignore 		= { 
+			#Inf
+			1080 1090 1100 # Para
+			1110 1120 1130 1140 # mountie
+			 
+			#ARI & Tank	
+			2130 # super heavy
+			2260 2270 2280 # SP Rock
+			2370 2380 2390 # rock
+			2470 2480 2490  # AA
+			2170 2180 2190 2200 2210 # SP AT 
+			 
+			#Mavy 
+			3190 3200 3210 3220 3230 #BC
+			3310 # SH BB
+			3430 3450 # sub 
+			3320 3330 3340 3350 3360 3370 # carrier 
+			3250 3260 3270 3280 3290 3300 # bb
+			12100 12110 12120 12130 12140 12150 # light  carrier
+			 
+			#Plane 
+			4070 4040 4100 # Fighter
+			4170 4280 4180 # cas 
+			4260 4270 # Transport
+			4220 4230 4240 # strat
  
-	armor 		= 3
-	infantry 	= 5
+			#industry 
+			5550 5560 5570 5580 5590 # rocket
+			5190 5200 5210 5220 5230 # oil 
+			5470 5480 5490 5500 5510 5520 5530 5540 # nuclear 
+			5170 # rocket assembly 
+			 
+			# landdocs 
+			6160 6170 6190 6200			 
+			# airdocs
+			9040 9050 9060 9070 9080
+			9270 9280 9290 9300
+			9140 9150 9160 9170 9180 
+			9430 9440 9450 9460 
+			9230 9240 9250 9260 
+			9390 9400 9410 9420 
+		}
+ 
+	
+ 
+	armor 		= 4 
+	infantry 	= 4
 	industry 	= 4
-	aircraft 	= 1
-	naval 		= 1
-	land_doctrines 	= 1
-	secret_weapons 	= 0
-	air_doctrines 	= 1
-	naval_doctrines = 1
-}
+	aircraft 	= 4
+	naval 		= 2
+	land_doctrines 	= 3
+	secret_weapons 	= 1
+	air_doctrines 	= 2
+	naval_doctrines = 2
+}  
 
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 1.0
@@ -417,8 +281,8 @@
 	# PRIORITIES:
 	beach			= 20	# Beach level 2
 	capital			= 40	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -434,7 +298,7 @@
 	area_multiplier = { }
 }
 front = { 
-	recklessness 		= 1 # 0-3
+	recklessness 		= 2 # 0-3
 	distrib_vs_ai 		= even
 	distrib_vs_human 	= even
 
@@ -442,97 +306,28 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
 	withdraw_odds		= 0.6
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = { } 
       	passivity = { } 
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
 invasion = { 
-	invasion 	= no
+	invasion 	= yes
 
  	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
 	random		= 8.0	#How big a random range.  (1.0 = 1%)
@@ -548,241 +343,96 @@
       	air_support 	= 3.0 
       	redirect 	= priority
 	ignore		= no
-      
-	target = { } 
+	staging_province = {
+		906
+		1457
+		23
+	}
+      	target = { 
+		534 = 1000 # Sardinia
+		521 = 1000#	Naples 			
+		519 = 1000#	Anzio
+		518 = 1000#	Cassino
+		525 = 1000#	Palermo
+		
+		401 = 1000 # Athen
+		394 = 1000 # Patras 
+		396 = 500 # Crete
 } 
-admiral = { 
+	}
+	
+admiral = {
 	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
 	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
 	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
 
-	ignore = {
-		#Baltic Area
-		"Northern Baltic"
-		"Southern Baltic" 
-		"Bothnian Bay"
-		
-		#Murmansk/Archangel
-		"Barents Sea"
-		"Arctic Ocean"
-		
-		#Norway Coast (Denmark Coast)
-		"Norwegian Sea"
-		"East North Sea"
-		"Kattegat"
-		
-		#North Sea, East Coast of England
-		"Central Northsea"
-		"West Northsea"
-		"Southeast Northsea"
-		
-		#England/France border Sea Areas
-		"English Channel"
-		"Bay of Biscay"
-		"Cape Finisterre"
-		
-		#Spanish Coast (Atlantic Side)
-		"Portugese Coast"
-		"Cap St Vincent"
-		
-		#Iceland
-		"Faroes Gap"
-		"Denmark Strait"
-		
-		#Ireland/West Coast of England
-		"Irish Sea"
-		"The Hebreides"
-		"Irish West Coast"
-		
-		#Greenland
-		"Greenland Coast"
-		"Northern Sea of Labrador" 
-		"Southern Sea of Labrador"
-		
-		#Canada East Coast
-		"Hudson Bay"
-		"Grand Banks"
-		"Canadian Maritimes"
-		
-		#Western Mediterranean
-		"Costa del Sol"
-		"Gulf of Lyon"
-		"Algerian Coast"
-		
-		#Central Mediterranean
-		"Tyrrhenian Sea"
-		"Adriatic Sea"
-		
-		#Eastern Mediterranean
-		"Black Sea"
-		"Aegean Sea"
-		"Egyptian Coast"
-		
-		#North Atlantic
-		"North Atlantic"
-		"Western Approaches"
-		"The Seamounts"
-		"Azores"
-		
-		#Central Atlantic
-		"Central Atlantic"
-		"Central Mid-Atlantic Ridge"
-		"Bermuda Triangle"
-		"Guiana Basin"
-		"South-Central Mid-Atlantic Ridge"
-		"Cap Verde"
-		
-		#South Atlantic
-		"Pernambuco Plain"
-		"Ascension Fracture Zone"
-		"Argentine Plain"
-		"Angola Plain"
-		
-		#Caribbean Sea and Guilf of Mexico
-		"West Gulf of Mexico"
-		"East Gulf of Mexico" 
-		"Florida Strait"
-		"Yucatan Strait"
-		"Windward Islands"
-		"Central Carribean"
-		
-		#Brazil and Argentina Coast
-		"Coast of Guyana"
-		"Coast of Recife" 
-		"Coast of Uruguay"
-		"Coast of Brazil"
-		"Coast of Argentina"
-		
-		# West Africa
-		"Coast of Africa"
-		"Coast of Bissao" 
-		
-		#Equitorial Africa
-		"Gulf of Guinea"
-		"Coast of Angola-Namibia"
-		
-		#South Africa
-		"Coast of South Africa"
-		"Atlantic-Indian Ridge"
-		
-		#East Africa
-		"Red Sea"
-		"Horn of Africa"
-		
-		#Madagascar Coast
-		"South Mozambique Channel"
-		"North Mozambique Channel" 
-		"Northeast Coast of Madagascar"
-		"Southeast Coast of Madagascar" 
-		
-		#North Indian Ocean (Persian Gulf)
-		"Persian Gulf"
-		"North Arabian Sea"
-		"South Arabian Sea" 
-		"Coast of Ceylon"
-		
-		#Central/South Indian Ocean
-		"Mascarene Plateau"
-		"Mid-Indian Ridge" 
-		"Ninetyeast Ridge" 
-		"Southeast Indian Ocean"
-		"Southwest Indian Ocean" 
-		
-		#Bay of Bengal & West Indonesia
-		"East Bay of Bengal"
-		"West Bay of Bengal"
-		"Malacca Strait"
-		"Java Ridge"
-		"Java Trench"
-		
-		#Indo-China, Borneo, Phillipenes
-		"Gulf of Siam"
-		"Coast of Indochina"
-		"Spratly Sea"
-		"Coast of Brunei"
-		"Flores Sea"
-		"Sulu Sea"
-		"Celebes Sea"
-		"Luzon Strait"
-		
-		#China Coast
-		"Taiwan Strait"
-		"Yellow Sea"
-		
-		#Japanese Coast
-		"Sea of Japan"
-		"Ryukyus"
-		"Coast of Japan"
-		"South Sea of Okhotsk"
-		"West Sea of Okhotsk" 
-		"East Sea of Okhotsk" 
-		
-		#Mariana Basin, Phillipenes
-		"Philipine Trench"
-		"Central Philippine Sea"
-		"Mariana Trench"
-		"East Mariana Basin"
-		"Mid-Pacific Mountains"
-		"North Bismarck Sea"
-		
-		#North Pacific
-		"Coast of Kamchatka"
-		"East Bering Sea"
-		"West Bering Sea" 
-		"Aleutians"
-		"Northwest Pacific Basin"
-		"North Northeast Pacific Basin"
-		
-		#Central Pacific
-		"Hawaiian Rise"
-		"North East Pacific Ocean"
-		"Marshalls Sea"
-		"South East Pacific Ocean"
-		"Marianas"
-		"Western Solomons"
-		"Eastern Solomons"
-		"US Maritimes"
-		"Carolines"
-		
-		#South Pacific
-		"Gilberts"
-		"Line Islands"
-		"Fiji Basin"
-		"Southwest Pacific Basin"
-		
-		# South American West Coast
-		"Southeast Pacific Basin"
-		"West Coast of Chile"
-		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
-		
-		# USA West Coast
-		"Gulf of Alaska"
-		"West Coast of the United States"
-		
-		#West Coast of Mexico
-		"West Coast of Mexico"
-		"West Coast of Central America"
+ignore = {
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+
+# North Sea
+"Kattegat"
+"Southeast Northsea"
+"West Northsea"
+"Central Northsea"
+"Norwegian Sea"
+"East North Sea"
+"Barents Sea"
+
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
 	}
-	target = {
-		2591 = 200
-		2109 = 200
-		2107 = 150
-		2114 = 100
-		2116 = 50
-	} 
-	core = {
-		2097
-		2098
-		2100
-		2111
-		2112
-		2113
-		2128
-		2088
-		2087
-		2094
-	} 
-}
\ No newline at end of file
+
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = AST
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/ast_1941.ai Doomsday Data Files/ai/ast_1941.ai
--- Doomsday Data Files.old/ai/ast_1941.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/ast_1941.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,162 +1,28 @@
-# Australia 1936 AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 2.0 
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
 neutrality = 50 
 war = 20
 strat_redeploy_threshold = 25
-exp_force_ratio = 0.25
+
+exp_force_ratio = 0.00
 exp_force_ratios = {
-	ENG = 1.0
 } 
-no_exp_forces_to = { FRA BEL HOL NOR DEN POL LUX SPA SPR GRE YUG }
-evac_islands = no
 
-###################################
-# Diplomacy
-###################################
-combat = { }
 
-befriend = {
-	USA = 100
-	ENG = 100
-	FRA = 80 
-	NZL = 80 
-	SAF = 80
-	CAN = 80
-	HOL = 50
-	BEL = 50 
-}
-protect = {
-	USA = 100
-	ENG = 100
-	FRA = 80 
-	NZL = 80 
-	SAF = 80
-	CAN = 80
-	HOL = 50
-	BEL = 50 
-}
-target = { } 
-trade = {
-	cancel_deal_threshold = 2
-
-	energy 		= -1
-	rare_materials 	= -1
-	metal 		= -1
-	oil 		= -1
-	supplies 	= -1
-	money 		= -1
-
-	favored = {
-		USA = 100
-		ENG = 100
-		FRA = 80 
-		NZL = 80 
-		SAF = 80
-		CAN = 80
-	}
-	embargo = { }
-}
-tech_sharing = {
-	favored = {
-		USA = 100
-		ENG = 100
-		FRA = 80 
-		NZL = 80 
-		SAF = 80
-		CAN = 80
-	}
-	embargo = { }
-	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Naval Bomber
-		4190 = 100
-		4200 = 100
-		4210 = 100
-
-		# Marines
-		1150 = 100
-		1160 = 100
-		1170 = 100
-		1180 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 3
-		counter_espionage =  10
-		country = AST
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-}
-###################################
-# Construction and Tech Research
-###################################
 #Default values
 construction = { 
-	max_factor = 0.050
+	max_factor = 0.000 
 
 
-	AA_batteries = yes
+	AA_batteries = no
 	max_AA_level = 3
 	AA_provs = { 
-		1730 # Melbourne
-		1728 # Canberra
-		1727 # Sydney
 	}
 
 	coastal_fort = no
@@ -167,21 +33,16 @@
 	max_radar = 5 
 	radar_provs = { } 
 
-	air_base = yes
+	air_base = no
 	max_air_base = 4
 	air_base_provs = {
+		1696 # Townsville
 		1670 # Rabaul
-		1679 # Port Moresby
-		1672 # Lae
 	} 
 
-	naval_base = yes
-	max_naval_base = 4
-	naval_base_provs = {
-		1670 # Rabaul
-		1679 # Port Moresby
-		1672 # Lae
-	} 
+	naval_base = no
+	max_naval_base = 2
+	naval_base_provs = { } 
 
 	land_fort = no
 	max_land_level = 2
@@ -198,216 +59,159 @@
 }
 
 military = { 
-	relative_build_scheme 	= no
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 360 
+	max_batch_war 		= 180 
 	max_batch_home_front 	= 180
 
 	#### Divisions etc...
-	infantry 		= 25
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
+	infantry 	= 20
+	cavalry 	= 0
+	motorized 	= 10
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 0
+	armor 		= 6
 	paratrooper 	= 0
-	marine 			= 0
+	marine 		= 10
 	bergsjaeger 	= 0
-	garrison		= 0
-    hq 				= 0
-	militia 		= 0
-#				25 %
-	interceptor 	= 5
-	multi_role 		= 5
-	cas 			= 5
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				46 %
+	interceptor 	= 2
+	multi_role 	= 0
+	cas 		= 0
 	strategic_bomber = 0
-	tactical_bomber = 5
-	naval_bomber 	= 5
+	tactical_bomber = 2
+	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				25 %
-	battleship 		= 0
-	carrier 		= 0
-	escort_carrier	= 0
-	destroyer 		= 30
-	light_cruiser 	= 8
-	heavy_cruiser 	= 5
+#				4 %
+	battleship 	= 0
+	carrier 	= 0
+	destroyer 	= 10
+	light_cruiser 	= 10
+	heavy_cruiser 	= 10
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 7
+	submarine 	= 0
+	transports 	= 20
 #				50 %
 
 	#### Brigades
-	artillery 			= 25
-	sp_artillery 		= 0
+	artillery 		= 20
+	sp_artillery 		= 10
 	rocket_artillery	= 0 
 	sp_rct_artillery 	= 0
-	anti_tank 			= 10
+	anti_tank 		= 8
 	tank_destroyer 		= 0
-	light_armor_brigade = 0
-	heavy_armor 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 5
 	super_heavy_armor 	= 0
-	armored_car 		= 0
-	anti_air 			= 0
-	police 				= 0	
-	engineer 			= 10 
+	armored_car 		= 15
+	anti_air 		= 5
+	police 			= 10	
+	engineer 		= 5 
 
 	cag = 100.000 
 }
 
 technology = { 
 	endgoal 	= { } 
-	preference = {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Naval Doctrines
-		8200 8250 8140 8260
-
-		# Land Doctrines
-		6170
-
-		# Air Doctrines
-		9040 9050 9060 9070 9080 9090 9100 9110 9120 9130 9190 9210 9220 9230 9240 9250 9350
-
-		# CAS
-		4170 4280 4180
-	} 
-	ignore 	= {
-		# Vehicle Assembly & Rocket Assembly
-		5160 5170
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Cavalry
-		1190 1200 1210 1220
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Motorized
-		1230 1240 1250
-
-		# Air Transports
-		4250 4260 4270
-
-		# Strategic bombers
-		4220 4230 4240
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Test and Research
-		5550 5560 5570 5580 5590
-
-		# Bas Decimetric
-		5410 5420 5430 5440 5450 5460
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Medium tanks
-		2010 2070 2080 2090
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Heavy Tanks and Semi-Modern Tank
-		2100 2110 2120 2140
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-		
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-		
-		# Anti Air Brigade
-		2510 2520 2530 2540
-
-		# Armoured Cars
-		2150 2160
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Battleship
-		3250 3260 3270 3280 3290 3300 3310
-
-		# Carrier
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Submarines
-		3400 3410 3420 3430 3440 3450
-		
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
-	}
+	preference 	= { 
+			# inf
+			1310 1320 1330 1340 1350 1360 # supply 
+			1010 1020 1030 1040 1050 1060 # inf 
+			1150 1160 1170 1180 # marine			 
+			 
+			# tank & ARI 
+			2150 2160 # AC 
+			2290 2300 2310 2320 2340 2350 2360 # ARI 
+			2100 2110 2120 # heavy tanks 
+			 
+			# navy 
+			3130 3140 3150 3160 3170 # hc 
+			3010 3020 3040 3050 3060 # destroyer			 
+			3070 3080 3090 3100 3110 # lc
+
+			# industry 
+			5010 5020 5030 5040 #  agriculture 
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 # industry 
+			 
+			# nav docs 
+			8200  8130
+			} 
+	ignore 		= { 
+			#Inf
+			1080 1090 1100 # Para
+			1110 1120 1130 1140 # mountie
+			 
+			#ARI & Tank	
+			2130 # super heavy
+			2260 2270 2280 # SP Rock
+			2370 2380 2390 # rock
+			2470 2480 2490  # AA
+			2170 2180 2190 2200 2210 # SP AT 
+			 
+			#Mavy 
+			3190 3200 3210 3220 3230 #BC
+			3310 # SH BB
+			3430 3450 # sub 
+			3320 3330 3340 3350 3360 3370 # carrier 
+			3250 3260 3270 3280 3290 3300 # bb
+			12100 12110 12120 12130 12140 12150 # light  carrier
+			 
+			#Plane 
+			4070 4040 4100 # Fighter
+			4170 4280 4180 # cas 
+			4260 4270 # Transport
+			4220 4230 4240 # strat
  
-	armor 		= 0
-	infantry 	= 5
+			#industry 
+			5550 5560 5570 5580 5590 # rocket
+			5190 5200 5210 5220 5230 # oil 
+			5470 5480 5490 5500 5510 5520 5530 5540 # nuclear 
+			5170 # rocket assembly 
+			 
+			# landdocs 
+			6160 6170 6190 6200			 
+			# airdocs
+			9040 9050 9060 9070 9080
+			9270 9280 9290 9300
+			9140 9150 9160 9170 9180 
+			9430 9440 9450 9460 
+			9230 9240 9250 9260 
+			9390 9400 9410 9420 
+		}
+ 
+	armor 		= 4 
+	infantry 	= 4
 	industry 	= 4
-	aircraft 	= 1
-	naval 		= 1
-	land_doctrines 	= 1
-	secret_weapons 	= 0
-	air_doctrines 	= 1
-	naval_doctrines = 1
-}
+	aircraft 	= 4
+	naval 		= 2
+	land_doctrines 	= 3
+	secret_weapons 	= 1
+	air_doctrines 	= 2
+	naval_doctrines = 2
+}  
+
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 1.0
@@ -420,8 +224,8 @@
 	# PRIORITIES:
 	beach			= 20	# Beach level 2
 	capital			= 40	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -437,7 +241,7 @@
 	area_multiplier = { }
 }
 front = { 
-	recklessness 		= 1 # 0-3
+	recklessness 		= 2 # 0-3
 	distrib_vs_ai 		= even
 	distrib_vs_human 	= even
 
@@ -445,347 +249,119 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
 	withdraw_odds		= 0.6
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = { } 
       	passivity = { } 
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
-invasion = { 
-	invasion 	= no
-
- 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal		= 0.1	#increase to avoid coastal forts more.
-	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 10.0	#higher = avoid long distance.
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island		= 0.1	#prioritise taking pure islands.
-	enemy		= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
-	air_base	= 1.5 
-      	naval_base 	= 0.1 
-      	air_support 	= 3.0 
-      	redirect 	= priority
+invasion = {
+	invasion	= no
+ 	base		= 1.5	#Relative modifier. (lower = specific targets much more important.)
+	random		= 10.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 2.0	#increase to avoid coastal forts more.
+	beach		= 1.0	#higher, avoid worst beaches.
+	distance	= 5.0	#higher = avoid long distance.
+	max_distance    = 30.0  #About the distance from Rostock to Narvik
+	pocket		= 1.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 1.0	#prioritise taking pure islands.
+	enemy		= 3.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 3.0	#higher = much more vary of troops nearby
+	air_base	= 1.0 
+      	naval_base 	= 1.0 
+      	air_support 	= 1.0 
+      	redirect 	= nearest
 	ignore		= no
+	staging_province = {
+	
+	}
       
-	target = { } 
-} 
-admiral = { 
+}	
+admiral = {
 	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
 	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
 	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
 
-	ignore = {
-		#Baltic Area
-		"Northern Baltic"
-		"Southern Baltic" 
-		"Bothnian Bay"
-		
-		#Murmansk/Archangel
-		"Barents Sea"
-		"Arctic Ocean"
-		
-		#Norway Coast (Denmark Coast)
-		"Norwegian Sea"
-		"East North Sea"
-		"Kattegat"
-		
-		#North Sea, East Coast of England
-		"Central Northsea"
-		"West Northsea"
-		"Southeast Northsea"
-		
-		#England/France border Sea Areas
-		"English Channel"
-		"Bay of Biscay"
-		"Cape Finisterre"
-		
-		#Spanish Coast (Atlantic Side)
-		"Portugese Coast"
-		"Cap St Vincent"
-		
-		#Iceland
-		"Faroes Gap"
-		"Denmark Strait"
-		
-		#Ireland/West Coast of England
-		"Irish Sea"
-		"The Hebreides"
-		"Irish West Coast"
-		
-		#Greenland
-		"Greenland Coast"
-		"Northern Sea of Labrador" 
-		"Southern Sea of Labrador"
-		
-		#Canada East Coast
-		"Hudson Bay"
-		"Grand Banks"
-		"Canadian Maritimes"
-		
-		#Western Mediterranean
-		"Costa del Sol"
-		"Gulf of Lyon"
-		"Algerian Coast"
-		
-		#Central Mediterranean
-		"Tyrrhenian Sea"
-		"Adriatic Sea"
-		
-		#Eastern Mediterranean
-		"Black Sea"
-		"Aegean Sea"
-		"Egyptian Coast"
-		
-		#North Atlantic
-		"North Atlantic"
-		"Western Approaches"
-		"The Seamounts"
-		"Azores"
-		
-		#Central Atlantic
-		"Central Atlantic"
-		"Central Mid-Atlantic Ridge"
-		"Bermuda Triangle"
-		"Guiana Basin"
-		"South-Central Mid-Atlantic Ridge"
-		"Cap Verde"
-		
-		#South Atlantic
-		"Pernambuco Plain"
-		"Ascension Fracture Zone"
-		"Argentine Plain"
-		"Angola Plain"
-		
-		#Caribbean Sea and Guilf of Mexico
-		"West Gulf of Mexico"
-		"East Gulf of Mexico" 
-		"Florida Strait"
-		"Yucatan Strait"
-		"Windward Islands"
-		"Central Carribean"
-		
-		#Brazil and Argentina Coast
-		"Coast of Guyana"
-		"Coast of Recife" 
-		"Coast of Uruguay"
-		"Coast of Brazil"
-		"Coast of Argentina"
-		
-		# West Africa
-		"Coast of Africa"
-		"Coast of Bissao" 
-		
-		#Equitorial Africa
-		"Gulf of Guinea"
-		"Coast of Angola-Namibia"
-		
-		#South Africa
-		"Coast of South Africa"
-		"Atlantic-Indian Ridge"
-		
-		#East Africa
-		"Red Sea"
-		"Horn of Africa"
-		
-		#Madagascar Coast
-		"South Mozambique Channel"
-		"North Mozambique Channel" 
-		"Northeast Coast of Madagascar"
-		"Southeast Coast of Madagascar" 
-		
-		#North Indian Ocean (Persian Gulf)
-		"Persian Gulf"
-		"North Arabian Sea"
-		"South Arabian Sea" 
-		"Coast of Ceylon"
-		
-		#Central/South Indian Ocean
-		"Mascarene Plateau"
-		"Mid-Indian Ridge" 
-		"Ninetyeast Ridge" 
-		"Southeast Indian Ocean"
-		"Southwest Indian Ocean" 
-		
-		#Bay of Bengal & West Indonesia
-		"East Bay of Bengal"
-		"West Bay of Bengal"
-		"Malacca Strait"
-		"Java Ridge"
-		"Java Trench"
-		
-		#Indo-China, Borneo, Phillipenes
-		"Gulf of Siam"
-		"Coast of Indochina"
-		"Spratly Sea"
-		"Coast of Brunei"
-		"Flores Sea"
-		"Sulu Sea"
-		"Celebes Sea"
-		"Luzon Strait"
-		
-		#China Coast
-		"Taiwan Strait"
-		"Yellow Sea"
-		
-		#Japanese Coast
-		"Sea of Japan"
-		"Ryukyus"
-		"Coast of Japan"
-		"South Sea of Okhotsk"
-		"West Sea of Okhotsk" 
-		"East Sea of Okhotsk" 
-		
-		#Mariana Basin, Phillipenes
-		"Philipine Trench"
-		"Central Philippine Sea"
-		"Mariana Trench"
-		"East Mariana Basin"
-		"Mid-Pacific Mountains"
-		"North Bismarck Sea"
-		
-		#North Pacific
-		"Coast of Kamchatka"
-		"East Bering Sea"
-		"West Bering Sea" 
-		"Aleutians"
-		"Northwest Pacific Basin"
-		"North Northeast Pacific Basin"
-		
-		#Central Pacific
-		"Hawaiian Rise"
-		"North East Pacific Ocean"
-		"Marshalls Sea"
-		"South East Pacific Ocean"
-		"Marianas"
-		"Western Solomons"
-		"Eastern Solomons"
-		"US Maritimes"
-		"Carolines"
-		
-		#South Pacific
-		"Gilberts"
-		"Line Islands"
-		"Fiji Basin"
-		"Southwest Pacific Basin"
-		
-		# South American West Coast
-		"Southeast Pacific Basin"
-		"West Coast of Chile"
-		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
-		
-		# USA West Coast
-		"Gulf of Alaska"
-		"West Coast of the United States"
-		
-		#West Coast of Mexico
-		"West Coast of Mexico"
-		"West Coast of Central America"
+ignore = {
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+
+# North Sea
+"Kattegat"
+"Southeast Northsea"
+"West Northsea"
+"Central Northsea"
+"Norwegian Sea"
+"East North Sea"
+"Barents Sea"
+
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
 	}
-	target = {
-		2591 = 200
-		2109 = 200
-		2107 = 150
-		2114 = 100
-		2116 = 50
-	} 
-	core = {
-		2097
-		2098
-		2100
-		2111
-		2112
-		2113
-		2128
-		2088
-		2087
-		2094
-	} 
-}
\ No newline at end of file
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = AST
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/ast_1943.ai Doomsday Data Files/ai/ast_1943.ai
--- Doomsday Data Files.old/ai/ast_1943.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/ast_1943.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,364 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 2.0 
+max_garrison_prop = 0.30
+min_garrison_prop = 0.20
+neutrality = 50 
+war = 20
+strat_redeploy_threshold = 25
+
+
+
+#Default values
+construction = { 
+	max_factor = 0.000 
+
+
+	AA_batteries = no
+	max_AA_level = 3
+	AA_provs = { 
+	}
+
+	coastal_fort = no
+	max_coastal_level = 3
+	coastal_fort_provs = { } 
+
+	radar_station = no 
+	max_radar = 5 
+	radar_provs = { } 
+
+	air_base = no
+	max_air_base = 4
+	air_base_provs = {
+		1696 # Townsville
+		1670 # Rabaul
+	} 
+
+	naval_base = no
+	max_naval_base = 2
+	naval_base_provs = { } 
+
+	land_fort = no
+	max_land_level = 2
+	fort_borders = { } 
+
+	ic_at_war = yes 
+	force_ic_until = 1935
+	ic_end_year = 1940
+	IC_provs = {
+		1730 # Melbourne
+		1728 # Canberra
+		1727 # Sydney
+	} 
+}
+
+military = { 
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 360 
+	max_batch_war 		= 180 
+	max_batch_home_front 	= 180
+
+	#### Divisions etc...
+	infantry 	= 20
+	cavalry 	= 0
+	motorized 	= 10
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 6
+	paratrooper 	= 0
+	marine 		= 10
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				46 %
+	interceptor 	= 2
+	multi_role 	= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 2
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				4 %
+	battleship 	= 0
+	carrier 	= 0
+	destroyer 	= 10
+	light_cruiser 	= 10
+	heavy_cruiser 	= 10
+	battlecruiser 	= 0
+	submarine 	= 0
+	transports 	= 20
+#				50 %
+
+	#### Brigades
+	artillery 		= 20
+	sp_artillery 		= 10
+	rocket_artillery	= 0 
+	sp_rct_artillery 	= 0
+	anti_tank 		= 8
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 6
+	heavy_armor 		= 5
+	super_heavy_armor 	= 0
+	armored_car 		= 15
+	anti_air 		= 5
+	police 			= 10	
+	engineer 		= 5 
+
+	cag = 100.000 
+}
+
+technology = { 
+	endgoal 	= { } 
+	preference 	= { 
+			# inf
+			1310 1320 1330 1340 1350 1360 # supply 
+			1010 1020 1030 1040 1050 1060 # inf 
+			1150 1160 1170 1180 # marine			 
+			 
+			# tank & ARI 
+			2150 2160 # AC 
+			2290 2300 2310 2320 2340 2350 2360 # ARI 
+			2100 2110 2120 # heavy tanks 
+			 
+			# navy 
+			3130 3140 3150 3160 3170 # hc 
+			3010 3020 3040 3050 3060 # destroyer			 
+			3070 3080 3090 3100 3110 # lc
+
+			# industry 
+			5010 5020 5030 5040 #  agriculture 
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 # industry 
+			 
+			# nav docs 
+			8200  8130
+			} 
+	ignore 		= { 
+			#Inf
+			1080 1090 1100 # Para
+			1110 1120 1130 1140 # mountie
+			 
+			#ARI & Tank	
+			2130 # super heavy
+			2260 2270 2280 # SP Rock
+			2370 2380 2390 # rock
+			2470 2480 2490  # AA
+			2170 2180 2190 2200 2210 # SP AT 
+			 
+			#Mavy 
+			3190 3200 3210 3220 3230 #BC
+			3310 # SH BB
+			3430 3450 # sub 
+			3320 3330 3340 3350 3360 3370 # carrier 
+			3250 3260 3270 3280 3290 3300 # bb
+			12100 12110 12120 12130 12140 12150 # light  carrier
+			 
+			#Plane 
+			4070 4040 4100 # Fighter
+			4170 4280 4180 # cas 
+			4260 4270 # Transport
+			4220 4230 4240 # strat
+ 
+			#industry 
+			5550 5560 5570 5580 5590 # rocket
+			5190 5200 5210 5220 5230 # oil 
+			5470 5480 5490 5500 5510 5520 5530 5540 # nuclear 
+			5170 # rocket assembly 
+			 
+			# landdocs 
+			6160 6170 6190 6200			 
+			# airdocs
+			9040 9050 9060 9070 9080
+			9270 9280 9290 9300
+			9140 9150 9160 9170 9180 
+			9430 9440 9450 9460 
+			9230 9240 9250 9260 
+			9390 9400 9410 9420 
+		}
+ 
+	armor 		= 4 
+	infantry 	= 4
+	industry 	= 4
+	aircraft 	= 4
+	naval 		= 2
+	land_doctrines 	= 3
+	secret_weapons 	= 1
+	air_doctrines 	= 2
+	naval_doctrines = 2
+}  
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 20
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 0
+	revolt_risk_mult	= 1.0
+
+	# PRIORITIES:
+	beach			= 20	# Beach level 2
+	capital			= 40	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		GER = 100
+		ITA = 100
+		JAP = 100
+	}
+	province_priorities = {	}
+	area_multiplier = { }
+}
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
+
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.2
+	withdraw_odds		= 0.6
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
+
+###################################
+# Invasions and Naval
+###################################
+invasion = {
+	invasion	= yes
+ 	base		= 1.5	#Relative modifier. (lower = specific targets much more important.)
+	random		= 10.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 2.0	#increase to avoid coastal forts more.
+	beach		= 1.0	#higher, avoid worst beaches.
+	distance	= 5.0	#higher = avoid long distance.
+	max_distance    = 9999.0  #About the distance from Rostock to Narvik
+	pocket		= 1.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 1.0	#prioritise taking pure islands.
+	enemy		= 3.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 3.0	#higher = much more vary of troops nearby
+	air_base	= 1.0 
+      	naval_base 	= 1.0 
+      	air_support 	= 1.0 
+      	redirect 	= nearest
+	ignore		= no
+	staging_province = {
+	
+	}
+      
+}	
+admiral = {
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+
+ignore = {
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+
+# North Sea
+"Kattegat"
+"Southeast Northsea"
+"West Northsea"
+"Central Northsea"
+"Norwegian Sea"
+"East North Sea"
+"Barents Sea"
+
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
+	}
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = AST
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/aus_1936.ai Doomsday Data Files/ai/aus_1936.ai
--- Doomsday Data Files.old/ai/aus_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/aus_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,22 +1,26 @@
 # Austria 1936 AI File by Lothos
+# modified by Spocky for DAIM 
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 4.0 
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
-neutrality = 90 
+neutrality = 150 
 war = 0
-upgrading = 0.35
-reinforcement = 0.2
+upgrading = 0.1
 strat_redeploy_threshold = 25
 exp_force_ratio = 0.750
 exp_force_ratios = { } 
 no_exp_forces_to = { }
-use_offensive_supply = no
 
 ###################################
 # Diplomacy
 ###################################
+resistance = { 
+	GER = 10
+}
+
 combat = { }
 
 befriend = {
@@ -79,45 +83,13 @@
 		1140 = 100
 	}
 }
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 3
-		counter_espionage =  10
-		country = AUS
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-}
+
 ###################################
 # Construction and Tech Research
 ###################################
 #Default values
 construction = { 
-	max_factor = 0.200 
+	max_factor = 0.500 
 
 	AA_batteries = no
 	max_AA_level = 3
@@ -146,123 +118,85 @@
 	ic_at_war = yes 
 	force_ic_until = 1938
 	ic_end_year = 1940
-	IC_provs = {
-		463 # Vienna
-	} 
+	IC_provs = { } 
 }
+
 military = { 
-	relative_build_scheme 	= no
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 360 
+	max_batch_war 		= 180 
 	max_batch_home_front 	= 180
 
 	#### Divisions etc...
-	infantry 		= 50
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
-	light_armor 	= 0
-	armor 			= 0
+	infantry 	= 40
+	cavalry 	= 10
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 10
+	armor 		= 0
 	paratrooper 	= 0
-	marine 			= 0
-	bergsjaeger 	= 28
-	garrison		= 0
-    hq 				= 0
-	militia 		= 0
-#				78 %
+	marine 		= 0
+	bergsjaeger 	= 20
+	garrison	= 10
+      	hq 		= 0
+	militia 	= 0
+#				90 %
 	interceptor 	= 10
-	multi_role 		= 0
-	cas 			= 7
+	multi_role 	= 0
+	cas 		= 0
 	strategic_bomber = 0
-	tactical_bomber = 5
+	tactical_bomber = 0
 	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				22 %
-	battleship 		= 0
-	carrier 		= 0
+#				10 %
+	battleship 	= 0
+	carrier 	= 0
 	escort_carrier	= 0
-	destroyer 		= 0
+	destroyer 	= 0
 	light_cruiser 	= 0
 	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 0
+	submarine 	= 0
+	transports 	= 0
 #				0 %
 
-	#### Brigades
-	artillery 			= 25
-	sp_artillery 		= 0
-	rocket_artillery	= 0
-	sp_rct_artillery 	= 0
-	anti_tank 			= 20
-	tank_destroyer 		= 0
-	light_armor_brigade = 0
-	heavy_armor 		= 0
-	super_heavy_armor 	= 0
-	armored_car 		= 0
-	anti_air 			= 0
-	police 				= 0
-	engineer 			= 0
-
 	cag = 100.000 
 }
 technology = { 
 	endgoal 	= { } 
 	preference 	= {
-		# Tools
-		5050 5060 5070
+		# Arcriculture
+		5020 5030 5040
 
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5180
+		# Inf support
+		1310 1320 1330 1340 1350 1360
 
-		#Infantry
-		1010 1020 1030 1040 1050 1060
+		# Production
+		5050 5060 5070 5080 5090 5100 5110 5120 5130 5150 5180
 
 		# Mountain Unit techs
 		1110 1120 1130 1140
-
-		# Land Doctrines
-		6030 6150
-
-		# Air Doctrines
-		9040 9050 9060 9080 9100 9110 9120 9130 9140 9190 9200 9210 9220 9230 9240 9250 9260 9270 9280 9290 9300 9310 9320 9330 9340 9350 9360 9370 9380 9390 9400 9410 9420
-
-		# CAS
-		4170 4280 4180
 	} 
 	ignore 		= {
-		# Assembly Line
-		5150 5160 5170
+		# Vehicle Assembly & Rocket Assembly
+		5160 5170
 
 		# Airborne
 		1070 1080 1090 1100
 
-		# Motorized
-		1230 1240 1250
-
 		# Marines
 		1150 1160 1170 1180
 
-		# Cavalry
-		1190 1200 1210 1220
-
-		# Mechanized
-		1260 1270 1280 1290
-
 		# Air Transports
 		4250 4260 4270
 
-		# Multirole Fighters
-		4040 4070 4100
+		# Escort/Multirole Fighters
+		4040 4050 4070 4080 4100 4110
+
+		# CAS
+		4170 4280 4180
 
 		# Naval Bomber
 		4190 4200 4210
@@ -279,38 +213,14 @@
 		# Bas Decimetric
 		5410 5420 5430 5440 5450 5460
 
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Medium tanks
-		2010 2070 2080 2090
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-		
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-
-		# Anti Air Brigade
-		2510 2520 2530 2540
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Armoured Cars
-		2150 2160
+		# motorized
+		1230 1240 1250
 
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
+		# Mechanized
+		1260 1270 1280 1290
 	}
  
-	armor 		= 3
+	armor 		= 0
 	infantry 	= 4
 	industry 	= 4
 	aircraft 	= 1
@@ -325,18 +235,19 @@
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 1.0
@@ -381,119 +292,39 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
 	withdraw_odds		= 0.6
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = { } 
       	passivity = { } 
 } 
+
 ###################################
-# Air bombardment and defense
+# Intelligence
 ###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = AUS
+	}
+}
 
 air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
+	min_mission_strength_org = 0.7
 }
-###################################
-# Invasions and Naval
-###################################
-invasion = { 
- 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal		= 0.1	#increase to avoid coastal forts more.
-	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 20.0	#higher = avoid long distance.
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island		= 0.1	#prioritise taking pure islands.
-	enemy		= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
-	air_base	= 1.5 
-      	naval_base 	= 0.1 
-      	air_support 	= 3.0 
-      	redirect 	= nearest
-	ignore		= no
-      
-	target = { } 
-} 
-admiral = { 
-	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
-	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
-	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
-	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-
-	target = { } 
-	core = { } 
-}
\ No newline at end of file
diff -Naur Doomsday Data Files.old/ai/can_1936.ai Doomsday Data Files/ai/can_1936.ai
--- Doomsday Data Files.old/ai/can_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/can_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,19 +1,18 @@
-# Canada 1936 AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 4.0 
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
-neutrality = 110 
-war = 1
-upgrading = 0.25
-reinforcement = 0.2
+neutrality = 50 
+war = 20
 strat_redeploy_threshold = 25
 exp_force_ratio = 0.750 
 exp_force_ratios = {
 	ENG = 1.0
 } 
-no_exp_forces_to = { FRA BEL HOL NOR DEN POL LUX SPA SPR GRE YUG }
 
 ###################################
 # Diplomacy
@@ -28,11 +27,6 @@
 }
 befriend = {
 	USA = 100
-	ENG = 100
-	FRA = 80 
-	NZL = 80 
-	AST = 80
-	SAF = 80
 	HOL = 50
 	BEL = 50 
 }
@@ -48,8 +42,6 @@
 }
 target = { } 
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -78,84 +70,20 @@
 	}
 	embargo = { }
 	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Motorized
-		1230 = 100
-		1240 = 100
-		1250 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 3
-		counter_espionage =  10
-		country = CAN
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
+	prioritized = {	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
 #Default values
 construction = { 
-	max_factor = 1.00 
+	max_factor = 0.500 
 
 	AA_batteries = no
-	max_AA_level = 3
+	max_AA_level = 6
 	AA_provs = { 
-		588 # Ottawa
-		586 # Quebec City
+
 	}
 
 	coastal_fort = no
@@ -166,7 +94,7 @@
 	max_radar = 5 
 	radar_provs = { } 
 
-	air_base = no
+	air_base = atwar
 	max_air_base = 2 
 	air_base_provs = { } 
 
@@ -179,8 +107,8 @@
 	fort_borders = { } 
 
 	ic_at_war = yes 
-	force_ic_until = 1945
-	ic_end_year = 1945
+	force_ic_until = 1939
+	ic_end_year = 1940
 	IC_provs = {
 		588 # Ottawa
 		586 # Quebec City
@@ -189,205 +117,164 @@
 		569 # Winnipeg
 		797 # Calgary
 		541 # Vancouver
+		
 	} 
 }
 military = { 
-	relative_build_scheme 	= no
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
-	max_batch_home_front 	= 180
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 540 
+	max_batch_war 		= 540 
+	max_batch_home_front 	= 540
 
 	#### Divisions etc...
-	infantry 		= 15
-	cavalry 		= 0
-	motorized 		= 12
-	mechanized 		= 0
+	infantry 	= 25
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 8
+	armor 		= 10
 	paratrooper 	= 0
-	marine 			= 0
-	bergsjaeger 	= 0
-	garrison		= 0
-    hq 				= 2
-	militia 		= 0
-#				37 %
-	interceptor 	= 5
-	multi_role 		= 7
-	cas 			= 0
-	strategic_bomber = 5
-	tactical_bomber = 3
-	naval_bomber 	= 5
+	marine 		= 0
+	bergsjaeger 	= 5
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				40 %
+	interceptor 	= 0
+	multi_role 	= 0
+	escort 		= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 5
+	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				25 %
-	battleship 		= 0
-	carrier 		= 0
-	escort_carrier	= 0
-	destroyer 		= 20
-	light_cruiser 	= 8
-	heavy_cruiser 	= 5
+#				5 %
+	battleship 	= 0
+	carrier 	= 0
+	destroyer 	= 25
+	light_cruiser 	= 5
+	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 5
-#				38 %
+	submarine 	= 0
+	transports 	= 25
+#				55 %
 
 	#### Brigades
-	artillery 			= 22
-	sp_artillery 		= 0
+	artillery 		= 20
+	sp_artillery 		= 10
 	rocket_artillery	= 0 
 	sp_rct_artillery 	= 0
-	anti_tank 			= 22
+	anti_tank 		= 0
 	tank_destroyer 		= 0
-	light_armor_brigade = 3
-	heavy_armor 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 10
 	super_heavy_armor 	= 0
-	armored_car 		= 0
-	anti_air 			= 0
-	police 				= 0	
-	engineer 			= 5
+	armored_car 		= 10
+	anti_air 		= 0
+	police 			= 10	
+	engineer 		= 10
 
 	cag = 100.000
 }
 
 technology = { 
 	endgoal 	= { } 
-	preference = {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Motorized
-		1230 1240 1250
-
-		# Naval Doctrines
-		8200 8250 8140 8260
-
-		# Land Doctrines
-		6170
-
-		# Air Doctrines
-		9040 9090 9100 9110 9120 9130 9190 9210 9220 9230 9240 9250 9350
-	} 
-	ignore 	= {
-		# Rocket Assembly
-		5170
-
-		# CAS
-		4170 4280 4180
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Marines 
-		1150 1160 1170 1180
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Rocketry
-		5550 5560 5570 5580 5590
-
-		# Airborne 
-		1070 1080 1090 1100
-
-		# Air Transports
-		4250 4260 4270
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Heavy Tanks and Semi-Modern Tank
-		2100 2110 2120 2140
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-		
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-		
-		# Anti Air Brigade
-		2510 2520 2530 2540
-
-		# Armoured Cars
-		2150 2160
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Battleship 
-		3250 3260 3270 3280 3290 3300 3310
-
-		# Carrier 
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Submarines
-		3400 3410 3420 3430 3440 3450
-		
-		# CAS Air Doctrines 9040
-		9050 9060 9070 9080 9270 9280 9290 9300
-	}
+	preference 	= { 
+			# inf
+			1310 1320 1330 1340 1350 1360 # supply 
+			1010 1020 1030 1040 1050 1060 # inf 
+			1110 1120 1130 1140 # mountie
+			 
+			# tank & ARI 
+			2150 2160 # AC 
+			2290 2300 2310 2320 2340 2350 2360 # ARI 
+			2100 2110 2120 # heavy tanks 
+			 
+			# navy 
+			3010 3020 3040 3050 3060 # destroyer			 
+			3070 3080 3090 3100 3110 # lc
+
+			# industry 
+			5010 5020 5030 5040 #  agriculture 
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 # industry 
+			 
+			# nav docs 
+			8200  8130
+			} 
+	ignore 		= { 
+			#Inf
+			1080 1090 1100 # Para
+			1150 1160 1170 1180 # marine			 
+			 
+			#ARI & Tank	
+			2130 # super heavy
+			2260 2270 2280 # SP Rock
+			2370 2380 2390 # rock
+			2470 2480 2490  # AA
+			2170 2180 2190 2200 2210 # SP AT 
+			 
+			#Mavy 
+			3190 3200 3210 3220 3230 #BC
+			3310 # SH BB
+			3430 3450 # sub 
+			3320 3330 3340 3350 3360 3370 # carrier 
+			3250 3260 3270 3280 3290 3300 # bb
+			12100 12110 12120 12130 12140 12150 # light  carrier
+			3130 3140 3150 3160 3170 # hc 
+			 
+			#Plane 
+			4070 4040 4100 # Fighter
+			4170 4280 4180 # cas 
+			4260 4270 # Transport
+			4220 4230 4240 # strat
  
-	armor 		= 2
-	infantry 	= 5
+			#industry 
+			5550 5560 5570 5580 5590 # rocket
+			5190 5200 5210 5220 5230 # oil 
+			5470 5480 5490 5500 5510 5520 5530 5540 # nuclear 
+			5170 # rocket assembly 
+			 
+			# landdocs 
+			6160 6170 6190 6200			 
+			# airdocs
+			9040 9050 9060 9070 9080
+			9270 9280 9290 9300
+			9140 9150 9160 9170 9180 
+			9430 9440 9450 9460 
+			9230 9240 9250 9260 
+			9390 9400 9410 9420 
+		}
+ 
+	armor 		= 4 
+	infantry 	= 4
 	industry 	= 4
-	aircraft 	= 1
-	naval 		= 1
-	land_doctrines 	= 1
-	secret_weapons 	= 0
-	air_doctrines 	= 1
-	naval_doctrines = 1
-}
+	aircraft 	= 4
+	naval 		= 2
+	land_doctrines 	= 3
+	secret_weapons 	= 1
+	air_doctrines 	= 2
+	naval_doctrines = 2
+}  
 
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 1.0
@@ -400,8 +287,8 @@
 	# PRIORITIES:
 	beach			= 20	# Beach level 2
 	capital			= 40	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -426,92 +313,23 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
 	withdraw_odds		= 0.6
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = { } 
       	passivity = { } 
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
@@ -522,7 +340,7 @@
 	random		= 8.0	#How big a random range.  (1.0 = 1%)
 	coastal		= 0.1	#increase to avoid coastal forts more.
 	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 10.0	#higher = avoid long distance.
+	distance	= 1.0	#higher = avoid long distance.
 	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
 	island		= 0.1	#prioritise taking pure islands.
 	enemy		= 2.0	#higher = much more vary of troops in province.
@@ -532,205 +350,145 @@
       	air_support 	= 3.0 
       	redirect 	= priority
 	ignore		= no
-      
+      staging_province = {
+		23 
+	}
 	target = { } 
 } 
-admiral = { 
-	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
-	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
-	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
-	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-
-	ignore = {
-		#Baltic Area
-		"Northern Baltic"
-		"Southern Baltic" 
-		"Bothnian Bay"
-		
-		#Murmansk/Archangel
-		"Barents Sea"
-		"Arctic Ocean"
-		
-		#Norway Coast (Denmark Coast)
-		"Norwegian Sea"
-		"East North Sea"
-		"Kattegat"
-		
-		#North Sea, East Coast of England
-		"Central Northsea"
-		"West Northsea"
-		"Southeast Northsea"
-		
-		#Western Mediterranean
-		"Costa del Sol"
-		"Gulf of Lyon"
-		"Algerian Coast"
-		
-		#Central Mediterranean
-		"Tyrrhenian Sea"
-		"Adriatic Sea"
-		
-		#Eastern Mediterranean
-		"Black Sea"
-		"Aegean Sea"
-		"Egyptian Coast"
-		
-		#Brazil and Argentina Coast
-		"Coast of Guyana"
-		"Coast of Recife" 
-		"Coast of Uruguay"
-		"Coast of Brazil"
-		"Coast of Argentina"
-		
-		# West Africa
-		"Coast of Africa"
-		"Coast of Bissao" 
-		
-		#Equitorial Africa
-		"Gulf of Guinea"
-		"Coast of Angola-Namibia"
-		
-		#South Africa
-		"Coast of South Africa"
-		"Atlantic-Indian Ridge"
-		
-		#East Africa
-		"Red Sea"
-		"Horn of Africa"
-		
-		#Madagascar Coast
-		"South Mozambique Channel"
-		"North Mozambique Channel" 
-		"Northeast Coast of Madagascar"
-		"Southeast Coast of Madagascar" 
-		
-		#North Indian Ocean (Persian Gulf)
-		"Persian Gulf"
-		"North Arabian Sea"
-		"South Arabian Sea" 
-		"Coast of Ceylon"
-		
-		#Central/South Indian Ocean
-		"Mascarene Plateau"
-		"Mid-Indian Ridge" 
-		"Ninetyeast Ridge" 
-		"Southeast Indian Ocean"
-		"Southwest Indian Ocean" 
-		
-		#Bay of Bengal & West Indonesia
-		"East Bay of Bengal"
-		"West Bay of Bengal"
-		"Malacca Strait"
-		"Java Ridge"
-		"Java Trench"
-		
-		#Indo-China, Borneo, Phillipenes
-		"Gulf of Siam"
-		"Coast of Indochina"
-		"Spratly Sea"
-		"Coast of Brunei"
-		"Flores Sea"
-		"Sulu Sea"
-		"Celebes Sea"
-		"Luzon Strait"
-		
-		#China Coast
-		"Taiwan Strait"
-		"Yellow Sea"
-		
-		#Japanese Coast
-		"Sea of Japan"
-		"Ryukyus"
-		"Coast of Japan"
-		"South Sea of Okhotsk"
-		"West Sea of Okhotsk" 
-		"East Sea of Okhotsk" 
-		
-		#Mariana Basin, Phillipenes
-		"Philipine Trench"
-		"Central Philippine Sea"
-		"Mariana Trench"
-		"East Mariana Basin"
-		"Mid-Pacific Mountains"
-		"North Bismarck Sea"
-		
-		#New Guinea, East/North Australia and New Zealan
-		"Coast of New Guinea"
-		"Molucca Sea"
-		"Banda Sea"
-		"Arafura Sea"
-		"South Bismarck Sea"
-		"Solomon Sea"
-		"West Coral Sea"
-		"East Coral Sea" 
-		"North Tasman Sea"
-		"South Tasman Sea" 
-		"East Cost of New Zealand"
-		
-		# South and West Australia
-		"Timor Sea"
-		"West Coast of Australia"
-		"East Great Australian Bight"
-		"West Great Australian Bight" 
-		
-		#North Pacific
-		"Coast of Kamchatka"
-		"East Bering Sea"
-		"West Bering Sea" 
-		"Aleutians"
-		"Northwest Pacific Basin"
-		"North Northeast Pacific Basin"
-		
-		#Central Pacific
-		"Hawaiian Rise"
-		"North East Pacific Ocean"
-		"Marshalls Sea"
-		"South East Pacific Ocean"
-		"Marianas"
-		"Western Solomons"
-		"Eastern Solomons"
-		"US Maritimes"
-		"Carolines"
-		
-		#South Pacific
-		"Gilberts"
-		"Line Islands"
-		"Fiji Basin"
-		"Southwest Pacific Basin"
-		
-		# South American West Coast
-		"Southeast Pacific Basin"
-		"West Coast of Chile"
-		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
-		
-		# USA West Coast
-		"Gulf of Alaska"
-		"West Coast of the United States"
-		
-		#West Coast of Mexico
-		"West Coast of Mexico"
-		"West Coast of Central America"
+admiral = {
+ignore = {
+
+# Pacific
+"Luzon Strait"
+"Philipine Trench"
+"Coast of Brunei"
+"Flores Sea"
+"Molucca Sea"
+"Banda Sea"
+"West Coral Sea"
+"Sulu Sea"
+"Celebes Sea"
+"Arafura Sea"
+"Java Ridge"
+"Malacca Strait"
+"Gulf of Siam"
+"Spratly Sea"
+"Coast of Indochina"
+"Taiwan Strait"
+"Sea of Japan"
+"North Bismarck Sea"
+"South Bismarck Sea"
+"Marianas"
+"Marshalls Sea"
+"Western Solomons"
+"Eastern Solomons"
+"East Coral Sea"
+"Coast of Japan"
+"Solomon Sea"
+"North Tasman Sea"
+"South Tasman Sea"
+"East Great Australian Bight"
+"West Great Australian Bight"
+"Aleutians"
+"Carolines"
+"Central Philippine Sea"
+"Coast of Kamchatka"
+"East Bering Sea"
+"East Mariana Basin"
+"East Sea of Okhotsk"
+"Gulf of Alaska"
+"Hawaiian Rise"
+"Mariana Trench"
+"Mid-Pacific Mountains"
+"North Northeast Pacific Basin"
+"Northwest Pacific Basin"
+"Ryukyus"
+"South Sea of Okhotsk"
+"Timor Sea"
+"West Bering Sea"
+"West Coast of Australia"
+"West Coast of Mexico"
+"West Coast of the United States"
+"West Sea of Okhotsk"
+"Yellow Sea"
+"Fiji Basin"
+"Gilberts"
+"Line Islands"
+"North East Pacific Ocean"
+"South East Pacific Ocean"
+"East Cost of New Zealand"
+"North Southeast Pacific Ocean"
+"South Southeast Pacific Ocean"
+"Southeast Pacific Basin"
+"Southwest Pacific Basin"
+"West Coast of Central America"
+"West Coast of Chile"
+"West Coast of Peru"
+"Coast of New Guinea"
+
+# Indian Ocean
+"Red Sea"
+"Persian Gulf"
+"Coast of Ceylon"
+"East Bay of Bengal"
+"Ninetyeast Ridge"
+"Java Trench"
+"West Bay of Bengal"
+"Mascarene Plateau"
+"Mid-Indian Ridge"
+"North Arabian Sea"
+"North Mozambique Channel"
+"Northeast Coast of Madagascar"
+"South Arabian Sea"
+"South Mozambique Channel"
+"Southeast Coast of Madagascar"
+"Southeast Indian Ocean"
+"Southwest Indian Ocean"
+"Horn of Africa"
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
+}
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = CAN
 	}
-	target = { } 
-	core = {
-		2330
-		2332
-		2331
-		2333
-		2334
-		2336
-		2337
-		2338
-		2339
-		2340
-		2341
-		2342
-		2344
-		2343
-		1914
-		1921
-		1922
-	} 
-}
\ No newline at end of file
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/can_1943.ai Doomsday Data Files/ai/can_1943.ai
--- Doomsday Data Files.old/ai/can_1943.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/can_1943.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,486 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 4.0 
+max_garrison_prop = 0.30
+min_garrison_prop = 0.20
+neutrality = 50 
+war = 20
+strat_redeploy_threshold = 25
+exp_force_ratio = 0.750 
+exp_force_ratios = {
+	ENG = 1.0
+} 
+
+###################################
+# Diplomacy
+###################################
+combat = { }
+
+# Special resistance against "influence" by the listed nations. Value range = [0 - 10]  
+resistance = {  
+	GER = 2 
+	JAP = 1
+	ITA = 1
+}
+befriend = {
+	USA = 100
+}
+protect = {
+	USA = 100
+	ENG = 100
+}
+target = { } 
+trade = {
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = {
+		USA = 100
+		ENG = 100
+		FRA = 80 
+		NZL = 80 
+		AST = 80
+		SAF = 80
+	}
+	embargo = { }
+}
+tech_sharing = {
+	favored = {
+		USA = 100
+		ENG = 100
+		FRA = 80 
+		NZL = 80 
+		AST = 80
+		SAF = 80
+	}
+	embargo = { }
+	not = { }
+	prioritized = {	}
+}
+
+###################################
+# Construction and Tech Research
+###################################
+#Default values
+construction = { 
+	max_factor = 0.500 
+
+	AA_batteries = no
+	max_AA_level = 6
+	AA_provs = { 
+
+	}
+
+	coastal_fort = no
+	max_coastal_level = 3
+	coastal_fort_provs = { } 
+
+	radar_station = no 
+	max_radar = 5 
+	radar_provs = { } 
+
+	air_base = atwar
+	max_air_base = 2 
+	air_base_provs = { } 
+
+	naval_base = no 
+	max_naval_base = 5 
+	naval_base_provs = { } 
+
+	land_fort = no
+	max_land_level = 2
+	fort_borders = { } 
+
+	ic_at_war = yes 
+	force_ic_until = 1939
+	ic_end_year = 1940
+	IC_provs = {
+		588 # Ottawa
+		586 # Quebec City
+		589 # Toronto
+		585 # Montreal
+		569 # Winnipeg
+		797 # Calgary
+		541 # Vancouver
+		
+	} 
+}
+military = { 
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 540 
+	max_batch_war 		= 540 
+	max_batch_home_front 	= 540
+
+	#### Divisions etc...
+	infantry 	= 0
+	cavalry 	= 0
+	motorized 	= 20
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 10
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 5
+	garrison	= 0
+      	hq 		= 5
+	militia 	= 0
+#				40 %
+	interceptor 	= 0
+	multi_role 	= 0
+	escort 		= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 15
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				15 %
+	battleship 	= 0
+	carrier 	= 0
+	destroyer 	= 15
+	light_cruiser 	= 5
+	heavy_cruiser 	= 0
+	battlecruiser 	= 0
+	submarine 	= 0
+	transports 	= 25
+#				45 %
+
+	#### Brigades
+	artillery 		= 20
+	sp_artillery 		= 10
+	rocket_artillery	= 0 
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 10
+	super_heavy_armor 	= 0
+	armored_car 		= 10
+	anti_air 		= 0
+	police 			= 10	
+	engineer 		= 10
+
+	cag = 100.000
+}
+
+technology = { 
+	endgoal 	= { } 
+	preference 	= { 
+			# inf
+			1310 1320 1330 1340 1350 1360 # supply 
+			1010 1020 1030 1040 1050 1060 # inf 
+			1110 1120 1130 1140 # mountie
+			 
+			# tank & ARI 
+			2150 2160 # AC 
+			2290 2300 2310 2320 2340 2350 2360 # ARI 
+			2100 2110 2120 # heavy tanks 
+			 
+			# navy 
+			3010 3020 3040 3050 3060 # destroyer			 
+			3070 3080 3090 3100 3110 # lc
+
+			# industry 
+			5010 5020 5030 5040 #  agriculture 
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 # industry 
+			 
+			# nav docs 
+			8200  8130
+			} 
+	ignore 		= { 
+			#Inf
+			1080 1090 1100 # Para
+			1150 1160 1170 1180 # marine			 
+			 
+			#ARI & Tank	
+			2130 # super heavy
+			2260 2270 2280 # SP Rock
+			2370 2380 2390 # rock
+			2470 2480 2490  # AA
+			2170 2180 2190 2200 2210 # SP AT 
+			 
+			#Mavy 
+			3190 3200 3210 3220 3230 #BC
+			3310 # SH BB
+			3430 3450 # sub 
+			3320 3330 3340 3350 3360 3370 # carrier 
+			3250 3260 3270 3280 3290 3300 # bb
+			12100 12110 12120 12130 12140 12150 # light  carrier
+			3130 3140 3150 3160 3170 # hc 
+			 
+			#Plane 
+			4070 4040 4100 # Fighter
+			4170 4280 4180 # cas 
+			4260 4270 # Transport
+			4220 4230 4240 # strat
+ 
+			#industry 
+			5550 5560 5570 5580 5590 # rocket
+			5190 5200 5210 5220 5230 # oil 
+			5470 5480 5490 5500 5510 5520 5530 5540 # nuclear 
+			5170 # rocket assembly 
+			 
+			# landdocs 
+			6160 6170 6190 6200			 
+			# airdocs
+			9040 9050 9060 9070 9080
+			9270 9280 9290 9300
+			9140 9150 9160 9170 9180 
+			9430 9440 9450 9460 
+			9230 9240 9250 9260 
+			9390 9400 9410 9420 
+		}
+ 
+	armor 		= 4 
+	infantry 	= 4
+	industry 	= 4
+	aircraft 	= 4
+	naval 		= 2
+	land_doctrines 	= 3
+	secret_weapons 	= 1
+	air_doctrines 	= 2
+	naval_doctrines = 2
+}  
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 20
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 0
+	revolt_risk_mult	= 1.0
+
+	# PRIORITIES:
+	beach			= 20	# Beach level 2
+	capital			= 40	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		USA = -1
+		GER = 100
+		ITA = 100
+		JAP = 100
+	}
+	province_priorities = {	}
+	area_multiplier = { }
+}
+front = { 
+	recklessness 		= 1 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
+
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.2
+	withdraw_odds		= 0.6
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
+
+###################################
+# Invasions and Naval
+###################################
+invasion = { 
+	invasion 	= yes
+
+ 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 8.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.1	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 1.0	#higher = avoid long distance.
+	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 0.1	#prioritise taking pure islands.
+	enemy		= 2.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
+	air_base	= 1.5 
+      	naval_base 	= 0.1 
+      	air_support 	= 3.0 
+      	redirect 	= priority
+	ignore		= no
+      staging_province = {
+		23 
+	}
+	target = { } 
+} 
+admiral = {
+ignore = {
+
+# Pacific
+"Luzon Strait"
+"Philipine Trench"
+"Coast of Brunei"
+"Flores Sea"
+"Molucca Sea"
+"Banda Sea"
+"West Coral Sea"
+"Sulu Sea"
+"Celebes Sea"
+"Arafura Sea"
+"Java Ridge"
+"Malacca Strait"
+"Gulf of Siam"
+"Spratly Sea"
+"Coast of Indochina"
+"Taiwan Strait"
+"Sea of Japan"
+"North Bismarck Sea"
+"South Bismarck Sea"
+"Marianas"
+"Marshalls Sea"
+"Western Solomons"
+"Eastern Solomons"
+"East Coral Sea"
+"Coast of Japan"
+"Solomon Sea"
+"North Tasman Sea"
+"South Tasman Sea"
+"East Great Australian Bight"
+"West Great Australian Bight"
+"Aleutians"
+"Carolines"
+"Central Philippine Sea"
+"Coast of Kamchatka"
+"East Bering Sea"
+"East Mariana Basin"
+"East Sea of Okhotsk"
+"Gulf of Alaska"
+"Hawaiian Rise"
+"Mariana Trench"
+"Mid-Pacific Mountains"
+"North Northeast Pacific Basin"
+"Northwest Pacific Basin"
+"Ryukyus"
+"South Sea of Okhotsk"
+"Timor Sea"
+"West Bering Sea"
+"West Coast of Australia"
+"West Coast of Mexico"
+"West Coast of the United States"
+"West Sea of Okhotsk"
+"Yellow Sea"
+"Fiji Basin"
+"Gilberts"
+"Line Islands"
+"North East Pacific Ocean"
+"South East Pacific Ocean"
+"East Cost of New Zealand"
+"North Southeast Pacific Ocean"
+"South Southeast Pacific Ocean"
+"Southeast Pacific Basin"
+"Southwest Pacific Basin"
+"West Coast of Central America"
+"West Coast of Chile"
+"West Coast of Peru"
+"Coast of New Guinea"
+
+# Indian Ocean
+"Red Sea"
+"Persian Gulf"
+"Coast of Ceylon"
+"East Bay of Bengal"
+"Ninetyeast Ridge"
+"Java Trench"
+"West Bay of Bengal"
+"Mascarene Plateau"
+"Mid-Indian Ridge"
+"North Arabian Sea"
+"North Mozambique Channel"
+"Northeast Coast of Madagascar"
+"South Arabian Sea"
+"South Mozambique Channel"
+"Southeast Coast of Madagascar"
+"Southeast Indian Ocean"
+"Southwest Indian Ocean"
+"Horn of Africa"
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
+}
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = CAN
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/chi_1936.ai Doomsday Data Files/ai/chi_1936.ai
--- Doomsday Data Files.old/ai/chi_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/chi_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,19 +1,17 @@
-# China 1936 AI File by Lothos
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2
-max_front_ratios = {
-	CHC = 1.0 
-}
-max_garrison_prop = 0.30
-min_garrison_prop = 0.20
+max_front_ratio = 1.5
+max_front_ratios = { }
+max_garrison_prop = 0.60
+min_garrison_prop = 0.40
 neutrality = 120.000 
 war = 0
-strat_redeploy_threshold = 50
-max_redeploying = 0.02
-exp_force_ratio = 0.750
-exp_force_ratios = { }
-no_exp_forces_to = { }
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.50
+desperation = 0.50
 use_offensive_supply = no
 
 ###################################
@@ -23,23 +21,15 @@
 
 claim_acceptance = -49
 
-demand_claims = {
-	CGX
-	SIK
-	CXB
-	CYN
-	CHC
-	TIB
-	JAP
-	MAN
-}
+demand_claims = { }
+
 befriend = {
 	CSX = 100
 	SIK = 100
 	CXB = 100
 	CYN = 100
-	
 }
+
 protect = {
 	CSX = 100
 	SIK = 100
@@ -47,91 +37,11 @@
 	CYN = 100
 	CGX = 100
 }
-target = {
-	#Japan 
-	1184 = 100
-	
-	#Guangxi Clique
-	1309 = 10
-	1310 = 10
-	1258 = 10
-	1311 = 10
-	1312 = 10 
-	1249 = 10 
-	1248 = 10 
-	1314 = 10
-	1313 = 10
-	1317 = 10
-	1318 = 10
-	1320 = 10
-	1321 = 10
-	1325 = 10
-	1319 = 10
-
-	#Yunan
-	1282 = 10
-	1281 = 10
-	1327 = 10
-	1305 = 10
-	1308 = 10
-	1362 = 10
-	1307 = 10
-	1293 = 10
-	1294 = 10
-
-	#Shanxi
-	1206 = 10
-	1205 = 10
-	1204 = 10
-	1203 = 10
-	1210 = 10
-	1211 = 10
-	1212 = 10
-	1224 = 10
-	1215 = 10
-	1213 = 10
-	1216 = 10
-	1214 = 10
-	1207 = 10
-	1208 = 10
-	1272 = 10
-	1209 = 10
-	1225 = 10
-	1226 = 10
-
-	#Xibei San Ma
-	1442 = 10
-	1441 = 10
-	1273 = 10
-	1440 = 10
-	1443 = 10
-	1274 = 10
-	1444 = 10
-	1439 = 10
-
-	#Communist China
-	1270 = 10
-	1271 = 10
-
-	# Sinkiang
-	1435 = 10
-	1445 = 10
-	1447 = 10
-	1421 = 10
-	1432 = 10
-	1433 = 10
-	1446 = 10
-	1430 = 10
-	1431 = 10
 
-	#United Kingdom
-	1315 = 10 #Hong Kong
+target = { } 
 
-	#Portugal
-	1316 = 10 # Macao
-} 
 trade = {
-	cancel_deal_threshold = 2
+	cancel_deal_threshold = 3
 
 	energy 		= -1
 	rare_materials 	= -1
@@ -149,138 +59,40 @@
 		NZL = 90
 		SIA = 40
 	}
-	embargo = { }
-}
-tech_sharing = {
-	favored = {
-		GER = 100
-		ENG = 70
-		FRA = 50
-		USA = 100
-	}
 	embargo = { JAP MAN }
-	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Mountain Unit techs
-		1110 = 100
-		1120 = 100
-		1130 = 100
-		1140 = 100
-
-		# Logistics
-		1310 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = CHI
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 7
-		minister_assassination = 3
-		smear_campaign 		= 0
-		coup 				= 1
-		sabotage_industry 	= 3
-		nuclear_sabotage 	= 0
-		found_partisans		= 6
-		massmedia 			= 0
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= JAP
-	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
-#Default values
 construction = { 
-	max_factor = 0.020 
+	max_factor = 0.001 
 
 	AA_batteries = no
-	max_AA_level = 3
+	max_AA_level = 0
 	AA_provs = { } 
 
 	coastal_fort = no
-	max_coastal_level = 3
+	max_coastal_level = 0
 	coastal_fort_provs = { } 
 
 	radar_station = no 
-	max_radar = 5 
+	max_radar = 0
 	radar_provs = { } 
 
-	air_base = yes
-	max_air_base = 3
-	air_base_provs = {
-		1261 # Huahihua
-	}
+	air_base = no
+	max_air_base = 0
+	air_base_provs = { }
 
 	naval_base = no 
-	max_naval_base = 5 
+	max_naval_base = 0
 	naval_base_provs = { } 
 
 	land_fort = no
-	max_land_level = 1
-	fort_provs	= { }
+	max_land_level = 0
 	fort_borders = { } 
 
-	ic_at_war = no 
+	ic_at_war = no
 	force_ic_until = 1935
 	ic_end_year = 1935
 	IC_provs = { } 
@@ -288,220 +100,140 @@
 
 military = { 
 	relative_build_scheme 	= no
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
-	max_batch_home_front 	= 180
+	max_batch_peace 	= 720
+	max_batch_war 		= 360
+	max_batch_home_front 	= 360
 
 	#### Divisions etc...
-	infantry 		= 55
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
+	infantry 	= 93
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 0
+	armor 		= 0
 	paratrooper 	= 0
-	marine 			= 0
-	bergsjaeger 	= 30
-	garrison		= 0
-    hq 				= 5
-	militia 		= 0
-#				81 %
-	interceptor 	= 5
-	multi_role 		= 0
-	escort 			= 0
-	cas 			= 5
+	marine 		= 0
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				93 %
+	interceptor 	= 4
+	multi_role 	= 0
+	cas 		= 0
 	strategic_bomber = 0
-	tactical_bomber = 0
+	tactical_bomber = 3
 	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				10 %
-	battleship 		= 0
-	carrier 		= 0
-	destroyer 		= 0
+#				7 %
+	battleship 	= 0
+	carrier 	= 0
+	escort_carrier	= 0
+	destroyer 	= 0
 	light_cruiser 	= 0
 	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 0
-	transports 		= 0
+	submarine 	= 0
+	transports 	= 0
 #				0 %
 
 	#### Brigades
-	artillery 			= 35
+	artillery 		= 50
 	sp_artillery 		= 0
 	rocket_artillery	= 0
 	sp_rct_artillery 	= 0
-	anti_tank 			= 15
+	anti_tank 		= 0
 	tank_destroyer 		= 0
-	light_armor_brigade = 0
+	light_armor_brigade 	= 0
 	heavy_armor 		= 0
 	super_heavy_armor 	= 0
 	armored_car 		= 0
-	anti_air 			= 0
-	police 				= 0
-	engineer 			= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 0
 
 	cag = 100.000 
 }
 
-technology = { 
-	endgoal 	= { } 
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4120 4130 4140 4150 4160 15100 15110 # Tac Bombers
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+	}
 	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# CAS
-		4170 4280 4180
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Land Doctrines
-		6210 6300
-	} 
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4120 4130 4140 4150 4160 15100 15110 # Tac Bombers
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+	}
 	ignore 		= {
-		# Assembly Line
-		5150 5160 5170
-
-		# Arcriculture
-		5010 5020 5030 5040
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Cavalry
-		1190 1200 1210 1220
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Rocketry
-		5550 5560 5570 5580 5590
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Bas Decimetric
-		5410 5420 5430 5440 5450 5460
-
-		# Escort/Multirole Fighters
-		4040 4050 4070 4080 4100 4110
-		
-		# Tactical Bombers
-		4140 4150 4160
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Strategic Bomber
-		4220 4230 4240
-
-		# Air Transports
-		4250 4260 4270
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Medium tanks
-		2010 2070 2080 2090
-
-		# Heavy Tanks and Semi-Modern Tank
-		2100 2110 2120 2140
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-		
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-		
-		# Anti Air Brigade
-		2510 2520 2530 2540
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Land Doctrines
-		6010
-
-		# Armoured Cars
-		2150 2160
-
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1340 1350 1360 # Repair shops
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2450 2460 2470 2480 2490 2500 11080 # Static Anti-Air
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		4040 4070 4100 15030 15040 15050 # Fighters
+		4190 4200 4210 15140 15150 # Naval Bombers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5150 5170 # Ship + Rocket Assembly Lines
+		5410 5420 5430 5440 5450 5460 13030 # Radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+		14080 # Guerilla Warfare
 	}
- 
-	armor 			= 3
-	infantry 		= 4
-	industry 		= 3
-	aircraft 		= 1
-	naval 			= 0
-	land_doctrines 	= 4
+
+	armor 		= 4
+	infantry 	= 8
+	industry 	= 5
+	aircraft 	= 2
+	naval 		= 0
+	land_doctrines 	= 3
 	secret_weapons 	= 0
 	air_doctrines 	= 1
 	naval_doctrines = 0
-}  
+}
 
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 1.0
-	overseas_multiplier = 0.5
-	home_peace_cap 		= 20
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 101
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 1.0
 	revolt_risk_mult	= 1.0
 
 	# PRIORITIES:
-	beach			= 30	# Beach level 2
-	capital			= 40	# Our capital
-	human_border	= 0		# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	beach			= 75	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -517,18 +249,23 @@
 		FRA = -1
 		ENG = -1
 		POR = -1
-		JAP = 70
-		CHC = 50
-		MAN = 70
+		CXB = -1
 		CSX = 10
 		SIK = 10
-		CXB = -1
 		CYN = 10
 		CGX = 10
+		CHC = 50
+		JAP = 100
+		MAN = 100
+	}
+	province_priorities = {
+		1235 = 100
+		1236 = 100
+		1237 = 100
 	}
-	province_priorities = {	}
-	area_multiplier = {	}
+	area_multiplier = { }
 }
+
 front = { 
 	recklessness 		= 1 # 0-3
 	distrib_vs_ai 		= even
@@ -536,354 +273,51 @@
 
 	enemy_reinf_days	= 6
 	reserve_prop		= 0.1
-	panic_ratio_vs_ai	= 2.0
-	panic_ratio_vs_human = 2.0
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
 	max_attack_odds		= 3.0
-	reinforce_odds		= 1.2
-	withdraw_odds		= 0.6
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
 
-	strength 		= 1.0
-	organisation 	= 1.0
+	strength 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 			= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 			= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = { } 
       	passivity = { } 
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
 invasion = { 
- 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal		= 0.1	#increase to avoid coastal forts more.
-	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 20.0	#higher = avoid long distance.
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island		= 0.1	#prioritise taking pure islands.
-	enemy		= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
-	air_base	= 1.5 
-      	naval_base 	= 0.1 
-      	air_support 	= 3.0 
-      	redirect 	= priority
-	ignore		= no
+	ignore		= no 
+	invasion	= no
       
 	target = { } 
 } 
-admiral = { 
-	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
-	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
-	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
-	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-
-	ignore = {
-		#Baltic Area
-		"Northern Baltic"
-		"Southern Baltic" 
-		"Bothnian Bay"
-		
-		#Murmansk/Archangel
-		"Barents Sea"
-		"Arctic Ocean"
-		
-		#Norway Coast (Denmark Coast)
-		"Norwegian Sea"
-		"East North Sea"
-		"Kattegat"
-		
-		#North Sea, East Coast of England
-		"Central Northsea"
-		"West Northsea"
-		"Southeast Northsea"
-		
-		#England/France border Sea Areas
-		"English Channel"
-		"Bay of Biscay"
-		"Cape Finisterre"
-		
-		#Spanish Coast (Atlantic Side)
-		"Portugese Coast"
-		"Cap St Vincent"
-		
-		#Iceland
-		"Faroes Gap"
-		"Denmark Strait"
-		
-		#Ireland/West Coast of England
-		"Irish Sea"
-		"The Hebreides"
-		"Irish West Coast"
-		
-		#Greenland
-		"Greenland Coast"
-		"Northern Sea of Labrador" 
-		"Southern Sea of Labrador"
-		
-		#Canada East Coast
-		"Hudson Bay"
-		"Grand Banks"
-		"Canadian Maritimes"
-		
-		#Western Mediterranean
-		"Costa del Sol"
-		"Gulf of Lyon"
-		"Algerian Coast"
-		
-		#Central Mediterranean
-		"Tyrrhenian Sea"
-		"Adriatic Sea"
-		
-		#Eastern Mediterranean
-		"Black Sea"
-		"Aegean Sea"
-		"Egyptian Coast"
-		
-		#North Atlantic
-		"North Atlantic"
-		"Western Approaches"
-		"The Seamounts"
-		"Azores"
-		
-		#Central Atlantic
-		"Central Atlantic"
-		"Central Mid-Atlantic Ridge"
-		"Bermuda Triangle"
-		"Guiana Basin"
-		"South-Central Mid-Atlantic Ridge"
-		"Cap Verde"
-		
-		#South Atlantic
-		"Pernambuco Plain"
-		"Ascension Fracture Zone"
-		"Argentine Plain"
-		"Angola Plain"
-		
-		#Caribbean Sea and Guilf of Mexico
-		"West Gulf of Mexico"
-		"East Gulf of Mexico" 
-		"Florida Strait"
-		"Yucatan Strait"
-		"Windward Islands"
-		"Central Carribean"
-		
-		#Brazil and Argentina Coast
-		"Coast of Guyana"
-		"Coast of Recife" 
-		"Coast of Uruguay"
-		"Coast of Brazil"
-		"Coast of Argentina"
-		
-		# West Africa
-		"Coast of Africa"
-		"Coast of Bissao" 
-		
-		#Equitorial Africa
-		"Gulf of Guinea"
-		"Coast of Angola-Namibia"
-		
-		#South Africa
-		"Coast of South Africa"
-		"Atlantic-Indian Ridge"
-		
-		#East Africa
-		"Red Sea"
-		"Horn of Africa"
-		
-		#Madagascar Coast
-		"South Mozambique Channel"
-		"North Mozambique Channel" 
-		"Northeast Coast of Madagascar"
-		"Southeast Coast of Madagascar" 
-		
-		#North Indian Ocean (Persian Gulf)
-		"Persian Gulf"
-		"North Arabian Sea"
-		"South Arabian Sea" 
-		"Coast of Ceylon"
-		
-		#Central/South Indian Ocean
-		"Mascarene Plateau"
-		"Mid-Indian Ridge" 
-		"Ninetyeast Ridge" 
-		"Southeast Indian Ocean"
-		"Southwest Indian Ocean" 
-		
-		#Bay of Bengal & West Indonesia
-		"East Bay of Bengal"
-		"West Bay of Bengal"
-		"Malacca Strait"
-		"Java Ridge"
-		"Java Trench"
-		
-		#Indo-China, Borneo, Phillipenes
-		"Gulf of Siam"
-		"Spratly Sea"
-		"Coast of Brunei"
-		"Flores Sea"
-		"Sulu Sea"
-		"Celebes Sea"
-		"Luzon Strait"
-		
-		#Japanese Coast
-		"Sea of Japan"
-		"Ryukyus"
-		"Coast of Japan"
-		"South Sea of Okhotsk"
-		"West Sea of Okhotsk" 
-		"East Sea of Okhotsk" 
-		
-		#Mariana Basin, Phillipenes
-		"Philipine Trench"
-		"Central Philippine Sea"
-		"Mariana Trench"
-		"East Mariana Basin"
-		"Mid-Pacific Mountains"
-		"North Bismarck Sea"
-		
-		#New Guinea, East/North Australia and New Zealan
-		"Coast of New Guinea"
-		"Molucca Sea"
-		"Banda Sea"
-		"Arafura Sea"
-		"South Bismarck Sea"
-		"Solomon Sea"
-		"West Coral Sea"
-		"East Coral Sea" 
-		"North Tasman Sea"
-		"South Tasman Sea" 
-		"East Cost of New Zealand"
-		
-		# South and West Australia
-		"Timor Sea"
-		"West Coast of Australia"
-		"East Great Australian Bight"
-		"West Great Australian Bight" 
-		
-		#North Pacific
-		"Coast of Kamchatka"
-		"East Bering Sea"
-		"West Bering Sea" 
-		"Aleutians"
-		"Northwest Pacific Basin"
-		"North Northeast Pacific Basin"
-		
-		#Central Pacific
-		"Hawaiian Rise"
-		"North East Pacific Ocean"
-		"Marshalls Sea"
-		"South East Pacific Ocean"
-		"Marianas"
-		"Western Solomons"
-		"Eastern Solomons"
-		"US Maritimes"
-		"Carolines"
-		
-		#South Pacific
-		"Gilberts"
-		"Line Islands"
-		"Fiji Basin"
-		"Southwest Pacific Basin"
-		
-		# South American West Coast
-		"Southeast Pacific Basin"
-		"West Coast of Chile"
-		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
-		
-		# USA West Coast
-		"Gulf of Alaska"
-		"West Coast of the United States"
-		
-		#West Coast of Mexico
-		"West Coast of Mexico"
-		"West Coast of Central America"
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = CHI
 	}
-	target = {
-		2185 = 200
-		2262 = 200
-	} 
-	core = {
-		2158
-		2163
-		2186
-		2188
-		2189
-		2190
-	} 
-}
\ No newline at end of file
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/chi_1939.ai Doomsday Data Files/ai/chi_1939.ai
--- Doomsday Data Files.old/ai/chi_1939.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/chi_1939.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,16 +1,17 @@
-# China 1939 AI File by Lothos
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
-max_garrison_prop = 0.15
-min_garrison_prop = 0.05
+max_front_ratio = 1.5
+max_front_ratios = { }
+max_garrison_prop = 0.60
+min_garrison_prop = 0.40
 neutrality = 120.000 
 war = 0
-strat_redeploy_threshold = 50
-max_redeploying = 0.02
-exp_force_ratio = 0.750
-exp_force_ratios = { }
-no_exp_forces_to = { }
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.50
+desperation = 0.50
 use_offensive_supply = no
 
 ###################################
@@ -20,23 +21,15 @@
 
 claim_acceptance = -49
 
-demand_claims = {
-	CGX
-	SIK
-	CXB
-	CYN
-	CHC
-	TIB
-	JAP
-	MAN
-}
+demand_claims = { }
+
 befriend = {
 	CSX = 100
 	SIK = 100
 	CXB = 100
 	CYN = 100
-	
 }
+
 protect = {
 	CSX = 100
 	SIK = 100
@@ -44,91 +37,11 @@
 	CYN = 100
 	CGX = 100
 }
-target = { 
-	#Japan 
-	1184 = 100
-	
-	#Guangxi Clique
-	1309 = 10
-	1310 = 10
-	1258 = 10
-	1311 = 10
-	1312 = 10 
-	1249 = 10 
-	1248 = 10 
-	1314 = 10
-	1313 = 10
-	1317 = 10
-	1318 = 10
-	1320 = 10
-	1321 = 10
-	1325 = 10
-	1319 = 10
-
-	#Yunan
-	1282 = 10
-	1281 = 10
-	1327 = 10
-	1305 = 10
-	1308 = 10
-	1362 = 10
-	1307 = 10
-	1293 = 10
-	1294 = 10
-
-	#Shanxi
-	1206 = 10
-	1205 = 10
-	1204 = 10
-	1203 = 10
-	1210 = 10
-	1211 = 10
-	1212 = 10
-	1224 = 10
-	1215 = 10
-	1213 = 10
-	1216 = 10
-	1214 = 10
-	1207 = 10
-	1208 = 10
-	1272 = 10
-	1209 = 10
-	1225 = 10
-	1226 = 10
-
-	#Xibei San Ma
-	1442 = 10
-	1441 = 10
-	1273 = 10
-	1440 = 10
-	1443 = 10
-	1274 = 10
-	1444 = 10
-	1439 = 10
-
-	#Communist China
-	1270 = 10
-	1271 = 10
-
-	# Sinkiang
-	1435 = 10
-	1445 = 10
-	1447 = 10
-	1421 = 10
-	1432 = 10
-	1433 = 10
-	1446 = 10
-	1430 = 10
-	1431 = 10
 
-	#United Kingdom
-	1315 = 10 #Hong Kong
+target = { } 
 
-	#Portugal
-	1316 = 10 # Macao
-} 
 trade = {
-	cancel_deal_threshold = 2
+	cancel_deal_threshold = 3
 
 	energy 		= -1
 	rare_materials 	= -1
@@ -146,177 +59,78 @@
 		NZL = 90
 		SIA = 40
 	}
-	embargo = { JAP }
+	embargo = { JAP MAN }
 }
-tech_sharing = {
-	favored = {
-		GER = 100
-		ENG = 70
-		FRA = 50
-		USA = 100
-	}
-	embargo = { JAP }
-	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Mountain Unit techs
-		1110 = 100
-		1120 = 100
-		1130 = 100
-		1140 = 100
 
-		# Logistics
-		1310 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = CHI
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 7
-		minister_assassination = 3
-		smear_campaign 		= 0
-		coup 				= 1
-		sabotage_industry 	= 3
-		nuclear_sabotage 	= 0
-		found_partisans		= 6
-		massmedia 			= 0
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= JAP
-	}
-}
 ###################################
 # Construction and Tech Research
 ###################################
-#Default values
 construction = { 
-	max_factor = 0.050 
-
+	max_factor = 0.001 
 
 	AA_batteries = no
-	max_AA_level = 3
+	max_AA_level = 0
 	AA_provs = { } 
 
 	coastal_fort = no
-	max_coastal_level = 3
+	max_coastal_level = 0
 	coastal_fort_provs = { } 
 
 	radar_station = no 
-	max_radar = 5 
+	max_radar = 0
 	radar_provs = { } 
 
-	air_base = atwar
-	max_air_base = 4
-	air_base_provs = {
-		1261 # Huahihua
-		1280 # Chungking
-	}
+	air_base = no
+	max_air_base = 0
+	air_base_provs = { }
 
 	naval_base = no 
-	max_naval_base = 5 
+	max_naval_base = 0
 	naval_base_provs = { } 
 
 	land_fort = no
-	max_land_level = 2
+	max_land_level = 0
 	fort_borders = { } 
 
-	ic_at_war = yes 
+	ic_at_war = no
 	force_ic_until = 1935
-	ic_end_year = 1940
+	ic_end_year = 1935
 	IC_provs = { } 
 }
 
 military = { 
-	relative_build_scheme 	= yes 
-	max_batch_peace 	= 360 
-	max_batch_war 		= 180 
-	max_batch_home_front 	= 180
+	relative_build_scheme 	= no
+	max_batch_peace 	= 720
+	max_batch_war 		= 360
+	max_batch_home_front 	= 360
 
 	#### Divisions etc...
-	infantry 	= 47
-	cavalry 	= 28
+	infantry 	= 93
+	cavalry 	= 0
 	motorized 	= 0
 	mechanized 	= 0
 	light_armor 	= 0
 	armor 		= 0
 	paratrooper 	= 0
 	marine 		= 0
-	bergsjaeger 	= 10
+	bergsjaeger 	= 0
 	garrison	= 0
-      	hq 		= 5
+      	hq 		= 0
 	militia 	= 0
-#				90 %
-	interceptor 	= 5
+#				93 %
+	interceptor 	= 4
 	multi_role 	= 0
-	escort 		= 0
 	cas 		= 0
 	strategic_bomber = 0
-	tactical_bomber = 5
+	tactical_bomber = 3
 	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				15 %
+#				7 %
 	battleship 	= 0
 	carrier 	= 0
+	escort_carrier	= 0
 	destroyer 	= 0
 	light_cruiser 	= 0
 	heavy_cruiser 	= 0
@@ -326,153 +140,100 @@
 #				0 %
 
 	#### Brigades
-	artillery 		= 30
+	artillery 		= 50
 	sp_artillery 		= 0
 	rocket_artillery	= 0
 	sp_rct_artillery 	= 0
-	anti_tank 		= 8
+	anti_tank 		= 0
 	tank_destroyer 		= 0
 	light_armor_brigade 	= 0
 	heavy_armor 		= 0
 	super_heavy_armor 	= 0
 	armored_car 		= 0
-	anti_air 		= 8
+	anti_air 		= 0
 	police 			= 0
-	engineer 		= 5 
+	engineer 		= 0
 
 	cag = 100.000 
 }
 
-technology = { 
-	endgoal 	= { } 
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4120 4130 4140 4150 4160 15100 15110 # Tac Bombers
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+	}
 	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Logistics
-		1310
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Land Doctrines
-		6300
-	} 
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4120 4130 4140 4150 4160 15100 15110 # Tac Bombers
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+	}
 	ignore 		= {
-		# Vehicle Assembly & Rocket Assembly
-		5160 5170
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Air Transports
-		4250 4260 4270
-
-		# Rocketry
-		5550 5560 5570 5580 5590
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Bas Decimetric
-		5410 5420 5430 5440 5450 5460
-
-		# CAS
-		4170 4280 4180
-
-		# Escort/Multirole Fighters
-		4040 4050 4070 4080 4100 4110
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Strategic Bomber
-		4220 4230 4240
-
-		# Medium tanks
-		2070 2080 2090
-
-		# Heavy Tanks and Semi-Modern Tank
-		2100 2110 2120 2140
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1340 1350 1360 # Repair shops
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2450 2460 2470 2480 2490 2500 11080 # Static Anti-Air
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		4040 4070 4100 15030 15040 15050 # Fighters
+		4190 4200 4210 15140 15150 # Naval Bombers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5150 5170 # Ship + Rocket Assembly Lines
+		5410 5420 5430 5440 5450 5460 13030 # Radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+		14080 # Guerilla Warfare
 	}
- 
-	armor 		= 0
-	infantry 	= 7
-	industry 	= 4
-	aircraft 	= 1
+
+	armor 		= 4
+	infantry 	= 8
+	industry 	= 5
+	aircraft 	= 2
 	naval 		= 0
-	land_doctrines 	= 1
+	land_doctrines 	= 3
 	secret_weapons 	= 0
 	air_doctrines 	= 1
 	naval_doctrines = 0
-}  
+}
 
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 1.0
-	overseas_multiplier 	= 1.0
-	home_peace_cap 		= 10
-	war_zone_odds 		= 1.5
-	key_point_prio_mult	= 0.0
-	revolt_risk_mult	= 0.3
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 1.0
 
 	# PRIORITIES:
-	beach			= 30	# Beach level 2
-	capital			= 30	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	beach			= 75	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -485,381 +246,78 @@
 		TIB = -1
 		NEP = -1
 		AFG = -1
-		FRA = 40
-		SIA = 40
+		FRA = -1
 		ENG = -1
 		POR = -1
-		JAP = 80
-		CHC = -1
-		MAN = 70
-		CSX = -1
-		SIK = -1
 		CXB = -1
-		CYN = -1
-		CGX = -1
+		CSX = 10
+		SIK = 10
+		CYN = 10
+		CGX = 10
+		CHC = 50
+		JAP = 100
+		MAN = 100
+	}
+	province_priorities = {
+		1235 = 100
+		1236 = 100
+		1237 = 100
 	}
-	province_priorities = {	}
 	area_multiplier = { }
 }
+
 front = { 
-	recklessness 		= 0 # 0-3
+	recklessness 		= 1 # 0-3
 	distrib_vs_ai 		= even
 	distrib_vs_human 	= even
 
 	enemy_reinf_days	= 6
 	reserve_prop		= 0.1
-	panic_ratio_vs_ai	= 2.0
-	panic_ratio_vs_human	= 2.0
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
 	max_attack_odds		= 3.0
-	reinforce_odds		= 1.2
-	withdraw_odds		= 0.6
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
+	dig_in 		= 1.25 # Against defender
 
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
 
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
-
-      	enemy_handicap = {
-		JAP = 300
-	} 
-      	passivity = {
-		JAP = 90
-	} 
-}
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
-
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
 invasion = { 
- 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal		= 0.1	#increase to avoid coastal forts more.
-	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 20.0	#higher = avoid long distance.
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island		= 0.1	#prioritise taking pure islands.
-	enemy		= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
-	air_base	= 1.5 
-      	naval_base 	= 0.1 
-      	air_support 	= 3.0 
-      	redirect 	= priority
-	ignore		= no
+	ignore		= no 
+	invasion	= no
       
 	target = { } 
 } 
-admiral = { 
-	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
-	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
-	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
-	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-
-	ignore = {
-		#Baltic Area
-		"Northern Baltic"
-		"Southern Baltic" 
-		"Bothnian Bay"
-		
-		#Murmansk/Archangel
-		"Barents Sea"
-		"Arctic Ocean"
-		
-		#Norway Coast (Denmark Coast)
-		"Norwegian Sea"
-		"East North Sea"
-		"Kattegat"
-		
-		#North Sea, East Coast of England
-		"Central Northsea"
-		"West Northsea"
-		"Southeast Northsea"
-		
-		#England/France border Sea Areas
-		"English Channel"
-		"Bay of Biscay"
-		"Cape Finisterre"
-		
-		#Spanish Coast (Atlantic Side)
-		"Portugese Coast"
-		"Cap St Vincent"
-		
-		#Iceland
-		"Faroes Gap"
-		"Denmark Strait"
-		
-		#Ireland/West Coast of England
-		"Irish Sea"
-		"The Hebreides"
-		"Irish West Coast"
-		
-		#Greenland
-		"Greenland Coast"
-		"Northern Sea of Labrador" 
-		"Southern Sea of Labrador"
-		
-		#Canada East Coast
-		"Hudson Bay"
-		"Grand Banks"
-		"Canadian Maritimes"
-		
-		#Western Mediterranean
-		"Costa del Sol"
-		"Gulf of Lyon"
-		"Algerian Coast"
-		
-		#Central Mediterranean
-		"Tyrrhenian Sea"
-		"Adriatic Sea"
-		
-		#Eastern Mediterranean
-		"Black Sea"
-		"Aegean Sea"
-		"Egyptian Coast"
-		
-		#North Atlantic
-		"North Atlantic"
-		"Western Approaches"
-		"The Seamounts"
-		"Azores"
-		
-		#Central Atlantic
-		"Central Atlantic"
-		"Central Mid-Atlantic Ridge"
-		"Bermuda Triangle"
-		"Guiana Basin"
-		"South-Central Mid-Atlantic Ridge"
-		"Cap Verde"
-		
-		#South Atlantic
-		"Pernambuco Plain"
-		"Ascension Fracture Zone"
-		"Argentine Plain"
-		"Angola Plain"
-		
-		#Caribbean Sea and Guilf of Mexico
-		"West Gulf of Mexico"
-		"East Gulf of Mexico" 
-		"Florida Strait"
-		"Yucatan Strait"
-		"Windward Islands"
-		"Central Carribean"
-		
-		#Brazil and Argentina Coast
-		"Coast of Guyana"
-		"Coast of Recife" 
-		"Coast of Uruguay"
-		"Coast of Brazil"
-		"Coast of Argentina"
-		
-		# West Africa
-		"Coast of Africa"
-		"Coast of Bissao" 
-		
-		#Equitorial Africa
-		"Gulf of Guinea"
-		"Coast of Angola-Namibia"
-		
-		#South Africa
-		"Coast of South Africa"
-		"Atlantic-Indian Ridge"
-		
-		#East Africa
-		"Red Sea"
-		"Horn of Africa"
-		
-		#Madagascar Coast
-		"South Mozambique Channel"
-		"North Mozambique Channel" 
-		"Northeast Coast of Madagascar"
-		"Southeast Coast of Madagascar" 
-		
-		#North Indian Ocean (Persian Gulf)
-		"Persian Gulf"
-		"North Arabian Sea"
-		"South Arabian Sea" 
-		"Coast of Ceylon"
-		
-		#Central/South Indian Ocean
-		"Mascarene Plateau"
-		"Mid-Indian Ridge" 
-		"Ninetyeast Ridge" 
-		"Southeast Indian Ocean"
-		"Southwest Indian Ocean" 
-		
-		#Bay of Bengal & West Indonesia
-		"East Bay of Bengal"
-		"West Bay of Bengal"
-		"Malacca Strait"
-		"Java Ridge"
-		"Java Trench"
-		
-		#Indo-China, Borneo, Phillipenes
-		"Gulf of Siam"
-		"Spratly Sea"
-		"Coast of Brunei"
-		"Flores Sea"
-		"Sulu Sea"
-		"Celebes Sea"
-		"Luzon Strait"
-		
-		#Japanese Coast
-		"Sea of Japan"
-		"Ryukyus"
-		"Coast of Japan"
-		"South Sea of Okhotsk"
-		"West Sea of Okhotsk" 
-		"East Sea of Okhotsk" 
-		
-		#Mariana Basin, Phillipenes
-		"Philipine Trench"
-		"Central Philippine Sea"
-		"Mariana Trench"
-		"East Mariana Basin"
-		"Mid-Pacific Mountains"
-		"North Bismarck Sea"
-		
-		#New Guinea, East/North Australia and New Zealan
-		"Coast of New Guinea"
-		"Molucca Sea"
-		"Banda Sea"
-		"Arafura Sea"
-		"South Bismarck Sea"
-		"Solomon Sea"
-		"West Coral Sea"
-		"East Coral Sea" 
-		"North Tasman Sea"
-		"South Tasman Sea" 
-		"East Cost of New Zealand"
-		
-		# South and West Australia
-		"Timor Sea"
-		"West Coast of Australia"
-		"East Great Australian Bight"
-		"West Great Australian Bight" 
-		
-		#North Pacific
-		"Coast of Kamchatka"
-		"East Bering Sea"
-		"West Bering Sea" 
-		"Aleutians"
-		"Northwest Pacific Basin"
-		"North Northeast Pacific Basin"
-		
-		#Central Pacific
-		"Hawaiian Rise"
-		"North East Pacific Ocean"
-		"Marshalls Sea"
-		"South East Pacific Ocean"
-		"Marianas"
-		"Western Solomons"
-		"Eastern Solomons"
-		"US Maritimes"
-		"Carolines"
-		
-		#South Pacific
-		"Gilberts"
-		"Line Islands"
-		"Fiji Basin"
-		"Southwest Pacific Basin"
-		
-		# South American West Coast
-		"Southeast Pacific Basin"
-		"West Coast of Chile"
-		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
-		
-		# USA West Coast
-		"Gulf of Alaska"
-		"West Coast of the United States"
-		
-		#West Coast of Mexico
-		"West Coast of Mexico"
-		"West Coast of Central America"
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = CHI
 	}
-	target = {
-		2185 = 200
-		2262 = 200
-	} 
-	core = {
-		2158
-		2163
-		2186
-		2188
-		2189
-		2190
-	} 
-}
\ No newline at end of file
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/eng_1936.ai Doomsday Data Files/ai/eng_1936.ai
--- Doomsday Data Files.old/ai/eng_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/eng_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,21 +1,21 @@
-# England 1936 AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 2.0
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
 neutrality = 80.000 
-war = 1
-upgrading = 0.20
-reinforcement = 0.2
-strat_redeploy_threshold = 50
-max_redeploying = 0.05
-exp_force_ratio = 0.05
+war = 0
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.10
 exp_force_ratios = {
-	FRA = 1.0
+	FRA = 0.1
+#	GRE = 0.4
+#	NOR = 0.4
 } 
-no_exp_forces_to = { NOR POL DEN CZE }
-evac_islands = no
+
 
 ###################################
 # Diplomacy
@@ -31,10 +31,8 @@
 	HOL = 70
 	SPR = 40 
 	POL = 80 
-	AUS = 30
 	CZE = 40
 	TUR = 10 
-	IRQ = 20
 	PER = 20
 	POR = 20
 	CHI = 20
@@ -55,16 +53,8 @@
 	POR = 10
 	CHI = 10
 }
-target = {
-	#Japan 
-	1184 = 100 # Tokyo
-	
-	#Germany
-	300 = 100 # Berlin
-} 
+target = { } 
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -79,7 +69,6 @@
 		AST = 100
 		NZL = 100
 		USA = 100
-		SAF = 100
 		BEL = 90
 		HOL = 90
 		SPR = 30
@@ -91,7 +80,9 @@
 		POR = 10
 		CHI = 10
 	}
-	embargo = { }
+	embargo = {
+		GER ITA JAP SLO HUN
+	}
 }
 tech_sharing = {
 	favored = {
@@ -100,7 +91,6 @@
 		AST = 100
 		NZL = 100
 		USA = 100
-		SAF = 100
 		BEL = 90
 		HOL = 90
 		SPR = 30
@@ -116,418 +106,219 @@
 		GER ITA JAP SLO HUN
 	}
 	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Naval Bomber
-		4190 = 100
-		4200 = 100
-		4210 = 100
-
-		# motorized
-		1230 = 100
-		1240 = 100
-		1250 = 100
-
-		# Medium tanks
-		2070 = 100
-		2080 = 100
-		2090 = 100
-
-		# Light tanks
-		2020 = 100
-		2030 = 100
-		2040 = 100
-		2050 = 100
-		2060 = 100
-
-		# Strategic bombers
-		4220 = 100
-		4230 = 100
-		4240 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = ENG
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 1
-		sabotage_industry 	= 6
-		nuclear_sabotage 	= 0
-		found_partisans		= 4
-		massmedia 			= 2
-		counter_espionage 	= 6
-		disrupt_techteam 	= 5
-		country 			= GER
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 5
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 1
-		sabotage_industry 	= 6
-		nuclear_sabotage 	= 0
-		found_partisans		= 4
-		massmedia 			= 2
-		counter_espionage 	= 6
-		disrupt_techteam 	= 5
-		country 			= ITA
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 5
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 3
-		coup 				= 1
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans		= 4
-		massmedia 			= 2
-		counter_espionage 	= 6
-		disrupt_techteam 	= 5
-		country 			= SOV
-	}
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 2
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans		= 4
-		massmedia 			= 1
-		counter_espionage 	= 6
-		disrupt_techteam 	= 5
-		country 			= SPA
-	}
+	prioritized = {	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
 #Default values
 construction = { 
-	max_factor = 0.150 
+	max_factor = 1.000
 
 	AA_batteries = no
-	max_AA_level = 4 
+	max_AA_level = 5
 	AA_provs = { } 
 
 	coastal_fort = yes
-	max_coastal_level = 5
+	max_coastal_level = 2
 	coastal_fort_provs = {
-		31  # Malta
-		
-		# England Coast
 		20 # Dover
 		17 # Norwich
 		21 # Portsmouth
 		23 # Plymouth
-		13 # Sheifield
-		22 # Bristol
-		11 # Sunderland
-		10 # Edinburgh
-		9  # Glasgow
+
+		31  # Malta
 	} 
 
-	radar_station = atwar
-	max_radar = 3 
+	radar_station = no
+	max_radar = 1 
 	radar_provs = {
-		20 # Dover
-		17 # Norwich
-		21 # Portsmouth
-		23 # Plymouth
-		13 # Shefield
-		5  # Scapa Flow
+
 	} 
 
-	air_base = atwar
-	max_air_base = 5 
+	air_base = no
+	max_air_base = 1
 	air_base_provs = { } 
 
 	naval_base = no 
-	max_naval_base = 5 
+	max_naval_base = 1 
 	naval_base_provs = { } 
 
-	land_fort = yes
-	max_land_level = 5
-	fort_provs	= { 
-		348 # Gibraltar
-		906 # Alexandria
-	}
-	fort_borders = { } 
 
-	ic_at_war = no
+	ic_at_war = yes
 	force_ic_until = 1938
 	ic_end_year = 1940
 	IC_provs = { 3 5 6 7 8 10 28 29	} 
 }
 military = { 
-	relative_build_scheme 	= no
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
-	max_batch_home_front 	= 180
+	relative_build_scheme 	= no 
+	max_batch_peace 	= 360 
+	max_batch_war 		= 360 
+	max_batch_home_front 	= 360
 
 	#### Divisions etc...
-	infantry 		= 24
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
-	light_armor 	= 4
-	armor 			= 0
+	infantry 	= 20
+	cavalry 	= 5
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 0
 	paratrooper 	= 0
-	marine 			= 1
+	marine 		= 0
 	bergsjaeger 	= 0
-	garrison		= 0
-    hq 				= 0
-	militia 		= 0
-#				29 %
-	interceptor 	= 10
-	multi_role 		= 0
-	cas 			= 0
+	garrison	= 0
+      	hq 		= 5
+	militia 	= 0
+#				30 %
+	interceptor 	= 4
+	multi_role 	= 4
+	cas 		= 2
 	strategic_bomber = 0
 	tactical_bomber = 4
-	naval_bomber 	= 5
+	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				19 %
-	battleship 		= 4
-	carrier 		= 5
-	escort_carrier	= 0
-	destroyer 		= 22
-	light_cruiser 	= 10
+#				14 %
+	battleship 	= 7
+	carrier 	= 7
+	escort_carrier	= 1
+	destroyer 	= 10
+	light_cruiser 	= 8
 	heavy_cruiser 	= 6
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 5
-#				52 %
+	submarine 	= 2
+	transports 	= 15
+#				56 %
 
 	#### Brigades
-	artillery 			= 15
-	sp_artillery 		= 9
+	artillery 		= 20
+	sp_artillery 		= 0
 	rocket_artillery	= 0 
 	sp_rct_artillery 	= 0
-	anti_tank 			= 15
-	tank_destroyer 		= 8
-	light_armor_brigade = 6
-	heavy_armor 		= 5
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 15
 	super_heavy_armor 	= 0
-	armored_car 		= 0
-	anti_air 			= 7
-	police 				= 0
-	engineer 			= 6 
+	armored_car 		= 15
+	anti_air 		= 0
+	police 			= 0	
+	engineer 		= 10
 
 	cag = 100.000 
 }
 
 technology = { 
 	endgoal 	= { } 
-	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# motorized
-		1230 1240 1250
-
-		# Medium tanks
-		2070 2080 2090
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Strategic bombers
-		4220 4230 4240
-		
-		# Naval Doctrines
-		8200 8250 8140 8260
-
-		# Land Doctrines
-		6170
-
-		# Air Doctrines
-		9040 9050 9060 9070 9080 9090 9100 9110 9120 9130 9190 9210 9220 9230 9240 9250 9350
-	} 
-	ignore 		= {
-		# Rocket Assembly
-		5170
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Battleship 3250 3260 3270
-		3280 3290 3300 3310
-
-		# CAS
-		4170 4280 4180
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Marines 1150 1160
-		1170 1180
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Rocketry
-		5550 5560 5570 5580 5590
-
-		# Airborne 1070 1080 1090
-		1100
-
-		# Air Transports 4250
-		4260 4270
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Armoured Cars
-		2150 2160
-
-		# CAS Air Doctrines 9040
-		9050 9060 9070 9080 9270 9280 9290 9300
-	}
+	preference 	= { 
+			# inf
+			1310 1320 1330 1340 1350 1360 # supply 
+			1010 1020 1030 1040 1050 1060 # inf 
+			 
+			# tank & ARI 
+			2150 2160 # AC 
+			2290 2300 2310 2320 2340 2350 2360 # ARI 
+			2100 2110 2120 # heavy tanks 
+			 
+			# navy 
+			3010 3020 3030 3040 3050 3060 # destroyer
+			3320 3330 3340 3350 3360 3370 # carrier 
+			 
+			# industry 
+			5010 5020 5030 5040 #  agriculture 
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 # industry 
+			5140 5150 5160 5180 # assembly lines 
+			 
+			# land docs 
+			6110 6120 6130 6140 6150 6180 
+			 
+			# nav docs 
+			8200  8130
+			} 
+	ignore 		= { 
+			#Inf
+			1080 1090 1100 # Para
+			 
+			#ARI & Tank	
+			2130 # super heavy
+			2260 2270 2280 # SP Rock
+			2370 2380 2390 # rock
+			2470 2480 2490  # AA
+			2170 2180 2190 2200 2210 # SP AT 
+			 
+			#Mavy 
+			3190 3200 3210 3220 3230 #BC
+			3310 # SH BB
+			3430 3450 # sub 
+			 
+			#Plane 
+			4070 4040 4100 # Fighter
+			4170 4280 4180 # cas 
+			4260 4270 # Transport
+ 
+			#industry 
+			5550 5560 5570 5580 5590 # rocket
+			5190 5200 5210 5220 5230 # oil 
+			5470 5480 5490 5500 5510 5520 5530 5540 # nuclear 
+			5170 # rocket assembly 
+			 
+			# landdocs 
+			6160 6170 6190 6200 			 
+			# airdocs
+			9050 9060 9070 9080
+			9270 9280 9290 9300
+			9140 9150 9160 9170 9180 
+			9430 9440 9450 9460 
+			9230 9240 9250 9260 
+			9390 9400 9410 9420 
+		}
  
 	armor 		= 5 
 	infantry 	= 6
 	industry 	= 5
-	aircraft 	= 6
+	aircraft 	= 5
 	naval 		= 4
-	land_doctrines 	= 1
+	land_doctrines 	= 2
 	secret_weapons 	= 1
-	air_doctrines 	= 1
-	naval_doctrines = 1
+	air_doctrines 	= 2
+	naval_doctrines = 2
 }  
+
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
-	home_multiplier 	= 1.3
-	overseas_multiplier = 0.5
-	home_peace_cap 		= 100
+	home_multiplier 	= 4.0
+	overseas_multiplier 	= 0.1
+	home_peace_cap 		= 210
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 1.0
 	revolt_risk_mult	= 1.0
 
 	# PRIORITIES:
-	beach			= 20	# Beach level 2
-	capital			= 40	# Our capital
-	human_border	= 0		# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	beach			= 100	# Beach level 2
+	capital			= 150	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
-	opposing_alliance	= 30	# For neutrals, all alliances are "opposing"
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
 	unstable_border		= 0	# Bordering countries at war with someone else get this
 
@@ -536,10 +327,10 @@
 		BEL = -1
 		HOL = -1
 		LUX = -1
-		GER = 100
+		GER = 200
 		SPA = 5
 		SPR = -1
-		ITA = 50
+		ITA = 100
 		ETH = -1
 		SCH = -1
 		FRA = -1
@@ -549,129 +340,20 @@
 		POR = -1
 		CYN = -1
 		TUR = -1
+################################
+		PAK = -1
+		CHI = -1
 		SIK = -1
-		TIB = -1
-		AFG = -1
-		PER = -1
-		SAU = -1
-	}
-	ignore = {
-		# India
-		1480
-		1466
-		1465
-		1464
-		1506
-		1512
-		1513
-		1515
-		1509
-		1508
-		1461
-		1458
-		
-		# Burma
-		1288
-		1289
-		1297
-		1302
-		
-		# Singapore
-		1349
-		1350
-		1352
-		1351
-		
-		#Actual Beaches to Ignore
-		1801 # Sharm el-Sheikh
-		406  # Eilat
-		1799 # Gaza
-		1141 # Tanga
-		1800 # El-Arish
-		1140 # Dar es Salaam
-
-		#Libya
-		918   #Forte Maddalens
-		926   #Al Jaghbun
-		927   #Aujila
-		1017  #Calanslo
-		1018  #Kufra
-		1016  #Murzuk
-		1015  #Ghat
-		931   #Ghadames
-		928   #Sorno
-		
-		#Egypt/East Africa
-		1020  #Siwa
-		1019  #Great Sand Sea
-		907   #Qattara
-		1021  #AinDalla
-		1022  #Western Desert
-		1067  #El Atiun
-		1068  #El Obeid
-		1069  #Waw
-		1065  #Malakal
-		1032  #Omdurman
-		1041  #Gallabal
-		1040  #Kassala
-		1059  #Marsabit
-
-		#Ethiopia
-		1039  #Asmara
-		1048  #Adwa
-		1042  #Gonder
-		1044  #Debre
-		1045  #Gambela
-		1047  #Jima
-		1053  #Moyale
-		1049  #Denakil
-		1043  #Dese
-		1050  #Diredawa
-		1054  #Ogaden
-		1055  #Bardera
-
-		#Belgian Congo
-		1071  #Stanleyville
-		1072  #Buta
-		1073  #Costermanville
-		1074  #Coquihatville
-		1144  #Abertville
-		1143  #Kindu-Port-Empain
-		1142  #Leopoldville
-	}
-	province_priorities = {
-		348 = 30 # Gibraltar
-		31  = 30 # Malta
-		906 = 30 # Alexandria
-		
-		# England Coast
-		20 = 30 # Dover
-		17 = 30 # Norwich
-		21 = 30 # Portsmouth
-		23 = 30 # Plymouth
-		12 = 30 # Blackpool
-		13 = 30 # Sheifield
-		14 = 30 # Liverpool
-		22 = 30 # Bristol
-		11 = 30 # Sunderland
-		10 = 30 # Edinburgh
-		9 = 30 # Glasgow
-		5 = 30 # Scap Flow
-	}
-	area_multiplier = {
-		# India and Burma
-		1494 = 0.3
-		1505 = 0.3
-		1514 = 0.3
-		1299 = 0.3
-		
-		348 = 2.0 # Gibraltar
-		31  = 2.0 # Malta
-		906 = 1.5 # Alexandria
+		NEP = -1
+		SIA = -1
+		BHU = -1
+
 	}
+
 }
+
 front = { 
-	recklessness 		= 1 # 0-3
+	recklessness 		= 2 # 0-3
 	distrib_vs_ai 		= even
 	distrib_vs_human 	= even
 
@@ -679,120 +361,45 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
 	max_attack_odds		= 3.0
-	reinforce_odds		= 1.3
-	withdraw_odds		= 0.6
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = { } 
       	passivity = { } 
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
 invasion = {
-	invasion			= yes
- 	base				= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random				= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal				= 0.1	#increase to avoid coastal forts more.
-	beach				= 0.1	#higher, avoid worst beaches.
-	max_distance   		= 250.0  #About the distance from Japan to Batavia
-	max_staging_distance = 15	# How far should the staging area be from the target invasion point
-	distance			= 0.1	#higher = avoid long distance.
-	pocket				= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island				= 0.1	#prioritise taking pure islands.
-	enemy				= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 		= 2.0	#higher = much more vary of troops nearby
-	air_base			= 1.5 
-   	naval_base 			= 0.1 
-   	air_support 		= 3.0 
-   	redirect 			= priority
-	ignore				= no
-	help_allies 		= yes	#[yes/no]
+	invasion	= yes
+ 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 10.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 2.0	#increase to avoid coastal forts more.
+	beach		= 1.0	#higher, avoid worst beaches.
+	distance	= 1.0	#higher = avoid long distance.
+	max_distance    = 500.0  #About the distance from Rostock to Narvik
+#max_staging_distance = 15	# How far should the staging area be from the target invasion point
+	pocket		= 1.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 1.0	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 1.0	#higher = much more vary of troops nearby
+	air_base	= 1.0 
+      	naval_base 	= 1.0 
+      	air_support 	= 1.0 
+      	redirect 	= nearest
+	ignore		= no
       
-	staging_province = {
-		13 # Sheiffield
-		23 # Plymouth
-		31 # Malta
-		939 # Tunis
-		348 # Gibraltar
-	}
 	target = { } 
 } 
 admiral = { 
@@ -802,47 +409,101 @@
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
 	min_core_attack_fleets  = 2		# Minimum amount of attack fleets to defend CORE provinces (default 0)
 	num_attack_fleets		= 4 	# ENG/USA default 3, JAP default 2 everyone else is 1
-
 	ignore = {
-		"Southeast Northsea"
-		"kattegat"
-		"Bothnian Bay"
-		"northern baltic"
-		"southern baltic"
-		"Southeast Northsea"
-		"East North Sea"
-		"Norwegian Sea"
-	
-		#Central Mediterranean
-		"Adriatic Sea"
-	}
-	#Which provinces to use as bases..
-	base = {
-		13 	# Shefield
-		5	# Scapa Flow
-		14	# Liverpool
-		348	# Gibraltar
-		906	# Alexandria
-		1505	# Bombay
-		1353	# Singapore
-		1727	# Sydney
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+# North Sea
+"Kattegat"
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Mediterranean
+"Adriatic Sea"
+"Black Sea"
+
+# Pacific
+"Luzon Strait"
+"Philipine Trench"
+
+"Taiwan Strait"
+"Sea of Japan"
+"North Bismarck Sea"
+"South Bismarck Sea"
+"Marianas"
+"Marshalls Sea"
+"Western Solomons"
+"Eastern Solomons"
+"East Coral Sea"
+"Coast of Japan"
+"Solomon Sea"
+
+"Aleutians"
+"Carolines"
+"Central Philippine Sea"
+"Coast of Kamchatka"
+"East Bering Sea"
+"East Mariana Basin"
+"East Sea of Okhotsk"
+"Gulf of Alaska"
+"Hawaiian Rise"
+"Mariana Trench"
+"Mid-Pacific Mountains"
+"North Northeast Pacific Basin"
+"Northwest Pacific Basin"
+"Ryukyus"
+"South Sea of Okhotsk"
+
+"West Bering Sea"
+
+"West Coast of Mexico"
+"West Coast of the United States"
+"West Sea of Okhotsk"
+"Yellow Sea"
+"Fiji Basin"
+"Gilberts"
+"Line Islands"
+"North East Pacific Ocean"
+"South East Pacific Ocean"
+
+"North Southeast Pacific Ocean"
+"South Southeast Pacific Ocean"
+"Southeast Pacific Basin"
+"Southwest Pacific Basin"
+"West Coast of Central America"
+"West Coast of Chile"
+"West Coast of Peru"
+"Coast of New Guinea"
+
+
 	}
-	target = { 
-		2396 = 100 
-		2397 = 100 
-		2398 = 100
-	} 
-	core = {
-		2396
-		2397
-		2398
-		2471
-		2402
-		2403
-		2404
-		2405
-		2406
-		2410
-		2411
+
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = ENG
 	}
-}
\ No newline at end of file
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/eng_1937.ai Doomsday Data Files/ai/eng_1937.ai
--- Doomsday Data Files.old/ai/eng_1937.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/eng_1937.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,512 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 2.0
+max_garrison_prop = 0.30
+min_garrison_prop = 0.20
+neutrality = 80.000 
+war = 0
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.10
+exp_force_ratios = {
+	FRA = 0.1
+#	GRE = 0.4
+#	NOR = 0.4
+} 
+
+
+###################################
+# Diplomacy
+###################################
+combat = { }
+
+claim_acceptance = -20
+
+befriend = {
+	VEN = 50
+	USA = 50
+	BEL = 70
+	HOL = 70
+	SPR = 40 
+	POL = 80 
+	CZE = 40
+	TUR = 10 
+	PER = 20
+	POR = 20
+	CHI = 20
+}
+protect = {
+	FRA = 150
+	CAN = 150
+	AST = 150
+	NZL = 150
+	BEL = 150
+	HOL = 150
+	SPR = 20
+	POL = 250 
+	CZE = 250
+	TUR = 50 
+	IRQ = 10
+	PER = 10
+	POR = 10
+	CHI = 10
+}
+target = { } 
+trade = {
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = {
+		VEN = 100
+		FRA = 100
+		CAN = 100
+		AST = 100
+		NZL = 100
+		USA = 100
+		BEL = 90
+		HOL = 90
+		SPR = 30
+		POL = 20 
+		CZE = 20
+		TUR = 10
+		IRQ = 100
+		PER = 100
+		POR = 10
+		CHI = 10
+	}
+	embargo = {
+		GER ITA JAP SLO HUN
+	}
+}
+tech_sharing = {
+	favored = {
+		FRA = 100
+		CAN = 100
+		AST = 100
+		NZL = 100
+		USA = 100
+		BEL = 90
+		HOL = 90
+		SPR = 30
+		POL = 20 
+		CZE = 20
+		TUR = 10
+		IRQ = 100
+		PER = 100
+		POR = 10
+		CHI = 10
+	}
+	embargo = {
+		GER ITA JAP SLO HUN
+	}
+	not = { }
+	prioritized = {	}
+}
+
+###################################
+# Construction and Tech Research
+###################################
+#Default values
+construction = { 
+	max_factor = 0.100
+
+	AA_batteries = no
+	max_AA_level = 5
+	AA_provs = { } 
+
+	coastal_fort = yes
+	max_coastal_level = 2
+	coastal_fort_provs = {
+		20 # Dover
+		17 # Norwich
+		21 # Portsmouth
+		23 # Plymouth
+
+		31  # Malta
+	} 
+
+	radar_station = no
+	max_radar = 1 
+	radar_provs = {
+
+	} 
+
+	air_base = no
+	max_air_base = 1
+	air_base_provs = { } 
+
+	naval_base = no 
+	max_naval_base = 1 
+	naval_base_provs = { } 
+
+
+	ic_at_war = yes
+	force_ic_until = 1938
+	ic_end_year = 1938
+	IC_provs = { 3 5 6 7 8 10 28 29	} 
+}
+military = { 
+	relative_build_scheme 	= no
+	max_batch_peace 	= 360
+	max_batch_war 		= 360 
+	max_batch_home_front 	= 360
+
+	#### Divisions etc...
+	infantry 	= 27
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 0
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 5
+	garrison	= 0
+      	hq 		= 5
+	militia 	= 0
+#				37 %
+	interceptor 	= 4
+	multi_role 	= 4
+	cas 		= 2
+	strategic_bomber = 0
+	tactical_bomber = 8
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				18 %
+	battleship 	= 0
+	carrier 	= 6
+	escort_carrier	= 0
+	destroyer 	= 10
+	light_cruiser 	= 8
+	heavy_cruiser 	= 6
+	battlecruiser 	= 0
+	submarine 	= 0
+	transports 	= 15
+#				45 %
+
+
+	#### Brigades
+	artillery 		= 20
+	sp_artillery 		= 0
+	rocket_artillery	= 0 
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 15
+	super_heavy_armor 	= 0
+	armored_car 		= 15
+	anti_air 		= 0
+	police 			= 0	
+	engineer 		= 10
+
+	cag = 100.000 
+}
+
+technology = { 
+	endgoal 	= { } 
+	preference 	= { 
+			# inf
+			1310 1320 1330 1340 1350 1360 # supply 
+			1010 1020 1030 1040 1050 1060 # inf 
+			 
+			# tank & ARI 
+			2150 2160 # AC 
+			2290 2300 2310 2320 2340 2350 2360 # ARI 
+			2100 2110 2120 # heavy tanks 
+			 
+			# navy 
+			3010 3020 3030 3040 3050 3060 # destroyer
+			3320 3330 3340 3350 3360 3370 # carrier 
+			 
+			# industry 
+			5010 5020 5030 5040 #  agriculture 
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 # industry 
+			5140 5150 5160 5180 # assembly lines 
+			 
+			# land docs 
+			6110 6120 6130 6140 6150 6180 
+			 
+			# nav docs 
+			8200  8130
+			} 
+	ignore 		= { 
+			#Inf
+			1080 1090 1100 # Para
+			 
+			#ARI & Tank	
+			2130 # super heavy
+			2260 2270 2280 # SP Rock
+			2370 2380 2390 # rock
+			2470 2480 2490  # AA
+			2170 2180 2190 2200 2210 # SP AT 
+			 
+			#Mavy 
+			3190 3200 3210 3220 3230 #BC
+			3310 # SH BB
+			3430 3450 # sub 
+			 
+			#Plane 
+			4070 4040 4100 # Fighter
+			4170 4280 4180 # cas 
+			4260 4270 # Transport
+ 
+			#industry 
+			5550 5560 5570 5580 5590 # rocket
+			5190 5200 5210 5220 5230 # oil 
+			5470 5480 5490 5500 5510 5520 5530 5540 # nuclear 
+			5170 # rocket assembly 
+			 
+			# landdocs 
+			6160 6170 6190 6200
+ 		 
+			# airdocs
+			9050 9060 9070 9080
+			9270 9280 9290 9300
+			9140 9150 9160 9170 9180 
+			9430 9440 9450 9460 
+			9230 9240 9250 9260 
+			9390 9400 9410 9420 
+		}
+ 
+	armor 		= 5 
+	infantry 	= 6
+	industry 	= 5
+	aircraft 	= 5
+	naval 		= 4
+	land_doctrines 	= 2
+	secret_weapons 	= 1
+	air_doctrines 	= 2
+	naval_doctrines = 2
+}  
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 4.0
+	overseas_multiplier 	= 0.1
+	home_peace_cap 		= 210
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 1.0
+
+	# PRIORITIES:
+	beach			= 100	# Beach level 2
+	capital			= 150	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		BEL = -1
+		HOL = -1
+		LUX = -1
+		GER = 200
+		SPA = 5
+		SPR = -1
+		ITA = 100
+		ETH = -1
+		SCH = -1
+		FRA = -1
+		CAN = -1
+		AST = -1
+		NZL = -1
+		POR = -1
+		CYN = -1
+		TUR = -1
+################################
+		PAK = -1
+		CHI = -1
+		SIK = -1
+		NEP = -1
+		SIA = -1
+		BHU = -1
+
+
+
+	}
+
+}
+
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
+
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
+
+###################################
+# Invasions and Naval
+###################################
+invasion = {
+	invasion	= yes
+ 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 10.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 2.0	#increase to avoid coastal forts more.
+	beach		= 1.0	#higher, avoid worst beaches.
+	distance	= 1.0	#higher = avoid long distance.
+	max_distance    = 500.0  #About the distance from Rostock to Narvik
+	pocket		= 1.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 1.0	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 1.0	#higher = much more vary of troops nearby
+	air_base	= 1.0 
+      	naval_base 	= 1.0 
+      	air_support 	= 1.0 
+      	redirect 	= nearest
+	ignore		= no
+      
+	target = { } 
+} 
+admiral = { 
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+	min_core_attack_fleets  = 2		# Minimum amount of attack fleets to defend CORE provinces (default 0)
+	num_attack_fleets		= 4 	# ENG/USA default 3, JAP default 2 everyone else is 1
+	ignore = {
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+# North Sea
+"Kattegat"
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Mediterranean
+"Adriatic Sea"
+"Black Sea"
+
+# Pacific
+"Luzon Strait"
+"Philipine Trench"
+
+"Taiwan Strait"
+"Sea of Japan"
+"North Bismarck Sea"
+"South Bismarck Sea"
+"Marianas"
+"Marshalls Sea"
+"Western Solomons"
+"Eastern Solomons"
+"East Coral Sea"
+"Coast of Japan"
+"Solomon Sea"
+
+"Aleutians"
+"Carolines"
+"Central Philippine Sea"
+"Coast of Kamchatka"
+"East Bering Sea"
+"East Mariana Basin"
+"East Sea of Okhotsk"
+"Gulf of Alaska"
+"Hawaiian Rise"
+"Mariana Trench"
+"Mid-Pacific Mountains"
+"North Northeast Pacific Basin"
+"Northwest Pacific Basin"
+"Ryukyus"
+"South Sea of Okhotsk"
+
+"West Bering Sea"
+
+"West Coast of Mexico"
+"West Coast of the United States"
+"West Sea of Okhotsk"
+"Yellow Sea"
+"Fiji Basin"
+"Gilberts"
+"Line Islands"
+"North East Pacific Ocean"
+"South East Pacific Ocean"
+
+"North Southeast Pacific Ocean"
+"South Southeast Pacific Ocean"
+"Southeast Pacific Basin"
+"Southwest Pacific Basin"
+"West Coast of Central America"
+"West Coast of Chile"
+"West Coast of Peru"
+"Coast of New Guinea"
+
+
+	}
+
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = ENG
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/eng_1939.ai Doomsday Data Files/ai/eng_1939.ai
--- Doomsday Data Files.old/ai/eng_1939.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/eng_1939.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,26 +1,28 @@
-# England 1936 AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 2.0
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
 neutrality = 80.000 
 war = 1
-strat_redeploy_threshold = 50
-max_redeploying = 0.05
-exp_force_ratio = 0.05
+strat_redeploy_threshold = 88
+exp_force_ratio = 0.10
 exp_force_ratios = {
-	FRA = 1.0
+	FRA = 0.2
+	GRE = 0.1
+	NOR = 0.1
 } 
-no_exp_forces_to = { NOR POL DEN CZE }
-evac_islands = no
+
 
 ###################################
 # Diplomacy
 ###################################
 combat = { }
 
-claim_acceptance = -49
+claim_acceptance = -20
 
 befriend = {
 	VEN = 50
@@ -29,10 +31,8 @@
 	HOL = 70
 	SPR = 40 
 	POL = 80 
-	AUS = 30
 	CZE = 40
 	TUR = 10 
-	IRQ = 20
 	PER = 20
 	POR = 20
 	CHI = 20
@@ -45,24 +45,16 @@
 	BEL = 150
 	HOL = 150
 	SPR = 20
-	POL = 120 
-	CZE = 10
+	POL = 250 
+	CZE = 250
 	TUR = 50 
 	IRQ = 10
 	PER = 10
 	POR = 10
 	CHI = 10
 }
-target = {
-	#Japan 
-	1184 = 100 # Tokyo
-	
-	#Germany
-	300 = 100 # Berlin
-} 
+target = { } 
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -77,7 +69,6 @@
 		AST = 100
 		NZL = 100
 		USA = 100
-		SAF = 100
 		BEL = 90
 		HOL = 90
 		SPR = 30
@@ -89,7 +80,9 @@
 		POR = 10
 		CHI = 10
 	}
-	embargo = { }
+	embargo = {
+		GER ITA JAP SLO HUN
+	}
 }
 tech_sharing = {
 	favored = {
@@ -98,7 +91,6 @@
 		AST = 100
 		NZL = 100
 		USA = 100
-		SAF = 100
 		BEL = 90
 		HOL = 90
 		SPR = 30
@@ -114,394 +106,218 @@
 		GER ITA JAP SLO HUN
 	}
 	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Naval Bomber
-		4190 = 100
-		4200 = 100
-		4210 = 100
-
-		# motorized
-		1230 = 100
-		1240 = 100
-		1250 = 100
-
-		# Medium tanks
-		2070 = 100
-		2080 = 100
-		2090 = 100
-
-		# Light tanks
-		2020 = 100
-		2030 = 100
-		2040 = 100
-		2050 = 100
-		2060 = 100
-
-		# Strategic bombers
-		4220 = 100
-		4230 = 100
-		4240 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = ENG
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 1
-		sabotage_industry 	= 6
-		nuclear_sabotage 	= 0
-		found_partisans		= 4
-		massmedia 			= 2
-		counter_espionage 	= 6
-		disrupt_techteam 	= 5
-		country 			= GER
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 5
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 1
-		sabotage_industry 	= 6
-		nuclear_sabotage 	= 0
-		found_partisans		= 4
-		massmedia 			= 2
-		counter_espionage 	= 6
-		disrupt_techteam 	= 5
-		country 			= ITA
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 5
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 3
-		coup 				= 1
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans		= 4
-		massmedia 			= 2
-		counter_espionage 	= 6
-		disrupt_techteam 	= 5
-		country 			= SOV
-	}
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 2
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans		= 4
-		massmedia 			= 1
-		counter_espionage 	= 6
-		disrupt_techteam 	= 5
-		country 			= SPA
-	}
+	prioritized = {	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
 #Default values
 construction = { 
-	max_factor = 0.150 
+	max_factor = 1.000
 
 	AA_batteries = no
-	max_AA_level = 10 
+	max_AA_level = 5
 	AA_provs = { } 
 
 	coastal_fort = no
-	max_coastal_level = 3
-	coastal_fort_provs = { } 
+	max_coastal_level = 2
+	coastal_fort_provs = {
+		20 # Dover 
+		17 # Norwich
+		21 # Portsmouth
+		23 # Plymouth
+
+		31  # Malta
+	} 
 
-	radar_station = atwar
-	max_radar = 5 
-	radar_provs = { 17 20 21 23 } 
+	radar_station = no
+	max_radar = 1 
+	radar_provs = {
 
-	air_base = yes
-	max_air_base = 5 
+	} 
+
+	air_base = no
+	max_air_base = 1
 	air_base_provs = { } 
 
 	naval_base = no 
-	max_naval_base = 5 
+	max_naval_base = 1 
 	naval_base_provs = { } 
 
-	land_fort = no
-	max_land_level = 10
-	fort_borders = { } 
 
 	ic_at_war = no
 	force_ic_until = 1938
-	ic_end_year = 1940
+	ic_end_year = 1938
 	IC_provs = { 3 5 6 7 8 10 28 29	} 
 }
 military = { 
-	relative_build_scheme 	= no
-	max_batch_peace 	= 360 
+	relative_build_scheme 	= no 
+	max_batch_peace 	= 180
 	max_batch_war 		= 180 
 	max_batch_home_front 	= 180
 
 	#### Divisions etc...
-	infantry 		= 14
-	cavalry 		= 0
-	motorized 		= 6
-	mechanized 		= 0
+	infantry 	= 20
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 6
+	armor 		= 15
 	paratrooper 	= 0
-	marine 			= 1
+	marine 		= 0
 	bergsjaeger 	= 0
-	garrison		= 2
-    hq 				= 4
-	militia 		= 0
-#				34 %
-	interceptor 	= 4
-	multi_role 		= 1
-	cas 			= 0
-	strategic_bomber = 1
-	tactical_bomber = 4
-	naval_bomber 	= 2
+	garrison	= 0
+      	hq 		= 5
+	militia 	= 0
+#				40 %
+	interceptor 	= 6
+	multi_role 	= 0
+	cas 		= 0
+	strategic_bomber= 0
+	tactical_bomber = 10
+	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				12 %
-	battleship 		= 6
-	carrier 		= 5
-	escort_carrier	= 1
-	destroyer 		= 17
-	light_cruiser 	= 15
-	heavy_cruiser 	= 0
+#				16 %
+	battleship 	= 5
+	carrier 	= 5
+	escort_carrier	= 0
+	destroyer 	= 15
+	light_cruiser 	= 5
+	heavy_cruiser 	= 2
 	battlecruiser 	= 0
-	submarine 		= 5
-	nuclear_submarine = 0
-	transports 		= 5
-#				54 %
+	submarine 	= 0
+	transports 	= 12
+#				44 %
 
 	#### Brigades
-	artillery 			= 15
-	sp_artillery 		= 9
+	artillery 		= 20
+	sp_artillery 		= 0
 	rocket_artillery	= 0 
 	sp_rct_artillery 	= 0
-	anti_tank 			= 13
-	tank_destroyer 		= 8
-	light_armor_brigade = 6
-	heavy_armor 		= 5
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 15
 	super_heavy_armor 	= 0
-	armored_car 		= 0
-	anti_air 			= 7
-	police 				= 2	
-	engineer 			= 6 
-	
+	armored_car 		= 15
+	anti_air 		= 0
+	police 			= 0	
+	engineer 		= 10
+
 	cag = 100.000 
 }
-
-technology = { 
+technology = {
 	endgoal 	= { } 
-	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# motorized
-		1230 1240 1250
-
-		# Medium tanks
-		2070 2080 2090
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Strategic bombers
-		4220 4230 4240
-		
-		# Naval Doctrines
-		8200 8250 8140 8260
-
-		# Land Doctrines
-		6170
-
-		# Air Doctrines
-		9040 9050 9060 9070 9080 9090 9100 9110 9120 9130 9190 9210 9220 9230 9240 9250 9350
-	} 
-	ignore 		= {
-		# Rocket Assembly
-		5170
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Battleship 3250 3260 3270
-		3280 3290 3300 3310
-
-		# CAS
-		4170 4280 4180
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Marines 1150 1160
-		1170 1180
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Rocketry
-		5550 5560 5570 5580 5590
-
-		# Airborne 1070 1080 1090
-		1100
-
-		# Air Transports 4250
-		4260 4270
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Armoured Cars
-		2150 2160
-
-		# CAS Air Doctrines 9040
-		9050 9060 9070 9080 9270 9280 9290 9300
-	}
-	
+	preference 	= { 
+			# inf
+			1310 1320 1330 1340 1350 1360 # supply 
+			1010 1020 1030 1040 1050 1060 # inf 
+			 
+			# tank & ARI 
+			2150 2160 # AC 
+			2290 2300 2310 2320 2340 2350 2360 # ARI 
+			2100 2110 2120 # heavy tanks 
+			 
+			# navy 
+			3010 3020 3030 3040 3050 3060 # destroyer
+			3320 3330 3340 3350 3360 3370 # carrier 
+			 
+			# industry 
+			5010 5020 5030 5040 #  agriculture 
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 # industry 
+			5140 5150 5160 5180 # assembly lines 
+			 
+			# land docs 
+			6110 6120 6130 6140 6150 6180 
+			 
+			# nav docs 
+			#8200  8130
+			} 
+	ignore 		= { 
+			#Inf
+			1080 1090 1100 # Para
+			 
+			#ARI & Tank	
+			2130 # super heavy
+			2260 2270 2280 # SP Rock
+			2370 2380 2390 # rock
+			2470 2480 2490  # AA
+			2170 2180 2190 2200 2210 # SP AT 
+			 
+			#Mavy 
+			3190 3200 3210 3220 3230 #BC
+			3310 # SH BB
+			3430 3450 # sub 
+			 
+			#Plane 
+			4070 4040 4100 # Fighter
+			4170 4280 4180 # cas 
+			4260 4270 # Transport
+ 
+			#industry 
+			5550 5560 5570 5580 5590 # rocket
+			5190 5200 5210 5220 5230 # oil 
+			5470 5480 5490 5500 5510 5520 5530 5540 # nuclear 
+			5170 # rocket assembly 
+			 
+			# landdocs 
+			6160 6170 6190 6200 			 
+			# airdocs
+			9050 9060 9070 9080
+			9270 9280 9290 9300
+			9140 9150 9160 9170 9180 
+			9430 9440 9450 9460 
+			9230 9240 9250 9260 
+			9390 9400 9410 9420 
+		}
+ 
 	armor 		= 5 
 	infantry 	= 6
 	industry 	= 5
-	aircraft 	= 6
+	aircraft 	= 5
 	naval 		= 4
-	land_doctrines 	= 1
+	land_doctrines 	= 2
 	secret_weapons 	= 1
-	air_doctrines 	= 1
-	naval_doctrines = 1
+	air_doctrines 	= 2
+	naval_doctrines = 2
 }  
+
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
-	home_multiplier 	= 1.0
-	overseas_multiplier 	= 0.5
-	home_peace_cap 		= 20
-	war_zone_odds 		= 1.5
+	home_multiplier 	= 4.0
+	overseas_multiplier 	= 0.8
+	home_peace_cap 		= 21
+	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 1.0
-	revolt_risk_mult	= 0.4
+	revolt_risk_mult	= 1.0
 
 	# PRIORITIES:
-	beach			= 20	# Beach level 2
-	capital			= 40	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	beach			= 100	# Beach level 2
+	capital			= 150	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
-	opposing_alliance	= 30	# For neutrals, all alliances are "opposing"
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
 	unstable_border		= 0	# Bordering countries at war with someone else get this
 
@@ -510,11 +326,10 @@
 		BEL = -1
 		HOL = -1
 		LUX = -1
-		GER = 50
-		SPA = 5
+		GER = 200
+		SPA = 20
 		SPR = -1
-		ITA = 30
-		ETH = -1
+		ITA = 200
 		SCH = -1
 		FRA = -1
 		CAN = -1
@@ -523,85 +338,32 @@
 		POR = -1
 		CYN = -1
 		TUR = -1
+################################
+		PAK = -1
+		CHI = -1
+		SIK = -1
+		NEP = -1
+		SIA = -1
+		BHU = -1
+
 	}
-	ignore = {
-		#Libya
-		918   #Forte Maddalens
-		926   #Al Jaghbun
-		927   #Aujila
-		1017  #Calanslo
-		1018  #Kufra
-		1016  #Murzuk
-		1015  #Ghat
-		931   #Ghadames
-		928   #Sorno
-		
-		#Egypt/East Africa
-		1020  #Siwa
-		1019  #Great Sand Sea
-		907   #Qattara
-		1021  #AinDalla
-		1022  #Western Desert
-		1067  #El Atiun
-		1068  #El Obeid
-		1069  #Waw
-		1065  #Malakal
-		1032  #Omdurman
-		1041  #Gallabal
-		1040  #Kassala
-		1059  #Marsabit
-
-		#Ethiopia
-		1039  #Asmara
-		1048  #Adwa
-		1042  #Gonder
-		1044  #Debre
-		1045  #Gambela
-		1047  #Jima
-		1053  #Moyale
-		1049  #Denakil
-		1043  #Dese
-		1050  #Diredawa
-		1054  #Ogaden
-		1055  #Bardera
-
-		#Belgian Congo
-		1071  #Stanleyville
-		1072  #Buta
-		1073  #Costermanville
-		1074  #Coquihatville
-		1144  #Abertville
-		1143  #Kindu-Port-Empain
-		1142  #Leopoldville
-	}
-	province_priorities = {
-		348 = 30 # Gibraltar
-		31  = 30 # Malta
-		906 = 30 # Alexandria
-
-		# England Coast
-		20 = 30 # Dover
-		17 = 30 # Norwich
-		21 = 30 # Portsmouth
-		23 = 30 # Plymouth
-		12 = 30 # Blackpool
-		13 = 30 # Sheifield
-		14 = 30 # Liverpool
-		22 = 30 # Bristol
-		11 = 30 # Sunderland
-		10 = 30 # Edinburgh
-		9 = 30 # Glasgow
-		5 = 30 # Scap Flow
-	}
+
 	area_multiplier = {
-		348 = 2.0 # Gibraltar
-		31  = 2.0 # Malta
-		906 = 1.5 # Alexandria
-		19  = 0.2 # London
+
+		19  = 10.0 # London
+		28  = 1.2 # Belfast
+		839 = 10.0 # Alexandria
+		900 = 5.0 # Suez
+		1452 = 0.5 # calcutta
+		1798 = 1.5 #
+
 	}
+
+
 }
+
 front = { 
-	recklessness 		= 1 # 0-3
+	recklessness 		= 2 # 0-3
 	distrib_vs_ai 		= even
 	distrib_vs_human 	= even
 
@@ -609,204 +371,158 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
 	max_attack_odds		= 3.0
-	reinforce_odds		= 1.3
-	withdraw_odds		= 0.6
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = { } 
       	passivity = { } 
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
 invasion = {
-	invasion			= yes
- 	base				= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random				= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal				= 0.1	#increase to avoid coastal forts more.
-	beach				= 0.1	#higher, avoid worst beaches.
-	max_distance   		= 250.0  #About the distance from Japan to Batavia
-	max_staging_distance = 15	# How far should the staging area be from the target invasion point
-	distance			= 0.1	#higher = avoid long distance.
-	pocket				= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island				= 0.1	#prioritise taking pure islands.
-	enemy				= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 		= 2.0	#higher = much more vary of troops nearby
-	air_base			= 1.5 
-   	naval_base 			= 0.1 
-   	air_support 		= 3.0 
-   	redirect 			= priority
-	ignore				= no
+	invasion	= no
+ 	ignore		= no
       
-	target = {
-		# Baltic States (in case of un-holy alliance)
-		205 = -1 # Marzibe
-		204 = -1 # Gelgava
-		197 = -1 # Riga
-		196 = -1 # Parnu
-		194 = -1 # Tallinn
-		193 = -1 # Narva
-		188 = -1 # Kingiseep
-		187 = -1 # Leningrad
-		145 = -1 # Vipurii
-
-		# German
-		206 = -1 # Memel
-		510 = -1 # Konigsburg
-		304 = -1 # Elbing
-		303 = -1 # Danzig
-		302 = -1 # Setting
-		301 = -1 # Stralsrul
-		296 = -1 # Rostock
-		89  = -1 # Lubeck
-	
-		# Atlantic Wall
-		292 = -1 # Arburg
-		92  = -1 # Arhus
-		91  = -1 # Kolding
-		90  = -1 # Kiel
-		78  = -1 # Leeweden
-		47  = -1 # Amsterdam
-		46  = -1 # Rotterdam
-		45  = -1 # Ghent
-		18  = -1 # Calais
-		43  = -1 # Dunquerque
-		42  = -1 # Dieppe
-		41  = -1 # Le Havre
-		39  = -1 # Caen
-		33  = -1 # Rennes
-		32  = -1 # Brest
-		34  = -1 # Lorient
-		35  = -1 # Nantes
-		59  = -1 # Cholet
-		325 = -1 # Bordeaux
-		326 = -1 # Dax	
-	} 
+	target = { } 
 } 
 admiral = { 
-	min_org					= 100	# NEW: Percent of org gained back before the unit can leave port
-	min_dmg					= 98    # NEW: Percent of dmg gained back before the unit can leave port
-	return_org 				= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
-	return_dmg 				= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
 	min_core_attack_fleets  = 2		# Minimum amount of attack fleets to defend CORE provinces (default 0)
+	num_attack_fleets		= 4 	# ENG/USA default 3, JAP default 2 everyone else is 1
+	base = { 5 21 }
+
+
+target = {
+### home islands
+2395 = 100
+2412 = 100
+2413 = 100
+2414 = 100
+2415 = 100
+2416 = 100
+2417 = 100
+2403 = 100
+2402 = 100
+2400 = 100
+2600 = 100
+2599 = 100
+2598 = 100
+
+}
+core = {2395 2412  2414 2415 2416 2417}
+
+
+
+ignore = {
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+# North Sea
+"Kattegat"
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Mediterranean
+"Adriatic Sea"
+"Black Sea"
+
+# Pacific
+"Luzon Strait"
+"Philipine Trench"
+
+"Taiwan Strait"
+"Sea of Japan"
+"North Bismarck Sea"
+"South Bismarck Sea"
+"Marianas"
+"Marshalls Sea"
+"Western Solomons"
+"Eastern Solomons"
+"East Coral Sea"
+"Coast of Japan"
+"Solomon Sea"
+
+"Aleutians"
+"Carolines"
+"Central Philippine Sea"
+"Coast of Kamchatka"
+"East Bering Sea"
+"East Mariana Basin"
+"East Sea of Okhotsk"
+"Gulf of Alaska"
+"Hawaiian Rise"
+"Mariana Trench"
+"Mid-Pacific Mountains"
+"North Northeast Pacific Basin"
+"Northwest Pacific Basin"
+"Ryukyus"
+"South Sea of Okhotsk"
+
+"West Bering Sea"
+
+"West Coast of Mexico"
+"West Coast of the United States"
+"West Sea of Okhotsk"
+"Yellow Sea"
+"Fiji Basin"
+"Gilberts"
+"Line Islands"
+"North East Pacific Ocean"
+"South East Pacific Ocean"
+
+"North Southeast Pacific Ocean"
+"South Southeast Pacific Ocean"
+"Southeast Pacific Basin"
+"Southwest Pacific Basin"
+"West Coast of Central America"
+"West Coast of Chile"
+"West Coast of Peru"
+"Coast of New Guinea"
+
 
-	ignore = {
-		"Southeast Northsea"
-		"kattegat"
-		"Bothnian Bay"
-		"northern baltic"
-		"southern baltic"
-		"Southeast Northsea"
-		"East North Sea"
-		"Norwegian Sea"
-	}
-	#Which provinces to use as bases..
-	base = {
-		17 	# London
-		5	# Scapa Flow
-		14	# Liverpool
-		23	# Plymouth
-		348	# Gibraltar
-		906	# Alexandria
-		1505	# Bombay
-		1353	# Singapore
-		1727	# Sydney
 	}
-	target = { 
-		2396 = 100 
-		2397 = 100 
-		2398 = 100
-	} 
-	core = {
-		2396
-		2397
-		2398
-		2471
-		2402
-		2403
-		2404
-		2405
-		2406
-		2410
-		2411
+
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = ENG
 	}
-}
\ No newline at end of file
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/eng_1941.ai Doomsday Data Files/ai/eng_1941.ai
--- Doomsday Data Files.old/ai/eng_1941.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/eng_1941.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,26 +1,28 @@
-# England 1936 AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 2.0
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
-neutrality = 80.000 
-war = 1
-strat_redeploy_threshold = 50
-max_redeploying = 0.05
+
+war = 0
+strat_redeploy_threshold = 21
 exp_force_ratio = 0.10
-exp_force_ratios = { 
-	USA = 1.0
+exp_force_ratios = {
+	FRA = 0.1
+#	GRE = 0.4
+#	NOR = 0.4
 } 
-no_exp_forces_to = { NOR }
-evac_islands = no
+
 
 ###################################
 # Diplomacy
 ###################################
 combat = { }
 
-claim_acceptance = -49
+claim_acceptance = -20
 
 befriend = {
 	VEN = 50
@@ -29,10 +31,8 @@
 	HOL = 70
 	SPR = 40 
 	POL = 80 
-	AUS = 30
 	CZE = 40
 	TUR = 10 
-	IRQ = 20
 	PER = 20
 	POR = 20
 	CHI = 20
@@ -45,24 +45,16 @@
 	BEL = 150
 	HOL = 150
 	SPR = 20
-	POL = 120 
-	CZE = 10
+	POL = 250 
+	CZE = 250
 	TUR = 50 
 	IRQ = 10
 	PER = 10
 	POR = 10
 	CHI = 10
 }
-target = {
-	#Japan 
-	1184 = 100 # Tokyo
-	
-	#Germany
-	300 = 100 # Berlin
-} 
+target = { } 
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -77,7 +69,6 @@
 		AST = 100
 		NZL = 100
 		USA = 100
-		SAF = 100
 		BEL = 90
 		HOL = 90
 		SPR = 30
@@ -89,7 +80,9 @@
 		POR = 10
 		CHI = 10
 	}
-	embargo = { GER ITA JAP SLO HUN }
+	embargo = {
+		GER ITA JAP SLO HUN
+	}
 }
 tech_sharing = {
 	favored = {
@@ -98,7 +91,6 @@
 		AST = 100
 		NZL = 100
 		USA = 100
-		SAF = 100
 		BEL = 90
 		HOL = 90
 		SPR = 30
@@ -114,174 +106,28 @@
 		GER ITA JAP SLO HUN
 	}
 	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Naval Bomber
-		4190 = 100
-		4200 = 100
-		4210 = 100
-
-		# motorized
-		1230 = 100
-		1240 = 100
-		1250 = 100
-
-		# Medium tanks
-		2070 = 100
-		2080 = 100
-		2090 = 100
-
-		# Light tanks
-		2020 = 100
-		2030 = 100
-		2040 = 100
-		2050 = 100
-		2060 = 100
-
-		# Strategic bombers
-		4220 = 100
-		4230 = 100
-		4240 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = ENG
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 1
-		sabotage_industry 	= 6
-		nuclear_sabotage 	= 0
-		found_partisans		= 4
-		massmedia 			= 2
-		counter_espionage 	= 6
-		disrupt_techteam 	= 5
-		country 			= GER
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 5
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 1
-		sabotage_industry 	= 6
-		nuclear_sabotage 	= 0
-		found_partisans		= 4
-		massmedia 			= 2
-		counter_espionage 	= 6
-		disrupt_techteam 	= 5
-		country 			= ITA
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 5
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 3
-		coup 				= 1
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans		= 4
-		massmedia 			= 2
-		counter_espionage 	= 6
-		disrupt_techteam 	= 5
-		country 			= SOV
-	}
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 2
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans		= 4
-		massmedia 			= 1
-		counter_espionage 	= 6
-		disrupt_techteam 	= 5
-		country 			= SPA
-	}
+	prioritized = {	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
 #Default values
 construction = { 
-	max_factor = 0.10 
+	max_factor = 1.000
 
 	AA_batteries = no
-	max_AA_level = 10 
+	max_AA_level = 5
 	AA_provs = { } 
 
 	coastal_fort = no
-	max_coastal_level = 3
-	coastal_fort_provs = { } 
+	max_coastal_level = 5
+	coastal_fort_provs = {
+
+		31  # Malta
+	} 
 
-	radar_station = yes
+	radar_station = no
 	max_radar = 3 
 	radar_provs = {
 		20 # Dover
@@ -292,7 +138,7 @@
 		5  # Scapa Flow
 	} 
 
-	air_base = yes
+	air_base = no
 	max_air_base = 5 
 	air_base_provs = { } 
 
@@ -300,9 +146,6 @@
 	max_naval_base = 5 
 	naval_base_provs = { } 
 
-	land_fort = no
-	max_land_level = 10
-	fort_borders = { } 
 
 	ic_at_war = no
 	force_ic_until = 1938
@@ -311,203 +154,173 @@
 }
 military = { 
 	relative_build_scheme 	= no
-	max_batch_peace 	= 360 
+	max_batch_peace 	= 180
 	max_batch_war 		= 180 
 	max_batch_home_front 	= 180
 
+
 	#### Divisions etc...
-	infantry 		= 30
-	cavalry 		= 0
-	motorized 		= 9
-	mechanized 		= 0
+	infantry 	= 25
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 11
+	armor 		= 0
 	paratrooper 	= 0
-	marine 			= 0
+	marine 		= 15
 	bergsjaeger 	= 0
-	garrison		= 2
-    hq 				= 5
-	militia 		= 0
-#				57 %
-	interceptor 	= 4
-	multi_role 		= 2
-	cas 			= 0
-	strategic_bomber = 3
-	tactical_bomber = 4
-	naval_bomber 	= 3
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				40 %
+	interceptor 	= 6
+	multi_role 	= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 7
+	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				16 %
-	battleship 		= 3
-	carrier 		= 1
-	escort_carrier	= 2
-	destroyer 		= 7
-	light_cruiser 	= 4
-	heavy_cruiser 	= 2
+#				13 %
+	battleship 	= 4
+	carrier 	= 4
+	escort_carrier	= 4
+	destroyer 	= 15
+	light_cruiser 	= 5
+	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 5
-	nuclear_submarine = 0
-	transports 		= 3
-#				27 %
+	submarine 	= 0
+	transports 	= 15
+#				47 %
+
+
 
 	#### Brigades
-	artillery 			= 15
-	sp_artillery 		= 9
+	artillery 		= 0
+	sp_artillery 		= 10
 	rocket_artillery	= 0 
 	sp_rct_artillery 	= 0
-	anti_tank 			= 8
-	tank_destroyer 		= 8
-	light_armor_brigade = 6
-	heavy_armor 		= 5
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 20
 	super_heavy_armor 	= 0
-	armored_car 		= 5
-	anti_air 			= 7
-	police 				= 2	
-	engineer 			= 6 
+	armored_car 		= 0
+	anti_air 		= 10
+	police 			= 0	
+	engineer 		= 10
 
 	cag = 100.000 
 }
+
 technology = { 
 	endgoal 	= { } 
-	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# motorized
-		1230 1240 1250
-
-		# Medium tanks
-		2070 2080 2090
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Strategic bombers
-		4220 4230 4240
-		
-		# Naval Doctrines
-		8200 8250 8140 8260
-
-		# Land Doctrines
-		6170
-
-		# Air Doctrines
-		9040 9050 9060 9070 9080 9090 9100 9110 9120 9130 9190 9210 9220 9230 9240 9250 9350
-	} 
-	ignore 		= {
-		# Rocket Assembly
-		5170
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Battleship 3250 3260 3270
-		3280 3290 3300 3310
-
-		# CAS
-		4170 4280 4180
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Marines 1150 1160
-		1170 1180
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Rocketry
-		5550 5560 5570 5580 5590
-
-		# Airborne 1070 1080 1090
-		1100
-
-		# Air Transports 4250
-		4260 4270
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Armoured Cars
-		2150 2160
-
-		# CAS Air Doctrines 9040
-		9050 9060 9070 9080 9270 9280 9290 9300
-	}
-	
+	preference 	= { 
+			# inf
+			1310 1320 1330 1340 1350 1360 # supply 
+			1010 1020 1030 1040 1050 1060 # inf 
+			 
+			# tank & ARI 
+			2150 2160 # AC 
+			2290 2300 2310 2320 2340 2350 2360 # ARI 
+			2100 2110 2120 # heavy tanks 
+			 
+			# navy 
+			3010 3020 3030 3040 3050 3060 # destroyer
+			3320 3330 3340 3350 3360 3370 # carrier 
+			 
+			# industry 
+			5010 5020 5030 5040 #  agriculture 
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 # industry 
+			5140 5150 5160 5180 # assembly lines 
+			 
+			# land docs 
+			6110 6120 6130 6140 6150 6180 
+			 
+			# nav docs 
+			#8200  8130
+			} 
+	ignore 		= { 
+			#Inf
+			 
+			#ARI & Tank	
+			2130 # super heavy
+			2260 2270 2280 # SP Rock
+			2370 2380 2390 # rock
+			2470 2480 2490  # AA
+			2170 2180 2190 2200 2210 # SP AT 
+			 
+			#Mavy 
+			3190 3200 3210 3220 3230 #BC
+			3310 # SH BB
+			3430 3450 # sub 
+			 
+			#Plane 
+			4070 4040 4100 # Fighter
+			4170 4280 4180 # cas 
+ 
+			#industry 
+			5550 5560 5570 5580 5590 # rocket
+			5190 5200 5210 5220 5230 # oil 
+			5470 5480 5490 5500 5510 5520 5530 5540 # nuclear 
+			5170 # rocket assembly 
+			 
+			# landdocs 
+			6160 6170 6190 6200 			 
+			# airdocs
+			9050 9060 9070 9080
+			9270 9280 9290 9300
+			9140 9150 9160 9170 9180 
+			9430 9440 9450 9460 
+			9230 9240 9250 9260 
+			9390 9400 9410 9420 
+		}
+ 
 	armor 		= 5 
 	infantry 	= 6
 	industry 	= 5
-	aircraft 	= 6
-	naval 		= 4
-	land_doctrines 	= 1
+	aircraft 	= 5
+	naval 		= 5
+	land_doctrines 	= 2
 	secret_weapons 	= 1
-	air_doctrines 	= 1
-	naval_doctrines = 1
+	air_doctrines 	= 2
+	naval_doctrines = 2
 }  
+
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
-	home_multiplier 	= 1.0
+	home_multiplier 	= 5.0
 	overseas_multiplier 	= 0.5
-	home_peace_cap 		= 100
+	home_peace_cap 		= 21
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 1.0
 	revolt_risk_mult	= 1.0
 
 	# PRIORITIES:
-	beach			= 20	# Beach level 2
-	capital			= 40	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	beach			= 100	# Beach level 2
+	capital			= 150	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
-	opposing_alliance	= 30	# For neutrals, all alliances are "opposing"
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
 	unstable_border		= 0	# Bordering countries at war with someone else get this
 
@@ -516,11 +329,11 @@
 		BEL = -1
 		HOL = -1
 		LUX = -1
-		GER = 100
-		SPA = 5
+		GER = 200
+		SPA = 20
 		SPR = -1
-		ITA = 50
-		ETH = -1
+		ITA = 100
+		JAP = 100
 		SCH = -1
 		FRA = -1
 		CAN = -1
@@ -530,227 +343,68 @@
 		CYN = -1
 		TUR = -1
 	}
-	ignore = {
-		#Libya
-		918   #Forte Maddalens
-		926   #Al Jaghbun
-		927   #Aujila
-		1017  #Calanslo
-		1018  #Kufra
-		1016  #Murzuk
-		1015  #Ghat
-		931   #Ghadames
-		928   #Sorno
-		
-		#Egypt/East Africa
-		1020  #Siwa
-		1019  #Great Sand Sea
-		907   #Qattara
-		1021  #AinDalla
-		1022  #Western Desert
-		1067  #El Atiun
-		1068  #El Obeid
-		1069  #Waw
-		1065  #Malakal
-		1032  #Omdurman
-		1041  #Gallabal
-		1040  #Kassala
-		1059  #Marsabit
-
-		#Ethiopia
-		1039  #Asmara
-		1048  #Adwa
-		1042  #Gonder
-		1044  #Debre
-		1045  #Gambela
-		1047  #Jima
-		1053  #Moyale
-		1049  #Denakil
-		1043  #Dese
-		1050  #Diredawa
-		1054  #Ogaden
-		1055  #Bardera
-
-		#Belgian Congo
-		1071  #Stanleyville
-		1072  #Buta
-		1073  #Costermanville
-		1074  #Coquihatville
-		1144  #Abertville
-		1143  #Kindu-Port-Empain
-		1142  #Leopoldville
-	}
-	province_priorities = {
-		348 = 20 # Gibraltar
-		31 = 20 # Malta
-	}
+
 	area_multiplier = {
-		348 = 2.0 # Gibraltar
-		31 = 2.0 # Malta
-		19 = 0.2 # London
+
+		19  = 10.0 # London
+		900 = 5.0 # suez
+		1452 = 10.0 # calcutta
+		953 = 0.5 # Oran
+		2440 = 2.0 # Malta
+		1798 = 1.5 #
+
+
 	}
 }
+
 front = { 
-	recklessness 		= 1 # 0-3
-	distrib_vs_ai 		= even
-	distrib_vs_human 	= even
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= offensive
+	distrib_vs_human 	= offensive
 
 	enemy_reinf_days	= 6
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
 	max_attack_odds		= 3.0
-	reinforce_odds		= 1.3
-	withdraw_odds		= 0.6
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = { } 
       	passivity = { } 
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
+###################################
 invasion = {
-	invasion			= yes
- 	base				= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random				= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal				= 0.1	#increase to avoid coastal forts more.
-	beach				= 0.1	#higher, avoid worst beaches.
-	max_distance   		= 250.0  #About the distance from Japan to Batavia
-	max_staging_distance = 15	# How far should the staging area be from the target invasion point
-	distance			= 0.1	#higher = avoid long distance.
-	pocket				= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island				= 0.1	#prioritise taking pure islands.
-	enemy				= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 		= 2.0	#higher = much more vary of troops nearby
-	air_base			= 1.5 
-    naval_base 			= 0.1 
-    air_support 		= 3.0 
-    redirect 			= priority
-	ignore				= no
+	invasion	= no    # not yet
+	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 5.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.5	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 3.0	#higher = avoid long distance.
+	max_distance    = 40.0
+	pocket		= 3.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 2.0	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 0.5	#higher = much more vary of troops nearby
+	air_base	= 0.1
+      	naval_base 	= 0.1
+      	redirect 	= nearest
+	ignore		= no
       
-	target = {
-		# Baltic States (in case of un-holy alliance)
-		205 = -1 # Marzibe
-		204 = -1 # Gelgava
-		197 = -1 # Riga
-		196 = -1 # Parnu
-		194 = -1 # Tallinn
-		193 = -1 # Narva
-		188 = -1 # Kingiseep
-		187 = -1 # Leningrad
-		145 = -1 # Vipurii
-
-		# German
-		206 = -1 # Memel
-		510 = -1 # Konigsburg
-		304 = -1 # Elbing
-		303 = -1 # Danzig
-		302 = -1 # Setting
-		301 = -1 # Stralsrul
-		296 = -1 # Rostock
-		89  = -1 # Lubeck
-	
-		# Atlantic Wall
-		292 = -1 # Arburg
-		92  = -1 # Arhus
-		91  = -1 # Kolding
-		90  = -1 # Kiel
-		78  = -1 # Leeweden
-		47  = -1 # Amsterdam
-		46  = -1 # Rotterdam
-		45  = -1 # Ghent
-		18  = -1 # Calais
-		43  = -1 # Dunquerque
-		42  = -1 # Dieppe
-		41  = -1 # Le Havre
-		39  = -1 # Caen
-		33  = -1 # Rennes
-		32  = -1 # Brest
-		34  = -1 # Lorient
-		35  = -1 # Nantes
-		59  = -1 # Cholet
-		325 = -1 # Bordeaux
-		326 = -1 # Dax	
-	} 
+	target = { } 
 } 
 admiral = { 
 	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
@@ -758,45 +412,146 @@
 	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
 	min_core_attack_fleets  = 2		# Minimum amount of attack fleets to defend CORE provinces (default 0)
+	num_attack_fleets		= 5 	# ENG/USA default 3, JAP default 2 everyone else is 1
+base = { 5 21 348 906 }
+
+
+target = {
+### home islands
+2395 = 100
+2412 = 100
+2413 = 100
+2414 = 100
+2415 = 100
+2416 = 100
+2417 = 100
+2403 = 100
+2402 = 100
+2400 = 100
+2600 = 100
+2599 = 100
+2598 = 100
+#### med
+2454 = 100
+2451 = 100
+2442 = 100
+2440 = 100
+2437 = 100
+2436 = 100
+
+}
+core = {2395 2412  2414 2415 2416 2417}
+
+
 
 	ignore = {
-		"Southeast Northsea"
-		"kattegat"
-		"Bothnian Bay"
-		"northern baltic"
-		"southern baltic"
-	}
-	#Which provinces to use as bases..
-	base = {
-		17 	# London
-		5	# Scapa Flow
-		14	# Liverpool
-		23	# Plymouth
-		348	# Gibraltar
-		906	# Alexandria
-		1505	# Bombay
-		1353	# Singapore
-		1727	# Sydney
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+# North Sea
+"Kattegat"
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Mediterranean
+"Adriatic Sea"
+"Black Sea"
+		# Pacific
+		"Luzon Strait"
+		"Philipine Trench"
+		"Coast of Brunei"
+		"Flores Sea"
+		"Molucca Sea"
+		"Banda Sea"
+		"West Coral Sea"
+		"Sulu Sea"
+		"Celebes Sea"
+		"Arafura Sea"
+		"Java Ridge"
+		"Malacca Strait"
+		"Gulf of Siam"
+		"Spratly Sea"
+		"Coast of Indochina"
+		"Taiwan Strait"
+		"Sea of Japan"
+		"North Bismarck Sea"
+		"South Bismarck Sea"
+		"Marianas"
+		"Marshalls Sea"
+		"Western Solomons"
+		"Eastern Solomons"
+		"East Coral Sea"
+		"Coast of Japan"
+		"Solomon Sea"
+		"North Tasman Sea"
+		"South Tasman Sea"
+		"East Great Australian Bight"
+		"West Great Australian Bight"
+		"Aleutians"
+		"Carolines"
+		"Central Philippine Sea"
+		"Coast of Kamchatka"
+		"East Bering Sea"
+		"East Mariana Basin"
+		"East Sea of Okhotsk"
+		"Gulf of Alaska"
+		"Hawaiian Rise"
+		"Mariana Trench"
+		"Mid-Pacific Mountains"
+		"North Northeast Pacific Basin"
+		"Northwest Pacific Basin"
+		"Ryukyus"
+		"South Sea of Okhotsk"
+		"Timor Sea"
+		"West Bering Sea"
+		"West Coast of Australia"
+		"West Coast of Mexico"
+		"West Coast of the United States"
+		"West Sea of Okhotsk"
+		"Yellow Sea"
+		"Fiji Basin"
+		"Gilberts"
+		"Line Islands"
+		"North East Pacific Ocean"
+		"South East Pacific Ocean"
+		"East Cost of New Zealand"
+		"North Southeast Pacific Ocean"
+		"South Southeast Pacific Ocean"
+		"Southeast Pacific Basin"
+		"Southwest Pacific Basin"
+		"West Coast of Central America"
+		"West Coast of Chile"
+		"West Coast of Peru"
+		"Coast of New Guinea"
+
 	}
-	target = {
-		2395 = 200
-		2412 = 200
-		2413 = 200
-		2414 = 200
-		2599 = 50
-		2598 = 50
-	} 
-	core = {
-		2396
-		2397
-		2398
-		2471
-		2402
-		2403
-		2404
-		2405
-		2406
-		2410
-		2411
+
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = ENG
 	}
-}
\ No newline at end of file
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/eng_1943.ai Doomsday Data Files/ai/eng_1943.ai
--- Doomsday Data Files.old/ai/eng_1943.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/eng_1943.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,432 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 2.0
+max_garrison_prop = 0.30
+min_garrison_prop = 0.20
+
+war = 5
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.10
+exp_force_ratios = {
+	FRA = 0.1
+} 
+
+
+###################################
+# Diplomacy
+###################################
+combat = { }
+
+claim_acceptance = -20
+
+befriend = {
+	VEN = 50
+	USA = 50
+	BEL = 70
+	HOL = 70
+	SPR = 40 
+	POL = 80 
+	CZE = 40
+	TUR = 10 
+	PER = 20
+	POR = 20
+	CHI = 20
+}
+protect = {
+	FRA = 150
+	CAN = 150
+	AST = 150
+	NZL = 150
+	BEL = 150
+	HOL = 150
+	SPR = 20
+	POL = 250 
+	CZE = 250
+	TUR = 50 
+	IRQ = 10
+	PER = 10
+	POR = 10
+	CHI = 10
+}
+target = { } 
+trade = {
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = {
+		VEN = 100
+		FRA = 100
+		CAN = 100
+		AST = 100
+		NZL = 100
+		USA = 100
+		BEL = 90
+		HOL = 90
+		SPR = 30
+		POL = 20 
+		CZE = 20
+		TUR = 10
+		IRQ = 100
+		PER = 100
+		POR = 10
+		CHI = 10
+	}
+	embargo = {
+		GER ITA JAP SLO HUN
+	}
+}
+
+}
+military = { 
+	relative_build_scheme 	= no
+	max_batch_peace 	= 270
+	max_batch_war 		= 270 
+	max_batch_home_front 	= 270
+
+
+	#### Divisions etc...
+	infantry 	= 0
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 35
+	light_armor 	= 0
+	armor 		= 0
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				35 %
+	interceptor 	= 5
+	multi_role 	= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 5
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				10 %
+	battleship 	= 4
+	carrier 	= 10
+	destroyer 	= 10
+	escort_carrier	= 1
+	light_cruiser 	= 10
+	heavy_cruiser 	= 1
+	battlecruiser 	= 0
+	submarine 	= 0
+	transports 	= 19
+#				55 %
+
+	#### Brigades
+	artillery 		= 0
+	sp_artillery 		= 10
+	rocket_artillery	= 0 
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 20
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 10
+	police 			= 0	
+	engineer 		= 10
+
+	cag = 100.000 
+}
+
+technology = { 
+	endgoal 	= { } 
+	preference 	= { 
+			# inf
+			1310 1320 1330 1340 1350 1360 # supply 
+			1010 1020 1030 1040 1050 1060 # inf 
+			 
+			# tank & ARI 
+			2150 2160 # AC 
+			2290 2300 2310 2320 2340 2350 2360 # ARI 
+			2100 2110 2120 # heavy tanks 
+			 
+			# navy 
+			3010 3020 3030 3040 3050 3060 # destroyer
+			3320 3330 3340 3350 3360 3370 # carrier 
+			 
+			# industry 
+			5010 5020 5030 5040 #  agriculture 
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 # industry 
+			5140 5150 5160 5180 # assembly lines 
+			 
+			# land docs 
+			6110 6120 6130 6140 6150 6180 
+			 
+			# nav docs 
+			8200  8130
+			} 
+	ignore 		= { 
+			#Inf
+			 
+			#ARI & Tank	
+			2130 # super heavy
+			2260 2270 2280 # SP Rock
+			2370 2380 2390 # rock
+			2470 2480 2490  # AA
+			2170 2180 2190 2200 2210 # SP AT 
+			 
+			#Mavy 
+			3190 3200 3210 3220 3230 #BC
+			3310 # SH BB
+			3430 3450 # sub 
+			 
+			#Plane 
+			4070 4040 4100 # Fighter
+			4170 4280 4180 # cas 
+ 
+			#industry 
+			5190 5200 5210 5220 5230 # oil 
+			5470 5480 5490 5500 5510 5520 5530 5540 # nuclear 
+			5170 # rocket assembly 
+			 
+			# landdocs 
+			6160 6170 6190 6200 
+			 
+			# airdocs
+			9050 9060 9070 9080
+			9270 9280 9290 9300
+			9140 9150 9160 9170 9180 
+			9430 9440 9450 9460 
+			9230 9240 9250 9260 
+			9390 9400 9410 9420 
+		}
+ 
+	armor 		= 5 
+	infantry 	= 6
+	industry 	= 5
+	aircraft 	= 5
+	naval 		= 5
+	land_doctrines 	= 2
+	secret_weapons 	= 1
+	air_doctrines 	= 2
+	naval_doctrines = 2
+}  
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
+
+garrison = {
+	defend_overseas_beaches = no
+	home_multiplier 	= 5.0
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 21
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 1.0
+
+	# PRIORITIES:
+	beach			= 100	# Beach level 2
+	capital			= 150	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		BEL = -1
+		HOL = -1
+		LUX = -1
+		GER = 200
+		SPA = 5
+		SPR = -1
+		ITA = 50
+		ETH = -1
+		SCH = -1
+		FRA = -1
+		CAN = -1
+		AST = -1
+		NZL = -1
+		POR = -1
+		CYN = -1
+		TUR = -1
+		SIA = 100
+		JAP = 200
+	}
+
+	area_multiplier = {
+
+		19  = 5.0 # London
+		839 = 1.0 # Alexandria
+		1452 = 5.0 # calcutta
+
+	}
+}
+
+front = { 
+	recklessness 		= 3 # 0-3
+	distrib_vs_ai 		= offensive
+	distrib_vs_human 	= offensive
+
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
+
+###################################
+# Invasions and Naval
+###################################
+invasion = {
+	invasion	= yes
+	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 5.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.5	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 3.0	#higher = avoid long distance.
+	max_distance    = 40.0
+	pocket		= 3.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 2.0	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 0.5	#higher = much more vary of troops nearby
+	air_base	= 0.1
+      	naval_base 	= 0.1
+      	redirect 	= nearest
+	ignore		= no
+      
+	target = { } 
+} 
+admiral = { 
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+	min_core_attack_fleets  = 2		# Minimum amount of attack fleets to defend CORE provinces (default 0)
+	num_attack_fleets		= 6 	# ENG/USA default 3, JAP default 2 everyone else is 1
+
+base = { 5 21 348 906 2516}
+
+target = {
+### home islands
+2395 = 100
+2412 = 100
+2413 = 100
+2414 = 100
+2415 = 100
+2416 = 100
+2417 = 100
+2403 = 100
+2402 = 100
+2400 = 100
+2600 = 100
+2599 = 100
+2598 = 100
+#### med
+2454 = 100
+2451 = 100
+2442 = 100
+2440 = 100
+2437 = 100
+2436 = 100
+#### fareast
+2073 = 100
+2147 = 100
+2146 = 100
+2151 = 100
+2152 = 100
+2144 = 100
+2143 = 100
+2141 = 100
+2161 = 100
+2140 = 100
+2139 = 100
+2168 = 100
+2160 = 100
+2164 = 100
+}
+
+
+
+
+
+	ignore = {
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+# North Sea
+"Kattegat"
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Mediterranean
+"Adriatic Sea"
+"Black Sea"
+
+	}
+
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = ENG
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/fla_1936.ai Doomsday Data Files/ai/fla_1936.ai
--- Doomsday Data Files.old/ai/fla_1936.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/fla_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,265 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 1.5
+max_front_ratios = { }
+max_garrison_prop = 0.50
+min_garrison_prop = 0.25
+neutrality = 100.000
+war = 0
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.75
+exp_force_ratios = {
+	GER = 0.9
+}
+desperation = 0.50
+use_offensive_supply = no
+
+###################################
+# Diplomacy
+###################################
+claim_acceptance = -49
+
+combat = { }
+demand_claims = { }
+befriend = { }
+protect = { }
+target = { } 
+
+trade = {
+	cancel_deal_threshold = 3
+
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = { GER = 100 }
+	embargo = { }
+}
+
+tech_sharing = {
+	favored = { GER = 100 }
+	embargo = { }
+	not = { }
+	prioritized = {	}
+}
+
+###################################
+# Construction and Tech Research
+###################################
+construction = { 
+	max_factor = 0.250
+	AA_batteries = no
+	coastal_fort = no
+	radar_station = no
+	air_base = no
+	naval_base = no
+	land_fort = no
+	ic_at_war = no
+}
+
+military = { 
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 360
+	max_batch_war 		= 360
+	max_batch_home_front 	= 360
+
+	#### Divisions etc...
+	infantry 	= 42
+	cavalry 	= 6
+	motorized 	= 9
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 8
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 8
+	garrison	= 0
+      	hq 		= 5
+	militia 	= 0
+#				78 %
+	interceptor 	= 8
+	multi_role 	= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 7
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				15 %
+	battleship 	= 0
+	carrier 	= 0
+	escort_carrier	= 0
+	destroyer 	= 3
+	light_cruiser 	= 0
+	heavy_cruiser 	= 0
+	battlecruiser 	= 0
+	submarine 	= 4
+	transports 	= 0
+#				7 %
+
+	#### Brigades
+	artillery 		= 30
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 20
+
+	cag = 100.000 
+}
+
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4120 4130 4140 4150 4160 15100 15110 # Tac Bombers
+	}
+	preference 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4120 4130 4140 4150 4160 15100 15110 # Tac Bombers
+	}
+	ignore 		= {
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1340 1350 1360 # Repair shops
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2450 2460 2470 2480 2490 2500 11080 # Static Anti-Air
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		4040 4070 4100 15030 15040 15050 # Fighters
+		4190 4200 4210 15140 15150 # Naval Bombers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5150 5170 # Ship + Rocket Assembly Lines
+		5410 5420 5430 5440 5450 5460 13030 # Radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+		14080 # Guerilla Warfare
+	}
+
+	armor 		= 4
+	infantry 	= 8
+	industry 	= 6
+	aircraft 	= 4
+	naval 		= 0
+	land_doctrines 	= 4
+	secret_weapons 	= 0
+	air_doctrines 	= 3
+	naval_doctrines = 0
+}
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 1.0
+
+	# PRIORITIES:
+	beach			= 75	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = { }
+	province_priorities = { }
+	area_multiplier = { }
+}
+
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
+
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
+
+###################################
+# Invasions and Naval
+###################################
+invasion = { 
+	ignore		= no 
+	invasion	= no
+      
+	target = { } 
+} 
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = FLA
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/ger_1936.ai Doomsday Data Files/ai/ger_1936.ai
--- Doomsday Data Files.old/ai/ger_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/ger_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,27 +1,32 @@
-# German 1936 AI File by Lothos
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 1.5
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
-neutrality = 90.000 
+neutrality = 50.000 
 war = 0
-strat_redeploy_threshold = 50
-max_redeploying = 0.05
-exp_force_ratio = 0.0
-exp_force_ratios = { } 
+reinforcement = 0.0
+upgrading = 0.0
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.1
 no_exp_forces_to = { JAP SIA MAN VIC }
+use_offensive_supply = yes
+max_fuel_offensive = 1
 
 ###################################
 # Diplomacy
 ###################################
+claim_acceptance = -49
+
 combat = { }
 
-demand_claims = {
-	POL
-	AUS
-	CZE
-}
+liberate = { HUN BUL ROM FIN SPA }
+
+demand_claims = { }
+
 befriend = {
 	SLO = 50
 	SPA = 20
@@ -33,6 +38,7 @@
 	TUR = 30
 	DEN = 40
 }
+
 protect = {
 	ROM = 80
 	BUL = 80 
@@ -45,6 +51,7 @@
 	ITA = 80
 	TUR = 80
 }
+
 target = { 
 	#Austria
 	373 = 80 # Lech
@@ -67,10 +74,9 @@
 
 	#Baltic States
 	206 = 50 # Memel
-} 
-trade = {
-	cancel_deal_threshold = 2
+}
 
+trade = {
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -90,458 +96,236 @@
 		JAP = 50
 		CHI = 50
 	}
-	embargo = { }
+	embargo = {
+		ENG FRA AST CAN NZL
+	}
 }
+
 tech_sharing = {
 	favored = {
-		ROM = 120
-		SLO = 80
-		BUL = 100
-		HUN = 100
-		SPA = 120
-		YUG = 50
-		ITA = 150
-		SWE = 50
-		FIN = 120
-		JAP = 150
-		TUR = 100
-	}
-	embargo = {
-		ENG FRA AST CAN NZL
+		ROM = 200
+		SLO = 200
+		BUL = 200
+		HUN = 200
+		SPA = 200
+		ITA = 200
+		FIN = 200
+		JAP = 200
+		CRO = 200
 	}
+	embargo = { }
 	not = { }
 	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Motorized
-		1230 = 100
-		1240 = 100
-		1250 = 100
-
-		# CAS
-		4170 = 100
-		4280 = 100
-		4180 = 100
-
-		# Medium tanks
-		2070 = 100
-		2080 = 100
-		2090 = 100
-
-		# Light tanks
+		1010 = 100 # Infs
+		1020 = 100
+		1030 = 100
+		1040 = 100
+		1050 = 100
+		1060 = 100
+		1110 = 100 # Mtns
+		1120 = 100
+		1130 = 100
+		1140 = 100
+		1190 = 100 # Cavs
+		1200 = 100
+		1210 = 100
+		1220 = 100
+		2010 = 100 # Tanks
 		2020 = 100
 		2030 = 100
 		2040 = 100
 		2050 = 100
 		2060 = 100
-
-		# Submarines
-		3400 = 100
-		3410 = 100
-		3420 = 100
-		3430 = 100
-		3440 = 100
-		3450 = 100
-
-		# Mechanized
-		1260 = 100
-		1270 = 100
-		1280 = 100
-		1290 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = GER
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 2
-		smear_campaign 		= 4
-		coup 				= 1
-		sabotage_industry 	= 10
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 4
-		counter_espionage 	= 5
-		disrupt_techteam 	= 4
-		country 			= SOV
-	}
-	spyprefsdata = {
-		country_priorities	= 8
-		NumberOfSpies		= 7
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 2
-		smear_campaign 		= 4
-		coup 				= 1
-		sabotage_industry 	= 10
-		nuclear_sabotage	= 0
-		found_partisans 	= 0
-		massmedia 			= 4
-		counter_espionage 	= 5
-		disrupt_techteam 	= 4
-		country 			= ENG
-	}
-	spyprefsdata = {
-		country_priorities	= 5
-		NumberOfSpies		= 5
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 10
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam	= 4
-		country 			= USA
-	}
-	spyprefsdata = {
-		country_priorities	= 2
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 0
-		coup 				= 0
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 0
-		counter_espionage 	= 5
-		disrupt_techteam	= 0
-		country 			= SPA
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= SPR
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= YUG
+		2070 = 100
+		2080 = 100
+		2090 = 100
+		2290 = 100 # Arts
+		2300 = 100
+		2310 = 100
+		2320 = 100
+		2330 = 100
+		2340 = 100
+		2350 = 100
+		2360 = 100
+		2370 = 100
+		2380 = 100
+		2390 = 100
+		4010 = 100 # IntFs
+		4020 = 100
+		4030 = 100
+		4060 = 100
+		4090 = 100
+		4120 = 100 # Tacs
+		4130 = 100
+		4140 = 100
+		4150 = 100
+		4160 = 100
+		5050 = 100 # Machine Tools
+		5060 = 100
+		5070 = 100
+		5310 = 100 # Computers
+		5320 = 100
+		5330 = 100
+		5340 = 100
 	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
 construction = { 
-	max_factor = 0.020 
-
-	AA_batteries = yes
-	max_AA_level = 4 
-	AA_provs = { 
-		76 # Dortmund
-		67 # Essen
-		75 # Cologne
-		74 # Saarbrucken
-		82 # Kassel
-		313 # Frankfurt
-		314 # Suttgart
-		376 # Munich
-		311 # Dresden
-		310 # Leipzig
-		300 # Berlin
-		90 # Kiel
-		296 # Rostock
-		86 # Hannover
-		80 # Wilhelmshafen
-		81 # Munster
-		66 # Aachen
-	}
-
-	coastal_fort = atwar
-	max_coastal_level = 3
-	coastal_fort_provs = {
-		90 # Kiel
-	} 
-
-	radar_station = atwar
-	max_radar = 2
-	radar_provs = {
-		67 # Essen
-		82 # Kassel
-		80 # Wilhemshafen
-		300 # Berlin
-		314 # Stutgart
-		51 # Brussels
-		47 # Amsterdam
-		44 # Lille
-		56 # Paris
-	} 
+	max_factor = 1.000
 
-	air_base = atwar
-	max_air_base = 3
-	air_base_provs = {
-		67 # Essen
-	} 
+	AA_batteries = no
+	max_AA_level = 0
+	AA_provs = { } 
+
+	coastal_fort = no
+	max_coastal_level = 0
+	coastal_fort_provs = { } 
+
+	radar_station = no 
+	max_radar = 0
+	radar_provs = { } 
+
+	air_base = no
+	max_air_base = 0
+	air_base_provs = { }
 
 	naval_base = no 
-	max_naval_base = 5 
+	max_naval_base = 0
 	naval_base_provs = { } 
 
 	land_fort = no
-	max_land_level = 2
-	fort_borders = { }
-	fort_provs	= {
-		74  # Saarburken
-		314 # Stuttgart
-		315 # Freiburg
-	}
+	max_land_level = 0
+	fort_borders = { } 
 
-	ic_at_war = no
-	force_ic_until = 1935
-	ic_end_year = 1941
-	IC_provs = {
-		74  # Saarburken
-		376 # Munchen
-		300 # Berlin
-		75  # Cologne
-		314 # Stuttgart
-		86  # Hannover
-		311 # Dresden
-		300 # Berlin
-	} 
+	ic_at_war = yes 
+	force_ic_until = 1936
+	ic_end_year = 1936
+	IC_provs = { } 
 }
 
 military = { 
-	relative_build_scheme 	= yes
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
-	max_batch_home_front 	= 180
+	relative_build_scheme 	= no 
+	max_batch_peace 	= 270 
+	max_batch_war 		= 270 
+	max_batch_home_front 	= 270
 
 	#### Divisions etc...
-	infantry 		= 35
-	cavalry 		= 0
-	motorized 		= 3
-	mechanized 		= 0
-	light_armor 	= 5
-	armor 			= 0
+	infantry 	= 51
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 9
 	paratrooper 	= 0
-	marine 			= 0
-	bergsjaeger 	= 1
-	garrison		= 8
-    hq 				= 3
-	militia 		= 0
-#				55 %
+	marine 		= 0
+	bergsjaeger 	= 6
+	garrison	= 0
+      	hq 		= 4
+	militia 	= 0
+#				70 %
 	interceptor 	= 6
-	multi_role 		= 2
-	cas 			= 4
+	multi_role 	= 0
+	cas 		= 0
 	strategic_bomber = 0
 	tactical_bomber = 5
-	naval_bomber 	= 3
+	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				20 %
-	battleship 		= 1
-	carrier 		= 0
+#				11 %
+	battleship 	= 3
+	carrier 	= 0
 	escort_carrier	= 0
-	destroyer 		= 5
-	light_cruiser 	= 3
-	heavy_cruiser 	= 1
-	battlecruiser 	= 0
-	submarine 		= 10
-	nuclear_submarine = 0
-	transports 		= 5
-#				25 %
+	destroyer 	= 0
+	light_cruiser 	= 4
+	heavy_cruiser 	= 3
+	battlecruiser 	= 4
+	submarine 	= 0
+	transports 	= 5
+#				19 %
 
 	#### Brigades
-	artillery 			= 20
-	sp_artillery 		= 8
-	rocket_artillery	= 0 
+	artillery 		= 20
+	sp_artillery 		= 0
+	rocket_artillery	= 0
 	sp_rct_artillery 	= 0
-	anti_tank 			= 11
-	tank_destroyer 		= 5
-	light_armor_brigade = 2
-	heavy_armor 		= 5
+	anti_tank 		= 10
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
 	super_heavy_armor 	= 0
 	armored_car 		= 0
-	anti_air 			= 6
-	police 				= 3
-	engineer 			= 5 
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 20
 
-	cag = 100.000 
+	cag = 100.000
 }
 
 technology = { 
-	endgoal 	= { } 
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3400 3410 3420 3430 3440 3450 # Submarines
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5150 5160 5180 # Assembly Lines
+		6210 6220 6230 6240 6250 6260 6270 6280 6290 14100 # Land Doctrines (GER path)
+		14000 14010 14020 14030 14040 # Hospitals
+	} 
 	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Motorized
-		1230 1240 1250
-
-		# CAS
-		4170 4280 4180
-
-		# Medium tanks
-		2070 2080 2090
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Submarines
-		3400 3410 3420 3430 3440 3450
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Naval Doctrines
-		8210 8280 8290 8300
-		
-		# Air Doctrines
-		9060 9080 9100 9110 9120 9130 9190 9200 9210 9220 9230 9240 9250 9260 9270 9280 9290 9300 9310 9320 9330 9340 9350 9360 9370 9380 9390 9400 9410 9420 
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3400 3410 3420 3430 3440 3450 # Submarines
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5150 5160 5180 # Assembly Lines
+		6210 6220 6230 6240 6250 6260 6270 6280 6290 14100 # Land Doctrines (GER path)
+		14000 14010 14020 14030 14040 # Hospitals
 	} 
 	ignore 		= {
-		# Strategic bombers
-		4220 4230 4240
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Battleship
-		3250 3260 3270 3280 3290 3300 3310
-
-		# Carrier 
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Airborne 1070 1080
-		1090 1100
-
-		# Air Transports 4250
-		4260 4270
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-
-		# Rocket Artillery
-		2370 2380 2390
-		
-		# Armoured Cars
-		2150 2160
-		
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		3310 12050 # Super-Heavy Battleships
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5170 # Rocket Assembly Line
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+		14090 # Volkssturm
 	}
  
 	armor 		= 5 
 	infantry 	= 6
-	industry 	= 5
+	industry 	= 7
 	aircraft 	= 5
-	naval 		= 1
-	land_doctrines 	= 2
-	secret_weapons 	= 1
-	air_doctrines 	= 1
+	naval 		= 2
+	land_doctrines 	= 3
+	secret_weapons 	= 2
+	air_doctrines 	= 2
 	naval_doctrines = 1
 }  
 
@@ -549,32 +333,33 @@
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 1.0
 	overseas_multiplier 	= 1.0
-	home_peace_cap 		= 20
+	home_peace_cap 		= 101
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 0.5
-	revolt_risk_mult	= 0.3
+	revolt_risk_mult	= 0.2
 
 	# PRIORITIES:
-	beach			= 0	# Beach level 2
-	capital			= 40	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	beach			= 50	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -595,24 +380,14 @@
 		DEN = 25
 		SOV = 25
 	}
-	ignore = {
-		#Rhine
-		75 #Cologne
-		74 #Saarburken
-		66 #Aachen
-	}
-	province_priorities = {
-		#Rhine border
-		313 = 30 #Frankfurt
-		82 = 30  #Kassel
-		76 = 30  #Dortmono
-		67 = 30  #Essen
-	}
+	ignore = { }
+	province_priorities = { }
 	area_multiplier = {
 		304 = 3.5 # Elbing
 		510 = 3.5 # Königsberg in order to get a decent build-up before Fall Weiss.
 	}
 }
+
 front = { 
 	recklessness 		= 2 # 0-3
 	distrib_vs_ai 		= even
@@ -622,156 +397,36 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
+	base_attack_odds	= 1.333
 	min_attack_odds		= 1.1
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
-	withdraw_odds		= 0.6
+	withdraw_odds		= 0.75
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = {
-		FRA = 300
-		BEL = 300
-		HOL = 300
-		LUX = 300
 	} 
       	passivity = {
-		FRA = 100
-		BEL = 100
-		HOL = 100
-		LUX = 100
 	}
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
-invasion = { 
- 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal		= 0.1	#increase to avoid coastal forts more.
-	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 0.1	#higher = avoid long distance.
-	max_distance    = 20.0  #About the distance from Rostock to Narvik
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island		= 0.1	#prioritise taking pure islands.
-	enemy		= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
-	air_base	= 1.5 
-      	naval_base 	= 0.1 
-      	air_support 	= 3.0 
-      	redirect 	= priority
+invasion = {
 	ignore		= no
+	invasion	= no
 	help_allies 	= no
-      
-	target = { 
-		#Norway
-		107 = 4000 # Oslo
-		108 = 4000 # Kristiansan
-		109 = 4000 # Stavanger
-		110 = 4000 # Bergen
-		125 = 4000 # Narvik
-		117 = 3750 # Alesund
-		118 = 3750 # Trondheim
-		124 = 3750 # Mo I Ran
-
-		#Sweden
-		106 = 4000 # Amal
-		98  = 4000 # Goterborg
-		93  = 4000 # Malmo
-		97  = 4000 # Jonkoping
-		100 = 3750 # Norrkoping
-		101 = 3750 # Stockholm
-		102 = 3750 # Uppsala
-		114 = 3750 # Gavle
-		120 = 4000 # Sundsuall
-		122 = 4000 # Umea
-		127 = 4000 # Lulea
-
-		#Finland
-		142 = 2000 # Helsinki
-		141 = 2000 # Turku
-		140 = 2000 # Pori
-		138 = 2000 # Vaasa
-		137 = 1750 # Oulu
-		131 = 1750 # Tornio
-	} 
-} 
+
+	target = { }
+}
+
 admiral = { 
 	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
 	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
@@ -779,248 +434,151 @@
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
 
 	ignore = {
-		#Murmansk/Archangel
-		"Barents Sea"
-		"Arctic Ocean"
-		
-		#Norway Coast (Denmark Coast)
-		"Norwegian Sea"
-		"East North Sea"
-		
-		#North Sea, East Coast of England
-		"Central Northsea"
-		"West Northsea"
-		"Southeast Northsea"
-		
-		#England/France border Sea Areas
-		"English Channel"
-		"Bay of Biscay"
-		"Cape Finisterre"
-		
-		#Spanish Coase (Atlantic Side)
-		"Portugese Coast"
-		"Cap St Vincent"
-		
-		#Iceland
-		"Faroes Gap"
-		"Denmark Strait"
-		
-		#Ireland/West Coast of England
-		"Irish Sea"
-		"The Hebreides"
-		"Irish West Coast"
-		
-		#Greenland
-		"Greenland Coast"
-		"Northern Sea of Labrador" 
-		"Southern Sea of Labrador"
-		
-		#Canada East Coast
-		"Hudson Bay"
-		"Grand Banks"
-		"Canadian Maritimes"
-		
-		#Western Mediterranean
-		"Costa del Sol"
-		"Gulf of Lyon"
-		"Algerian Coast"
-		
-		#Central Mediterranean
-		"Tyrrhenian Sea"
-		"Adriatic Sea"
-		
-		#Eastern Mediterranean
-		"Black Sea"
-		"Aegean Sea"
-		"Egyptian Coast"
-		
-		#North Atlantic
-		"North Atlantic"
-		"Western Approaches"
-		"The Seamounts"
-		"Azores"
-		
-		#Central Atlantic
-		"Central Atlantic"
-		"Central Mid-Atlantic Ridge"
-		"Bermuda Triangle"
+		# South Atlantic
+		"Coast of Brazil"
+		"Cap Verde"
+		"Gulf of Guinea"
+		"Coast of Africa"
+		"Coast of Bissao"
 		"Guiana Basin"
 		"South-Central Mid-Atlantic Ridge"
-		"Cap Verde"
-		
-		#South Atlantic
+		"Atlantic-Indian Ridge"
+		"Coast of South Africa"
+		"Coast of Angola-Namibia"
+		"Angola Plain"
+		"Argentine Plain"
+		"Coast of Argentina"
+		"Coast of Uruguay"
+		"Coast of Guyana"
+		"Coast of Recife"
 		"Pernambuco Plain"
 		"Ascension Fracture Zone"
-		"Argentine Plain"
-		"Angola Plain"
-		
-		#Caribbean Sea and Guilf of Mexico
-		"West Gulf of Mexico"
-		"East Gulf of Mexico" 
-		"Florida Strait"
+
+		# Caribbean
 		"Yucatan Strait"
-		"Windward Islands"
 		"Central Carribean"
-		
-		#Brazil and Argentina Coast
-		"Coast of Guyana"
-		"Coast of Recife" 
-		"Coast of Uruguay"
-		"Coast of Brazil"
-		"Coast of Argentina"
-		
-		# West Africa
-		"Coast of Africa"
-		"Coast of Bissao" 
-		
-		#Equitorial Africa
-		"Gulf of Guinea"
-		"Coast of Angola-Namibia"
-		
-		#South Africa
-		"Coast of South Africa"
-		"Atlantic-Indian Ridge"
-		
-		#East Africa
-		"Red Sea"
-		"Horn of Africa"
-		
-		#Madagascar Coast
-		"South Mozambique Channel"
-		"North Mozambique Channel" 
-		"Northeast Coast of Madagascar"
-		"Southeast Coast of Madagascar" 
-		
-		#North Indian Ocean (Persian Gulf)
-		"Persian Gulf"
-		"North Arabian Sea"
-		"South Arabian Sea" 
-		"Coast of Ceylon"
-		
-		#Central/South Indian Ocean
-		"Mascarene Plateau"
-		"Mid-Indian Ridge" 
-		"Ninetyeast Ridge" 
-		"Southeast Indian Ocean"
-		"Southwest Indian Ocean" 
-		
-		#Bay of Bengal & West Indonesia
-		"East Bay of Bengal"
-		"West Bay of Bengal"
-		"Malacca Strait"
-		"Java Ridge"
-		"Java Trench"
-		
-		#Indo-China, Borneo, Phillipenes
-		"Gulf of Siam"
-		"Coast of Indochina"
-		"Spratly Sea"
+		"Windward Islands"
+		"West Gulf of Mexico"
+		"East Gulf of Mexico"
+		"Florida Strait"
+
+		# Pacific
+		"Luzon Strait"
+		"Philipine Trench"
 		"Coast of Brunei"
 		"Flores Sea"
+		"Molucca Sea"
+		"Banda Sea"
+		"West Coral Sea"
 		"Sulu Sea"
 		"Celebes Sea"
-		"Luzon Strait"
-		
-		#China Coast
+		"Arafura Sea"
+		"Java Ridge"
+		"Malacca Strait"
+		"Gulf of Siam"
+		"Spratly Sea"
+		"Coast of Indochina"
 		"Taiwan Strait"
-		"Yellow Sea"
-		
-		#Japanese Coast
 		"Sea of Japan"
-		"Ryukyus"
-		"Coast of Japan"
-		"South Sea of Okhotsk"
-		"West Sea of Okhotsk" 
-		"East Sea of Okhotsk" 
-		
-		#Mariana Basin, Phillipenes
-		"Philipine Trench"
-		"Central Philippine Sea"
-		"Mariana Trench"
-		"East Mariana Basin"
-		"Mid-Pacific Mountains"
 		"North Bismarck Sea"
-		
-		#New Guinea, East/North Australia and New Zealan
-		"Coast of New Guinea"
-		"Molucca Sea"
-		"Banda Sea"
-		"Arafura Sea"
 		"South Bismarck Sea"
+		"Marianas"
+		"Marshalls Sea"
+		"Western Solomons"
+		"Eastern Solomons"
+		"East Coral Sea"
+		"Coast of Japan"
 		"Solomon Sea"
-		"West Coral Sea"
-		"East Coral Sea" 
 		"North Tasman Sea"
-		"South Tasman Sea" 
-		"East Cost of New Zealand"
-		
-		# South and West Australia
-		"Timor Sea"
-		"West Coast of Australia"
+		"South Tasman Sea"
 		"East Great Australian Bight"
-		"West Great Australian Bight" 
-		
-		#North Pacific
+		"West Great Australian Bight"
+		"Aleutians"
+		"Carolines"
+		"Central Philippine Sea"
 		"Coast of Kamchatka"
 		"East Bering Sea"
-		"West Bering Sea" 
-		"Aleutians"
-		"Northwest Pacific Basin"
-		"North Northeast Pacific Basin"
-		
-		#Central Pacific
+		"East Mariana Basin"
+		"East Sea of Okhotsk"
+		"Gulf of Alaska"
 		"Hawaiian Rise"
-		"North East Pacific Ocean"
-		"Marshalls Sea"
-		"South East Pacific Ocean"
-		"Marianas"
-		"Western Solomons"
-		"Eastern Solomons"
-		"US Maritimes"
-		"Carolines"
-		
-		#South Pacific
+		"Mariana Trench"
+		"Mid-Pacific Mountains"
+		"North Northeast Pacific Basin"
+		"Northwest Pacific Basin"
+		"Ryukyus"
+		"South Sea of Okhotsk"
+		"Timor Sea"
+		"West Bering Sea"
+		"West Coast of Australia"
+		"West Coast of Mexico"
+		"West Coast of the United States"
+		"West Sea of Okhotsk"
+		"Yellow Sea"
+		"Fiji Basin"
 		"Gilberts"
 		"Line Islands"
-		"Fiji Basin"
-		"Southwest Pacific Basin"
-		
-		# South American West Coast
+		"North East Pacific Ocean"
+		"South East Pacific Ocean"
+		"East Cost of New Zealand"
+		"North Southeast Pacific Ocean"
+		"South Southeast Pacific Ocean"
 		"Southeast Pacific Basin"
+		"Southwest Pacific Basin"
+		"West Coast of Central America"
 		"West Coast of Chile"
 		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
-		
-		# USA West Coast
-		"Gulf of Alaska"
-		"West Coast of the United States"
-		
-		#West Coast of Mexico
-		"West Coast of Mexico"
-		"West Coast of Central America"
-	}
-	#Which provinces to use as bases..
-	base = {
-		90  # Kiel
-		296 # Rostock
+		"Coast of New Guinea"
+
+		# Indian Ocean
+		"Red Sea"
+		"Persian Gulf"
+		"Coast of Ceylon"
+		"East Bay of Bengal"
+		"Ninetyeast Ridge"
+		"Java Trench"
+		"West Bay of Bengal"
+		"Mascarene Plateau"
+		"Mid-Indian Ridge"
+		"North Arabian Sea"
+		"North Mozambique Channel"
+		"Northeast Coast of Madagascar"
+		"South Arabian Sea"
+		"South Mozambique Channel"
+		"Southeast Coast of Madagascar"
+		"Southeast Indian Ocean"
+		"Southwest Indian Ocean"
+		"Horn of Africa"
+
+		"West Northsea"
+		"English Channel"
+		"The Hebreides"
+		"Irish Sea"
 	}
 	target = { } 
 	core = { 
-		2494
-		2493
-		2489
-		2483
-		2481
-		2491
-		2492
-		2484
-		2482
-		2480
-		2479
-		2478
-		2477
-		2476
-		290
+		2473
+		2474
+		2475
 	} 
-}
\ No newline at end of file
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = GER
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/ger_1938.ai Doomsday Data Files/ai/ger_1938.ai
--- Doomsday Data Files.old/ai/ger_1938.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/ger_1938.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,583 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 1.5
+max_garrison_prop = 0.30
+min_garrison_prop = 0.20
+neutrality = 50.000 
+war = 0
+reinforcement = 0.1
+upgrading = 0.25
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.1
+no_exp_forces_to = { JAP SIA MAN VIC }
+use_offensive_supply = yes
+max_fuel_offensive = 1
+
+###################################
+# Diplomacy
+###################################
+claim_acceptance = -49
+
+combat = { }
+
+liberate = { HUN BUL ROM FIN SPA }
+
+demand_claims = { }
+
+befriend = {
+	SLO = 50
+	SPA = 20
+	ITA = 60 
+	SWE = 10
+	FIN = 20
+	JAP = 30
+	POR = 10
+	TUR = 30
+	DEN = 40
+}
+
+protect = {
+	ROM = 80
+	BUL = 80 
+	SWE = 80
+	SCH = 80
+	AUS = 300
+	POL = 80
+	SLO = 80
+	NOR = 80
+	ITA = 80
+	TUR = 80
+}
+
+target = { 
+	#Austria
+	373 = 80 # Lech
+	377 = 80 # Innsbruck
+	462 = 80 # Salzburg
+	461 = 80 # Klagenfurt
+	465 = 80 # Linz
+	464 = 80 # Hollabrunn
+	463 = 80 # Vienna
+	460 = 80 # Graz
+
+	#Czech
+	472 = 60 # Liberec
+	471 = 60 # Usti
+	466 = 60 # Strakonice
+	467 = 60 # Tabor
+
+	#Poland
+	303 = 50 # Danzig
+
+	#Baltic States
+	206 = 50 # Memel
+}
+
+trade = {
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = {
+		SWE = 150
+		FIN = 100
+		ROM = 150
+		ITA = 100
+		HUN = 100
+		YUG = 100
+		SPA = 80
+		BUL = 100
+		JAP = 50
+		CHI = 50
+	}
+	embargo = {
+		ENG FRA AST CAN NZL
+	}
+}
+
+tech_sharing = {
+	favored = {
+		ROM = 200
+		SLO = 200
+		BUL = 200
+		HUN = 200
+		SPA = 200
+		ITA = 200
+		FIN = 200
+		JAP = 200
+		CRO = 200
+	}
+	embargo = { }
+	not = { }
+	prioritized = {
+		1010 = 100 # Infs
+		1020 = 100
+		1030 = 100
+		1040 = 100
+		1050 = 100
+		1060 = 100
+		1110 = 100 # Mtns
+		1120 = 100
+		1130 = 100
+		1140 = 100
+		1190 = 100 # Cavs
+		1200 = 100
+		1210 = 100
+		1220 = 100
+		2010 = 100 # Tanks
+		2020 = 100
+		2030 = 100
+		2040 = 100
+		2050 = 100
+		2060 = 100
+		2070 = 100
+		2080 = 100
+		2090 = 100
+		2290 = 100 # Arts
+		2300 = 100
+		2310 = 100
+		2320 = 100
+		2330 = 100
+		2340 = 100
+		2350 = 100
+		2360 = 100
+		2370 = 100
+		2380 = 100
+		2390 = 100
+		4010 = 100 # IntFs
+		4020 = 100
+		4030 = 100
+		4060 = 100
+		4090 = 100
+		4120 = 100 # Tacs
+		4130 = 100
+		4140 = 100
+		4150 = 100
+		4160 = 100
+		5050 = 100 # Machine Tools
+		5060 = 100
+		5070 = 100
+		5310 = 100 # Computers
+		5320 = 100
+		5330 = 100
+		5340 = 100
+	}
+}
+
+###################################
+# Construction and Tech Research
+###################################
+construction = { 
+	max_factor = 0.150 
+
+	AA_batteries = yes
+	max_AA_level = 5 
+	AA_provs = { 67 74 75 76 80 81 87 90 300 311 314 315 }
+
+	coastal_fort = no
+	max_coastal_level = 0
+	coastal_fort_provs = { } 
+
+	radar_station = yes
+	max_radar = 2
+	radar_provs = { 67 80 90 300 314 }
+
+	air_base = no
+	max_air_base = 0
+	air_base_provs = { } 
+
+	naval_base = no 
+	max_naval_base = 0 
+	naval_base_provs = { } 
+
+	land_fort = yes
+	max_land_level = 2
+	fort_borders = { FRA } 
+
+	ic_at_war = no
+	force_ic_until = 1935
+	ic_end_year = 1935
+	IC_provs = { } 
+}
+
+military = { 
+	relative_build_scheme 	= no 
+	max_batch_peace 	= 360 
+	max_batch_war 		= 360 
+	max_batch_home_front 	= 360
+
+	#### Divisions etc...
+	infantry 	= 51
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 9
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 6
+	garrison	= 0
+      	hq 		= 4
+	militia 	= 0
+#				70 %
+	interceptor 	= 6
+	multi_role 	= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 5
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				11 %
+	battleship 	= 3
+	carrier 	= 0
+	escort_carrier	= 0
+	destroyer 	= 0
+	light_cruiser 	= 4
+	heavy_cruiser 	= 3
+	battlecruiser 	= 4
+	submarine 	= 0
+	transports 	= 5
+#				19 %
+
+	#### Brigades
+	artillery 		= 20
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 10
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 20
+
+	cag = 100.000
+}
+
+technology = { 
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3400 3410 3420 3430 3440 3450 # Submarines
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5150 5160 5180 # Assembly Lines
+		6210 6220 6230 6240 6250 6260 6270 6280 6290 14100 # Land Doctrines (GER path)
+		14000 14010 14020 14030 14040 # Hospitals
+	} 
+	preference 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3400 3410 3420 3430 3440 3450 # Submarines
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5150 5160 5180 # Assembly Lines
+		6210 6220 6230 6240 6250 6260 6270 6280 6290 14100 # Land Doctrines (GER path)
+		14000 14010 14020 14030 14040 # Hospitals
+	} 
+	ignore 		= {
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		3310 12050 # Super-Heavy Battleships
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5170 # Rocket Assembly Line
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+		14090 # Volkssturm
+	}
+
+	armor 		= 5 
+	infantry 	= 6
+	industry 	= 6
+	aircraft 	= 5
+	naval 		= 2
+	land_doctrines 	= 3
+	secret_weapons 	= 2
+	air_doctrines 	= 2
+	naval_doctrines = 1
+}  
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 0.5
+	revolt_risk_mult	= 0.2
+
+	# PRIORITIES:
+	beach			= 50	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		VIC = -1
+		FIN = -1
+		ITA = -1
+		SCH = -1
+		AUS = -1
+		CZE = 75
+		POL = 100
+		YUG = 25
+		HOL = 5
+		BEL = 25
+		DEN = 25
+		SOV = 25
+	}
+	ignore = { }
+	province_priorities = { }
+	area_multiplier = {
+		304 = 3.5 # Elbing
+		510 = 3.5 # Königsberg in order to get a decent build-up before Fall Weiss.
+	}
+}
+
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.333
+	min_attack_odds		= 1.1
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.2
+	withdraw_odds		= 0.75
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = {
+	} 
+      	passivity = {
+	}
+} 
+
+###################################
+# Invasions and Naval
+###################################
+invasion = {
+	ignore		= no
+	invasion	= no
+	help_allies 	= no
+
+	target = { }
+}
+
+admiral = { 
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+
+	ignore = {
+		# South Atlantic
+		"Coast of Brazil"
+		"Cap Verde"
+		"Gulf of Guinea"
+		"Coast of Africa"
+		"Coast of Bissao"
+		"Guiana Basin"
+		"South-Central Mid-Atlantic Ridge"
+		"Atlantic-Indian Ridge"
+		"Coast of South Africa"
+		"Coast of Angola-Namibia"
+		"Angola Plain"
+		"Argentine Plain"
+		"Coast of Argentina"
+		"Coast of Uruguay"
+		"Coast of Guyana"
+		"Coast of Recife"
+		"Pernambuco Plain"
+		"Ascension Fracture Zone"
+
+		# Caribbean
+		"Yucatan Strait"
+		"Central Carribean"
+		"Windward Islands"
+		"West Gulf of Mexico"
+		"East Gulf of Mexico"
+		"Florida Strait"
+
+		# Pacific
+		"Luzon Strait"
+		"Philipine Trench"
+		"Coast of Brunei"
+		"Flores Sea"
+		"Molucca Sea"
+		"Banda Sea"
+		"West Coral Sea"
+		"Sulu Sea"
+		"Celebes Sea"
+		"Arafura Sea"
+		"Java Ridge"
+		"Malacca Strait"
+		"Gulf of Siam"
+		"Spratly Sea"
+		"Coast of Indochina"
+		"Taiwan Strait"
+		"Sea of Japan"
+		"North Bismarck Sea"
+		"South Bismarck Sea"
+		"Marianas"
+		"Marshalls Sea"
+		"Western Solomons"
+		"Eastern Solomons"
+		"East Coral Sea"
+		"Coast of Japan"
+		"Solomon Sea"
+		"North Tasman Sea"
+		"South Tasman Sea"
+		"East Great Australian Bight"
+		"West Great Australian Bight"
+		"Aleutians"
+		"Carolines"
+		"Central Philippine Sea"
+		"Coast of Kamchatka"
+		"East Bering Sea"
+		"East Mariana Basin"
+		"East Sea of Okhotsk"
+		"Gulf of Alaska"
+		"Hawaiian Rise"
+		"Mariana Trench"
+		"Mid-Pacific Mountains"
+		"North Northeast Pacific Basin"
+		"Northwest Pacific Basin"
+		"Ryukyus"
+		"South Sea of Okhotsk"
+		"Timor Sea"
+		"West Bering Sea"
+		"West Coast of Australia"
+		"West Coast of Mexico"
+		"West Coast of the United States"
+		"West Sea of Okhotsk"
+		"Yellow Sea"
+		"Fiji Basin"
+		"Gilberts"
+		"Line Islands"
+		"North East Pacific Ocean"
+		"South East Pacific Ocean"
+		"East Cost of New Zealand"
+		"North Southeast Pacific Ocean"
+		"South Southeast Pacific Ocean"
+		"Southeast Pacific Basin"
+		"Southwest Pacific Basin"
+		"West Coast of Central America"
+		"West Coast of Chile"
+		"West Coast of Peru"
+		"Coast of New Guinea"
+
+		# Indian Ocean
+		"Red Sea"
+		"Persian Gulf"
+		"Coast of Ceylon"
+		"East Bay of Bengal"
+		"Ninetyeast Ridge"
+		"Java Trench"
+		"West Bay of Bengal"
+		"Mascarene Plateau"
+		"Mid-Indian Ridge"
+		"North Arabian Sea"
+		"North Mozambique Channel"
+		"Northeast Coast of Madagascar"
+		"South Arabian Sea"
+		"South Mozambique Channel"
+		"Southeast Coast of Madagascar"
+		"Southeast Indian Ocean"
+		"Southwest Indian Ocean"
+		"Horn of Africa"
+
+		"West Northsea"
+		"English Channel"
+		"The Hebreides"
+		"Irish Sea"
+	}
+	target = { } 
+	core = { 
+		2473
+		2474
+		2475
+	} 
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = GER
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/ger_1939.ai Doomsday Data Files/ai/ger_1939.ai
--- Doomsday Data Files.old/ai/ger_1939.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/ger_1939.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,29 +1,29 @@
-# German 1936 AI File by Lothos
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2
-max_front_ratios = { 	# Override the default against specific countries. Ignored against humans.
-	FRA = 1.0 
-}
-max_garrison_prop = 0.30
-min_garrison_prop = 0.20
-neutrality = 20.000 
-war = 50
-strat_redeploy_threshold = 50
-max_redeploying = 0.05
-exp_force_ratio = 0.0
-exp_force_ratios = { } 
-
+max_front_ratio = 1.5
+max_garrison_prop = 0.25
+min_garrison_prop = 0.10
+neutrality = 0.000 
+war = 0
+reinforcement = 0.1
+upgrading = 0.2
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.1
 no_exp_forces_to = { JAP SIA MAN VIC }
+use_offensive_supply = yes
+max_fuel_offensive = 1
 
-flags = {
-  	WeserubungFall = yes
-	GC1939 = yes
-}
 ###################################
 # Diplomacy
 ###################################
-combat = { }
+claim_acceptance = -49
+
+liberate = { HUN BUL ROM FIN SPA }
+
+demand_claims = { }
 
 befriend = {
 	SLO = 50
@@ -36,6 +36,7 @@
 	TUR = 30
 	DEN = 40
 }
+
 protect = {
 	ROM = 80
 	BUL = 80 
@@ -48,17 +49,8 @@
 	ITA = 80
 	TUR = 80
 }
-target = { 
-	#Austria
-	373 = 80 # Lech
-	377 = 80 # Innsbruck
-	462 = 80 # Salzburg
-	461 = 80 # Klagenfurt
-	465 = 80 # Linz
-	464 = 80 # Hollabrunn
-	463 = 80 # Vienna
-	460 = 80 # Graz
 
+target = { 
 	#Czech
 	472 = 60 # Liberec
 	471 = 60 # Usti
@@ -68,12 +60,12 @@
 	#Poland
 	303 = 50 # Danzig
 
-	#Baltic States
-	206 = 50 # Memel
-} 
-trade = {
-	cancel_deal_threshold = 2
+	47 = 50 # Amsterdam
+	51 = 50 # Brussels
+	56 = 75 # Paris
+}
 
+trade = {
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -93,266 +85,104 @@
 		JAP = 50
 		CHI = 50
 	}
-	embargo = { }
+	embargo = {
+		ENG FRA AST CAN NZL
+	}
 }
+
 tech_sharing = {
 	favored = {
-		ROM = 120
-		SLO = 80
-		BUL = 100
-		HUN = 100
-		SPA = 120
-		YUG = 50
-		ITA = 150
-		SWE = 50
-		FIN = 120
-		JAP = 150
-		TUR = 100
-	}
-	embargo = {
-		ENG FRA AST CAN NZL
+		ROM = 200
+		SLO = 200
+		BUL = 200
+		HUN = 200
+		SPA = 200
+		ITA = 200
+		FIN = 200
+		JAP = 200
+		CRO = 200
 	}
+	embargo = { }
 	not = { }
 	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Motorized
-		1230 = 100
-		1240 = 100
-		1250 = 100
-
-		# CAS
-		4170 = 100
-		4280 = 100
-		4180 = 100
-
-		# Medium tanks
-		2070 = 100
-		2080 = 100
-		2090 = 100
-
-		# Light tanks
+		1010 = 100 # Infs
+		1020 = 100
+		1030 = 100
+		1040 = 100
+		1050 = 100
+		1060 = 100
+		1110 = 100 # Mtns
+		1120 = 100
+		1130 = 100
+		1140 = 100
+		1190 = 100 # Cavs
+		1200 = 100
+		1210 = 100
+		1220 = 100
+		2010 = 100 # Tanks
 		2020 = 100
 		2030 = 100
 		2040 = 100
 		2050 = 100
 		2060 = 100
-
-		# Submarines
-		3400 = 100
-		3410 = 100
-		3420 = 100
-		3430 = 100
-		3440 = 100
-		3450 = 100
-
-		# Mechanized
-		1260 = 100
-		1270 = 100
-		1280 = 100
-		1290 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = GER
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 2
-		smear_campaign 		= 4
-		coup 				= 1
-		sabotage_industry 	= 10
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 4
-		counter_espionage 	= 5
-		disrupt_techteam 	= 4
-		country 			= SOV
-	}
-	spyprefsdata = {
-		country_priorities	= 8
-		NumberOfSpies		= 7
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 2
-		smear_campaign 		= 4
-		coup 				= 1
-		sabotage_industry 	= 10
-		nuclear_sabotage	= 0
-		found_partisans 	= 0
-		massmedia 			= 4
-		counter_espionage 	= 5
-		disrupt_techteam 	= 4
-		country 			= ENG
-	}
-	spyprefsdata = {
-		country_priorities	= 5
-		NumberOfSpies		= 5
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 10
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam	= 4
-		country 			= USA
-	}
-	spyprefsdata = {
-		country_priorities	= 2
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 0
-		coup 				= 0
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 0
-		counter_espionage 	= 5
-		disrupt_techteam	= 0
-		country 			= SPA
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= SPR
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= YUG
+		2070 = 100
+		2080 = 100
+		2090 = 100
+		2290 = 100 # Arts
+		2300 = 100
+		2310 = 100
+		2320 = 100
+		2330 = 100
+		2340 = 100
+		2350 = 100
+		2360 = 100
+		2370 = 100
+		2380 = 100
+		2390 = 100
+		4010 = 100 # IntFs
+		4020 = 100
+		4030 = 100
+		4060 = 100
+		4090 = 100
+		4120 = 100 # Tacs
+		4130 = 100
+		4140 = 100
+		4150 = 100
+		4160 = 100
+		5050 = 100 # Machine Tools
+		5060 = 100
+		5070 = 100
+		5310 = 100 # Computers
+		5320 = 100
+		5330 = 100
+		5340 = 100
 	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
-#Default values
 construction = { 
-	max_factor = 0.100 
+	max_factor = 0.125 
 
+	AA_batteries = yes
+	max_AA_level = 5 
+	AA_provs = { 67 74 75 76 80 81 87 90 300 311 314 315 }
 
-	AA_batteries = atwar
-	max_AA_level = 10 
-	AA_provs = { 
-		75  # Cologne
-		74  # Saarbruken
-		314 # Stuttgart
-		86  # Hannover
-		311 # Dresden
-		300 # Berlin
-		376 # Munchen
-	} 
-	coastal_fort = atwar
-	max_coastal_level = 3
-	coastal_fort_provs = {
-		90 # Kiel
-	} 
+	coastal_fort = no
+	max_coastal_level = 0
+	coastal_fort_provs = { } 
 
-	radar_station = atwar
+	radar_station = yes
 	max_radar = 2
-	radar_provs = {
-		67 # Essen
-		82 # Kassel
-		80 # Wilhemshafen
-		300 # Berlin
-		314 # Stutgart
-		51 # Brussels
-		47 # Amsterdam
-		44 # Lille
-		56 # Paris
-	} 
+	radar_provs = { 67 80 90 300 314 }
 
-	air_base = yes
-	max_air_base = 5 
-	air_base_provs = {
-		67 # Essen
-	} 
+	air_base = no
+	max_air_base = 0
+	air_base_provs = { } 
 
 	naval_base = no 
-	max_naval_base = 5 
+	max_naval_base = 0 
 	naval_base_provs = { } 
 
 	land_fort = yes
@@ -360,209 +190,165 @@
 	fort_borders = { FRA } 
 
 	ic_at_war = no
-	force_ic_until = 1937
-	ic_end_year = 1939
-	IC_provs = {
-		74  # Saarburken
-		376 # Munchen
-		300 # Berlin
-		75  # Cologne
-		314 # Stuttgart
-		86  # Hannover
-		311 # Dresden
-		300 # Berlin
-	} 
+	force_ic_until = 1935
+	ic_end_year = 1935
+	IC_provs = { } 
 }
 
 military = { 
-	relative_build_scheme 	= yes 
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
-	max_batch_home_front 	= 180
+	relative_build_scheme 	= no 
+	max_batch_peace 	= 270 
+	max_batch_war 		= 270 
+	max_batch_home_front 	= 270
 
 	#### Divisions etc...
-	infantry 		= 45
-	cavalry 		= 0
-	motorized 		= 3
-	mechanized 		= 0
-	light_armor 	= 5
-	armor 			= 0
-	paratrooper 	= 1
-	marine 			= 0
-	bergsjaeger 	= 1
-	garrison		= 3
-    hq 				= 3
-	militia 		= 0
-#				61 %
-	interceptor 	= 5
-	multi_role 		= 2
-	cas 			= 4
+	infantry 	= 33
+	cavalry 	= 0
+	motorized 	= 5
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 9
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 4
+	garrison	= 0
+      	hq 		= 3
+	militia 	= 0
+#				54 %
+	interceptor 	= 4
+	multi_role 	= 6
+	cas 		= 9
 	strategic_bomber = 0
-	tactical_bomber = 5
-	naval_bomber 	= 3
+	tactical_bomber = 0
+	naval_bomber 	= 2
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				19 %
-	battleship 		= 1
-	carrier 		= 0
+#				21 %
+	battleship 	= 1
+	carrier 	= 0
 	escort_carrier	= 0
-	destroyer 		= 5
-	light_cruiser 	= 3
-	heavy_cruiser 	= 3
-	battlecruiser 	= 0
-	submarine 		= 6
-	nuclear_submarine = 0
-	transports 		= 2
-#				20 %
+	destroyer 	= 4
+	light_cruiser 	= 2
+	heavy_cruiser 	= 1
+	battlecruiser 	= 1
+	submarine 	= 11
+	transports 	= 5
+#				25 %
+
 	#### Brigades
-	artillery 			= 20
-	sp_artillery 		= 8
-	rocket_artillery	= 0 
+	artillery 		= 15
+	sp_artillery 		= 0
+	rocket_artillery	= 0
 	sp_rct_artillery 	= 0
-	anti_tank 			= 11
-	tank_destroyer 		= 5
-	light_armor_brigade = 2
+	anti_tank 		= 5
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
 	heavy_armor 		= 5
 	super_heavy_armor 	= 0
 	armored_car 		= 0
-	anti_air 			= 6
-	police 				= 3
-	engineer 			= 5 
+	anti_air 		= 0
+	police 			= 10
+	engineer 		= 15
 
-	cag = 100.000 
+	cag = 100.000
 }
 
 technology = { 
-	endgoal 	= { } 
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3400 3410 3420 3430 3440 3450 # Submarines
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5150 5160 5180 # Assembly Lines
+		6210 6220 6230 6240 6250 6260 6270 6280 6290 14100 # Land Doctrines (GER path)
+		14000 14010 14020 14030 14040 # Hospitals
+	} 
 	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Motorized
-		1230 1240 1250
-
-		# CAS
-		4170 4280 4180
-
-		# Medium tanks
-		2070 2080 2090
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Submarines
-		3400 3410 3420 3430 3440 3450
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Naval Doctrines
-		8210 8280 8290 8300
-		
-		# Air Doctrines
-		9060 9080 9100 9110 9120 9130 9190 9200 9210 9220 9230 9240 9250 9260 9270 9280 9290 9300 9310 9320 9330 9340 9350 9360 9370 9380 9390 9400 9410 9420 
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3400 3410 3420 3430 3440 3450 # Submarines
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5150 5160 5180 # Assembly Lines
+		6210 6220 6230 6240 6250 6260 6270 6280 6290 14100 # Land Doctrines (GER path)
+		14000 14010 14020 14030 14040 # Hospitals
 	} 
 	ignore 		= {
-		# Strategic bombers
-		4220 4230 4240
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Battleship
-		3250 3260 3270 3280 3290 3300 3310
-
-		# Carrier 
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Airborne 1070 1080
-		1090 1100
-
-		# Air Transports 4250
-		4260 4270
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-
-		# Rocket Artillery
-		2370 2380 2390
-		
-		# Armoured Cars
-		2150 2160
-		
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
-	}
-  
-	armor 		= 5 
-	infantry 	= 6
-	industry 	= 5
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		3310 12050 # Super-Heavy Battleships
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5170 # Rocket Assembly Line
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+		14090 # Volkssturm
+	}
+
+	armor 		= 6 
+	infantry 	= 7
+	industry 	= 6
 	aircraft 	= 5
-	naval 		= 1
+	naval 		= 2
 	land_doctrines 	= 3
 	secret_weapons 	= 2
 	air_doctrines 	= 2
 	naval_doctrines = 1
-}
+}  
+
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 1.0
 	overseas_multiplier 	= 1.0
-	home_peace_cap 		= 20
+	home_peace_cap 		= 101
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 0.5
-	revolt_risk_mult	= 0.3
-
+	revolt_risk_mult	= 0.4
 
 	# PRIORITIES:
-	beach			= 20	# Beach level 2
-	capital			= 20	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	beach			= 60	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -575,181 +361,63 @@
 		ITA = -1
 		SCH = -1
 		AUS = -1
-		CZE = -1
-		HUN = -1
-		FRA = 60
-		POL = 75
-		YUG = 5
+		CZE = 75
+		POL = 100
+		YUG = 25
 		HOL = 5
-		BEL = 5
-		DEN = 5
-		SOV = 5
+		BEL = 25
+		DEN = 25
+		SOV = 25
+	}
+	ignore = { }
+	province_priorities = { }
+	area_multiplier = {
+		304 = 3.5 # Elbing
+		510 = 3.5 # Königsberg in order to get a decent build-up before Fall Weiss.
 	}
-	province_priorities = {
-		314 = 150
-		315 = 150
-		74  = 150
-	}
-	area_multiplier = { }
-}	
+}
+
 front = { 
 	recklessness 		= 2 # 0-3
-	distrib_vs_ai 		= even
-	distrib_vs_human 	= even
+	distrib_vs_ai 		= offensive
+	distrib_vs_human 	= offensive
 
 	enemy_reinf_days	= 6
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
+	base_attack_odds	= 1.333
 	min_attack_odds		= 1.1
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
-	withdraw_odds		= 0.6
+	withdraw_odds		= 0.75
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = {
-		FRA = 300
-		BEL = 300
-		HOL = 300
-		LUX = 300
 	} 
       	passivity = {
-		FRA = 100
-		BEL = 100
-		HOL = 100
-		LUX = 100
-	} 
-} 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
-
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
+	}
+	province_priorities = {
+	}
 }
+
 ###################################
 # Invasions and Naval
 ###################################
-invasion = { 
- 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal		= 0.1	#increase to avoid coastal forts more.
-	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 0.1	#higher = avoid long distance.
-	max_distance    = 20.0  #About the distance from Rostock to Narvik
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island		= 0.1	#prioritise taking pure islands.
-	enemy		= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
-	air_base	= 1.5 
-      	naval_base 	= 0.1 
-      	air_support 	= 3.0 
-      	redirect 	= priority
+invasion = {
 	ignore		= no
-      
-	target = { 
-		#Norway
-		107 = 4000 # Oslo
-		108 = 4000 # Kristiansan
-		109 = 4000 # Stavanger
-		110 = 4000 # Bergen
-		125 = 4000 # Narvik
-		117 = 3750 # Alesund
-		118 = 3750 # Trondheim
-		124 = 3750 # Mo I Ran
-
-		#Sweden
-		106 = 4000 # Amal
-		98  = 4000 # Goterborg
-		93  = 4000 # Malmo
-		97  = 4000 # Jonkoping
-		100 = 3750 # Norrkoping
-		101 = 3750 # Stockholm
-		102 = 3750 # Uppsala
-		114 = 3750 # Gavle
-		120 = 4000 # Sundsuall
-		122 = 4000 # Umea
-		127 = 4000 # Lulea
-
-		#Finland
-		142 = 2000 # Helsinki
-		141 = 2000 # Turku
-		140 = 2000 # Pori
-		138 = 2000 # Vaasa
-		137 = 1750 # Oulu
-		131 = 1750 # Tornio
-	} 
-} 
+	invasion	= no
+	help_allies 	= no
+
+	target = { }
+}
+
 admiral = { 
 	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
 	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
@@ -757,159 +425,151 @@
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
 
 	ignore = {
-		"Irish West Coast"
-		"Cape Finisterre"
-		"Bay of Biscay"
-		"Central Northsea"
-		"West Northsea"
-		"English Channel"
-		"The Hebreides"
-		"Irish Sea"
-
-		#South Africa
-		"Coast of South Africa"
+		# South Atlantic
+		"Coast of Brazil"
+		"Cap Verde"
+		"Gulf of Guinea"
+		"Coast of Africa"
+		"Coast of Bissao"
+		"Guiana Basin"
+		"South-Central Mid-Atlantic Ridge"
 		"Atlantic-Indian Ridge"
-		
-		#East Africa
-		"Red Sea"
-		"Horn of Africa"
-		
-		#Madagascar Coast
-		"South Mozambique Channel"
-		"North Mozambique Channel" 
-		"Northeast Coast of Madagascar"
-		"Southeast Coast of Madagascar" 
-		
-		#North Indian Ocean (Persian Gulf)
-		"Persian Gulf"
-		"North Arabian Sea"
-		"South Arabian Sea" 
-		"Coast of Ceylon"
-		
-		#Central/South Indian Ocean
-		"Mascarene Plateau"
-		"Mid-Indian Ridge" 
-		"Ninetyeast Ridge" 
-		"Southeast Indian Ocean"
-		"Southwest Indian Ocean" 
-		
-		#Bay of Bengal & West Indonesia
-		"East Bay of Bengal"
-		"West Bay of Bengal"
-		"Malacca Strait"
-		"Java Ridge"
-		"Java Trench"
-		
-		#Indo-China, Borneo, Phillipenes
-		"Gulf of Siam"
-		"Coast of Indochina"
-		"Spratly Sea"
+		"Coast of South Africa"
+		"Coast of Angola-Namibia"
+		"Angola Plain"
+		"Argentine Plain"
+		"Coast of Argentina"
+		"Coast of Uruguay"
+		"Coast of Guyana"
+		"Coast of Recife"
+		"Pernambuco Plain"
+		"Ascension Fracture Zone"
+
+		# Caribbean
+		"Yucatan Strait"
+		"Central Carribean"
+		"Windward Islands"
+		"West Gulf of Mexico"
+		"East Gulf of Mexico"
+		"Florida Strait"
+
+		# Pacific
+		"Luzon Strait"
+		"Philipine Trench"
 		"Coast of Brunei"
 		"Flores Sea"
+		"Molucca Sea"
+		"Banda Sea"
+		"West Coral Sea"
 		"Sulu Sea"
 		"Celebes Sea"
-		"Luzon Strait"
-		
-		#China Coast
+		"Arafura Sea"
+		"Java Ridge"
+		"Malacca Strait"
+		"Gulf of Siam"
+		"Spratly Sea"
+		"Coast of Indochina"
 		"Taiwan Strait"
-		"Yellow Sea"
-		
-		#Japanese Coast
 		"Sea of Japan"
-		"Ryukyus"
-		"Coast of Japan"
-		"South Sea of Okhotsk"
-		"West Sea of Okhotsk" 
-		"East Sea of Okhotsk" 
-		
-		#Mariana Basin, Phillipenes
-		"Philipine Trench"
-		"Central Philippine Sea"
-		"Mariana Trench"
-		"East Mariana Basin"
-		"Mid-Pacific Mountains"
 		"North Bismarck Sea"
-		
-		#New Guinea, East/North Australia and New Zealan
-		"Coast of New Guinea"
-		"Molucca Sea"
-		"Banda Sea"
-		"Arafura Sea"
 		"South Bismarck Sea"
+		"Marianas"
+		"Marshalls Sea"
+		"Western Solomons"
+		"Eastern Solomons"
+		"East Coral Sea"
+		"Coast of Japan"
 		"Solomon Sea"
-		"West Coral Sea"
-		"East Coral Sea" 
 		"North Tasman Sea"
-		"South Tasman Sea" 
-		"East Cost of New Zealand"
-		
-		# South and West Australia
-		"Timor Sea"
-		"West Coast of Australia"
+		"South Tasman Sea"
 		"East Great Australian Bight"
-		"West Great Australian Bight" 
-		
-		#North Pacific
+		"West Great Australian Bight"
+		"Aleutians"
+		"Carolines"
+		"Central Philippine Sea"
 		"Coast of Kamchatka"
 		"East Bering Sea"
-		"West Bering Sea" 
-		"Aleutians"
-		"Northwest Pacific Basin"
-		"North Northeast Pacific Basin"
-		
-		#Central Pacific
+		"East Mariana Basin"
+		"East Sea of Okhotsk"
+		"Gulf of Alaska"
 		"Hawaiian Rise"
-		"North East Pacific Ocean"
-		"Marshalls Sea"
-		"South East Pacific Ocean"
-		"Marianas"
-		"Western Solomons"
-		"Eastern Solomons"
-		"US Maritimes"
-		"Carolines"
-		
-		#South Pacific
+		"Mariana Trench"
+		"Mid-Pacific Mountains"
+		"North Northeast Pacific Basin"
+		"Northwest Pacific Basin"
+		"Ryukyus"
+		"South Sea of Okhotsk"
+		"Timor Sea"
+		"West Bering Sea"
+		"West Coast of Australia"
+		"West Coast of Mexico"
+		"West Coast of the United States"
+		"West Sea of Okhotsk"
+		"Yellow Sea"
+		"Fiji Basin"
 		"Gilberts"
 		"Line Islands"
-		"Fiji Basin"
-		"Southwest Pacific Basin"
-		
-		# South American West Coast
+		"North East Pacific Ocean"
+		"South East Pacific Ocean"
+		"East Cost of New Zealand"
+		"North Southeast Pacific Ocean"
+		"South Southeast Pacific Ocean"
 		"Southeast Pacific Basin"
+		"Southwest Pacific Basin"
+		"West Coast of Central America"
 		"West Coast of Chile"
 		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
-		
-		# USA West Coast
-		"Gulf of Alaska"
-		"West Coast of the United States"
-		
-		#West Coast of Mexico
-		"West Coast of Mexico"
-		"West Coast of Central America"		
-	}
-	#Which provinces to use as bases..
-	base = {
-		90
-		296
+		"Coast of New Guinea"
+
+		# Indian Ocean
+		"Red Sea"
+		"Persian Gulf"
+		"Coast of Ceylon"
+		"East Bay of Bengal"
+		"Ninetyeast Ridge"
+		"Java Trench"
+		"West Bay of Bengal"
+		"Mascarene Plateau"
+		"Mid-Indian Ridge"
+		"North Arabian Sea"
+		"North Mozambique Channel"
+		"Northeast Coast of Madagascar"
+		"South Arabian Sea"
+		"South Mozambique Channel"
+		"Southeast Coast of Madagascar"
+		"Southeast Indian Ocean"
+		"Southwest Indian Ocean"
+		"Horn of Africa"
+
+		"West Northsea"
+		"English Channel"
+		"The Hebreides"
+		"Irish Sea"
 	}
 	target = { } 
 	core = { 
-		2494
-		2493
-		2489
-		2483
-		2481
-		2491
-		2492
-		2484
-		2482
-		2480
-		2479
-		2478
-		2477
-		2476
-		290
+		2473
+		2474
+		2475
 	} 
-}
\ No newline at end of file
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = GER
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/ger_1941.ai Doomsday Data Files/ai/ger_1941.ai
--- Doomsday Data Files.old/ai/ger_1941.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/ger_1941.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,85 +1,51 @@
-# German 1936 AI File by Lothos
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2
-max_front_ratios = { 	# Override the default against specific countries. Ignored against humans.
-	FRA = 1.0 
-}
-max_garrison_prop = 0.50
-min_garrison_prop = 0.30
-neutrality = 20.000 
-war = 50
-strat_redeploy_threshold = 50
-max_redeploying = 0.05
-exp_force_ratio = 0.06
-exp_force_ratios = {
-	ITA = 0.6
-	FIN = 0.4
-} 
+max_front_ratio = 1.5
+max_garrison_prop = 0.30
+min_garrison_prop = 0.20
+neutrality = 0.000 
+war = 100
+reinforcement = 0.1
+upgrading = 0.15
+strat_redeploy_threshold = 63
+max_redeploying = 0.15
+exp_force_ratio = 0.1
 no_exp_forces_to = { JAP SIA MAN VIC }
+use_offensive_supply = yes
+max_fuel_offensive = 1
 
-flags = {
-  	WeserubungFall = yes
-	GC1939 = yes
-}
 ###################################
 # Diplomacy
 ###################################
-combat = { }
+claim_acceptance = -49
 
-befriend = {
-	ROM = 50
-	BUL = 40 
-	HUN = 80 
-	YUG = 50
-	SLO = 50
-	SPA = 20
-	ITA = 80 
-	SWE = 10
-	FIN = 20
-	JAP = 20
-	POR = 10
-	TUR = 30
-	DEN = 50
-}
-protect = {
-	ROM = 80
-	BUL = 80 
-	SWE = 80
-	SCH = 80
-	AUS = 300
-	POL = 80
-	SLO = 80
-	NOR = 80
-	ITA = 80
-	TUR = 80
-}
-target = { 
-	#Austria
-	373 = 80 # Lech
-	377 = 80 # Innsbruck
-	462 = 80 # Salzburg
-	461 = 80 # Klagenfurt
-	465 = 80 # Linz
-	464 = 80 # Hollabrunn
-	463 = 80 # Vienna
-	460 = 80 # Graz
-
-	#Czech
-	472 = 60 # Liberec
-	471 = 60 # Usti
-	466 = 60 # Strakonice
-	467 = 60 # Tabor
-
-	#Poland
-	303 = 50 # Danzig
+combat = {
+	SOV = 100
+	YUG = 75
+	GRE = 75
+	NOR = 75
+}
+
+liberate = { HUN BUL ROM FIN SPA }
+
+demand_claims = { }
+befriend = { }
+protect = { }
+target = {
+	56 = 50
+	401 = 50
+	453 = 50
+	163 = 100
+	175 = 100
+	187 = 100
+	1572 = 100
+	1907 = 100
+}
 
-	#Baltic States
-	206 = 50 # Memel
-} 
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -97,496 +63,273 @@
 		SPA = 80
 		BUL = 100
 		JAP = 50
-		CHI = 50
 	}
 	embargo = {
 		ENG FRA AST CAN NZL
 	}
 }
+
 tech_sharing = {
 	favored = {
-		ROM = 120
-		SLO = 80
-		BUL = 100
-		HUN = 100
-		SPA = 120
-		YUG = 50
-		ITA = 150
-		SWE = 50
-		FIN = 120
-		JAP = 150
-		TUR = 100
-	}
-	embargo = {
-		ENG FRA AST CAN NZL
+		ROM = 200
+		SLO = 200
+		BUL = 200
+		HUN = 200
+		SPA = 200
+		ITA = 200
+		FIN = 200
+		JAP = 200
+		CRO = 200
 	}
+	embargo = { }
 	not = { }
 	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Motorized
-		1230 = 100
-		1240 = 100
-		1250 = 100
-
-		# CAS
-		4170 = 100
-		4280 = 100
-		4180 = 100
-
-		# Medium tanks
-		2070 = 100
-		2080 = 100
-		2090 = 100
-
-		# Light tanks
+		1010 = 100 # Infs
+		1020 = 100
+		1030 = 100
+		1040 = 100
+		1050 = 100
+		1060 = 100
+		1110 = 100 # Mtns
+		1120 = 100
+		1130 = 100
+		1140 = 100
+		1190 = 100 # Cavs
+		1200 = 100
+		1210 = 100
+		1220 = 100
+		2010 = 100 # Tanks
 		2020 = 100
 		2030 = 100
 		2040 = 100
 		2050 = 100
 		2060 = 100
-
-		# Submarines
-		3400 = 100
-		3410 = 100
-		3420 = 100
-		3430 = 100
-		3440 = 100
-		3450 = 100
-
-		# Mechanized
-		1260 = 100
-		1270 = 100
-		1280 = 100
-		1290 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = GER
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 2
-		smear_campaign 		= 4
-		coup 				= 1
-		sabotage_industry 	= 10
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 4
-		counter_espionage 	= 5
-		disrupt_techteam 	= 4
-		country 			= SOV
-	}
-	spyprefsdata = {
-		country_priorities	= 8
-		NumberOfSpies		= 7
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 2
-		smear_campaign 		= 4
-		coup 				= 1
-		sabotage_industry 	= 10
-		nuclear_sabotage	= 0
-		found_partisans 	= 0
-		massmedia 			= 4
-		counter_espionage 	= 5
-		disrupt_techteam 	= 4
-		country 			= ENG
-	}
-	spyprefsdata = {
-		country_priorities	= 5
-		NumberOfSpies		= 5
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 10
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam	= 4
-		country 			= USA
-	}
-	spyprefsdata = {
-		country_priorities	= 2
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 0
-		coup 				= 0
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 0
-		counter_espionage 	= 5
-		disrupt_techteam	= 0
-		country 			= SPA
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= SPR
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= YUG
+		2070 = 100
+		2080 = 100
+		2090 = 100
+		2290 = 100 # Arts
+		2300 = 100
+		2310 = 100
+		2320 = 100
+		2330 = 100
+		2340 = 100
+		2350 = 100
+		2360 = 100
+		2370 = 100
+		2380 = 100
+		2390 = 100
+		4010 = 100 # IntFs
+		4020 = 100
+		4030 = 100
+		4060 = 100
+		4090 = 100
+		4120 = 100 # Tacs
+		4130 = 100
+		4140 = 100
+		4150 = 100
+		4160 = 100
+		5050 = 100 # Machine Tools
+		5060 = 100
+		5070 = 100
+		5310 = 100 # Computers
+		5320 = 100
+		5330 = 100
+		5340 = 100
 	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
 construction = { 
-	max_factor = 0.10 
-
-	AA_batteries = atwar
-	max_AA_level = 10 
-	AA_provs = { 
-		75  # Cologne
-		74  # Saarbruken
-		314 # Stuttgart
-		86  # Hannover
-		311 # Dresden
-		300 # Berlin
-		376 # Munchen
-	}
-
-	coastal_fort = atwar
-	max_coastal_level = 3
-	coastal_fort_provs = {
-		# Atlantic Wall
-		292 # Arburg
-		92  # Arhus
-		91  # Kolding
-		90  # Kiel
-		78  # Leeweden
-		47  # Amsterdam
-		46  # Rotterdam
-		45  # Ghent
-		18  # Calais
-		42  # Dieppe
-		41  # Le Havre
-		39  # Caen
-		33  # Rennes
-		32  # Brest
-		34  # Lorient
-		35  # Nantes
-		59  # Cholet
-		325 # Bordeaux
-		326 # Dax
-	} 
+	max_factor = 0.100 
 
-	radar_station = atwar
-	max_radar = 4
-	radar_provs = {
-		67 # Essen
-		82 # Kassel
-		80 # Wilhemshafen
-		300 # Berlin
-		314 # Stutgart
-		51 # Brussels
-		47 # Amsterdam
-		44 # Lille
-		56 # Paris
-	} 
+	AA_batteries = yes
+	max_AA_level = 5 
+	AA_provs = { 67 74 75 76 80 81 87 90 300 311 314 315 }
+
+	coastal_fort = yes
+	max_coastal_level = 2
+	coastal_fort_provs = { 18 32 33 34 35 39 41 42 43 45 46 47 59 78 90 91 92 292 325 326 } 
+
+	radar_station = yes
+	max_radar = 2
+	radar_provs = { 67 80 90 300 314 }
 
-	air_base = yes
-	max_air_base = 4
+	air_base = no
+	max_air_base = 0
 	air_base_provs = { } 
 
 	naval_base = no 
-	max_naval_base = 5 
+	max_naval_base = 0 
 	naval_base_provs = { } 
 
-	land_fort = yes
-	max_land_level = 2
+	land_fort = no
+	max_land_level = 0
 	fort_borders = { } 
 
-	ic_at_war = yes
+	ic_at_war = no
 	force_ic_until = 1935
-	ic_end_year = 1941
-	IC_provs = {
-		74  # Saarburken
-		376 # Munchen
-		300 # Berlin
-		75  # Cologne
-		314 # Stuttgart
-		86  # Hannover
-		311 # Dresden
-		300 # Berlin
-	} 
+	ic_end_year = 1935
+	IC_provs = { } 
 }
+
 military = { 
-	relative_build_scheme 	= yes 
+	relative_build_scheme 	= no 
 	max_batch_peace 	= 360 
-	max_batch_war 		= 180 
-	max_batch_home_front 	= 180
+	max_batch_war 		= 360 
+	max_batch_home_front 	= 360
 
 	#### Divisions etc...
-	infantry 		= 28
-	cavalry 		= 0
-	motorized 		= 6
-	mechanized 		= 3
-	light_armor 	= 4
-	armor 			= 3
-	paratrooper 	= 1
-	marine 			= 0
-	bergsjaeger 	= 1
-	garrison		= 15
-    hq 				= 4
-	militia 		= 0
-#				65 %
-	interceptor 	= 5
-	multi_role 		= 2
-	cas 			= 4
+	infantry 	= 37
+	cavalry 	= 0
+	motorized 	= 5
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 9
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 4
+	garrison	= 0
+      	hq 		= 3
+	militia 	= 0
+#				58 %
+	interceptor 	= 3
+	multi_role 	= 5
+	cas 		= 6
 	strategic_bomber = 0
-	tactical_bomber = 5
-	naval_bomber 	= 3
+	tactical_bomber = 0
+	naval_bomber 	= 2
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				19 %
-	battleship 		= 1
-	carrier 		= 0
+#				16 %
+	battleship 	= 1
+	carrier 	= 0
 	escort_carrier	= 0
-	destroyer 		= 3
+	destroyer 	= 4
 	light_cruiser 	= 2
 	heavy_cruiser 	= 1
-	battlecruiser 	= 0
-	submarine 		= 7
-	nuclear_submarine = 0
-	transports 		= 2
-#				16 %
+	battlecruiser 	= 1
+	submarine 	= 12
+	transports 	= 5
+#				26 %
 
 	#### Brigades
-	artillery 			= 20
-	sp_artillery 		= 8
-	rocket_artillery	= 0 
+	artillery 		= 10
+	sp_artillery 		= 5
+	rocket_artillery	= 0
 	sp_rct_artillery 	= 0
-	anti_tank 			= 8
-	tank_destroyer 		= 5
-	light_armor_brigade = 2
-	heavy_armor 		= 5
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 10
 	super_heavy_armor 	= 0
-	armored_car 		= 3
-	anti_air 			= 6
-	police 				= 3
-	engineer 			= 5 
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 10
+	engineer 		= 15
 
-	cag = 100.000 
+	cag = 100.000
 }
 
 technology = { 
-	endgoal 	= { } 
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+		3400 3410 3420 3430 3440 3450 # Submarines
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5150 5160 5180 # Assembly Lines
+		6210 6220 6230 6240 6250 6260 6270 6280 6290 14100 # Land Doctrines (GER path)
+		14000 14010 14020 14030 14040 # Hospitals
+	} 
 	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Motorized
-		1230 1240 1250
-
-		# CAS
-		4170 4280 4180
-
-		# Medium tanks
-		2070 2080 2090
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Submarines
-		3400 3410 3420 3430 3440 3450
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Naval Doctrines
-		8210 8280 8290 8300
-		
-		# Air Doctrines
-		9060 9080 9100 9110 9120 9130 9190 9200 9210 9220 9230 9240 9250 9260 9270 9280 9290 9300 9310 9320 9330 9340 9350 9360 9370 9380 9390 9400 9410 9420 
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+		3400 3410 3420 3430 3440 3450 # Submarines
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5150 5160 5180 # Assembly Lines
+		6210 6220 6230 6240 6250 6260 6270 6280 6290 14100 # Land Doctrines (GER path)
+		14000 14010 14020 14030 14040 # Hospitals
 	} 
 	ignore 		= {
-		# Strategic bombers
-		4220 4230 4240
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Battleship
-		3250 3260 3270 3280 3290 3300 3310
-
-		# Carrier 
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Airborne 1070 1080
-		1090 1100
-
-		# Air Transports 4250
-		4260 4270
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-
-		# Rocket Artillery
-		2370 2380 2390
-		
-		# Armoured Cars
-		2150 2160
-		
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
-	}
- 
-	armor 		= 5 
-	infantry 	= 6
-	industry 	= 5
+		1080 1090 1100 10020 10030 # Paratroopers
+		1160 1170 1180 10060 10070 # Marines
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		3310 12050 # Super-Heavy Battleships
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4260 4270 15180 15190 # Air Transports
+		5170 # Rocket Assembly Line
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+		14090 # Volkssturm
+	}
+
+	armor 		= 6 
+	infantry 	= 8
+	industry 	= 4
 	aircraft 	= 5
-	naval 		= 1
+	naval 		= 2
 	land_doctrines 	= 3
 	secret_weapons 	= 2
 	air_doctrines 	= 2
 	naval_doctrines = 1
-}
+}  
 
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 1.0
 	overseas_multiplier 	= 1.0
-	home_peace_cap 		= 20
+	home_peace_cap 		= 101
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 0.5
-	revolt_risk_mult	= 0.2
+	revolt_risk_mult	= 0.4
 
 	# PRIORITIES:
-	beach			= 30	# Beach level 2
-	capital			= 20	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	beach			= 60	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -595,212 +338,97 @@
 	# Borders with specific countries
 	country_priorities = {
 		VIC = -1
-		SWE = -1
 		FIN = -1
 		ITA = -1
 		SCH = -1
 		AUS = -1
-		TUR = -1
-		SPR = -1
-		SPA = -1
-		SOV = 50
-		ENG = 50
-		USA = 50
-		FRA = 50
+		FRA = 75
+		ENG = 75
+		CAN = 75
+		AST = 75
+		NZL = 75
+		SAF = 75
+		USA = 75
+		YUG = 25
+		HOL = 25
+		BEL = 50
+		DEN = 25
+		SOV = 175
 	}
 	ignore = {
-		#Baltic States
-		205 # Mazirbe
-		204 # Jelgava
-		197 # Riga
-		196 # Parnu
-		194 # Tallinn
-		193 # Narva
-		188 # Kingisepp
-
-		#Germany
-		89  # Lubeck
-		296 # Rostock
-		301 # Stralsund
-		302 # Stetting
-		304 # Elbing
-		510 # Konigsberg
-		206 # Memel
-
-		#Poland
-		303 # Danzig
-
-		#Sweden
-		93  # Malmo
-		97  # Jonkoping
-		100 # Norrkoping
-		101 # Stockholm
-		102 # Uppsala
-		114 # Gavle
-		120 # Sundsuall
-		122 # Umea
-		127 # Lulea
-
-		#Finland
-		145 # Viipuri
-		142 # Helsinki
-		141 # Turku
-		140 # Pori
-		138 # Vaasa
-		137 # Oulu
-		131 # Tornio
 	}
-	province_priorities = {	}
-	area_multiplier = { }
+	province_priorities = {
+	}
+	area_multiplier = {
+	}
 }
+
 front = { 
-	recklessness 		= 1 # 0-3
-	distrib_vs_ai 		= even
-	distrib_vs_human 	= even
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= offensive
+	distrib_vs_human 	= offensive
 
 	enemy_reinf_days	= 6
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
+	base_attack_odds	= 1.333
 	min_attack_odds		= 1.1
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
-	withdraw_odds		= 0.6
+	withdraw_odds		= 0.75
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
+	dig_in 		= 1.25 # Against defender
 
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
-
-      	enemy_handicap = { } 
-      	passivity = { } 
+      	enemy_handicap = {
+	} 
+      	passivity = {
+	}
+	province_priorities = {
+	}
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
 invasion = { 
  	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
+	random		= 10.0	#How big a random range.  (1.0 = 1%)
 	coastal		= 0.1	#increase to avoid coastal forts more.
 	beach		= 0.1	#higher, avoid worst beaches.
 	distance	= 0.1	#higher = avoid long distance.
-	max_distance    = 20.0  #About the distance from Rostock to Narvik
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	max_distance    = 25.0  #About the distance from Rostock to Narvik
+	pocket		= 1.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
 	island		= 0.1	#prioritise taking pure islands.
 	enemy		= 2.0	#higher = much more vary of troops in province.
 	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
 	air_base	= 1.5 
       	naval_base 	= 0.1 
       	air_support 	= 3.0 
+	invasion	= yes
+	ignore		= yes
       	redirect 	= priority
-	ignore		= no
-      
+
 	target = { 
 		#Norway
-		107 = 4000 # Oslo
-		108 = 4000 # Kristiansan
-		109 = 4000 # Stavanger
-		110 = 4000 # Bergen
-		125 = 4000 # Narvik
-		117 = 3750 # Alesund
-		118 = 3750 # Trondheim
-		124 = 3750 # Mo I Ran
-
-		#Sweden
-		106 = 4000 # Amal
-		98  = 4000 # Goterborg
-		93  = 4000 # Malmo
-		97  = 4000 # Jonkoping
-		100 = 3750 # Norrkoping
-		101 = 3750 # Stockholm
-		102 = 3750 # Uppsala
-		114 = 3750 # Gavle
-		120 = 4000 # Sundsuall
-		122 = 4000 # Umea
-		127 = 4000 # Lulea
-
-		#Finland
-		142 = 2000 # Helsinki
-		141 = 2000 # Turku
-		140 = 2000 # Pori
-		138 = 2000 # Vaasa
-		137 = 1750 # Oulu
-		131 = 1750 # Tornio
+		107 = 1000 # Oslo
+		108 = 1000 # Kristiansan
+		109 = 1000 # Stavanger
+		110 = 1000 # Bergen
+		125 = 1000 # Narvik
+		117 = 1000 # Alesund
+		118 = 1000 # Trondheim
+		124 = 1000 # Mo I Ran
+
+		28 = -1
 	} 
-} 
+}
+
 admiral = { 
 	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
 	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
@@ -808,159 +436,146 @@
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
 
 	ignore = {
-		"Irish West Coast"
-		"Cape Finisterre"
-		"Bay of Biscay"
-		"Central Northsea"
-		"West Northsea"
-		"English Channel"
-		"The Hebreides"
-		"Irish Sea"
-
-		#South Africa
-		"Coast of South Africa"
+		# South Atlantic
+		"Coast of Brazil"
+		"Cap Verde"
+		"Gulf of Guinea"
+		"Coast of Africa"
+		"Coast of Bissao"
+		"Guiana Basin"
+		"South-Central Mid-Atlantic Ridge"
 		"Atlantic-Indian Ridge"
-		
-		#East Africa
-		"Red Sea"
-		"Horn of Africa"
-		
-		#Madagascar Coast
-		"South Mozambique Channel"
-		"North Mozambique Channel" 
-		"Northeast Coast of Madagascar"
-		"Southeast Coast of Madagascar" 
-		
-		#North Indian Ocean (Persian Gulf)
-		"Persian Gulf"
-		"North Arabian Sea"
-		"South Arabian Sea" 
-		"Coast of Ceylon"
-		
-		#Central/South Indian Ocean
-		"Mascarene Plateau"
-		"Mid-Indian Ridge" 
-		"Ninetyeast Ridge" 
-		"Southeast Indian Ocean"
-		"Southwest Indian Ocean" 
-		
-		#Bay of Bengal & West Indonesia
-		"East Bay of Bengal"
-		"West Bay of Bengal"
-		"Malacca Strait"
-		"Java Ridge"
-		"Java Trench"
-		
-		#Indo-China, Borneo, Phillipenes
-		"Gulf of Siam"
-		"Coast of Indochina"
-		"Spratly Sea"
+		"Coast of South Africa"
+		"Coast of Angola-Namibia"
+		"Angola Plain"
+		"Argentine Plain"
+		"Coast of Argentina"
+		"Coast of Uruguay"
+		"Coast of Guyana"
+		"Coast of Recife"
+		"Pernambuco Plain"
+		"Ascension Fracture Zone"
+
+		# Caribbean
+		"Yucatan Strait"
+		"Central Carribean"
+		"Windward Islands"
+		"West Gulf of Mexico"
+		"East Gulf of Mexico"
+		"Florida Strait"
+
+		# Pacific
+		"Luzon Strait"
+		"Philipine Trench"
 		"Coast of Brunei"
 		"Flores Sea"
+		"Molucca Sea"
+		"Banda Sea"
+		"West Coral Sea"
 		"Sulu Sea"
 		"Celebes Sea"
-		"Luzon Strait"
-		
-		#China Coast
+		"Arafura Sea"
+		"Java Ridge"
+		"Malacca Strait"
+		"Gulf of Siam"
+		"Spratly Sea"
+		"Coast of Indochina"
 		"Taiwan Strait"
-		"Yellow Sea"
-		
-		#Japanese Coast
 		"Sea of Japan"
-		"Ryukyus"
-		"Coast of Japan"
-		"South Sea of Okhotsk"
-		"West Sea of Okhotsk" 
-		"East Sea of Okhotsk" 
-		
-		#Mariana Basin, Phillipenes
-		"Philipine Trench"
-		"Central Philippine Sea"
-		"Mariana Trench"
-		"East Mariana Basin"
-		"Mid-Pacific Mountains"
 		"North Bismarck Sea"
-		
-		#New Guinea, East/North Australia and New Zealan
-		"Coast of New Guinea"
-		"Molucca Sea"
-		"Banda Sea"
-		"Arafura Sea"
 		"South Bismarck Sea"
+		"Marianas"
+		"Marshalls Sea"
+		"Western Solomons"
+		"Eastern Solomons"
+		"East Coral Sea"
+		"Coast of Japan"
 		"Solomon Sea"
-		"West Coral Sea"
-		"East Coral Sea" 
 		"North Tasman Sea"
-		"South Tasman Sea" 
-		"East Cost of New Zealand"
-		
-		# South and West Australia
-		"Timor Sea"
-		"West Coast of Australia"
+		"South Tasman Sea"
 		"East Great Australian Bight"
-		"West Great Australian Bight" 
-		
-		#North Pacific
+		"West Great Australian Bight"
+		"Aleutians"
+		"Carolines"
+		"Central Philippine Sea"
 		"Coast of Kamchatka"
 		"East Bering Sea"
-		"West Bering Sea" 
-		"Aleutians"
-		"Northwest Pacific Basin"
-		"North Northeast Pacific Basin"
-		
-		#Central Pacific
+		"East Mariana Basin"
+		"East Sea of Okhotsk"
+		"Gulf of Alaska"
 		"Hawaiian Rise"
-		"North East Pacific Ocean"
-		"Marshalls Sea"
-		"South East Pacific Ocean"
-		"Marianas"
-		"Western Solomons"
-		"Eastern Solomons"
-		"US Maritimes"
-		"Carolines"
-		
-		#South Pacific
+		"Mariana Trench"
+		"Mid-Pacific Mountains"
+		"North Northeast Pacific Basin"
+		"Northwest Pacific Basin"
+		"Ryukyus"
+		"South Sea of Okhotsk"
+		"Timor Sea"
+		"West Bering Sea"
+		"West Coast of Australia"
+		"West Coast of Mexico"
+		"West Coast of the United States"
+		"West Sea of Okhotsk"
+		"Yellow Sea"
+		"Fiji Basin"
 		"Gilberts"
 		"Line Islands"
-		"Fiji Basin"
-		"Southwest Pacific Basin"
-		
-		# South American West Coast
+		"North East Pacific Ocean"
+		"South East Pacific Ocean"
+		"East Cost of New Zealand"
+		"North Southeast Pacific Ocean"
+		"South Southeast Pacific Ocean"
 		"Southeast Pacific Basin"
+		"Southwest Pacific Basin"
+		"West Coast of Central America"
 		"West Coast of Chile"
 		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
-		
-		# USA West Coast
-		"Gulf of Alaska"
-		"West Coast of the United States"
-		
-		#West Coast of Mexico
-		"West Coast of Mexico"
-		"West Coast of Central America"		
-	}
-	#Which provinces to use as bases..
-	base = {
-		90
-		296
+		"Coast of New Guinea"
+
+		# Indian Ocean
+		"Red Sea"
+		"Persian Gulf"
+		"Coast of Ceylon"
+		"East Bay of Bengal"
+		"Ninetyeast Ridge"
+		"Java Trench"
+		"West Bay of Bengal"
+		"Mascarene Plateau"
+		"Mid-Indian Ridge"
+		"North Arabian Sea"
+		"North Mozambique Channel"
+		"Northeast Coast of Madagascar"
+		"South Arabian Sea"
+		"South Mozambique Channel"
+		"Southeast Coast of Madagascar"
+		"Southeast Indian Ocean"
+		"Southwest Indian Ocean"
+		"Horn of Africa"
 	}
 	target = { } 
 	core = { 
-		2494
-		2493
-		2489
-		2483
-		2481
-		2491
-		2492
-		2484
-		2482
-		2480
-		2479
-		2478
-		2477
-		2476
-		290
+		2473
+		2474
+		2475
 	} 
-}
\ No newline at end of file
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = GER
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/hun_1936.ai Doomsday Data Files/ai/hun_1936.ai
--- Doomsday Data Files.old/ai/hun_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/hun_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,4 +1,5 @@
 # Hungary 1936 AI File by Lothos
+# removed the demanding of claims (DAIM)
 
 switch = no # [yes/no]
 max_front_ratio = 1.2 
@@ -6,15 +7,10 @@
 min_garrison_prop = 0.20
 neutrality = 150 
 war = 1
-upgrading = 0.25
-reinforcement = 0.2
 strat_redeploy_threshold = 25
 exp_force_ratio = 0.0
-exp_force_ratios = {
-	GER = 1.0
-} 
+exp_force_ratios = { } 
 no_exp_forces_to = { JAP SIA MAN VIC ITA ROM SLO BUL YUG FIN }
-use_offensive_supply = no
 
 ###################################
 # Diplomacy
@@ -31,7 +27,7 @@
 	FRA = 1
 }
 demand_claims = {
-	CZE
+#	CZE
 }
 befriend = {
 	GER = 100
@@ -106,48 +102,16 @@
 		1250 = 100
 	}
 }
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 3
-		counter_espionage =  10
-		country = HUN
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-}
+
 ###################################
 # Construction and Tech Research
 ###################################
 #Default values
 construction = { 
-	max_factor = 0.000 
+	max_factor = 0.050 
 
 
-	AA_batteries = no
+	AA_batteries = atwar
 	max_AA_level = 4 
 	AA_provs = {
 		457 # Budapest
@@ -173,9 +137,9 @@
 	max_land_level = 2
 	fort_borders = { } 
 
-	ic_at_war = no 
+	ic_at_war = yes 
 	force_ic_until = 1935
-	ic_end_year = 1935
+	ic_end_year = 1940
 	IC_provs = {
 		457 # Budapest
 	} 
@@ -188,29 +152,29 @@
 	max_batch_home_front 	= 180
 
 	#### Divisions etc...
-	infantry 		= 64
-	cavalry 		= 0
-	motorized 		= 0
+	infantry 		= 51
+	cavalry 		= 10
+	motorized 		= 10
 	mechanized 		= 0
-	light_armor 	= 0
-	armor 			= 10
+	light_armor 	= 4
+	armor 			= 0
 	paratrooper 	= 0
 	marine 			= 0
-	bergsjaeger 	= 0
-	garrison		= 0
-    hq 				= 4
+	bergsjaeger 	= 8
+	garrison		= 4
+    hq 				= 3
 	militia 		= 0
-#				78 %
-	interceptor 	= 10
+#				90 %
+	interceptor 	= 5
 	multi_role 		= 0
-	cas 			= 7
+	cas 			= 0
 	strategic_bomber = 0
 	tactical_bomber = 5
 	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				22 %
+#				10 %
 	battleship 		= 0
 	carrier 		= 0
 	escort_carrier	= 0
@@ -219,24 +183,23 @@
 	heavy_cruiser 	= 0
 	battlecruiser 	= 0
 	submarine 		= 0
-	nuclear_submarine = 0
 	transports 		= 0
 #				0 %
 
 	#### Brigades
-	artillery 			= 25
+	artillery 			= 20
 	sp_artillery 		= 0
 	rocket_artillery	= 0
 	sp_rct_artillery 	= 0
-	anti_tank 			= 20
+	anti_tank 			= 8
 	tank_destroyer 		= 0
 	light_armor_brigade	= 0
 	heavy_armor 		= 0
 	super_heavy_armor 	= 0
-	armored_car 		= 8
-	anti_air 			= 0
+	armored_car 		= 0
+	anti_air 			= 5
 	police 				= 0
-	engineer 			= 0 
+	engineer 			= 5 
 
 	cag = 100.000 
 }
@@ -244,63 +207,45 @@
 technology = { 
 	endgoal 	= { } 
 	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
 		#Infantry
 		1010 1020 1030 1040 1050 1060
 
-		# Medium tanks
-		2070 2080 2090
+		# Arcriculture
+		5020 5030 5040
+
+		# Inf support
+		1310 1320 1330 1340 1350 1360
+
+		# Production
+		5050 5060 5070 5080 5090 5100 5110 5120 5130 5150 5180
+
+		# motorized
+		1230 1240 1250
 
 		# Air Doctrines
 		9040 9050 9060 9080 9100 9110 9120 9130 9140 9190 9200 9210 9220 9230 9240 9250 9260 9270 9280 9290 9300 9310 9320 9330 9340 9350 9360 9370 9380 9390 9400 9410 9420
-
-		# CAS
-		4170 4280 4180
 	} 
 	ignore 		= {
-		# Assembly Line
-		5150 5170
+		# Vehicle Assembly & Rocket Assembly
+		5160 5170
 
 		# Airborne
 		1070 1080 1090 1100
 
-		# Motorized
-		1230 1240 1250
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Cavalry
-		1190 1200 1210 1220
-
 		# Mechanized
 		1260 1270 1280 1290
 
-		# Mountain Unit techs
-		1110 1120 1130 1140
+		# Marines
+		1150 1160 1170 1180
 
 		# Air Transports
 		4250 4260 4270
 
-		# Multirole Fighters
-		4040 4070 4100
+		# Escort/Multirole Fighters
+		4040 4050 4070 4080 4100 4110
+
+		# CAS
+		4170 4280 4180
 
 		# Naval Bomber
 		4190 4200 4210
@@ -317,6 +262,12 @@
 		# Bas Decimetric
 		5410 5420 5430 5440 5450 5460
 
+		# Medium tanks
+		2070 2080 2090
+
+		# Heavy Tanks and Semi-Modern Tank
+		2100 2110 2120 2140
+
 		# Tank destroyers
 		2170 2180 2190 2200 2210
 
@@ -325,29 +276,14 @@
 
 		# SP Rocket Artillery
 		2260 2270 2280 
-		
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-
-		# Anti Air Brigade
-		2510 2520 2530 2540
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
-
-		# Land Doctrines
-		14080 # Guerilla Warfare
 	}
  
-	armor 		= 3
+	armor 		= 1
 	infantry 	= 5
 	industry 	= 4
 	aircraft 	= 1
 	naval 		= 0
-	land_doctrines 	= 2
+	land_doctrines 	= 1
 	secret_weapons 	= 0
 	air_doctrines 	= 1
 	naval_doctrines = 0
@@ -357,18 +293,19 @@
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 1.0
@@ -448,57 +385,7 @@
 		POL = 100
 	} 
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
@@ -528,4 +415,24 @@
 
 	target = { } 
 	core = { } 
-}
\ No newline at end of file
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = HUN
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/ita_1936.ai Doomsday Data Files/ai/ita_1936.ai
--- Doomsday Data Files.old/ai/ita_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/ita_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,25 +1,25 @@
-# Italy 1936 AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 1.5
 max_garrison_prop = 0.30
-min_garrison_prop = 0.20
+min_garrison_prop = 0.25
 neutrality = 150.000 
-war = 0
-strat_redeploy_threshold = 50
-max_redeploying = 0.05
-exp_force_ratio = 0.0
-exp_force_ratios = { } 
-no_exp_forces_to = { GER ROM HUN BUL FIN VIC JAP SIA MAN VIC }
+upgrading = 0.1
+war = 50
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.10
+exp_force_ratios = { GER = 0.10} 
+no_exp_forces_to = { JAP SIA MAN VIC }
 
 ###################################
 # Diplomacy
 ###################################
-combat = { }
+combat = { GRE }
+
 
-demand_claims = {
-	YUG
-}
 # Special resistance against "influence" by the listed nations. Value range = [0 - 10]  
 resistance = {  
 	ENG = 1
@@ -27,36 +27,13 @@
 	SOV = 4
 }
 befriend = {
-	ROM = 50
-	SLO = 50
-	BUL = 40 
-	HUN = 80 
-	SPA = 50
-	YUG = 50
-	GER = 80 
-	SWE = 10
-	FIN = 20
-	JAP = 20
+	SPA = 30
 	POR = 10
-	TUR = 30
-}
-protect = {
-	ROM = 80
-	BUL = 80 
-	HUN = 80 
-	SWE = 80
-	SCH = 80
-	AUS = 80
-	POL = 80
-	SLO = 80
-	NOR = 80
-	GER = 80
-	TUR = 80
+
 }
+
 target = { } 
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -72,7 +49,9 @@
 		SPA = 80
 		BUL = 100
 	}
-	embargo = { }
+	embargo = {
+		ENG FRA AST CAN NZL
+	}
 }
 tech_sharing = {
 	favored = {
@@ -92,157 +71,19 @@
 		ENG FRA AST CAN NZL
 	}
 	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Mountain Unit techs
-		1110 = 100
-		1120 = 100
-		1130 = 100
-		1140 = 100
-
-		# Naval Bomber
-		4190 = 100
-		4200 = 100
-		4210 = 100
-
-		# Motorized
-		1230 = 100
-		1240 = 100
-		1250 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies 		= 5
-		counter_espionage 	= 10
-		country 			= ITA
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 6
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 4
-		coup 				= 1
-		sabotage_industry 	= 10
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 4
-		counter_espionage 	= 5
-		disrupt_techteam 	= 4
-		country 			= ENG
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 6
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 4
-		coup 				= 1
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 4
-		counter_espionage 	= 5
-		disrupt_techteam 	= 4
-		country 			= FRA
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 6
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 4
-		coup 				= 1
-		sabotage_industry 	= 10
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 4
-		counter_espionage 	= 5
-		disrupt_techteam 	= 4
-		country 			= SOV
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 4
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 4
-		coup 				= 2
-		sabotage_industry 	= 1
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 4
-		counter_espionage 	= 5
-		disrupt_techteam 	= 4
-		country 			= SPR
-	}
+	prioritized = {	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
 #Default values
 construction = { 
-	max_factor = 0.050 
+	max_factor = 1.000
 
 
-	AA_batteries = yes
-	max_AA_level = 4
+	AA_batteries = no
+	max_AA_level = 5
 	AA_provs = { 
 		515 # Roma
 		512 # Bologna
@@ -261,11 +102,11 @@
 	max_radar = 5 
 	radar_provs = { } 
 
-	air_base = no
+	air_base = yes
 	max_air_base = 2
 	air_base_provs = { } 
 
-	naval_base = no
+	naval_base = yes
 	max_naval_base = 3 
 	naval_base_provs = { } 
 
@@ -273,8 +114,8 @@
 	max_land_level = 2
 	fort_borders = { } 
 
-	ic_at_war = yes 
-	force_ic_until = 1935
+	ic_at_war =  yes
+	force_ic_until = 1938
 	ic_end_year = 1940
 	IC_provs = {
 		515 # Roma
@@ -288,204 +129,145 @@
 
 military = { 
 	relative_build_scheme 	= no
-	max_batch_peace 	= 360 
-	max_batch_war 		= 180 
-	max_batch_home_front 	= 180
+	max_batch_peace 	= 360
+	max_batch_war 		= 360
+	max_batch_home_front 	= 360
 
 	#### Divisions etc...
-	infantry 		= 15
-	cavalry 		= 0
-	motorized 		= 5
-	mechanized 		= 0
+	infantry 	= 30
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 8
+	armor 		= 10
 	paratrooper 	= 0
-	marine 			= 0
+	marine 		= 0
 	bergsjaeger 	= 10
-	garrison		= 5
-    hq 				= 4
-	militia 		= 0
-#				47 %
-	interceptor 	= 5
-	multi_role 		= 0
-	escort 			= 0
-	cas 			= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				50 %
+	interceptor 	= 4
+	multi_role 	= 0
+	cas 		= 2
 	strategic_bomber = 0
-	tactical_bomber = 5
-	naval_bomber 	= 5
+	tactical_bomber = 2
+	naval_bomber 	= 2
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				15 %
-	battleship 		= 3
-	carrier 		= 0
-	escort_carrier	= 0
-	destroyer 		= 10
-	light_cruiser 	= 5
-	heavy_cruiser 	= 5
+#				10 %
+	battleship 	= 11
+	carrier 	= 0
+	destroyer 	= 8
+	light_cruiser 	= 10
+	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 5
-	nuclear_submarine = 0
-	transports 		= 10
-#				38 %
+	submarine 	= 5
+	transports 	= 6
+#				40 %
 
 	#### Brigades
-	artillery 			= 10
-	sp_artillery 		= 4
+	artillery 		= 20
+	sp_artillery 		= 10
 	rocket_artillery	= 0 
 	sp_rct_artillery 	= 0
-	anti_tank 			= 10
-	tank_destroyer 		= 5
-	light_armor_brigade = 4
-	heavy_armor 		= 4
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 15
 	super_heavy_armor 	= 0
-	armored_car 		= 0
-	anti_air 			= 4
-	police 				= 0
-	engineer 			= 4 
+	armored_car 		= 10
+	anti_air 		= 0
+	police 			= 10	
+	engineer 		= 10 
 
 	cag = 100.000 
 }
 
 technology = { 
 	endgoal 	= { } 
-	preference = {
-		# Tools
-		5050 5060 5070
+	preference 	= {
+			1310 1320 1330 1340 1350 1360 # Inf support		
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 5150 5180 # Produktion
+			2020 2030 2040 2050  # Light tanks
+			1230 1240 # motorized
+			2100
+			2150 2160
 
-		# Engineering
-		5080 5090 5100
+			 } 
+	ignore 		= {
 		
-		# Production Control
-		5110 5120
+		# Marine
+		3310 #sh bb
+		3320 3330 3340 # Aircraftcarrier
+		3200 3210 3120 3130 # Battlecruiser
+		12100 12110 12120 12130 # lightcarrier
+
+		# Inf
+		1070 1080 1090 1100 # Airborne
+		1150 1160 1170 1180 # Marines
+		1260 1270 1280 # mech 
+
+		# ARI
+		2450 2460 2470 # Static AA
+		2170 2180 2190 2200 2210 # Tank destroyers
+		2370 2380 2260 2270 2280 # SP R & Rocket Artillery
+		2130 # super heavy
+
+		# Planes
+		4250 4260 4270 # Air Transports
+		4040 4070 4100	#fighters
+		4050 4080 4110  #escorts
+		4220 4230  #strat
+
+		# Industry 		
+		5550 5560 5570 5580 5590 # Rocketry
+		5470 5480 5490 5500 5510 5520 5530 5540 # Atomic Research
+		5410 5420 5430 5440 5450 5460 # Bas Decimetric
+		5170 5150  5140 # Assembly line
 		
-		# Assembly Line
-		5130 5140 5150 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Motorized
-		1230 1240 1250
-
-		# Airborned
-		1070
-
-		# Naval Doctrines
-		8120 8130 8310 8190 8090 8330 8200
-
-		# Land Doctrines
-		6150
-
-		# Air Doctrines
-		9040 9050 9060 9060 9080 9100 9110 9120 9130 9190 9200 9210 9220 9230 9240 9250 9260 9290 9310 9320 9330 9340 9350 9360 9370 9380 9390 9400 9410 9420
-	} 
-	ignore 	= {
-		# Rocket Assembly
-		5170
-
-		# Airborne
-		1080 1090 1100
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Air Transports
-		4250 4260 4270
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Test and Research
-		5550 5560 5570 5580 5590
-
-		# Bas Decimetric
-		5410 5420 5430 5440 5450 5460
-
-		# CAS
-		4170 4280 4180
+		# Air Docs
+		9040 9050 9060 9070 9080          9140 9150 9160 9170 9180 
+		 9230 9240 9250 9260 9270 9280 9290 9300 9310 9320 9330 9340 9350 9360 9370 9380 9390
+		9400 9410 9420 9430 9440 9450 9460
 
-		# Strategic bombers
-		4220 4230 4240
-
-		# Heavy Tanks and Semi-Modern Tank
-		2100 2110 2120 2140
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Carrier
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Armoured Cars
-		2150 2160
-
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
+		6150 6160 6180	6190 #	landdocs
 	}
  
-	armor 		= 2
-	infantry 	= 5
-	industry 	= 4
-	aircraft 	= 1
-	naval 		= 1
-	land_doctrines 	= 1
+	armor 		= 6 
+	infantry 	= 9
+	industry 	= 6
+	aircraft 	= 5
+	naval 		= 5
+	land_doctrines 	= 2
 	secret_weapons 	= 0
 	air_doctrines 	= 1
-	naval_doctrines = 1
-}
+	naval_doctrines = 2
+}  
 
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
-	home_multiplier 	= 0.5
-	overseas_multiplier = 1.0
-	home_peace_cap 		= 20
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 21
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 1.0
 	revolt_risk_mult	= 1.0
@@ -493,8 +275,8 @@
 	# PRIORITIES:
 	beach			= 30	# Beach level 2
 	capital			= 40	# Our capital
-	human_border	= 0		# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -503,217 +285,91 @@
 	# Borders with specific countries
 	country_priorities = {
 		VIC = -1
-		FIN = -1
 		SCH = -1
-		ENG = -1
-		FRA = -1
-		ETH = 150
+		ENG = 200
+		FRA = 50
+		ETH = 50
+		GRE = 200
 		AUS = -1
-		CZE = 25
 		YUG = 50
-		SOV = 100
+
 	}
 	ignore = {
-		#Ethiopia Beaches and Capital
-		1033
-		1056
-		1058
-		1046
-
-		#Libya
-		918   #Forte Maddalens
-		926   #Al Jaghbun
-		927   #Aujila
-		1017  #Calanslo
-		1018  #Kufra
-		1016  #Murzuk
-		1015  #Ghat
-		931   #Ghadames
-		928   #Sorno
-		
-		#Egypt/East Africa
-		1020  #Siwa
-		1019  #Great Sand Sea
-		907   #Qattara
-		1021  #AinDalla
-		1022  #Western Desert
-		1067  #El Atiun
-		1068  #El Obeid
-		1069  #Waw
-		1065  #Malakal
-		1032  #Omdurman
-		1041  #Gallabal
-		1040  #Kassala
-		1059  #Marsabit
-
-		#Ethiopia
-		1039  #Asmara
-		1048  #Adwa
-		1042  #Gonder
-		1044  #Debre
-		1045  #Gambela
-		1047  #Jima
-		1053  #Moyale
-		1049  #Denakil
-		1043  #Dese
-		1050  #Diredawa
-		1054  #Ogaden
-		1055  #Bardera
-		1034
-		1052
-		1051
-		1038
-
-		#Belgian Congo
-		1071  #Stanleyville
-		1072  #Buta
-		1073  #Costermanville
-		1074  #Coquihatville
-		1144  #Abertville
-		1143  #Kindu-Port-Empain
-		1142  #Leopoldville
+
+	
 	}
 	province_priorities = {
-		531 = 50 #Turin
-		368 = 50 #Genoa
-		916 = 50 #Bardia
-		917 = 50 #Forte Capuzzo
-		523 = 50 # Taranto
+	#	534 = 50 # Sardinia
+
+
+		
 	}
-	area_multiplier = {
-		523 = 2.0 # Taranto
+	area_multiplier = { 
+			1033 = 0.0 # Ethiopia 
+			1046 = 0.0
+			1056 = 0.0
+			918  = 5.0  # Forte Magdalena
+			932  = 1.5# Tripolis
+			391  = 5.0 # Albania
 	}
 }
 front = { 
-	recklessness 		= 1 # 0-3
-	distrib_vs_ai 		= op_defensive
-	distrib_vs_human 	= op_defensive
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= offensive
+	distrib_vs_human 	= offensive
 
 	enemy_reinf_days	= 6
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
 	withdraw_odds		= 0.6
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = { } 
       	passivity = { } 
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
 invasion = { 
  	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
+	random		= 10.0	#How big a random range.  (1.0 = 1%)
 	coastal		= 0.1	#increase to avoid coastal forts more.
 	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 0.1	#higher = avoid long distance.
-	max_distance    = 20.0  #About the distance from Rostock to Narvik
+	distance	= 10.0	#higher = avoid long distance.
+	max_distance    = 12.0  #About the distance from Rostock to Narvik
 	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island		= 0.1	#prioritise taking pure islands.
+	island		= 1.0	#prioritise taking pure islands.
 	enemy		= 2.0	#higher = much more vary of troops in province.
 	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
 	air_base	= 1.5 
       	naval_base 	= 0.1 
       	air_support 	= 3.0 
-      	redirect 	= priority
-	ignore		= no
+      	redirect 	= nearest
+	ignore		= yes
       
-	staging_province = {
-		523 # Taranto
-	}
+
 	target = { 
 		# Med Island Yugoslavia and Greece
-		390 = 400  	# Tirana
-		534	= 400	# Sardinia
-		31  = 400  	# Malta
-		444 = 300	# Cyprus
-		396 = 300  	# Crete
+		390 = 1000  	# Tirana
+		31  = 5000  	# Malta
+		444 = 500	# Cyprus
+		396 = 5000  	# Crete
 		388 = 200  	# Dubrovnik
 		384 = 200  	# Split
 		400 = 100  	# Cyclades
-		393 =  50	# more Beachheads in Greece
-		394 =  50	# more Beachheads in Greece
+		534 = 500
 
 		# Libya
 		916 = 220	# Tobruk
@@ -729,27 +385,7 @@
 		909 = 200	# El Alamein
 		910 = 200	# Fuka
 		
-		# Tunisia
-		938 = 200	# Sousse
-		939 = 200	# Tunis
-		940 = 200	# Bizerte
-
-		# Algeria
-		949 = 200	# Oran
-		953 = 200	# Algiers
-
-		# Morocco
-		954 = 200	# Melilla
-		958 = 200	# Casablanca
-
-		# Spain
-		536 = 200 # Menorca
-		535 = 200 # Mallorca
-		537 = 200 # Ibiza
-		357 = 200 # Barcellona
-		356 = 200 # Tarragona
-		354 = 200 # Valencia
-		352 = 200 # Murcia
+
 
 		# Middle East
 		404 = 100	# Palestine
@@ -769,19 +405,150 @@
 	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
 
-	#Which provinces to use as bases..
-	base = {
-		378	# Venice
-		368	# Genoa
-		523 	# Taranto
-	}
-	target = { } 
-	core = {
-		2444
-		2445
-		2446
-		2438
-		2439
-		2441
-	} 
-}
\ No newline at end of file
+	min_core_attack_fleets  = 1		# Minimum amount of attack fleets to defend CORE provinces (default 0)
+	num_attack_fleets		= 2 	# ENG/USA default 3, JAP default 2 everyone else is 1
+
+
+
+	ignore = {
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+# North Atlantic
+"Barents Sea"
+"Irish Sea"
+"Denmark Strait"
+"Central Atlantic"
+"Hudson Bay"
+"Bermuda Triangle"
+"Northern Sea of Labrador"
+"Southern Sea of Labrador"
+"Grand Banks"
+"The Seamounts"
+"Canadian Maritimes"
+"US Maritimes"
+"Central Mid-Atlantic Ridge"
+"East North Sea"
+"Arctic Ocean"
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Pacific
+"Luzon Strait"
+"Philipine Trench"
+"Coast of Brunei"
+"Flores Sea"
+"Molucca Sea"
+"Banda Sea"
+"West Coral Sea"
+"Sulu Sea"
+"Celebes Sea"
+"Arafura Sea"
+"Java Ridge"
+"Malacca Strait"
+"Gulf of Siam"
+"Spratly Sea"
+"Coast of Indochina"
+"Taiwan Strait"
+"Sea of Japan"
+"North Bismarck Sea"
+"South Bismarck Sea"
+"Marianas"
+"Marshalls Sea"
+"Western Solomons"
+"Eastern Solomons"
+"East Coral Sea"
+"Coast of Japan"
+"Solomon Sea"
+"North Tasman Sea"
+"South Tasman Sea"
+"East Great Australian Bight"
+"West Great Australian Bight"
+"Aleutians"
+"Carolines"
+"Central Philippine Sea"
+"Coast of Kamchatka"
+"East Bering Sea"
+"East Mariana Basin"
+"East Sea of Okhotsk"
+"Gulf of Alaska"
+"Hawaiian Rise"
+"Mariana Trench"
+"Mid-Pacific Mountains"
+"North Northeast Pacific Basin"
+"Northwest Pacific Basin"
+"Ryukyus"
+"South Sea of Okhotsk"
+"Timor Sea"
+"West Bering Sea"
+"West Coast of Australia"
+"West Coast of Mexico"
+"West Coast of the United States"
+"West Sea of Okhotsk"
+"Yellow Sea"
+"Fiji Basin"
+"Gilberts"
+"Line Islands"
+"North East Pacific Ocean"
+"South East Pacific Ocean"
+"East Cost of New Zealand"
+"North Southeast Pacific Ocean"
+"South Southeast Pacific Ocean"
+"Southeast Pacific Basin"
+"Southwest Pacific Basin"
+"West Coast of Central America"
+"West Coast of Chile"
+"West Coast of Peru"
+"Coast of New Guinea"
+	}
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = ITA
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/ita_1938.ai Doomsday Data Files/ai/ita_1938.ai
--- Doomsday Data Files.old/ai/ita_1938.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/ita_1938.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,554 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 1.5
+max_garrison_prop = 0.30
+min_garrison_prop = 0.25
+neutrality = 150.000 
+upgrading = 0.1
+war = 50
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.10
+exp_force_ratios = { GER = 0.10} 
+no_exp_forces_to = { JAP SIA MAN VIC }
+
+###################################
+# Diplomacy
+###################################
+combat = { GRE }
+
+
+# Special resistance against "influence" by the listed nations. Value range = [0 - 10]  
+resistance = {  
+	ENG = 1
+	FRA = 1
+	SOV = 4
+}
+befriend = {
+	SPA = 30
+	POR = 10
+
+}
+
+target = { } 
+trade = {
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = {
+		ROM = 150
+		GER = 100
+		HUN = 100
+		YUG = 100
+		SPA = 80
+		BUL = 100
+	}
+	embargo = {
+		ENG FRA AST CAN NZL
+	}
+}
+tech_sharing = {
+	favored = {
+		ROM = 120
+		SLO = 80
+		BUL = 100
+		HUN = 100
+		SPA = 120
+		YUG = 50
+		GER = 150
+		SWE = 50
+		FIN = 120
+		JAP = 150
+		TUR = 100
+	}
+	embargo = {
+		ENG FRA AST CAN NZL
+	}
+	not = { }
+	prioritized = {	}
+}
+
+###################################
+# Construction and Tech Research
+###################################
+#Default values
+construction = { 
+	max_factor = 0.000
+
+
+	AA_batteries = no
+	max_AA_level = 5
+	AA_provs = { 
+		515 # Roma
+		512 # Bologna
+		370 # Milan
+		378 # Venezia
+		531 # Turin
+		521 # Naples
+		368 # Genoa
+	} 
+
+	coastal_fort = no
+	max_coastal_level = 3
+	coastal_fort_provs = { } 
+
+	radar_station = no 
+	max_radar = 5 
+	radar_provs = { } 
+
+	air_base = yes
+	max_air_base = 2
+	air_base_provs = { } 
+
+	naval_base = yes
+	max_naval_base = 3 
+	naval_base_provs = { } 
+
+	land_fort = no
+	max_land_level = 2
+	fort_borders = { } 
+
+	ic_at_war =  no 
+	force_ic_until = 1938
+	ic_end_year = 1940
+	IC_provs = {
+		515 # Roma
+		512 # Bologna
+		370 # Milan
+		378 # Venezia
+		531 # Turin
+		521 # Naples
+	} 
+}
+
+military = { 
+	relative_build_scheme 	= no
+	max_batch_peace 	= 360
+	max_batch_war 		= 360
+	max_batch_home_front 	= 360
+
+	#### Divisions etc...
+	infantry 	= 30
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 10
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 10
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				50 %
+	interceptor 	= 4
+	multi_role 	= 0
+	cas 		= 2
+	strategic_bomber = 0
+	tactical_bomber = 2
+	naval_bomber 	= 2
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				10 %
+	battleship 	= 11
+	carrier 	= 0
+	destroyer 	= 8
+	light_cruiser 	= 10
+	heavy_cruiser 	= 0
+	battlecruiser 	= 0
+	submarine 	= 5
+	transports 	= 6
+#				40 %
+
+	#### Brigades
+	artillery 		= 20
+	sp_artillery 		= 10
+	rocket_artillery	= 0 
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 15
+	super_heavy_armor 	= 0
+	armored_car 		= 10
+	anti_air 		= 0
+	police 			= 10	
+	engineer 		= 10 
+
+	cag = 100.000 
+}
+
+technology = { 
+	endgoal 	= { } 
+	preference 	= {
+			1310 1320 1330 1340 1350 1360 # Inf support		
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 5150 5180 # Produktion
+			2020 2030 2040 2050  # Light tanks
+			1230 1240 # motorized
+			2100
+			2150 2160
+
+			 } 
+	ignore 		= {
+		
+		# Marine
+		3310 #sh bb
+		3320 3330 3340 # Aircraftcarrier
+		3200 3210 3120 3130 # Battlecruiser
+		12100 12110 12120 12130 # lightcarrier
+
+		# Inf
+		1070 1080 1090 1100 # Airborne
+		1150 1160 1170 1180 # Marines
+		1260 1270 1280 # mech 
+
+		# ARI
+		2450 2460 2470 # Static AA
+		2170 2180 2190 2200 2210 # Tank destroyers
+		2370 2380 2260 2270 2280 # SP R & Rocket Artillery
+		2130 # super heavy
+
+		# Planes
+		4250 4260 4270 # Air Transports
+		4040 4070 4100	#fighters
+		4050 4080 4110  #escorts
+		4220 4230  #strat
+
+		# Industry 		
+		5550 5560 5570 5580 5590 # Rocketry
+		5470 5480 5490 5500 5510 5520 5530 5540 # Atomic Research
+		5410 5420 5430 5440 5450 5460 # Bas Decimetric
+		5170 5150  5140 # Assembly line
+		
+		# Air Docs
+		9040 9050 9060 9070 9080          9140 9150 9160 9170 9180 
+		 9230 9240 9250 9260 9270 9280 9290 9300 9310 9320 9330 9340 9350 9360 9370 9380 9390
+		9400 9410 9420 9430 9440 9450 9460
+
+		6150 6160 6180	6190 #	landdocs
+	}
+ 
+	armor 		= 6 
+	infantry 	= 9
+	industry 	= 6
+	aircraft 	= 5
+	naval 		= 5
+	land_doctrines 	= 2
+	secret_weapons 	= 0
+	air_doctrines 	= 1
+	naval_doctrines = 2
+}  
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 21
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 1.0
+
+	# PRIORITIES:
+	beach			= 30	# Beach level 2
+	capital			= 40	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		VIC = -1
+		SCH = -1
+		ENG = 200
+		FRA = 50
+		ETH = 50
+		GRE = 200
+		AUS = -1
+		YUG = 50
+
+	}
+	ignore = {
+
+	
+	}
+	province_priorities = {
+	#	534 = 50 # Sardinia
+
+
+		
+	}
+	area_multiplier = { 
+			1033 = 0.0 # Ethiopia 
+			1046 = 0.0
+			1056 = 0.0
+			918  = 5.0  # Forte Magdalena
+			932  = 1.5# Tripolis
+			391  = 5.0 # Albania
+	}
+}
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= offensive
+	distrib_vs_human 	= offensive
+
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.2
+	withdraw_odds		= 0.6
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
+
+###################################
+# Invasions and Naval
+###################################
+invasion = { 
+ 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 10.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.1	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 10.0	#higher = avoid long distance.
+	max_distance    = 12.0  #About the distance from Rostock to Narvik
+	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 1.0	#prioritise taking pure islands.
+	enemy		= 2.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
+	air_base	= 1.5 
+      	naval_base 	= 0.1 
+      	air_support 	= 3.0 
+      	redirect 	= nearest
+	ignore		= yes
+      
+
+	target = { 
+		# Med Island Yugoslavia and Greece
+		390 = 1000  	# Tirana
+		31  = 5000  	# Malta
+		444 = 500	# Cyprus
+		396 = 5000  	# Crete
+		388 = 200  	# Dubrovnik
+		384 = 200  	# Split
+		400 = 100  	# Cyclades
+		534 = 500
+
+		# Libya
+		916 = 220	# Tobruk
+		919 = 220	# Bardia
+		924 = 220	# Bengazi
+		932 = 220	# Zuara
+		933 = 220	# Tripoli
+
+		# Egypt
+		900 = 200	# Suez
+		901 = 200	# Port Said
+		906 = 200	# Alexandra
+		909 = 200	# El Alamein
+		910 = 200	# Fuka
+		
+
+
+		# Middle East
+		404 = 100	# Palestine
+		406 = 100	#
+		1793 = 100	# Syria
+		1794 = 100	#
+		1798 = 100	# Palestine
+		1799 = 100	#
+		1800 = 100	#
+		1801 = 100	#
+		1862 = 100	# Lebanon
+	} 
+} 
+admiral = { 
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+
+	min_core_attack_fleets  = 1		# Minimum amount of attack fleets to defend CORE provinces (default 0)
+	num_attack_fleets		= 2 	# ENG/USA default 3, JAP default 2 everyone else is 1
+
+
+
+	ignore = {
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+# North Atlantic
+"Barents Sea"
+"Irish Sea"
+"Denmark Strait"
+"Central Atlantic"
+"Hudson Bay"
+"Bermuda Triangle"
+"Northern Sea of Labrador"
+"Southern Sea of Labrador"
+"Grand Banks"
+"The Seamounts"
+"Canadian Maritimes"
+"US Maritimes"
+"Central Mid-Atlantic Ridge"
+"East North Sea"
+"Arctic Ocean"
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Pacific
+"Luzon Strait"
+"Philipine Trench"
+"Coast of Brunei"
+"Flores Sea"
+"Molucca Sea"
+"Banda Sea"
+"West Coral Sea"
+"Sulu Sea"
+"Celebes Sea"
+"Arafura Sea"
+"Java Ridge"
+"Malacca Strait"
+"Gulf of Siam"
+"Spratly Sea"
+"Coast of Indochina"
+"Taiwan Strait"
+"Sea of Japan"
+"North Bismarck Sea"
+"South Bismarck Sea"
+"Marianas"
+"Marshalls Sea"
+"Western Solomons"
+"Eastern Solomons"
+"East Coral Sea"
+"Coast of Japan"
+"Solomon Sea"
+"North Tasman Sea"
+"South Tasman Sea"
+"East Great Australian Bight"
+"West Great Australian Bight"
+"Aleutians"
+"Carolines"
+"Central Philippine Sea"
+"Coast of Kamchatka"
+"East Bering Sea"
+"East Mariana Basin"
+"East Sea of Okhotsk"
+"Gulf of Alaska"
+"Hawaiian Rise"
+"Mariana Trench"
+"Mid-Pacific Mountains"
+"North Northeast Pacific Basin"
+"Northwest Pacific Basin"
+"Ryukyus"
+"South Sea of Okhotsk"
+"Timor Sea"
+"West Bering Sea"
+"West Coast of Australia"
+"West Coast of Mexico"
+"West Coast of the United States"
+"West Sea of Okhotsk"
+"Yellow Sea"
+"Fiji Basin"
+"Gilberts"
+"Line Islands"
+"North East Pacific Ocean"
+"South East Pacific Ocean"
+"East Cost of New Zealand"
+"North Southeast Pacific Ocean"
+"South Southeast Pacific Ocean"
+"Southeast Pacific Basin"
+"Southwest Pacific Basin"
+"West Coast of Central America"
+"West Coast of Chile"
+"West Coast of Peru"
+"Coast of New Guinea"
+	}
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = ITA
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/ita_1939.ai Doomsday Data Files/ai/ita_1939.ai
--- Doomsday Data Files.old/ai/ita_1939.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/ita_1939.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,552 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 1.5
+max_garrison_prop = 0.30
+min_garrison_prop = 0.25
+neutrality = 150.000 
+#war = 100
+upgrading = 0.1
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.10
+exp_force_ratios = { GER = 0.10} 
+no_exp_forces_to = { JAP SIA MAN VIC }
+
+###################################
+# Diplomacy
+###################################
+#combat = {
+#	GRE = 100
+#}
+
+# Special resistance against "influence" by the listed nations. Value range = [0 - 10]  
+resistance = {  
+	ENG = 1
+	FRA = 1
+	SOV = 4
+}
+befriend = {
+	SPA = 30
+	POR = 10
+
+}
+
+target = { } 
+trade = {
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = {
+		ROM = 150
+		GER = 100
+		HUN = 100
+		YUG = 100
+		SPA = 80
+		BUL = 100
+	}
+	embargo = {
+		ENG FRA AST CAN NZL
+	}
+}
+tech_sharing = {
+	favored = {
+		ROM = 120
+		SLO = 80
+		BUL = 100
+		HUN = 100
+		SPA = 120
+		YUG = 50
+		GER = 150
+		SWE = 50
+		FIN = 120
+		JAP = 150
+		TUR = 100
+	}
+	embargo = {
+		ENG FRA AST CAN NZL
+	}
+	not = { }
+	prioritized = {	}
+}
+
+###################################
+# Construction and Tech Research
+###################################
+#Default values
+construction = { 
+	max_factor = 0.000
+
+
+	AA_batteries = no
+	max_AA_level = 5
+	AA_provs = { 
+		515 # Roma
+		512 # Bologna
+		370 # Milan
+		378 # Venezia
+		531 # Turin
+		521 # Naples
+		368 # Genoa
+	} 
+
+	coastal_fort = no
+	max_coastal_level = 3
+	coastal_fort_provs = { } 
+
+	radar_station = no 
+	max_radar = 5 
+	radar_provs = { } 
+
+	air_base = no
+	max_air_base = 2
+	air_base_provs = { } 
+
+	naval_base = no
+	max_naval_base = 3 
+	naval_base_provs = { } 
+
+	land_fort = no
+	max_land_level = 2
+	fort_borders = { } 
+
+	ic_at_war =  no 
+	force_ic_until = 1938
+	ic_end_year = 1938
+	IC_provs = {
+		515 # Roma
+		512 # Bologna
+		370 # Milan
+		378 # Venezia
+		531 # Turin
+		521 # Naples
+	} 
+}
+
+military = { 
+	relative_build_scheme 	= no
+	max_batch_peace 	= 360 
+	max_batch_war 		= 360 
+	max_batch_home_front 	= 360 
+
+	#### Divisions etc...
+	infantry 	= 20
+	cavalry 	= 0
+	motorized 	= 10
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 10
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 10
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				50 %
+	interceptor 	= 2
+	multi_role 	= 0
+	cas 		= 4
+	strategic_bomber = 0
+	tactical_bomber = 2
+	naval_bomber 	= 2
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				10 %
+	battleship 	= 7
+	carrier 	= 0
+	destroyer 	= 7
+	light_cruiser 	= 10
+	heavy_cruiser 	= 5
+	battlecruiser 	= 0
+	submarine 	= 5
+	transports 	= 6
+#				40 %
+
+	#### Brigades
+	artillery 		= 20
+	sp_artillery 		= 10
+	rocket_artillery	= 0 
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 15
+	super_heavy_armor 	= 0
+	armored_car 		= 10
+	anti_air 		= 0
+	police 			= 10	
+	engineer 		= 10 
+
+	cag = 100.000 
+}
+technology = { 
+	endgoal 	= { } 
+	preference 	= {
+			1310 1320 1330 1340 1350 1360 # Inf support		
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 5150 5180 # Produktion
+			2020 2030 2040 2050  # Light tanks
+			1230 1240 # motorized
+			2100 # heavy tank 
+			2150 2160 # ac
+			 } 
+	ignore 		= {
+		
+		# navy
+		3310 #sh bb
+		#3320 3330
+		3340 # Aircraftcarrier
+		12100 12110 12120 12130 # lightcarrier
+		3200 3210 3120 3130 # Battlecruiser
+
+		# Inf
+		1080 1090 1100 # Airborne
+		1150 1160 1170 1180 # Marines
+		1260 1270 1280 # mech 
+
+		# ARI
+		2450 2460 2470 # Static AA
+		2170 2180 2190 2200 2210 # Tank destroyers
+		2370 2380 2260 2270 2280 # SP R & Rocket Artillery
+		2130 # super heavy
+
+		# Planes
+		4250 4260 4270 # Air Transports
+		4040 4070 4100	#fighters
+		4050 4080 4110  #escorts
+		4220 4230  #strat
+
+		# Industry 		
+		5550 5560 5570 5580 5590 # Rocketry
+		5470 5480 5490 5500 5510 5520 5530 5540 # Atomic Research
+		5410 5420 5430 5440 5450 5460 # Bas Decimetric
+		5170 5150  5140 # Assembly line
+		
+		# Air Docs
+		9040 9050 9060 9070 9080          9140 9150 9160 9170 9180 
+		 9230 9240 9250 9260 9270 9280 9290 9300 9310 9320 9330 9340 9350 9360 9370 9380 9390
+		9400 9410 9420 9430 9440 9450 9460
+
+		6150 6160 6180	6190 #	landdocs
+	}
+ 
+	armor 		= 6 
+	infantry 	= 9
+	industry 	= 6
+	aircraft 	= 5
+	naval 		= 5
+	land_doctrines 	= 2
+	secret_weapons 	= 0
+	air_doctrines 	= 1
+	naval_doctrines = 2
+}  
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 21
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 1.0
+
+	# PRIORITIES:
+	beach			= 40	# Beach level 2
+	capital			= 40	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		VIC = -1
+		SCH = -1
+		ENG = 200
+		FRA = 50
+		ETH = 50
+		GRE = 200
+		AUS = -1
+		YUG = 50
+
+	}
+	ignore = {
+
+	
+	}
+	province_priorities = {
+	#	534 = 50 # Sardinia
+
+
+		
+	}
+	area_multiplier = { 
+			1033 = 0.0 # Ethiopia 
+			1046 = 0.0
+			1056 = 0.0
+			918  = 5.0  # Forte Magdalena
+			932  = 1.5# Tripolis
+			391  = 15.0 # Albania
+	}
+}
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= offensive
+	distrib_vs_human 	= offensive
+
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.2
+	withdraw_odds		= 0.6
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
+
+###################################
+# Invasions and Naval
+###################################
+invasion = { 
+	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 5.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.5	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 3.0	#higher = avoid long distance.
+	max_distance    = 40.0
+	pocket		= 3.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 2.0	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 0.5	#higher = much more vary of troops nearby
+	air_base	= 0.1
+      	naval_base 	= 0.1
+      	air_support 	= 2.0
+      	redirect 	= nearest
+	ignore		= yes
+      
+
+	target = { 
+		# Med Island Yugoslavia and Greece
+		390 = 1000  	# Tirana
+		31  = 5000  	# Malta
+		444 = 500	# Cyprus
+		396 = 5000  	# Crete
+		388 = 200  	# Dubrovnik
+		384 = 200  	# Split
+		400 = 100  	# Cyclades
+		534 = 500
+
+		# Libya
+		916 = 220	# Tobruk
+		919 = 220	# Bardia
+		924 = 220	# Bengazi
+		932 = 220	# Zuara
+		933 = 220	# Tripoli
+
+		# Egypt
+		900 = 200	# Suez
+		901 = 200	# Port Said
+		906 = 200	# Alexandra
+		909 = 200	# El Alamein
+		910 = 200	# Fuka
+		
+
+
+		# Middle East
+		404 = 100	# Palestine
+		406 = 100	#
+		1793 = 100	# Syria
+		1794 = 100	#
+		1798 = 100	# Palestine
+		1799 = 100	#
+		1800 = 100	#
+		1801 = 100	#
+		1862 = 100	# Lebanon
+	} 
+} 
+admiral = { 
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+
+	min_core_attack_fleets  = 1		# Minimum amount of attack fleets to defend CORE provinces (default 0)
+	num_attack_fleets		= 2 	# ENG/USA default 3, JAP default 2 everyone else is 1
+
+	ignore = {
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+# North Atlantic
+"Barents Sea"
+"Irish Sea"
+"Denmark Strait"
+"Central Atlantic"
+"Hudson Bay"
+"Bermuda Triangle"
+"Northern Sea of Labrador"
+"Southern Sea of Labrador"
+"Grand Banks"
+"The Seamounts"
+"Canadian Maritimes"
+"US Maritimes"
+"Central Mid-Atlantic Ridge"
+"East North Sea"
+"Arctic Ocean"
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Pacific
+"Luzon Strait"
+"Philipine Trench"
+"Coast of Brunei"
+"Flores Sea"
+"Molucca Sea"
+"Banda Sea"
+"West Coral Sea"
+"Sulu Sea"
+"Celebes Sea"
+"Arafura Sea"
+"Java Ridge"
+"Malacca Strait"
+"Gulf of Siam"
+"Spratly Sea"
+"Coast of Indochina"
+"Taiwan Strait"
+"Sea of Japan"
+"North Bismarck Sea"
+"South Bismarck Sea"
+"Marianas"
+"Marshalls Sea"
+"Western Solomons"
+"Eastern Solomons"
+"East Coral Sea"
+"Coast of Japan"
+"Solomon Sea"
+"North Tasman Sea"
+"South Tasman Sea"
+"East Great Australian Bight"
+"West Great Australian Bight"
+"Aleutians"
+"Carolines"
+"Central Philippine Sea"
+"Coast of Kamchatka"
+"East Bering Sea"
+"East Mariana Basin"
+"East Sea of Okhotsk"
+"Gulf of Alaska"
+"Hawaiian Rise"
+"Mariana Trench"
+"Mid-Pacific Mountains"
+"North Northeast Pacific Basin"
+"Northwest Pacific Basin"
+"Ryukyus"
+"South Sea of Okhotsk"
+"Timor Sea"
+"West Bering Sea"
+"West Coast of Australia"
+"West Coast of Mexico"
+"West Coast of the United States"
+"West Sea of Okhotsk"
+"Yellow Sea"
+"Fiji Basin"
+"Gilberts"
+"Line Islands"
+"North East Pacific Ocean"
+"South East Pacific Ocean"
+"East Cost of New Zealand"
+"North Southeast Pacific Ocean"
+"South Southeast Pacific Ocean"
+"Southeast Pacific Basin"
+"Southwest Pacific Basin"
+"West Coast of Central America"
+"West Coast of Chile"
+"West Coast of Peru"
+"Coast of New Guinea"
+	}
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = ITA
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/ita_1940.ai Doomsday Data Files/ai/ita_1940.ai
--- Doomsday Data Files.old/ai/ita_1940.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/ita_1940.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,34 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 1.5
+max_garrison_prop = 0.30
+min_garrison_prop = 0.25
+neutrality = 50.000 
+war = 100
+upgrading = 0.1
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.10
+exp_force_ratios = { GER = 0.10} 
+no_exp_forces_to = { JAP SIA MAN VIC }
+
+###################################
+# Diplomacy
+###################################
+combat = {
+	GRE = 100
+}
+
+# Special resistance against "influence" by the listed nations. Value range = [0 - 10]  
+resistance = {  
+	ENG = 1
+	FRA = 1
+	SOV = 4
+}
+befriend = {
+	SPA = 30
+	POR = 10
+
+}
diff -Naur Doomsday Data Files.old/ai/ita_1941.ai Doomsday Data Files/ai/ita_1941.ai
--- Doomsday Data Files.old/ai/ita_1941.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/ita_1941.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,552 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 1.5
+max_garrison_prop = 0.30
+min_garrison_prop = 0.25
+neutrality = 50.000 
+war = 100
+upgrading = 0.1
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.10
+exp_force_ratios = { GER = 0.10} 
+no_exp_forces_to = { JAP SIA MAN VIC }
+
+###################################
+# Diplomacy
+###################################
+combat = {
+	IRQ = 100
+}
+# Special resistance against "influence" by the listed nations. Value range = [0 - 10]  
+resistance = {  
+	ENG = 1
+	FRA = 1
+	SOV = 4
+}
+befriend = {
+	SPA = 30
+	POR = 10
+
+}
+
+target = { } 
+trade = {
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = {
+		ROM = 150
+		GER = 100
+		HUN = 100
+		YUG = 100
+		SPA = 80
+		BUL = 100
+	}
+	embargo = {
+		ENG FRA AST CAN NZL
+	}
+}
+tech_sharing = {
+	favored = {
+		ROM = 120
+		SLO = 80
+		BUL = 100
+		HUN = 100
+		SPA = 120
+		YUG = 50
+		GER = 150
+		SWE = 50
+		FIN = 120
+		JAP = 150
+		TUR = 100
+	}
+	embargo = {
+		ENG FRA AST CAN NZL
+	}
+	not = { }
+	prioritized = {	}
+}
+
+###################################
+# Construction and Tech Research
+###################################
+#Default values
+construction = { 
+	max_factor = 0.000
+
+
+	AA_batteries = no
+	max_AA_level = 5
+	AA_provs = { 
+		515 # Roma
+		512 # Bologna
+		370 # Milan
+		378 # Venezia
+		531 # Turin
+		521 # Naples
+		368 # Genoa
+	} 
+
+	coastal_fort = no
+	max_coastal_level = 3
+	coastal_fort_provs = { } 
+
+	radar_station = no 
+	max_radar = 5 
+	radar_provs = { } 
+
+	air_base = no
+	max_air_base = 2
+	air_base_provs = { } 
+
+	naval_base = no
+	max_naval_base = 3 
+	naval_base_provs = { } 
+
+	land_fort = no
+	max_land_level = 2
+	fort_borders = { } 
+
+	ic_at_war =  no 
+	force_ic_until = 1938
+	ic_end_year = 1938
+	IC_provs = {
+		515 # Roma
+		512 # Bologna
+		370 # Milan
+		378 # Venezia
+		531 # Turin
+		521 # Naples
+	} 
+}
+
+military = { 
+	relative_build_scheme 	= no
+	max_batch_peace 	= 360 
+	max_batch_war 		= 360 
+	max_batch_home_front 	= 360 
+
+	#### Divisions etc...
+	infantry 	= 20
+	cavalry 	= 0
+	motorized 	= 10
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 10
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 10
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				50 %
+	interceptor 	= 2
+	multi_role 	= 0
+	cas 		= 4
+	strategic_bomber = 0
+	tactical_bomber = 2
+	naval_bomber 	= 2
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				10 %
+	battleship 	= 7
+	carrier 	= 0
+	destroyer 	= 7
+	light_cruiser 	= 10
+	heavy_cruiser 	= 5
+	battlecruiser 	= 0
+	submarine 	= 5
+	transports 	= 6
+#				40 %
+
+	#### Brigades
+	artillery 		= 20
+	sp_artillery 		= 10
+	rocket_artillery	= 0 
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 15
+	super_heavy_armor 	= 0
+	armored_car 		= 10
+	anti_air 		= 0
+	police 			= 10	
+	engineer 		= 10 
+
+	cag = 100.000 
+}
+technology = { 
+	endgoal 	= { } 
+	preference 	= {
+			1310 1320 1330 1340 1350 1360 # Inf support		
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 5150 5180 # Produktion
+			2020 2030 2040 2050  # Light tanks
+			1230 1240 # motorized
+			2100 # heavy tank 
+			2150 2160 # ac
+			 } 
+	ignore 		= {
+		
+		# navy
+		3310 #sh bb
+		#3320 3330
+		3340 # Aircraftcarrier
+		12100 12110 12120 12130 # lightcarrier
+		3200 3210 3120 3130 # Battlecruiser
+
+		# Inf
+		1080 1090 1100 # Airborne
+		1150 1160 1170 1180 # Marines
+		1260 1270 1280 # mech 
+
+		# ARI
+		2450 2460 2470 # Static AA
+		2170 2180 2190 2200 2210 # Tank destroyers
+		2370 2380 2260 2270 2280 # SP R & Rocket Artillery
+		2130 # super heavy
+
+		# Planes
+		4250 4260 4270 # Air Transports
+		4040 4070 4100	#fighters
+		4050 4080 4110  #escorts
+		4220 4230  #strat
+
+		# Industry 		
+		5550 5560 5570 5580 5590 # Rocketry
+		5470 5480 5490 5500 5510 5520 5530 5540 # Atomic Research
+		5410 5420 5430 5440 5450 5460 # Bas Decimetric
+		5170 5150  5140 # Assembly line
+		
+		# Air Docs
+		9040 9050 9060 9070 9080          9140 9150 9160 9170 9180 
+		 9230 9240 9250 9260 9270 9280 9290 9300 9310 9320 9330 9340 9350 9360 9370 9380 9390
+		9400 9410 9420 9430 9440 9450 9460
+
+		6150 6160 6180	6190 #	landdocs
+	}
+ 
+	armor 		= 6 
+	infantry 	= 9
+	industry 	= 6
+	aircraft 	= 5
+	naval 		= 5
+	land_doctrines 	= 2
+	secret_weapons 	= 0
+	air_doctrines 	= 1
+	naval_doctrines = 2
+}  
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 21
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 1.0
+
+	# PRIORITIES:
+	beach			= 40	# Beach level 2
+	capital			= 40	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		VIC = -1
+		SCH = -1
+		ENG = 200
+		FRA = 50
+		ETH = 50
+		GRE = 200
+		AUS = -1
+		YUG = 50
+
+	}
+	ignore = {
+
+	
+	}
+	province_priorities = {
+	#	534 = 50 # Sardinia
+
+
+		
+	}
+	area_multiplier = { 
+			1033 = 0.0 # Ethiopia 
+			1046 = 0.0
+			1056 = 0.0
+			918  = 5.0  # Forte Magdalena
+			932  = 5.0  # Tripolis
+			924  = 15.0  # Bengazi
+			391  = 1.0  # Albania
+	}
+}
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= offensive
+	distrib_vs_human 	= offensive
+
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.2
+	withdraw_odds		= 0.6
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
+
+###################################
+# Invasions and Naval
+###################################
+invasion = { 
+	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 5.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.5	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 3.0	#higher = avoid long distance.
+	max_distance    = 40.0
+	pocket		= 3.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 2.0	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 0.5	#higher = much more vary of troops nearby
+	air_base	= 0.1
+      	naval_base 	= 0.1
+      	air_support 	= 2.0
+      	redirect 	= nearest
+	ignore		= yes
+      
+
+	target = { 
+		# Med Island Yugoslavia and Greece
+		390 = 1000  	# Tirana
+		31  = 5000  	# Malta
+		444 = 500	# Cyprus
+		396 = 5000  	# Crete
+		388 = 200  	# Dubrovnik
+		384 = 200  	# Split
+		400 = 100  	# Cyclades
+		534 = 500
+
+		# Libya
+		916 = 220	# Tobruk
+		919 = 220	# Bardia
+		924 = 220	# Bengazi
+		932 = 220	# Zuara
+		933 = 220	# Tripoli
+
+		# Egypt
+		900 = 200	# Suez
+		901 = 200	# Port Said
+		906 = 200	# Alexandra
+		909 = 200	# El Alamein
+		910 = 200	# Fuka
+		
+
+
+		# Middle East
+		404 = 100	# Palestine
+		406 = 100	#
+		1793 = 100	# Syria
+		1794 = 100	#
+		1798 = 100	# Palestine
+		1799 = 100	#
+		1800 = 100	#
+		1801 = 100	#
+		1862 = 100	# Lebanon
+	} 
+} 
+admiral = { 
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+
+	min_core_attack_fleets  = 1		# Minimum amount of attack fleets to defend CORE provinces (default 0)
+	num_attack_fleets		= 2 	# ENG/USA default 3, JAP default 2 everyone else is 1
+
+	ignore = {
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+# North Atlantic
+"Barents Sea"
+"Irish Sea"
+"Denmark Strait"
+"Central Atlantic"
+"Hudson Bay"
+"Bermuda Triangle"
+"Northern Sea of Labrador"
+"Southern Sea of Labrador"
+"Grand Banks"
+"The Seamounts"
+"Canadian Maritimes"
+"US Maritimes"
+"Central Mid-Atlantic Ridge"
+"East North Sea"
+"Arctic Ocean"
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Pacific
+"Luzon Strait"
+"Philipine Trench"
+"Coast of Brunei"
+"Flores Sea"
+"Molucca Sea"
+"Banda Sea"
+"West Coral Sea"
+"Sulu Sea"
+"Celebes Sea"
+"Arafura Sea"
+"Java Ridge"
+"Malacca Strait"
+"Gulf of Siam"
+"Spratly Sea"
+"Coast of Indochina"
+"Taiwan Strait"
+"Sea of Japan"
+"North Bismarck Sea"
+"South Bismarck Sea"
+"Marianas"
+"Marshalls Sea"
+"Western Solomons"
+"Eastern Solomons"
+"East Coral Sea"
+"Coast of Japan"
+"Solomon Sea"
+"North Tasman Sea"
+"South Tasman Sea"
+"East Great Australian Bight"
+"West Great Australian Bight"
+"Aleutians"
+"Carolines"
+"Central Philippine Sea"
+"Coast of Kamchatka"
+"East Bering Sea"
+"East Mariana Basin"
+"East Sea of Okhotsk"
+"Gulf of Alaska"
+"Hawaiian Rise"
+"Mariana Trench"
+"Mid-Pacific Mountains"
+"North Northeast Pacific Basin"
+"Northwest Pacific Basin"
+"Ryukyus"
+"South Sea of Okhotsk"
+"Timor Sea"
+"West Bering Sea"
+"West Coast of Australia"
+"West Coast of Mexico"
+"West Coast of the United States"
+"West Sea of Okhotsk"
+"Yellow Sea"
+"Fiji Basin"
+"Gilberts"
+"Line Islands"
+"North East Pacific Ocean"
+"South East Pacific Ocean"
+"East Cost of New Zealand"
+"North Southeast Pacific Ocean"
+"South Southeast Pacific Ocean"
+"Southeast Pacific Basin"
+"Southwest Pacific Basin"
+"West Coast of Central America"
+"West Coast of Chile"
+"West Coast of Peru"
+"Coast of New Guinea"
+	}
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = ITA
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/jap_1936.ai Doomsday Data Files/ai/jap_1936.ai
--- Doomsday Data Files.old/ai/jap_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/jap_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,21 +1,22 @@
-# Japan 1936 AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 2.0
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
-neutrality = 70.000 
+neutrality = 70.000
 war = 5
-strat_redeploy_threshold = 50
-max_redeploying = 0.05
+reinforcement = 0.01
+upgrading = 0.1
+strat_redeploy_threshold = 21
 exp_force_ratio = 0.10
 exp_force_ratios = {
 	SIA = 0.5
 	MAN = 0.5
-} 
+}
 no_exp_forces_to = { GER ROM HUN SLO BUL ITA VIC YUG FIN CRO }
-evac_islands = no
-use_offensive_supply = no
 
 ###################################
 # Diplomacy
@@ -24,13 +25,13 @@
 
 claim_acceptance = -49
 
-# Special resistance against "influence" by the listed nations. Value range = [0 - 10]  
-resistance = {  
-	USA = 10
-	ENG = 10
-	FRA = 10
+# Special resistance against "influence" by the listed nations. Value range = [0 - 10]
+resistance = {
+	USA = 3
+	ENG = 4
+	FRA = 6
 	CHI = 6
-	SOV = 6
+	SOV = 4
 }
 befriend = {
 	SIA = 100
@@ -41,108 +42,70 @@
 	MAN = 150
 }
 target = {
-	#Guangxi Clique
-	1309 = 10
-	1310 = 10
-	1258 = 10
-	1311 = 10
-	1312 = 10 
-	1249 = 10 
-	1248 = 10 
-	1314 = 10
-	1313 = 10
-	1317 = 10
-	1318 = 10
-	1320 = 10
-	1321 = 10
-	1325 = 10
-	1319 = 10
-
-	#Yunan
-	1282 = 10
-	1281 = 10
-	1327 = 10
-	1305 = 10
-	1308 = 10
-	1362 = 10
-	1307 = 10
-	1293 = 10
-	1294 = 10
-
-	#Shanxi
-	1206 = 10
-	1205 = 10
-	1204 = 10
-	1203 = 10
-	1210 = 10
-	1211 = 10
-	1212 = 10
-	1224 = 10
-	1215 = 10
-	1213 = 10
-	1216 = 10
-	1214 = 10
-	1207 = 10
-	1208 = 10
-	1272 = 10
-	1209 = 10
-	1225 = 10
-	1226 = 10
-
-	#Xibei San Ma
-	1442 = 10
-	1441 = 10
-	1273 = 10
-	1440 = 10
-	1443 = 10
-	1274 = 10
-	1444 = 10
-	1439 = 10
-
-	#Communist China
-	1270 = 10
-	1271 = 10
-
-	# Sinkiang
-	1435 = 10
-	1445 = 10
-	1447 = 10
-	1421 = 10
-	1432 = 10
-	1433 = 10
-	1446 = 10
-	1430 = 10
-	1431 = 10
-
-	#United Kingdom
-	1315 = 10 #Hong Kong
-
-	#Portugal
-	1316 = 10 # Macao
-} 
+	# Shanxi
+	1204 = 100
+	1205 = 100
+	1206 = 100
+	1210 = 100
+	1211 = 100
+	1212 = 100
+	1213 = 100
+	1216 = 100
+	1207 = 100
+	1208 = 100
+	1209 = 100
+	1225 = 100
+	1226 = 100
+
+	#Northen China
+	1214 = 100
+	1215 = 100
+	1217 = 100
+	1219 = 100
+	1218 = 100
+	1220 = 100
+	1221 = 100
+	1222 = 100
+	1223 = 100
+	1224 = 100
+	1235 = 100
+	1236 = 100
+	1237 = 100
+	1234 = 100
+	1238 = 100
+	1228 = 100
+	1229 = 100
+	1230 = 100
+	1227 = 100
+}
+
 trade = {
-	cancel_deal_threshold = 2
 
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
 	oil 		= -1
-	supplies 	= -1
+	supplies 	= 11
 	money 		= -1
 
 	favored = {
 		USA = 150
 		SOV = 150
 		MAN = 100
+		MEN = 100
 		SIA = 100
 		HOL = 200
 	}
-	embargo = {	}
+	embargo = {
+		CHI CSX SIK CXB CYN CGX CHC
+	}
 }
+
 tech_sharing = {
 	favored = {
 		ITA = 50
-		MAN = 100
+		MAN = 150
+		MEN = 150
 		SIA = 100
 		GER = 150
 	}
@@ -150,204 +113,22 @@
 		USA ENG FRA AST CAN NZL CHI CSX SIK CXB CYN CGX CHC
 	}
 	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Super Heavy BB
-		3310 = 100
-
-		# Marines
-		1150 = 100
-		1160 = 100
-		1170 = 100
-		1180 = 100
-
-		# Carrier
-		3320 = 100
-		3330 = 100
-		3340 = 100
-		3350 = 100
-		3360 = 100
-		3370 = 100
-		3380 = 100
-		3390 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = JAP
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 7
-		minister_assassination = 3
-		smear_campaign 		= 4
-		coup 				= 2
-		sabotage_industry 	= 6
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 4
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= CHI
-	}
-	spyprefsdata = {
-		country_priorities	= 8
-		NumberOfSpies		= 6
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 0
-		coup 				= 0
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 0
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= SOV
-	}
-	spyprefsdata = {
-		country_priorities	= 9
-		NumberOfSpies		= 8
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 2
-		coup 				= 0
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= USA
-	}
-	spyprefsdata = {
-		country_priorities	= 7
-		NumberOfSpies		= 6
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 2
-		coup 				= 0
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= ENG
-	}
+	prioritized = {	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
 #Default values
-construction = { 
-	max_factor = 0.010 
+construction = {
+	max_factor = 1.000
 
-	AA_batteries = no
-	max_AA_level = 4
-	AA_provs = { 
-		1184 # Tokyo
-		1185 # Nagoya
-		1183 # Niigata
-		1187 # Osaka
-		1188 # Hiroshima
-		1190 # Fukuoka
-		1670 # Rabaul
-	}
 
-	coastal_fort = no
-	max_coastal_level = 3
-	coastal_fort_provs = {
-		1599 # Iwo Jima
-		1613 # Truk
-	} 
-
-	radar_station = no 
-	max_radar = 5 
-	radar_provs = { } 
-
-	air_base = yes
-	max_air_base = 4
-	air_base_provs = {
-		1670 # Rabaul
-		1599 # Iwo Jima
-		1627 # Saipan
-		1621 # Palau
-		1785 # Marcus Island
-		1610 # Ponape
-	} 
-
-	naval_base = no
-	max_naval_base = 10
-	naval_base_provs = {
-		1670 # Rabaul
-	} 
-
-	land_fort = no
-	max_land_level = 2
-	fort_borders = { } 
-
-	ic_at_war = no 
-	force_ic_until = 1935
-	ic_end_year = 1935
+	
+
+	ic_at_war = no
+	force_ic_until = 1937
+	ic_end_year = 1937
 	IC_provs = {
 		1184 # Tokyo
 		1185 # Nagoya
@@ -355,31 +136,32 @@
 		1187 # Osaka
 		1188 # Hiroshima
 		1190 # Fukuoka
-	} 
+	}
 }
-military = { 
-	relative_build_scheme 	= yes
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180
+military = {
+	relative_build_scheme 	= no
+	max_batch_peace 	= 360
+	max_batch_war 		= 180
 	max_batch_home_front 	= 180
 
 	#### Divisions etc...
-	infantry 		= 55
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
-	light_armor	 	= 0
-	armor 			= 0
+	infantry 	= 60
+	cavalry 	= 10
+	motorized 	= 10
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 0
 	paratrooper 	= 0
-	marine 			= 0
-	bergsjaeger		= 0
-	garrison		= 45
-    hq 				= 0
-	militia 		= 0
-#				0 %
-	interceptor		= 0
-	multi_role 		= 0
-	cas 			= 0
+	marine 		= 10
+	bergsjaeger 	= 10
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				100 %
+	interceptor 	= 0
+	multi_role 	= 0
+	escort 		= 0
+	cas 		= 0
 	strategic_bomber = 0
 	tactical_bomber = 0
 	naval_bomber 	= 0
@@ -387,207 +169,141 @@
 	flying_bomb 	= 0
 	flying_rocket 	= 0
 #				0 %
-	battleship 		= 0
-	carrier 		= 0
-	escort_carrier	= 0
-	destroyer 		= 0
+	battleship 	= 0
+	carrier 	= 0
+	destroyer 	= 0
 	light_cruiser 	= 0
 	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 0
+	submarine 	= 0
+	transports 	= 0
 #				0 %
 
 	#### Brigades
-	artillery 			= 50
+	artillery 		= 40
 	sp_artillery 		= 0
-	rocket_artillery	= 0 
+	rocket_artillery	= 0
 	sp_rct_artillery 	= 0
-	anti_tank 			= 5
+	anti_tank 		= 0
 	tank_destroyer 		= 0
-	light_armor_brigade = 5
+	light_armor_brigade 	= 0
 	heavy_armor 		= 0
 	super_heavy_armor 	= 0
-	armored_car 		= 0
-	anti_air 			= 5
-	police 				= 3
-	engineer 			= 10 
+	armored_car 		= 5
+	anti_air 		= 5
+	police 			= 10
+	engineer 		= 10
+
+	cag = 100.000
+}
+technology = {
+	endgoal 	= { }
+	preference 	= {
+			#Inftechs
+			1190 1200 1210 1220 1230 1240 # cav and motorized
+			1020 1030 1040 1050 # Inf
+			1150 1160 1170 # Marine
+
+			#industry
+			1310 1320 1330 1340 1350 1360 # supply
+			5020 5030 5040 # Arcriculture
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 5150 5180 10120 # Produktion
+
+			# ari and tank
+			2290 2300 2310 2320 2330  # Ari
+
+			# armored car
+			2150 2160
+			
+			#Marine
+			3310 # Super Heavy BB
+			3320 3330 3340 3350 3360 3370 3380 3390 # carrier
+			 }
+	ignore 		= {
+		# Industry	
+		5140 5160 5170 #some assemblylines
+		5410 5420 5430 5440 5450 5460 # Bas Decimetric radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Atomic Research
+		5550 5560 5570 5580 5590 # rocket Test and Research
+
+		# Inf
+		1070 1080 1090 1100 # Airborne
+		1260 1270 1280 1290 # mech
+
+		#Planes
+		4250 4260 4270 # Air Transports
+		4040 4070 4100 # Not necessary fighters
+		4170 4280 4180 # Close Air Support 
+		4220 4230 4240 # Strategic bombers
+		#Marine 
+		3210 3220 3230 3240 # Battlecruiser
+		3290 3300 # BB
+		3160 3170 3180 # heavy cruiser
+		3440 3450 # sub
+
+		# tanks and Ari
+		2370 2380 2390  # rocket ari
+		2260 2270 2280  # sp rocket
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2400 2410 2420 2430 2440  # at
+		2170 2180 2190 2200 2210 # Tank destroyers
+		2470 2480 2490 2500 # static aa
+
+
+		# land doc 
+		6150 6170 6200 6180 
+		#sea docs
+		# Air Docs
+		9040 9050 9060 9070 9080 9270 9280 9290 9300 # cas 
+		9140 9150 9160 9170 9180 9430 9440 9450 9460 # strat
+		9230 9240 9250 9260 9390 9400 9410 9420 # fighter alternative  
 
-	cag = 100.000 
-}
-technology = { 
-	endgoal = { } 
-	preference = {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Arcriculture
-		5020 5030 5040
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Super Heavy BB
-		3310
-
-		# Marines
-		1150 1160 1170 1180
-		
-		# Carrier
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Naval Doctrines
-		8140 8250 8230 8320 8310
-
-		# Land Doctrines
-		6160
-
-		# Air Doctrines
-		9050 9060 9070 9080 9090 9100 9110 9120 9130 9190 9200 9210 9220 9230 9240 9250 9260 9270 9280 9300 9310 9320 9330 9340 9350 9360 9370 9380 9390 9400 9410 9420
-		
-		# Fighter
-		4040 4070 4100
-		
-		# Tactical Bomber
-		4140 4150 4160
-		
-		# Naval Bomber
-		4190 4200 4210
-		
-		# CAS
-		4170 4280 4180
-	} 
-	ignore 	= {
-		# Strategic bombers
-		4220 4230 4240
-
-		# Air Transports
-		4250 4260 4270
-
-		# Vehicle Assembly & Rocket Assembly
-		5160 5170
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Cavalry
-		1190 1200 1210 1220
-		
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# motorized
-		1230 1240 1250
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Test and Research
-		5550 5560 5570 5580 5590
-
-		# Bas Decimetric
-		5410 5420 5430 5440 5450 5460
-
-		# Medium tanks
-		2070 2080 2090
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Heavy Tanks and Semi-Modern Tank
-		2100 2110 2120 2140
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Armoured Cars
-		2150 2160
 
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
 	}
- 
+
 	armor 		= 3
-	infantry 	= 8
-	industry 	= 8
-	aircraft 	= 5
+	infantry 	= 10
+	industry 	= 10
+	aircraft 	= 4
 	naval 		= 6
 	land_doctrines 	= 2
-	secret_weapons 	= 0
-	air_doctrines 	= 3
+	secret_weapons 	= 1
+	air_doctrines 	= 1
 	naval_doctrines = 4
-}  
+}
+
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.04
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 0.5
 	overseas_multiplier 	= 1.0
-	home_peace_cap 		= 10
+	home_peace_cap 		= 11
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 0
-	revolt_risk_mult	= 1.0
+	revolt_risk_mult	= 0
 
 	# PRIORITIES:
-	beach			= 30	# Beach level 2
+	beach			= 20	# Beach level 2
 	capital			= 40	# Our capital
-	human_border	= 0		# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
-	
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 100	# The next country targeted for attack by this AI
+
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
 	unstable_border		= 0	# Bordering countries at war with someone else get this
@@ -615,28 +331,17 @@
 		NZL = 10
 	}
 	province_priorities = {
-		1337 = 35 # Saigon
-		1322 = 35 # Kaohsung
-		1613 = 35 # Truk
-		1601 = 35 # Eniwetok
-		1608 = 35 # Kwajelin
-		1670 = 35 # Rabaul
 		1203 = 100 # Tagshan
 		1397 = 100 # Changde
 		1398 = 100 # Erenhot
 	}
 	area_multiplier = {
-		1203 = 10.0 # Tagshan
-		1397 = 10.0 # Changde
-		1398 = 10.0 # Erenhot
-		1785 = 1.5 # Marcus Island
-		1625 = 1.5 # Rota
-		1192 = 1.5 # Anami
-		1194 = 1.5 # Jeju
-		1784 = 1.5 # Bonin Island
+		1203 = 7.5 # Tagshan
+		1397 = 7.5 # Changde
+		1398 = 7.5 # Erenhot
 	}
 }
-front = { 
+front = {
 	recklessness 		= 1 # 0-3
 	distrib_vs_ai 		= even
 	distrib_vs_human 	= even
@@ -645,18 +350,18 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.0
 	panic_ratio_vs_human	= 2.0
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.7
+	min_attack_odds		= 1.3
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
 	withdraw_odds		= 0.6
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
+	dig_in 		= 1.25 # Against defender
 
 	frozen_attack 	= 1.0
 	snow_attack 	= 1.0
@@ -664,8 +369,8 @@
 	storm_attack 	= 1.0
 	muddy_attack 	= 1.0
 
-	
-	
+	largefort 	= 1.0
+	smallfort 	= 1.0
 	occupied 	= 0.7
 	owned 		= 0.7
 
@@ -678,408 +383,58 @@
 	river 		= 1.0
 
       	enemy_handicap = {
-		SOV = 20
-		MON = 20
-	} 
+	}
       	passivity = {
-		SOV = 70
-		MON = 70
-	} 
-} 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
-
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
+		CYN = 100
+		SIK = 100
+		CXB = 100
+	}
 }
+
 ###################################
 # Invasions and Naval
 ###################################
-invasion = { 
- 	base				= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random				= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal				= 0.1	#increase to avoid coastal forts more.
-	beach				= 0.1	#higher, avoid worst beaches.
-	max_distance   		= 250.0  #About the distance from Japan to Batavia
-	max_staging_distance = 15	# How far should the staging area be from the target invasion point
-	distance			= 0.1	#higher = avoid long distance.
-	pocket				= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island				= 0.1	#prioritise taking pure islands.
-	enemy				= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 		= 2.0	#higher = much more vary of troops nearby
-	air_base			= 1.5 
-    naval_base 			= 0.1 
-    air_support 		= 3.0 
-    redirect 			= priority
-	ignore				= no
-	help_allies 		= no 	#[yes/no]
-      
+invasion = {
+ 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 8.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.1	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 0.1	#higher = avoid long distance.
+	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 0.1	#prioritise taking pure islands.
+	enemy		= 2.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
+	air_base	= 1.5
+      	naval_base 	= 0.1
+      	air_support 	= 3.0
+      	redirect 	= priority
+	ignore		= no
+	help_allies 	= no 	#[yes/no]
+
 	staging_province = {
-		1337 # Saigon
+
 		1322 # Kaohsung
-		1613 # Truk
-		1187 # Osaka
-		1670 # Rabaul
-	}
-	target = {
-		# Japanese Heartland
-		1192 = 4000 # Amami
-		1193 = 4000 # Okinawa
-		1323 = 4000 # Taibei
-		1322 = 4000 # Gaoxiong
-		1784 = 4000 # Bonin Islands
-		1599 = 4000 # Iwo Jima
-		1177 = 4000 # Etorufu
-		1176 = 4000 # Toyohara
-		1175 = 4000 # Ocha  (Soviet Controlled)
-
-		#Philippines
-		1741 = 3750 # Aparri
-		1740 = 3750 # Lingayen Gulf
-		1742 = 3750 # Lamon Bay
-		1743 = 3750 # Legaspi
-		1750 = 3750 # Davao
-		1749 = 3750 # Cagayan
-		1748 = 3750 # Zamboangs
-		1744 = 3500 # Samar
-		1745 = 3500 # Leyte
-		1747 = 3500 # Negros
-		1746 = 3500 # Panay
-		1736 = 3500 # Mindoro
-		1735 = 3500 # Palawan
-
-		#Outer Japanese Islands
-		1627 = 3250 # Saipan
-		1626 = 3250 # Tinian
-		1625 = 3250 # Rota
-		1624 = 3250 # Guam
-		1621 = 3250 # Palau
-		1785 = 3250 # Marcus Island
-
-		#Netherlands East Indies
-		1354 = 3250 # Bagka Island
-		1628 = 3000 # Batavia
-		1630 = 3000 # Semarang
-		1629 = 3000 # Tjilatjap
-		1632 = 3000 # Soerabaja
-		1634 = 3000 # Madura
-		1631 = 3000 # Djokjakarta
-		1633 = 3000 # Malang
-		1358 = 2750 # Palembang
-		1359 = 2750 # Oosthaven
-		1356 = 2750 # Dumai
-		1357 = 2750 # Padang
-		1355 = 2750 # Medan
-
-		#Borneo
-		1646 = 2500 # Mini
-		1644 = 2500 # Kuching
-		1642 = 2500 # Pontianak
-		1641 = 2500 # Bandjermasin
-		1650 = 2500 # Balikpapan
-		1649 = 2500 # Samarinda
-		1648 = 2500 # Tarakan
-		1647 = 2500 # Jessleton
-
-		#Singapore
-		1350 = 2500 # Kota Bahru
-		1351 = 2500 # Kuantan
-		1349 = 2500 # Alor Star
-		1352 = 2500 # Kualla Lumpur
-		1353 = 2500 # Singapore
-
-		#China
-		1204 = 2500 # Tianjin
-		1214 = 2500 # Yantai
-		1215 = 2500 # Qingdao
-		1237 = 2500 # Shanghai
-		1321 = 2500 # Hainan
-		1217 = 2500 # Nanton
-		1219 = 2500 # Lianyuang
-		1244 = 2400 # Fuzhou
-		1247 = 2400 # Xizmen
-		1248 = 2250 # Shantou
-
-		#USA
-		1786 = 2250 # Wake Island
-
-		#Britain
-		1315 = 2250 # Hong Kong
-
-		#Far Outer Rim Japanese Islands
-		1601 = 2250 # Eniwetok
-		1600 = 2250 # Bikini
-		1602 = 2250 # Wotje
-		1608 = 2250 # Kwajalein
-		1603 = 2250 # Maloelap
-		1605 = 2250 # Majuro
-		1607 = 2250 # Jaluit
-		1606 = 2250 # Mili
-		1610 = 2250 # Ponape
-		1609 = 2250 # Kosrae
-		1620 = 2250 # Ngulu
-		1619 = 2250 # Yap
-		1618 = 2250 # Ulithi
-		1604 = 2250 # Wolelai
-		1615 = 2250 # Ulul
-		1617 = 2250 # Woleai
-		1616 = 2250 # Pulusok
-		1613 = 2250 # Truk
-		1612 = 2250 # Satawan
-
-		#Indonesia
-		1653 = 2000 # Menado
-		1651 = 2000 # Palu
-		1640 = 2000 # Makassar
-		1652 = 2000 # Kendari
-
-		#New Britain
-		1670 = 2000 # Rabaul
-		1671 = 2000 # Gasmata
-
-		#Indonesia
-		1654 = 1750 # Helmahera
-		1655 = 1750 # Buru
-		1656 = 1750 # Ceram
-
-		#North New Guinea
-		1659 = 1750 # Sorong
-		1661 = 1750 # Biak Island
-		1660 = 1750 # Babo
-		1663 = 1750 # Arare
-		1664 = 1750 # Sarmi
-		1665 = 1750 # Hollandia
-		1666 = 1750 # Aitape
-		1667 = 1750 # Wewak
-		1672 = 1750 # Lae
-
-		#North Solomon Islands
-		1668 = 1750 # Admirality Islands
-		1669 = 1750 # New Ireland
-		1681 = 1750 # Buka Island
-		1682 = 1750 # Bougainville
-
-		# NEI Last Remaining Islands
-		1635 = 1500 # Bali
-		1636 = 1500 # Lombok
-		1637 = 1500 # Sumbawa
-		1639 = 1500 # Flores
-		1638 = 1500 # Sumba
-		1657 = 1500 # West Timor
-
-		# USA Alaska
-		1408 = 1500 # Attu Island
-		543  = 1500 # Amchika Island
-		542  = 1500 # Kiska Island
-
-		# South Solomon Islands
-		1683 = 1250 # Shortland Island
-		1614 = 1250 # Vella Lavella
-		1622 = 1250 # Kolombangara
-		1684 = 1250 # New Georgia
-		1685 = 1250 # Guadalcanal
-	} 
-} 
-admiral = { 
-	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
-	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
-	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
-	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-	min_core_attack_fleets  = 1		# Minimum amount of attack fleets to defend CORE provinces (default 0)
-	num_attack_fleets		= 3 	# ENG/USA default 3, JAP default 2 everyone else is 1
-
-	ignore = {
-		#Baltic Area
-		"Northern Baltic"
-		"Southern Baltic" 
-		"Bothnian Bay"
-		
-		#Murmansk/Archangel
-		"Barents Sea"
-		"Arctic Ocean"
-		
-		#Norway Coast (Denmark Coast)
-		"Norwegian Sea"
-		"East North Sea"
-		"Kattegat"
-		
-		#North Sea, East Coast of England
-		"Central Northsea"
-		"West Northsea"
-		"Southeast Northsea"
-		
-		#England/France border Sea Areas
-		"English Channel"
-		"Bay of Biscay"
-		"Cape Finisterre"
-		
-		#Spanish Coast (Atlantic Side)
-		"Portugese Coast"
-		"Cap St Vincent"
-		
-		#Iceland
-		"Faroes Gap"
-		"Denmark Strait"
-		
-		#Ireland/West Coast of England
-		"Irish Sea"
-		"The Hebreides"
-		"Irish West Coast"
-		
-		#Greenland
-		"Greenland Coast"
-		"Northern Sea of Labrador" 
-		"Southern Sea of Labrador"
-		
-		#Canada East Coast
-		"Hudson Bay"
-		"Grand Banks"
-		"Canadian Maritimes"
-		
-		#Western Mediterranean
-		"Costa del Sol"
-		"Gulf of Lyon"
-		"Algerian Coast"
-		
-		#Central Mediterranean
-		"Tyrrhenian Sea"
-		"Adriatic Sea"
-		
-		#Eastern Mediterranean
-		"Black Sea"
-		"Aegean Sea"
-		"Egyptian Coast"
-		
-		
-		#North Atlantic
-		"North Atlantic"
-		"Western Approaches"
-		"The Seamounts"
-		"Azores"
-		
-		#Central Atlantic
-		"Central Atlantic"
-		"Central Mid-Atlantic Ridge"
-		"Bermuda Triangle"
-		"Guiana Basin"
-		"South-Central Mid-Atlantic Ridge"
-		"Cap Verde"
-		
-		#South Atlantic
-		"Pernambuco Plain"
-		"Ascension Fracture Zone"
-		"Argentine Plain"
-		"Angola Plain"
-		
-		#Caribbean Sea and Guilf of Mexico
-		"West Gulf of Mexico"
-		"East Gulf of Mexico" 
-		"Florida Strait"
-		"Yucatan Strait"
-		"Windward Islands"
-		"Central Carribean"
-		
-		#Brazil and Argentina Coast
-		"Coast of Guyana"
-		"Coast of Recife" 
-		"Coast of Uruguay"
-		"Coast of Brazil"
-		"Coast of Argentina"
-		
-		# West Africa
-		"Coast of Africa"
-		"Coast of Bissao" 
-		
-		#Equitorial Africa
-		"Gulf of Guinea"
-		"Coast of Angola-Namibia"
-		
-		#South Africa
-		"Coast of South Africa"
-		"Atlantic-Indian Ridge"
-		
-		#East Africa
-		"Red Sea"
-		"Horn of Africa"
-		
-		#Madagascar Coast
-		"South Mozambique Channel"
-		"North Mozambique Channel" 
-		"Northeast Coast of Madagascar"
-		"Southeast Coast of Madagascar" 
-		
-		# South American West Coast
-		"Southeast Pacific Basin"
-		"West Coast of Chile"
-		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
+#		1613 # Truk
 	}
-	#Which provinces to use as bases..
-	base = {
-		1187	# Osaka
-		1322	# Kaoshiung
-		1613	# Truk
-		1670	# Rabaul
-		1337	# Saigon
-		1353	# Singapore
-		1628	# Batavia
-		1737	# Manila
-		1624	# Guam
+
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = JAP
 	}
-	target = { } 
-	core = {
-		2589
-		2193
-		2187
-		2192
-		2194
-		2213
-		2185
-	} 
-}
\ No newline at end of file
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/jap_1937.ai Doomsday Data Files/ai/jap_1937.ai
--- Doomsday Data Files.old/ai/jap_1937.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/jap_1937.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,426 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 2.0
+max_garrison_prop = 0.30
+min_garrison_prop = 0.20
+neutrality = 70.000
+war = 5
+reinforcement = 0.01
+upgrading = 0.1
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.10
+exp_force_ratios = {
+	SIA = 0.5
+	MAN = 0.5
+}
+no_exp_forces_to = { GER ROM HUN SLO BUL ITA VIC YUG FIN CRO }
+
+###################################
+# Diplomacy
+###################################
+combat = { }
+
+claim_acceptance = -49
+
+# Special resistance against "influence" by the listed nations. Value range = [0 - 10]
+resistance = {
+	USA = 3
+	ENG = 4
+	FRA = 6
+	CHI = 6
+	SOV = 4
+}
+befriend = {
+	SIA = 100
+	MAN = 150
+}
+protect = {
+	SIA = 100
+	MAN = 150
+}
+target = {
+	# Shanxi
+	1204 = 100
+	1205 = 100
+	1206 = 100
+	1210 = 100
+	1211 = 100
+	1212 = 100
+	1213 = 100
+	1216 = 100
+	1207 = 100
+	1208 = 100
+	1209 = 100
+	1225 = 100
+	1226 = 100
+
+	#Northen China
+	1214 = 100
+	1215 = 100
+	1217 = 100
+	1219 = 100
+	1218 = 100
+	1220 = 100
+	1221 = 100
+	1222 = 100
+	1223 = 100
+	1224 = 100
+	1235 = 100
+	1236 = 100
+	1237 = 100
+	1234 = 100
+	1238 = 100
+	1228 = 100
+	1229 = 100
+	1230 = 100
+	1227 = 100
+}
+
+trade = {
+
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= 11
+	money 		= -1
+
+	favored = {
+		USA = 150
+		SOV = 150
+		MAN = 100
+		MEN = 100
+		SIA = 100
+		HOL = 200
+	}
+	embargo = {
+		CHI CSX SIK CXB CYN CGX CHC
+	}
+}
+
+tech_sharing = {
+	favored = {
+		ITA = 50
+		MAN = 150
+		MEN = 150
+		SIA = 100
+		GER = 150
+	}
+	embargo = {
+		USA ENG FRA AST CAN NZL CHI CSX SIK CXB CYN CGX CHC
+	}
+	not = { }
+	prioritized = {	}
+}
+
+###################################
+# Construction and Tech Research
+###################################
+#Default values
+construction = {
+	max_factor = 0.000
+
+}
+military = {
+	relative_build_scheme 	= no
+	max_batch_peace 	= 360
+	max_batch_war 		= 180
+	max_batch_home_front 	= 180
+
+	#### Divisions etc...
+	infantry 	= 60
+	cavalry 	= 10
+	motorized 	= 10
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 0
+	paratrooper 	= 0
+	marine 		= 10
+	bergsjaeger 	= 10
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				100 %
+	interceptor 	= 0
+	multi_role 	= 0
+	escort 		= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 0
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				0 %
+	battleship 	= 0
+	carrier 	= 0
+	destroyer 	= 0
+	light_cruiser 	= 0
+	heavy_cruiser 	= 0
+	battlecruiser 	= 0
+	submarine 	= 0
+	transports 	= 0
+#				0 %
+
+	#### Brigades
+	artillery 		= 40
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 5
+	anti_air 		= 5
+	police 			= 10
+	engineer 		= 10
+
+	cag = 100.000
+}
+technology = {
+	endgoal 	= { }
+	preference 	= {
+			#Inftechs
+			1190 1200 1210 1220 1230 1240 # cav and motorized
+			1020 1030 1040 1050 # Inf
+			1150 1160 1170 # Marine
+
+			#industry
+			1310 1320 1330 1340 1350 1360 # supply
+			5020 5030 5040 # Arcriculture
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 5150 5180 10120 # Produktion
+
+			# ari and tank
+			2290 2300 2310 2320 2330  # Ari
+
+			# armored car
+			2150 2160
+			
+			#Marine
+			3310 # Super Heavy BB
+			3320 3330 3340 3350 3360 3370 3380 3390 # carrier
+			 }
+	ignore 		= {
+		# Industry	
+		5140 5160 5170 #some assemblylines
+		5410 5420 5430 5440 5450 5460 # Bas Decimetric radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Atomic Research
+		5550 5560 5570 5580 5590 # rocket Test and Research
+
+		# Inf
+		1070 1080 1090 1100 # Airborne
+		1260 1270 1280 1290 # mech
+
+		#Planes
+		4250 4260 4270 # Air Transports
+		4040 4070 4100 # Not necessary fighters
+		4170 4280 4180 # Close Air Support 
+		4220 4230 4240 # Strategic bombers
+		#Marine 
+		3210 3220 3230 3240 # Battlecruiser
+		3290 3300 # BB
+		3160 3170 3180 # heavy cruiser
+		3440 3450 # sub
+
+		# tanks and Ari
+		2370 2380 2390  # rocket ari
+		2260 2270 2280  # sp rocket
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2400 2410 2420 2430 2440  # at
+		2170 2180 2190 2200 2210 # Tank destroyers
+		2470 2480 2490 2500 # static aa
+
+
+		# land doc 
+		6150 6170 6200 6180 
+		#sea docs
+		# Air Docs
+		9040 9050 9060 9070 9080 9270 9280 9290 9300 # cas 
+		9140 9150 9160 9170 9180 9430 9440 9450 9460 # strat
+		9230 9240 9250 9260 9390 9400 9410 9420 # fighter alternative  
+
+
+	}
+
+	armor 		= 3
+	infantry 	= 10
+	industry 	= 10
+	aircraft 	= 4
+	naval 		= 6
+	land_doctrines 	= 2
+	secret_weapons 	= 1
+	air_doctrines 	= 1
+	naval_doctrines = 4
+}
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 0.5
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 11
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 0
+	revolt_risk_mult	= 0
+
+	# PRIORITIES:
+	beach			= 20	# Beach level 2
+	capital			= 40	# Our capital
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 100	# The next country targeted for attack by this AI
+
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		CHI = 75
+		CSX = 75
+		SIK = 75
+		CXB = 75
+		CYN = 75
+		CGX = 75
+		CHC = 75
+		VIC = -1
+		MAN = -1
+		MON = -1
+		SIA = -1
+		SOV = 15
+		POR = -1
+		ENG = 50
+		FRA = 50
+		HOL = 10
+		USA = 50
+		AST = 10
+		NZL = 10
+	}
+	province_priorities = {
+		1203 = 100 # Tagshan
+		1397 = 100 # Changde
+		1398 = 100 # Erenhot
+	}
+	area_multiplier = {
+		1203 = 7.5 # Tagshan
+		1397 = 7.5 # Changde
+		1398 = 7.5 # Erenhot
+	}
+}
+front = {
+	recklessness 		= 1 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
+
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.0
+	panic_ratio_vs_human	= 2.0
+	base_attack_odds	= 1.7
+	min_attack_odds		= 1.3
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.2
+	withdraw_odds		= 0.6
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+	frozen_attack 	= 1.0
+	snow_attack 	= 1.0
+	blizzard_attack = 1.0
+	storm_attack 	= 1.0
+	muddy_attack 	= 1.0
+
+	largefort 	= 1.0
+	smallfort 	= 1.0
+	occupied 	= 0.7
+	owned 		= 0.7
+
+	jungle_attack 	= 1.0
+	mountain_attack = 1.0
+	swamp_attack 	= 1.0
+	forest_attack 	= 1.0
+	hill_attack 	= 1.0
+	urban_attack 	= 1.0
+	river 		= 1.0
+
+      	enemy_handicap = {
+	}
+      	passivity = {
+		CYN = 100
+		SIK = 100
+		CXB = 100
+	}
+}
+
+###################################
+# Invasions and Naval
+###################################
+invasion = {
+ 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 8.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.1	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 0.1	#higher = avoid long distance.
+	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 0.1	#prioritise taking pure islands.
+	enemy		= 2.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
+	air_base	= 1.5
+      	naval_base 	= 0.1
+      	air_support 	= 3.0
+      	redirect 	= priority
+	ignore		= no
+	help_allies 	= no 	#[yes/no]
+
+	staging_province = {
+
+		1322 # Kaohsung
+#		1613 # Truk
+	}
+
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = JAP
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/jap_1939.ai Doomsday Data Files/ai/jap_1939.ai
--- Doomsday Data Files.old/ai/jap_1939.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/jap_1939.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,18 +1,22 @@
-# Japan 1939 AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 2.0
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
-neutrality = 70.000 
+neutrality = 70.000
 war = 5
-strat_redeploy_threshold = 50
-max_redeploying = 0.05
+reinforcement = 0.01
+upgrading = 0.1
+strat_redeploy_threshold = 21
 exp_force_ratio = 0.10
-exp_force_ratios = { } 
+exp_force_ratios = {
+	SIA = 0.5
+	MAN = 0.5
+}
 no_exp_forces_to = { GER ROM HUN SLO BUL ITA VIC YUG FIN CRO }
-evac_islands = no
-use_offensive_supply = no
 
 ###################################
 # Diplomacy
@@ -21,13 +25,13 @@
 
 claim_acceptance = -49
 
-# Special resistance against "influence" by the listed nations. Value range = [0 - 10]  
-resistance = {  
-	USA = 10
-	ENG = 10
-	FRA = 10
+# Special resistance against "influence" by the listed nations. Value range = [0 - 10]
+resistance = {
+	USA = 3
+	ENG = 4
+	FRA = 6
 	CHI = 6
-	SOV = 6
+	SOV = 4
 }
 befriend = {
 	SIA = 100
@@ -38,106 +42,64 @@
 	MAN = 150
 }
 target = {
-	#Guangxi Clique
-	1309 = 10
-	1310 = 10
-	1258 = 10
-	1311 = 10
-	1312 = 10 
-	1249 = 10 
-	1248 = 10 
-	1314 = 10
-	1313 = 10
-	1317 = 10
-	1318 = 10
-	1320 = 10
-	1321 = 10
-	1325 = 10
-	1319 = 10
-
-	#Yunan
-	1282 = 10
-	1281 = 10
-	1327 = 10
-	1305 = 10
-	1308 = 10
-	1362 = 10
-	1307 = 10
-	1293 = 10
-	1294 = 10
-
-	#Shanxi
-	1206 = 10
-	1205 = 10
-	1204 = 10
-	1203 = 10
-	1210 = 10
-	1211 = 10
-	1212 = 10
-	1224 = 10
-	1215 = 10
-	1213 = 10
-	1216 = 10
-	1214 = 10
-	1207 = 10
-	1208 = 10
-	1272 = 10
-	1209 = 10
-	1225 = 10
-	1226 = 10
-
-	#Xibei San Ma
-	1442 = 10
-	1441 = 10
-	1273 = 10
-	1440 = 10
-	1443 = 10
-	1274 = 10
-	1444 = 10
-	1439 = 10
-
-	#Communist China
-	1270 = 10
-	1271 = 10
-
-	# Sinkiang
-	1435 = 10
-	1445 = 10
-	1447 = 10
-	1421 = 10
-	1432 = 10
-	1433 = 10
-	1446 = 10
-	1430 = 10
-	1431 = 10
-
-	#United Kingdom
-	1315 = 10 #Hong Kong
-
-	#Portugal
-	1316 = 10 # Macao
-} 
-trade = {
-	cancel_deal_threshold = 2
+	# Shanxi
+	1204 = 100
+	1205 = 100
+	1206 = 100
+	1210 = 100
+	1211 = 100
+	1212 = 100
+	1213 = 100
+	1216 = 100
+	1207 = 100
+	1208 = 100
+	1209 = 100
+	1225 = 100
+	1226 = 100
+
+	#Northen China
+	1214 = 100
+	1215 = 100
+	1217 = 100
+	1219 = 100
+	1218 = 100
+	1220 = 100
+	1221 = 100
+	1222 = 100
+	1223 = 100
+	1224 = 100
+	1235 = 100
+	1236 = 100
+	1237 = 100
+	1234 = 100
+	1238 = 100
+	1228 = 100
+	1229 = 100
+	1230 = 100
+	1227 = 100
+}
 
+trade = {
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
 	oil 		= -1
-	supplies 	= -1
+	supplies 	= 11
 	money 		= -1
 
 	favored = {
 		USA = 150
 		SOV = 150
 		MAN = 100
+		MEN = 100
 		SIA = 100
 		HOL = 200
 	}
 	embargo = {
-		CHI CSX SIK CXB CYN CGX CHC 
+		CHI CSX SIK CXB CYN CGX CHC
 	}
 }
+
 tech_sharing = {
 	favored = {
 		ITA = 50
@@ -149,199 +111,22 @@
 		USA ENG FRA AST CAN NZL CHI CSX SIK CXB CYN CGX CHC
 	}
 	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Super Heavy BB
-		3310 = 100
-
-		# Marines
-		1150 = 100
-		1160 = 100
-		1170 = 100
-		1180 = 100
-
-		# Carrier
-		3320 = 100
-		3330 = 100
-		3340 = 100
-		3350 = 100
-		3360 = 100
-		3370 = 100
-		3380 = 100
-		3390 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = JAP
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 7
-		minister_assassination = 3
-		smear_campaign 		= 4
-		coup 				= 2
-		sabotage_industry 	= 6
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 4
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= CHI
-	}
-	spyprefsdata = {
-		country_priorities	= 8
-		NumberOfSpies		= 6
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 0
-		coup 				= 0
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 0
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= SOV
-	}
-	spyprefsdata = {
-		country_priorities	= 9
-		NumberOfSpies		= 8
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 2
-		coup 				= 0
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= USA
-	}
-	spyprefsdata = {
-		country_priorities	= 7
-		NumberOfSpies		= 6
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 2
-		coup 				= 0
-		sabotage_industry 	= 0
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= ENG
-	}
+	prioritized = {	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
 #Default values
-construction = { 
-	max_factor = 0.10 
+construction = {
+	max_factor = 0.000
 
-	AA_batteries = atwar
-	max_AA_level = 4
-	AA_provs = { 
-		1184 # Tokyo
-		1185 # Nagoya
-		1183 # Niigata
-		1187 # Osaka
-		1188 # Hiroshima
-		1190 # Fukuoka
-		1670 # Rabaul
-	}
 
-	coastal_fort = no
-	max_coastal_level = 3
-	coastal_fort_provs = { } 
-
-	radar_station = no 
-	max_radar = 5 
-	radar_provs = { } 
-
-	air_base = yes
-	max_air_base = 4
-	air_base_provs = {
-		1670 # Rabaul
-		1599 # Iwo Jima
-		1627 # Saipan
-		1621 # Palau
-	} 
-
-	naval_base = no
-	max_naval_base = 10 
-	naval_base_provs = {
-		1670 # Rabaul
-	} 
-
-	land_fort = no
-	max_land_level = 2
-	fort_borders = { } 
-
-	ic_at_war = yes 
-	force_ic_until = 1940
-	ic_end_year = 1940
+	
+
+	ic_at_war = no
+	force_ic_until = 1935
+	ic_end_year = 1936
 	IC_provs = {
 		1184 # Tokyo
 		1185 # Nagoya
@@ -349,257 +134,191 @@
 		1187 # Osaka
 		1188 # Hiroshima
 		1190 # Fukuoka
-	} 
+	}
 }
-military = { 
+military = {
 	relative_build_scheme 	= no
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
+	max_batch_peace 	= 360
+	max_batch_war 		= 180
 	max_batch_home_front 	= 180
 
 	#### Divisions etc...
-	infantry 		= 20
-	cavalry 		= 0
-	motorized 		= 3
-	mechanized 		= 0
-	light_armor 	= 3
-	armor 			= 0
+	infantry 	= 55
+	cavalry 	= 10
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 5
 	paratrooper 	= 0
-	marine 			= 4
+	marine 		= 5
 	bergsjaeger 	= 0
-	garrison		= 5
-    hq 				= 3
-	militia 		= 0
-#				38 %
-	interceptor 	= 5
-	multi_role 		= 2
-	cas 			= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				70 %
+	interceptor 	= 4
+	multi_role 	= 2
+	cas 		= 0
 	strategic_bomber = 0
-	tactical_bomber = 3
-	naval_bomber 	= 6
+	tactical_bomber = 4
+	naval_bomber 	= 1
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				16 %
-	battleship 		= 1
-	carrier 		= 7
-	escort_carrier	= 0
-	destroyer 		= 19
-	light_cruiser 	= 6
-	heavy_cruiser 	= 3
+#				11 %
+	battleship 	= 0
+	carrier 	= 8
+	destroyer 	= 0
+	light_cruiser 	= 0
+	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 10
-#				46 %
+	submarine 	= 0
+	transports 	= 11
+#				19 %
 
 	#### Brigades
-	artillery 			= 15
+	artillery 		= 50
 	sp_artillery 		= 0
-	rocket_artillery	= 0 
+	rocket_artillery	= 0
 	sp_rct_artillery 	= 0
-	anti_tank 			= 4
+	anti_tank 		= 0
 	tank_destroyer 		= 0
-	light_armor_brigade = 6
+	light_armor_brigade 	= 0
 	heavy_armor 		= 0
 	super_heavy_armor 	= 0
-	armored_car 		= 0
-	anti_air 			= 4
-	police 				= 3
-	engineer 			= 5 
+	armored_car 		= 10
+	anti_air 		= 8
+	police 			= 2
+	engineer 		= 10
+
+	cag = 100.000
+}
+technology = {
+	endgoal 	= { }
+	preference 	= {
+			#Inftechs
+			1190 1200 1210 1220 1230 1240 # cav and motorized
+			1020 1030 1040 1050 # Inf
+			1150 1160 1170 # Marine
+
+			#industry
+			1310 1320 1330 1340 1350 1360 # supply
+			5020 5030 5040 # Arcriculture
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 5150 5180 10120 # Produktion
+
+			# ari and tank
+			2290 2300 2310 2320 2330  # Ari
+
+			# armored car
+			2150 2160
+			
+			#Marine
+			3310 # Super Heavy BB
+			3320 3330 3340 3350 3360 3370 3380 3390 # carrier
+			 }
+	ignore 		= {
+		# Industry	
+		5140 5160 5170 #some assemblylines
+		5410 5420 5430 5440 5450 5460 # Bas Decimetric radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Atomic Research
+		5550 5560 5570 5580 5590 # rocket Test and Research
+
+		# Inf
+		1070 1080 1090 1100 # Airborne
+		1260 1270 1280 1290 # mech
+
+		#Planes
+		4250 4260 4270 # Air Transports
+		4040 4070 4100 # Not necessary fighters
+		4170 4280 4180 # Close Air Support 
+		4220 4230 4240 # Strategic bombers
+		#Marine 
+		3210 3220 3230 3240 # Battlecruiser
+		3290 3300 # BB
+		3160 3170 3180 # heavy cruiser
+		3440 3450 # sub
+
+		# tanks and Ari
+		2370 2380 2390  # rocket ari
+		2260 2270 2280  # sp rocket
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2400 2410 2420 2430 2440  # at
+		2170 2180 2190 2200 2210 # Tank destroyers
+		2470 2480 2490 2500 # static aa
+
+		# land doc 
+		6150 6170 6200 6180 
+		#sea docs
+		# Air Docs
+		9040 9050 9060 9070 9080 9270 9280 9290 9300 # cas 
+		9140 9150 9160 9170 9180 9430 9440 9450 9460 # strat
+		9230 9240 9250 9260 9390 9400 9410 9420 # fighter alternative  
 
-	cag = 100.000 
-}
-technology = { 
-	endgoal = { } 
-	preference = {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Arcriculture
-		5020 5030 5040
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Super Heavy BB
-		3310
-
-		# Marines
-		1150 1160 1170 1180
-		
-		# Carrier
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Naval Doctrines
-		8140 8250 8230 8320 8310
-
-		# Land Doctrines
-		6160
-
-		# Air Doctrines
-		9050 9060 9070 9080 9090 9100 9110 9120 9130 9190 9200 9210 9220 9230 9240 9250 9260 9270 9280 9300 9310 9320 9330 9340 9350 9360 9370 9380 9390 9400 9410 9420
-		
-		# Fighter
-		4040 4070 4100
-		
-		# Tactical Bomber
-		4140 4150 4160
-		
-		# Naval Bomber
-		4190 4200 4210
-		
-		# CAS
-		4170 4280 4180
-	} 
-	ignore 	= {
-		# Strategic bombers
-		4220 4230 4240
-
-		# Air Transports
-		4250 4260 4270
-
-		# Vehicle Assembly & Rocket Assembly
-		5160 5170
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Cavalry
-		1190 1200 1210 1220
-		
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# motorized
-		1230 1240 1250
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Test and Research
-		5550 5560 5570 5580 5590
-
-		# Bas Decimetric
-		5410 5420 5430 5440 5450 5460
-
-		# Medium tanks
-		2070 2080 2090
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Heavy Tanks and Semi-Modern Tank
-		2100 2110 2120 2140
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
 
-		# Armoured Cars
-		2150 2160
-
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
 	}
- 
+
 	armor 		= 3
-	infantry 	= 8
-	industry 	= 8
-	aircraft 	= 5
+	infantry 	= 10
+	industry 	= 10
+	aircraft 	= 4
 	naval 		= 6
 	land_doctrines 	= 2
-	secret_weapons 	= 0
-	air_doctrines 	= 3
+	secret_weapons 	= 1
+	air_doctrines 	= 1
 	naval_doctrines = 4
-}  
+}
+
+
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
-	home_multiplier 	= 1.5
+	home_multiplier 	= 0.5
 	overseas_multiplier 	= 1.0
-	home_peace_cap 		= 20
+	home_peace_cap 		= 11
 	war_zone_odds 		= 2.0
-	key_point_prio_mult	= 0.0
-	revolt_risk_mult	= 0.3
+	key_point_prio_mult	= 0
+	revolt_risk_mult	= 0
 
 	# PRIORITIES:
 	beach			= 20	# Beach level 2
 	capital			= 40	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
-	
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 75	# The next country targeted for attack by this AI
+
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
 	unstable_border		= 0	# Bordering countries at war with someone else get this
 
 	# Borders with specific countries
 	country_priorities = {
-		CHI = 50
-		CSX = 50
-		SIK = 50
-		CXB = 50
-		CYN = 50
-		CGX = 50
-		CHC = 50
+		CHI = 75
+		CSX = 75
+		SIK = 75
+		CXB = 75
+		CYN = 75
+		CGX = 75
+		CHC = 75
 		VIC = -1
 		MAN = -1
 		MON = -1
 		SIA = -1
-		SOV = 25
+		SOV = 15
 		POR = -1
 		ENG = 50
 		FRA = 50
@@ -608,44 +327,29 @@
 		AST = 10
 		NZL = 10
 	}
-	province_priorities = {
-		1337 = 35 # Saigon
-		1322 = 35 # Kaohsung
-		1613 = 35 # Truk
-		1601 = 35 # Eniwetok
-		1608 = 35 # Kwajelin
-		1670 = 35 # Rabaul
-	}
-	area_multiplier = {
-		1785 = 1.5 # Marcus Island
-		1625 = 1.5 # Rota
-		1192 = 1.5 # Anami
-		1194 = 1.5 # Jeju
-		1784 = 1.5 # Bonin Island
-		1176 = 0.1 # Etorufu
-	}
+
 }
-front = { 
-	recklessness 		= 0 # 0-3
+front = {
+	recklessness 		= 3 # 0-3
 	distrib_vs_ai 		= even
 	distrib_vs_human 	= even
 
 	enemy_reinf_days	= 6
 	reserve_prop		= 0.1
-	panic_ratio_vs_ai	= 2.5
-	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	panic_ratio_vs_ai	= 2.0
+	panic_ratio_vs_human	= 2.0
+	base_attack_odds	= 1.7
+	min_attack_odds		= 1.3
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
 	withdraw_odds		= 0.6
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
+	dig_in 		= 1.25 # Against defender
 
 	frozen_attack 	= 1.0
 	snow_attack 	= 1.0
@@ -653,8 +357,8 @@
 	storm_attack 	= 1.0
 	muddy_attack 	= 1.0
 
-	
-	
+	largefort 	= 1.0
+	smallfort 	= 1.0
 	occupied 	= 0.7
 	owned 		= 0.7
 
@@ -667,422 +371,81 @@
 	river 		= 1.0
 
       	enemy_handicap = {
-		CHI = 300
-		CSX = 300
-		CHC = 300
-		CYN = 300
-		SIK = 300
-		CGX = 300
-		CXB = 300
-		SOV = 20
-		MON = 20
 	}
       	passivity = {
-		CHI = 93
-		CSX = 93
-		CHC = 100
-		CYN = 93
-		SIK = 93
-		CGX = 93
+		CYN = 100
+		SIK = 100
 		CXB = 100
-		SOV = 70
-		MON = 70
-	} 
-} 
+	}
+}
 ###################################
 # Air bombardment and defense
 ###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
-invasion = { 
- 	base				= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random				= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal				= 0.1	#increase to avoid coastal forts more.
-	beach				= 0.1	#higher, avoid worst beaches.
-	distance			= 0.1	#higher = avoid long distance.
-	max_distance   		= 250.0  #About the distance from Japan to Batavia
-	max_staging_distance = 15	# How far should the staging area be from the target invasion point
-	pocket				= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island				= 0.1	#prioritise taking pure islands.
-	enemy				= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy	 	= 2.0	#higher = much more vary of troops nearby
-	air_base			= 1.5 
-    naval_base		 	= 0.1 
-    air_support 		= 3.0 
-    redirect 			= priority
-	ignore				= no
-	help_allies 		= no 	#[yes/no]
-      
+invasion = {
+ 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 8.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.1	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 0.1	#higher = avoid long distance.
+	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 0.1	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 1.0	#higher = much more vary of troops nearby
+	air_base	= 1.5
+      	naval_base 	= 0.1
+      	air_support 	= 3.0
+      	redirect 	= priority
+	ignore		= no
+	help_allies 	= no 	#[yes/no]
+
 	staging_province = {
-		1337 # Saigon
-		1322 # Kaohsung
-		1613 # Truk
-		1187 # Osaka
-		1670 # Rabaul
+
+#		1322 # Kaohsung
+#		1613 # Truk
 	}
-	target = {
-		# Japanese Heartland
-		1192 = 4000 # Amami
-		1193 = 4000 # Okinawa
-		1323 = 4000 # Taibei
-		1322 = 4000 # Gaoxiong
-		1784 = 4000 # Bonin Islands
-		1599 = 4000 # Iwo Jima
-		1177 = 4000 # Etorufu
-		1176 = 4000 # Toyohara
-		1175 = 4000 # Ocha  (Soviet Controlled)
-
-		#Philippines
-		1741 = 3750 # Aparri
-		1740 = 3750 # Lingayen Gulf
-		1742 = 3750 # Lamon Bay
-		1743 = 3750 # Legaspi
-		1750 = 3750 # Davao
-		1749 = 3750 # Cagayan
-		1748 = 3750 # Zamboangs
-		1744 = 3500 # Samar
-		1745 = 3500 # Leyte
-		1747 = 3500 # Negros
-		1746 = 3500 # Panay
-		1736 = 3500 # Mindoro
-		1735 = 3500 # Palawan
-
-		#Outer Japanese Islands
-		1627 = 3250 # Saipan
-		1626 = 3250 # Tinian
-		1625 = 3250 # Rota
-		1624 = 3250 # Guam
-		1621 = 3250 # Palau
-		1785 = 3250 # Marcus Island
-
-		#Netherlands East Indies
-		1354 = 3250 # Bagka Island
-		1628 = 3000 # Batavia
-		1630 = 3000 # Semarang
-		1629 = 3000 # Tjilatjap
-		1632 = 3000 # Soerabaja
-		1634 = 3000 # Madura
-		1631 = 3000 # Djokjakarta
-		1633 = 3000 # Malang
-		1358 = 2750 # Palembang
-		1359 = 2750 # Oosthaven
-		1356 = 2750 # Dumai
-		1357 = 2750 # Padang
-		1355 = 2750 # Medan
-
-		#Borneo
-		1646 = 2500 # Mini
-		1644 = 2500 # Kuching
-		1642 = 2500 # Pontianak
-		1641 = 2500 # Bandjermasin
-		1650 = 2500 # Balikpapan
-		1649 = 2500 # Samarinda
-		1648 = 2500 # Tarakan
-		1647 = 2500 # Jessleton
-
-		#Singapore
-		1350 = 2500 # Kota Bahru
-		1351 = 2500 # Kuantan
-		1349 = 2500 # Alor Star
-		1352 = 2500 # Kualla Lumpur
-		1353 = 2500 # Singapore
-
-		#China
-		1204 = 2500 # Tianjin
-		1214 = 2500 # Yantai
-		1215 = 2500 # Qingdao
-		1237 = 2500 # Shanghai
-		1321 = 2500 # Hainan
-		1217 = 2500 # Nanton
-		1219 = 2500 # Lianyuang
-		1244 = 2400 # Fuzhou
-		1247 = 2400 # Xizmen
-		1248 = 2250 # Shantou
-
-		#USA
-		1786 = 2250 # Wake Island
-
-		#Britain
-		1315 = 2250 # Hong Kong
-
-		#Far Outer Rim Japanese Islands
-		1601 = 2250 # Eniwetok
-		1600 = 2250 # Bikini
-		1602 = 2250 # Wotje
-		1608 = 2250 # Kwajalein
-		1603 = 2250 # Maloelap
-		1605 = 2250 # Majuro
-		1607 = 2250 # Jaluit
-		1606 = 2250 # Mili
-		1610 = 2250 # Ponape
-		1609 = 2250 # Kosrae
-		1620 = 2250 # Ngulu
-		1619 = 2250 # Yap
-		1618 = 2250 # Ulithi
-		1604 = 2250 # Wolelai
-		1615 = 2250 # Ulul
-		1617 = 2250 # Woleai
-		1616 = 2250 # Pulusok
-		1613 = 2250 # Truk
-		1612 = 2250 # Satawan
-
-		#Indonesia
-		1653 = 2000 # Menado
-		1651 = 2000 # Palu
-		1640 = 2000 # Makassar
-		1652 = 2000 # Kendari
-
-		#New Britain
-		1670 = 2000 # Rabaul
-		1671 = 2000 # Gasmata
-
-		#Indonesia
-		1654 = 1750 # Helmahera
-		1655 = 1750 # Buru
-		1656 = 1750 # Ceram
-
-		#North New Guinea
-		1659 = 1750 # Sorong
-		1661 = 1750 # Biak Island
-		1660 = 1750 # Babo
-		1663 = 1750 # Arare
-		1664 = 1750 # Sarmi
-		1665 = 1750 # Hollandia
-		1666 = 1750 # Aitape
-		1667 = 1750 # Wewak
-		1672 = 1750 # Lae
-
-		#North Solomon Islands
-		1668 = 1750 # Admirality Islands
-		1669 = 1750 # New Ireland
-		1681 = 1750 # Buka Island
-		1682 = 1750 # Bougainville
-
-		# NEI Last Remaining Islands
-		1635 = 1500 # Bali
-		1636 = 1500 # Lombok
-		1637 = 1500 # Sumbawa
-		1639 = 1500 # Flores
-		1638 = 1500 # Sumba
-		1657 = 1500 # West Timor
-
-		# USA Alaska
-		1408 = 1500 # Attu Island
-		543  = 1500 # Amchika Island
-		542  = 1500 # Kiska Island
-
-		# South Solomon Islands
-		1683 = 1250 # Shortland Island
-		1614 = 1250 # Vella Lavella
-		1622 = 1250 # Kolombangara
-		1684 = 1250 # New Georgia
-		1685 = 1250 # Guadalcanal
-	} 
-} 
-admiral = { 
+
+}
+admiral = {
 	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
 	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
 	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-	min_core_attack_fleets  = 1		# Minimum amount of attack fleets to defend CORE provinces (default 0)
-	num_attack_fleets		= 3 	# ENG/USA default 3, JAP default 2 everyone else is 1
 
-	ignore = {
-		#Baltic Area
-		"Northern Baltic"
-		"Southern Baltic" 
-		"Bothnian Bay"
-		
-		#Murmansk/Archangel
-		"Barents Sea"
-		"Arctic Ocean"
-		
-		#Norway Coast (Denmark Coast)
-		"Norwegian Sea"
-		"East North Sea"
-		"Kattegat"
-		
-		#North Sea, East Coast of England
-		"Central Northsea"
-		"West Northsea"
-		"Southeast Northsea"
-		
-		#England/France border Sea Areas
-		"English Channel"
-		"Bay of Biscay"
-		"Cape Finisterre"
-		
-		#Spanish Coast (Atlantic Side)
-		"Portugese Coast"
-		"Cap St Vincent"
-		
-		#Iceland
-		"Faroes Gap"
-		"Denmark Strait"
-		
-		#Ireland/West Coast of England
-		"Irish Sea"
-		"The Hebreides"
-		"Irish West Coast"
-		
-		#Greenland
-		"Greenland Coast"
-		"Northern Sea of Labrador" 
-		"Southern Sea of Labrador"
-		
-		#Canada East Coast
-		"Hudson Bay"
-		"Grand Banks"
-		"Canadian Maritimes"
-		
-		#Western Mediterranean
-		"Costa del Sol"
-		"Gulf of Lyon"
-		"Algerian Coast"
-		
-		#Central Mediterranean
-		"Tyrrhenian Sea"
-		"Adriatic Sea"
-		
-		#Eastern Mediterranean
-		"Black Sea"
-		"Aegean Sea"
-		"Egyptian Coast"
-		
-		
-		#North Atlantic
-		"North Atlantic"
-		"Western Approaches"
-		"The Seamounts"
-		"Azores"
-		
-		#Central Atlantic
-		"Central Atlantic"
-		"Central Mid-Atlantic Ridge"
-		"Bermuda Triangle"
-		"Guiana Basin"
-		"South-Central Mid-Atlantic Ridge"
-		"Cap Verde"
-		
-		#South Atlantic
-		"Pernambuco Plain"
-		"Ascension Fracture Zone"
-		"Argentine Plain"
-		"Angola Plain"
-		
-		#Caribbean Sea and Guilf of Mexico
-		"West Gulf of Mexico"
-		"East Gulf of Mexico" 
-		"Florida Strait"
-		"Yucatan Strait"
-		"Windward Islands"
-		"Central Carribean"
-		
-		#Brazil and Argentina Coast
-		"Coast of Guyana"
-		"Coast of Recife" 
-		"Coast of Uruguay"
-		"Coast of Brazil"
-		"Coast of Argentina"
-		
-		# West Africa
-		"Coast of Africa"
-		"Coast of Bissao" 
-		
-		#Equitorial Africa
-		"Gulf of Guinea"
-		"Coast of Angola-Namibia"
-		
-		#South Africa
-		"Coast of South Africa"
-		"Atlantic-Indian Ridge"
-		
-		#East Africa
-		"Red Sea"
-		"Horn of Africa"
-		
-		#Madagascar Coast
-		"South Mozambique Channel"
-		"North Mozambique Channel" 
-		"Northeast Coast of Madagascar"
-		"Southeast Coast of Madagascar" 
-		
-		# South American West Coast
-		"Southeast Pacific Basin"
-		"West Coast of Chile"
-		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
+	target = {
+		2203 = 100
+		2254 = 100
+		2256 = 100
+		2253 = 100
+		2251 = 100
+		2252 = 100
+		2267 = 100
+ }
+	core = {
+
 	}
-	#Which provinces to use as bases..
-	base = {
-		1187	# Osaka
-		1322	# Kaoshiung
-		1613	# Truk
-		1670	# Rabaul
-		1337	# Saigon
-		1353	# Singapore
-		1628	# Batavia
-		1737	# Manila
-		1624	# Guam
+	base = {  1187}
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = JAP
 	}
-	target = { } 
-	core = {
-		2589
-		2193
-		2187
-		2192
-		2194
-		2213
-		2185
-	} 
-}
\ No newline at end of file
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/man_1936.ai Doomsday Data Files/ai/man_1936.ai
--- Doomsday Data Files.old/ai/man_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/man_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,18 +1,22 @@
-# Manchuria 1936 AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 2.0
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
-neutrality = 110
-war = 1
-upgrading = 0.35
-reinforcement = 0.2
-strat_redeploy_threshold = 25
-exp_force_ratio = 0.15
-exp_force_ratios = { } 
-no_exp_forces_to = { GER ROM HUN SLO BUL ITA VIC YUG FIN CRO }
-use_offensive_supply = no
+neutrality = 50.000
+war = 10
+strat_redeploy_threshold = 21
+reinforcement = 0.01
+upgrading = 0.1
+exp_force_ratio = 0.7
+
+exp_force_ratios = {
+JAP = 1.0
+}
+
 
 ###################################
 # Diplomacy
@@ -27,10 +31,8 @@
 protect = {
 	JAP = 150
 }
-target = { } 
+target = { }
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -42,7 +44,7 @@
 		JAP = 150
 	}
 	embargo = {
-		CHI CSX SIK CXB CYN CGX CHC 
+		CHI CSX SIK CXB CYN CGX CHC
 	}
 }
 tech_sharing = {
@@ -53,318 +55,210 @@
 		USA ENG FRA AST CAN NZL CHI CSX SIK CXB CYN CGX CHC
 	}
 	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 3
-		counter_espionage =  10
-		country = MAN
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
+	prioritized = {	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
 #Default values
-construction = { 
-	max_factor = 0.050 
+construction = {
+	max_factor = 0.000
+
 
 	AA_batteries = atwar
-	max_AA_level = 4
-	AA_provs = { 
+	max_AA_level = 6
+	AA_provs = {
 		1390 # Xinjing
 		1389 # Mukden
 	}
 
 	coastal_fort = no
 	max_coastal_level = 3
-	coastal_fort_provs = { } 
+	coastal_fort_provs = { }
 
-	radar_station = no 
-	max_radar = 5 
-	radar_provs = { } 
+	radar_station = no
+	max_radar = 5
+	radar_provs = { }
 
-	air_base = atwar
-	max_air_base = 4
+	air_base =no
+	max_air_base = 10
 	air_base_provs = {
-		1379 # Harbrin
-	} 
+
+	}
 
 	naval_base = no
-	max_naval_base = 5 
-	naval_base_provs = { } 
+	max_naval_base = 5
+	naval_base_provs = { }
 
 	land_fort = no
 	max_land_level = 2
-	fort_borders = { } 
+	fort_borders = { }
 
-	ic_at_war = yes 
-	force_ic_until = 1935
+	ic_at_war = yes
+	force_ic_until = 1940
 	ic_end_year = 1942
 	IC_provs = {
 		1390 # Xinjing
 		1389 # Mukden
 		1379 # Harbrin
-	} 
+	}
 }
 
-military = { 
-	relative_build_scheme 	= yes 
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
+military = {
+	relative_build_scheme 	= no
+	max_batch_peace 	= 360
+	max_batch_war 		= 180
 	max_batch_home_front 	= 180
 
 	#### Divisions etc...
-	infantry 		= 55
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
+	infantry 	= 40
+	cavalry 	= 20
+	motorized 	= 5
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 0
+	armor 		= 0
 	paratrooper 	= 0
-	marine 			= 0
-	bergsjaeger 	= 30
-	garrison		= 0
-    hq 				= 5
-	militia 		= 0
-#				81 %
+	marine 		= 0
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 5
+	militia 	= 20
+#				90 %
 	interceptor 	= 5
-	multi_role 		= 0
-	cas 			= 5
+	multi_role 	= 0
+	escort 		= 0
+	cas 		= 0
 	strategic_bomber = 0
-	tactical_bomber = 0
+	tactical_bomber = 5
 	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
 #				10 %
-	battleship 		= 0
-	carrier 		= 0
-	escort_carrier	= 0
-	destroyer 		= 0
+	battleship 	= 0
+	carrier 	= 0
+	destroyer 	= 0
 	light_cruiser 	= 0
 	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 0
+	submarine 	= 0
+	transports 	= 0
 #				0 %
 
 	#### Brigades
-	artillery 			= 35
+	artillery 		= 30
 	sp_artillery 		= 0
 	rocket_artillery	= 0
 	sp_rct_artillery 	= 0
-	anti_tank 			= 15
+	anti_tank 		= 0
 	tank_destroyer 		= 0
-	light_armor_brigade = 0
+	light_armor_brigade 	= 0
 	heavy_armor 		= 0
 	super_heavy_armor 	= 0
-	armored_car 		= 0
-	anti_air 			= 0
-	police 				= 0
-	engineer 			= 0
+	armored_car 		= 10
+	anti_air 		= 0
+	police 			= 10
+	engineer 		= 10 
 
-	cag = 100.000 
+	cag = 100.000
 }
 
-technology = { 
-	endgoal 	= { } 
+technology = {
+	endgoal 	= { }
 	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# CAS
-		4170 4280 4180
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Land Doctrines
-		6010 6030
-	} 
+			#Inftechs
+			1190 1200 1210 1220 1230 1240 # cav and motorized
+			1020 1030 1040 1050 # Inf
+
+			#industry
+			1310 1320 1330 1340 1350 1360 # supply
+			5020 5030 5040 # Arcriculture
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 5150 5180 10120 # Produktion
+
+			# ari and tank
+			2290 2300 2310 2320 2330  # Ari
+
+			# armored car
+			2150 2160
+			
+			 }
 	ignore 		= {
-		# Assembly Line
-		5150 5160 5170
-
-		# Arcriculture
-		5010 5020 5030 5040
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Cavalry
-		1190 1200 1210 1220
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Rocketry
-		5550 5560 5570 5580 5590
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Bas Decimetric
-		5410 5420 5430 5440 5450 5460
-
-		# Multirole Fighters
-		4040 4070 4100
-		
-		# Tactical Bombers
-		4140 4150 4160
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Strategic Bomber
-		4220 4230 4240
+		# Industry	
+		5140 5160 5170 #some assemblylines
+		5410 5420 5430 5440 5450 5460 # Bas Decimetric radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Atomic Research
+		5550 5560 5570 5580 5590 # rocket Test and Research
+
+		# Inf
+		1070 1080 1090 1100 # Airborne
+		1260 1270 1280 1290 # mech
+
+		#Planes
+		4250 4260 4270 # Air Transports
+		4040 4070 4100 # Not necessary fighters
+		4170 4280 4180 # Close Air Support 
+		4220 4230 4240 # Strategic bombers
+		#Marine 
+		3210 3220 3230 3240 # Battlecruiser
+		3290 3300 # BB
+		3160 3170 3180 # heavy cruiser
+		3070 3190 3130 3320 3010 3400 3250 12100  # extra
+
+		# tanks and Ari
+		2370 2380 2390  # rocket ari
+		2260 2270 2280  # sp rocket
+		2100 2110 2120 2130 # Heavy Tanks
+		2400 2410 2420 2430 2440  # at
+		2170 2180 2190 2200 2210 # Tank destroyers
+		2470 2480 2490 2500 # static aa
+
+		# land doc 
+		6150 6170 6200 6180 
+		#sea docs
+		8060 8090 8100 8110 8180 8230 8160 8170 8130 8250 8140
+
+		# Air Docs
+		9040 9050 9060 9070 9080 9270 9280 9290 9300 # cas 
+		9140 9150 9160 9170 9180 9430 9440 9450 9460 # strat
+		9230 9240 9250 9260 9390 9400 9410 9420 # fighter alternative  
 
-		# Air Transports
-		4250 4260 4270
 
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Medium tanks
-		2010 2070 2080 2090
-
-		# Heavy Tanks and Semi-Modern Tank
-		2100 2110 2120 2140
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-		
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-		
-		# Anti Air Brigade
-		2510 2520 2530 2540
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Land Doctrines
-		6020 6210
- 
-		# Armoured Cars
-		2150 2160
-
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
 	}
- 
-	armor 			= 3
-	infantry 		= 4
-	industry 		= 3
-	aircraft 		= 1
-	naval 			= 0
-	land_doctrines 	= 4
+
+	armor 		= 2
+	infantry 	= 4
+	industry 	= 4
+	aircraft 	= 1
+	naval 		= 0
+	land_doctrines 	= 1
 	secret_weapons 	= 0
 	air_doctrines 	= 1
 	naval_doctrines = 0
-}  
+}
 
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 0.5
 	overseas_multiplier 	= 0.5
-	home_peace_cap 		= 10
+	home_peace_cap 		= 11
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 0
 	revolt_risk_mult	= 1.0
@@ -372,9 +266,9 @@
 	# PRIORITIES:
 	beach			= 20	# Beach level 2
 	capital			= 40	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
-	
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
 	unstable_border		= 0	# Bordering countries at war with someone else get this
@@ -392,7 +286,7 @@
 		JAP = -1
 		MON = 5
 		SIA = -1
-		SOV = 50
+		SOV = 100
 		POR = -1
 		ENG = 50
 		FRA = 50
@@ -404,7 +298,7 @@
 	province_priorities = {	}
 	area_multiplier = { }
 }
-front = { 
+front = {
 	recklessness 		= 0 # 0-3
 	distrib_vs_ai 		= op_defensive
 	distrib_vs_human 	= op_defensive
@@ -413,18 +307,18 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
 	withdraw_odds		= 0.6
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
+	dig_in 		= 1.25 # Against defender
 
 	frozen_attack 	= 1.0
 	snow_attack 	= 1.0
@@ -432,8 +326,8 @@
 	storm_attack 	= 1.0
 	muddy_attack 	= 1.0
 
-	
-	
+	largefort 	= 1.0
+	smallfort 	= 1.0
 	occupied 	= 0.7
 	owned 		= 0.7
 
@@ -445,318 +339,38 @@
 	urban_attack 	= 1.0
 	river 		= 1.0
 
-      	enemy_handicap = { } 
-      	passivity = { } 
-} 
+      	enemy_handicap = { }
+      	passivity = {
+		CYN = 100
+		SIK = 100
+		CXB = 100
+	}
+}
+
+
 ###################################
-# Air bombardment and defense
+# Invasions and Naval
 ###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
-
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
+invasion = {
+ invasion = no
 }
+
 ###################################
-# Invasions and Naval
+# Intelligence
 ###################################
-invasion = { 
- 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal		= 0.1	#increase to avoid coastal forts more.
-	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 0.1	#higher = avoid long distance.
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island		= 0.1	#prioritise taking pure islands.
-	enemy		= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
-	air_base	= 1.5 
-      	naval_base 	= 0.1 
-      	air_support 	= 3.0 
-      	redirect 	= priority
-	ignore		= no
-      
-	target = { } 
-} 
-admiral = { 
-	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
-	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
-	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
-	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-
-	ignore = {
-		#Baltic Area
-		"Northern Baltic"
-		"Southern Baltic" 
-		"Bothnian Bay"
-		
-		#Murmansk/Archangel
-		"Barents Sea"
-		"Arctic Ocean"
-		
-		#Norway Coast (Denmark Coast)
-		"Norwegian Sea"
-		"East North Sea"
-		"Kattegat"
-		
-		#North Sea, East Coast of England
-		"Central Northsea"
-		"West Northsea"
-		"Southeast Northsea"
-		
-		#England/France border Sea Areas
-		"English Channel"
-		"Bay of Biscay"
-		"Cape Finisterre"
-		
-		#Spanish Coast (Atlantic Side)
-		"Portugese Coast"
-		"Cap St Vincent"
-		
-		#Iceland
-		"Faroes Gap"
-		"Denmark Strait"
-		
-		#Ireland/West Coast of England
-		"Irish Sea"
-		"The Hebreides"
-		"Irish West Coast"
-		
-		#Greenland
-		"Greenland Coast"
-		"Northern Sea of Labrador" 
-		"Southern Sea of Labrador"
-		
-		#Canada East Coast
-		"Hudson Bay"
-		"Grand Banks"
-		"Canadian Maritimes"
-		
-		#Western Mediterranean
-		"Costa del Sol"
-		"Gulf of Lyon"
-		"Algerian Coast"
-		
-		#Central Mediterranean
-		"Tyrrhenian Sea"
-		"Adriatic Sea"
-		
-		#Eastern Mediterranean
-		"Black Sea"
-		"Aegean Sea"
-		"Egyptian Coast"
-		
-		#North Atlantic
-		"North Atlantic"
-		"Western Approaches"
-		"The Seamounts"
-		"Azores"
-		
-		#Central Atlantic
-		"Central Atlantic"
-		"Central Mid-Atlantic Ridge"
-		"Bermuda Triangle"
-		"Guiana Basin"
-		"South-Central Mid-Atlantic Ridge"
-		"Cap Verde"
-		
-		#South Atlantic
-		"Pernambuco Plain"
-		"Ascension Fracture Zone"
-		"Argentine Plain"
-		"Angola Plain"
-		
-		#Caribbean Sea and Guilf of Mexico
-		"West Gulf of Mexico"
-		"East Gulf of Mexico" 
-		"Florida Strait"
-		"Yucatan Strait"
-		"Windward Islands"
-		"Central Carribean"
-		
-		#Brazil and Argentina Coast
-		"Coast of Guyana"
-		"Coast of Recife" 
-		"Coast of Uruguay"
-		"Coast of Brazil"
-		"Coast of Argentina"
-		
-		# West Africa
-		"Coast of Africa"
-		"Coast of Bissao" 
-		
-		#Equitorial Africa
-		"Gulf of Guinea"
-		"Coast of Angola-Namibia"
-		
-		#South Africa
-		"Coast of South Africa"
-		"Atlantic-Indian Ridge"
-		
-		#East Africa
-		"Red Sea"
-		"Horn of Africa"
-		
-		#Madagascar Coast
-		"South Mozambique Channel"
-		"North Mozambique Channel" 
-		"Northeast Coast of Madagascar"
-		"Southeast Coast of Madagascar" 
-		
-		#North Indian Ocean (Persian Gulf)
-		"Persian Gulf"
-		"North Arabian Sea"
-		"South Arabian Sea" 
-		"Coast of Ceylon"
-		
-		#Central/South Indian Ocean
-		"Mascarene Plateau"
-		"Mid-Indian Ridge" 
-		"Ninetyeast Ridge" 
-		"Southeast Indian Ocean"
-		"Southwest Indian Ocean" 
-		
-		#Bay of Bengal & West Indonesia
-		"East Bay of Bengal"
-		"West Bay of Bengal"
-		"Malacca Strait"
-		"Java Ridge"
-		"Java Trench"
-		
-		#Indo-China, Borneo, Phillipenes
-		"Gulf of Siam"
-		"Coast of Indochina"
-		"Spratly Sea"
-		"Coast of Brunei"
-		"Flores Sea"
-		"Sulu Sea"
-		"Celebes Sea"
-		"Luzon Strait"
-		
-		#China Coast
-		"Taiwan Strait"
-		
-		#Japanese Coast
-		"Sea of Japan"
-		"Ryukyus"
-		"Coast of Japan"
-		"South Sea of Okhotsk"
-		"West Sea of Okhotsk" 
-		"East Sea of Okhotsk" 
-		
-		#Mariana Basin, Phillipenes
-		"Philipine Trench"
-		"Central Philippine Sea"
-		"Mariana Trench"
-		"East Mariana Basin"
-		"Mid-Pacific Mountains"
-		"North Bismarck Sea"
-		
-		#New Guinea, East/North Australia and New Zealan
-		"Coast of New Guinea"
-		"Molucca Sea"
-		"Banda Sea"
-		"Arafura Sea"
-		"South Bismarck Sea"
-		"Solomon Sea"
-		"West Coral Sea"
-		"East Coral Sea" 
-		"North Tasman Sea"
-		"South Tasman Sea" 
-		"East Cost of New Zealand"
-		
-		# South and West Australia
-		"Timor Sea"
-		"West Coast of Australia"
-		"East Great Australian Bight"
-		"West Great Australian Bight" 
-		
-		#North Pacific
-		"Coast of Kamchatka"
-		"East Bering Sea"
-		"West Bering Sea" 
-		"Aleutians"
-		"Northwest Pacific Basin"
-		"North Northeast Pacific Basin"
-		
-		#Central Pacific
-		"Hawaiian Rise"
-		"North East Pacific Ocean"
-		"Marshalls Sea"
-		"South East Pacific Ocean"
-		"Marianas"
-		"Western Solomons"
-		"Eastern Solomons"
-		"US Maritimes"
-		"Carolines"
-		
-		#South Pacific
-		"Gilberts"
-		"Line Islands"
-		"Fiji Basin"
-		"Southwest Pacific Basin"
-		
-		# South American West Coast
-		"Southeast Pacific Basin"
-		"West Coast of Chile"
-		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
-		
-		# USA West Coast
-		"Gulf of Alaska"
-		"West Coast of the United States"
-		
-		#West Coast of Mexico
-		"West Coast of Mexico"
-		"West Coast of Central America"
-	}
-	target = {
-		2189 = 200
-	} 
-	core = {
-		2190
-	} 
-}
\ No newline at end of file
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = MAN
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/men_1936.ai Doomsday Data Files/ai/men_1936.ai
--- Doomsday Data Files.old/ai/men_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/men_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,18 +1,22 @@
-# Menguko 1936 AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 2.0
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
-neutrality = 110
-war = 1
-upgrading = 0.35
-reinforcement = 0.2
-strat_redeploy_threshold = 25
-exp_force_ratio = 0.8
-exp_force_ratios = { } 
-no_exp_forces_to = { GER ROM HUN SLO BUL ITA VIC YUG FIN CRO }
-use_offensive_supply = no
+neutrality = 50.000
+war = 10
+strat_redeploy_threshold = 21
+reinforcement = 0.01
+upgrading = 0.1
+exp_force_ratio = 0.7
+
+exp_force_ratios = {
+JAP = 1.0
+}
+
 
 ###################################
 # Diplomacy
@@ -27,10 +31,8 @@
 protect = {
 	JAP = 150
 }
-target = { } 
+target = { }
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -42,7 +44,7 @@
 		JAP = 150
 	}
 	embargo = {
-		CHI CSX SIK CXB CYN CGX CHC 
+		CHI CSX SIK CXB CYN CGX CHC
 	}
 }
 tech_sharing = {
@@ -53,127 +55,80 @@
 		USA ENG FRA AST CAN NZL CHI CSX SIK CXB CYN CGX CHC
 	}
 	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 3
-		counter_espionage =  10
-		country = MEN
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
+	prioritized = {	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
 #Default values
-construction = { 
-	max_factor = 0.00 
+construction = {
+	max_factor = 0.000
+
 
-	AA_batteries = no
-	max_AA_level = 4
-	AA_provs = { }
+	AA_batteries = atwar
+	max_AA_level = 6
+	AA_provs = {
+		1390 # Xinjing
+		1389 # Mukden
+	}
 
 	coastal_fort = no
 	max_coastal_level = 3
-	coastal_fort_provs = { } 
+	coastal_fort_provs = { }
 
-	radar_station = no 
-	max_radar = 5 
-	radar_provs = { } 
-
-	air_base = no
-	max_air_base = 4
-	air_base_provs = { } 
+	radar_station = no
+	max_radar = 5
+	radar_provs = { }
+
+	air_base =no
+	max_air_base = 10
+	air_base_provs = {
+
+	}
 
 	naval_base = no
-	max_naval_base = 5 
-	naval_base_provs = { } 
+	max_naval_base = 5
+	naval_base_provs = { }
 
 	land_fort = no
 	max_land_level = 2
-	fort_borders = { } 
+	fort_borders = { }
 
-	ic_at_war = no
-	force_ic_until = 1935
-	ic_end_year = 1935
-	IC_provs = { } 
+	ic_at_war = yes
+	force_ic_until = 1940
+	ic_end_year = 1942
+	IC_provs = {
+		1390 # Xinjing
+		1389 # Mukden
+		1379 # Harbrin
+	}
 }
 
-military = { 
-	relative_build_scheme 	= yes 
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
+military = {
+	relative_build_scheme 	= no
+	max_batch_peace 	= 360
+	max_batch_war 		= 180
 	max_batch_home_front 	= 180
 
 	#### Divisions etc...
-	infantry 		= 65
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
+	infantry 	= 50
+	cavalry 	= 40
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 0
+	armor 		= 0
 	paratrooper 	= 0
-	marine 			= 0
-	bergsjaeger 	= 35
-	garrison		= 0
-    hq 				= 0
-	militia 		= 0
-#				81 %
+	marine 		= 0
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 5
+	militia 	= 5
+#				100 %
 	interceptor 	= 0
-	multi_role 		= 0
-	cas 			= 0
+	multi_role 	= 0
+	escort 		= 0
+	cas 		= 0
 	strategic_bomber = 0
 	tactical_bomber = 0
 	naval_bomber 	= 0
@@ -181,180 +136,129 @@
 	flying_bomb 	= 0
 	flying_rocket 	= 0
 #				0 %
-	battleship 		= 0
-	carrier 		= 0
-	escort_carrier	= 0
-	destroyer 		= 0
+	battleship 	= 0
+	carrier 	= 0
+	destroyer 	= 0
 	light_cruiser 	= 0
 	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 0
+	submarine 	= 0
+	transports 	= 0
 #				0 %
 
 	#### Brigades
-	artillery 			= 35
+	artillery 		= 30
 	sp_artillery 		= 0
 	rocket_artillery	= 0
 	sp_rct_artillery 	= 0
-	anti_tank 			= 15
+	anti_tank 		= 0
 	tank_destroyer 		= 0
-	light_armor_brigade = 0
+	light_armor_brigade 	= 0
 	heavy_armor 		= 0
 	super_heavy_armor 	= 0
 	armored_car 		= 0
-	anti_air 			= 0
-	police 				= 0
-	engineer 			= 0
+	anti_air 		= 0
+	police 			= 10
+	engineer 		= 10 
 
-	cag = 100.000 
+	cag = 100.000
 }
 
-technology = { 
-	endgoal 	= { } 
+technology = {
+	endgoal 	= { }
 	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Land Doctrines
-		6010 6030
-	} 
+			#Inftechs
+			1190 1200 1210 1220 1230 1240 # cav and motorized
+			1020 1030 1040 1050 # Inf
+
+			#industry
+			1310 1320 1330 1340 1350 1360 # supply
+			5020 5030 5040 # Arcriculture
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 5150 5180 10120 # Produktion
+
+			# ari and tank
+			2290 2300 2310 2320 2330  # Ari
+
+			# armored car
+			2150 2160
+			
+			 }
 	ignore 		= {
-		# Assembly Line
-		5150 5160 5170
-
-		# Arcriculture
-		5010 5020 5030 5040
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Cavalry
-		1190 1200 1210 1220
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Rocketry
-		5550 5560 5570 5580 5590
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Bas Decimetric
-		5410 5420 5430 5440 5450 5460
-
-		# CAS
-		4170 4280 4180
-
-		# Escort/Multirole Fighters
-		4040 4050 4070 4080 4100 4110
-		
-		# Tactical Bombers
-		4140 4150 4160
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Strategic Bomber
-		4220 4230 4240
+		# Industry	
+		5140 5160 5170 #some assemblylines
+		5410 5420 5430 5440 5450 5460 # Bas Decimetric radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Atomic Research
+		5550 5560 5570 5580 5590 # rocket Test and Research
+
+		# Inf
+		1070 1080 1090 1100 # Airborne
+		1260 1270 1280 1290 # mech
+
+		#Planes
+		4250 4260 4270 # Air Transports
+		4040 4070 4100 # Not necessary fighters
+		4170 4280 4180 # Close Air Support 
+		4220 4230 4240 # Strategic bombers
+		#Marine 
+		3210 3220 3230 3240 # Battlecruiser
+		3290 3300 # BB
+		3160 3170 3180 # heavy cruiser
+		3070 3190 3130 3320 3010 3400 3250 12100  # extra
+
+		# tanks and Ari
+		2370 2380 2390  # rocket ari
+		2260 2270 2280  # sp rocket
+		2100 2110 2120 2130 # Heavy Tanks
+		2400 2410 2420 2430 2440  # at
+		2170 2180 2190 2200 2210 # Tank destroyers
+		2470 2480 2490 2500 # static aa
+
+		# land doc 
+		6150 6170 6200 6180 
+		#sea docs
+		8060 8090 8100 8110 8180 8230 8160 8170 8130 8250 8140
+
+		# Air Docs
+		9040 9050 9060 9070 9080 9270 9280 9290 9300 # cas 
+		9140 9150 9160 9170 9180 9430 9440 9450 9460 # strat
+		9230 9240 9250 9260 9390 9400 9410 9420 # fighter alternative  
 
-		# Air Transports
-		4250 4260 4270
 
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Medium tanks
-		2010 2070 2080 2090
-
-		# Heavy Tanks and Semi-Modern Tank
-		2100 2110 2120 2140
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-		
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-		
-		# Anti Air Brigade
-		2510 2520 2530 2540
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Land Doctrines
-		6020 6210
- 
-		# Armoured Cars
-		2150 2160
-
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
 	}
- 
-	armor 			= 3
-	infantry 		= 4
-	industry 		= 3
-	aircraft 		= 0
-	naval 			= 0
-	land_doctrines 	= 4
+
+	armor 		= 2
+	infantry 	= 4
+	industry 	= 4
+	aircraft 	= 1
+	naval 		= 0
+	land_doctrines 	= 1
 	secret_weapons 	= 0
-	air_doctrines 	= 0
+	air_doctrines 	= 1
 	naval_doctrines = 0
-}  
+}
+
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 0.5
-	overseas_multiplier = 0.5
-	home_peace_cap 		= 10
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 11
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 0
 	revolt_risk_mult	= 1.0
@@ -362,9 +266,9 @@
 	# PRIORITIES:
 	beach			= 20	# Beach level 2
 	capital			= 40	# Our capital
-	human_border	= 0		# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
-	
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
 	unstable_border		= 0	# Bordering countries at war with someone else get this
@@ -382,7 +286,7 @@
 		JAP = -1
 		MON = 5
 		SIA = -1
-		SOV = 50
+		SOV = 100
 		POR = -1
 		ENG = 50
 		FRA = 50
@@ -394,36 +298,38 @@
 	province_priorities = {	}
 	area_multiplier = { }
 }
-front = { 
+front = {
 	recklessness 		= 0 # 0-3
-	distrib_vs_ai 		= defensive
-	distrib_vs_human 	= defensive
+	distrib_vs_ai 		= op_defensive
+	distrib_vs_human 	= op_defensive
 
 	enemy_reinf_days	= 6
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
-	panic_ratio_vs_human = 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
 	withdraw_odds		= 0.6
 
-	strength 		= 1.0
-	organisation 	= 1.0
+	strength 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 			= 1.0 # Against defender
+	dig_in 		= 1.25 # Against defender
 
 	frozen_attack 	= 1.0
 	snow_attack 	= 1.0
 	blizzard_attack = 1.0
 	storm_attack 	= 1.0
 	muddy_attack 	= 1.0
-	
-	occupied 		= 0.7
-	owned 			= 0.7
+
+	largefort 	= 1.0
+	smallfort 	= 1.0
+	occupied 	= 0.7
+	owned 		= 0.7
 
 	jungle_attack 	= 1.0
 	mountain_attack = 1.0
@@ -431,90 +337,40 @@
 	forest_attack 	= 1.0
 	hill_attack 	= 1.0
 	urban_attack 	= 1.0
-	river 			= 1.0
+	river 		= 1.0
+
+      	enemy_handicap = { }
+      	passivity = {
+		CYN = 100
+		SIK = 100
+		CXB = 100
+	}
+}
+
 
-    enemy_handicap = { } 
-    passivity = { } 
-} 
 ###################################
-# Air bombardment and defense
+# Invasions and Naval
 ###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
-
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
+invasion = {
+ invasion = no
 }
+
 ###################################
-# Invasions and Naval
+# Intelligence
 ###################################
-invasion = { 
- 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal		= 0.1	#increase to avoid coastal forts more.
-	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 0.1	#higher = avoid long distance.
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island		= 0.1	#prioritise taking pure islands.
-	enemy		= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
-	air_base	= 1.5 
-    naval_base 	= 0.1 
-    air_support 	= 3.0 
-    redirect 	= priority
-	ignore		= no
-      
-	target = { } 
-} 
-admiral = { 
-	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
-	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
-	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
-	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-
-	ignore = { }
-	target = {	} 
-	core = { } 
-}
\ No newline at end of file
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = MEN
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/mon_1936.ai Doomsday Data Files/ai/mon_1936.ai
--- Doomsday Data Files.old/ai/mon_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/mon_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,36 +1,24 @@
-# Mongolia 1936 AI File by Lothos
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 3.0
 max_garrison_prop = 0.30
-min_garrison_prop = 0.20
-neutrality = 100.000 
+min_garrison_prop = 0.10
+neutrality = 100.000
 war = 0
-upgrading = 0.35
-reinforcement = 0.2
-strat_redeploy_threshold = 25
-exp_force_ratio = 0.0
-exp_force_ratios = { } 
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.75
+exp_force_ratios = { SOV = 0.75 }
 no_exp_forces_to = { }
-use_offensive_supply = no
 
 ###################################
 # Diplomacy
 ###################################
-combat = { }
+claim_acceptance = -75
 
-claim_acceptance = -49
-
-befriend = {
-	SOV = 150
-}
-protect = {
-	SOV = 150
-}
-target = { } 
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -39,141 +27,77 @@
 	money 		= -1
 
 	favored = {
-		SOV = 150
+		SOV = 100
+		TAN = 100
 	}
-	embargo = { }
 }
+
 tech_sharing = {
 	favored = {
-		SOV = 150
-	}
-	embargo = { }
-	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 3
-		counter_espionage =  10
-		country = MON
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
+		SOV = 100
+		TAN = 100
 	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
-#Default values
-construction = { 
-	max_factor = 0.00 
+construction = {
+	max_factor = 0.500
 
-	AA_batteries = no
+	AA_batteries = atwar
 	max_AA_level = 3
-	AA_provs = { 
-		1404 # Ulan Bator
-	}
+	AA_provs = { }
 
 	coastal_fort = no
-	max_coastal_level = 3
-	coastal_fort_provs = { } 
+	max_coastal_level = 0
+	coastal_fort_provs = { }
 
-	radar_station = no 
-	max_radar = 5 
-	radar_provs = { } 
+	radar_station = no
+	max_radar = 0
+	radar_provs = { }
 
 	air_base = no
-	max_air_base = 2
-	air_base_provs = { } 
+	max_air_base = 0
+	air_base_provs = { }
 
 	naval_base = no
-	max_naval_base = 5 
-	naval_base_provs = { } 
+	max_naval_base = 0
+	naval_base_provs = { }
 
 	land_fort = no
-	max_land_level = 2
+	max_land_level = 0
 	fort_borders = { } 
 
-	ic_at_war = no 
-	force_ic_until = 1935
-	ic_end_year = 1935
-	IC_provs = {
-		1404 # Ulan Bator
-	} 
+	ic_at_war = no
+	force_ic_until = 1938
+	ic_end_year = 1938
+	IC_provs = { }
 }
 
 military = { 
-	relative_build_scheme 	= no
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
+	relative_build_scheme 	= yes 
+	max_batch_peace 	= 360 
+	max_batch_war 		= 180 
 	max_batch_home_front 	= 180
 
 	#### Divisions etc...
-	infantry 		= 100
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
+	infantry 	= 75
+	cavalry 	= 25
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 0
+	armor 		= 0
 	paratrooper 	= 0
-	marine 			= 0
+	marine 		= 0
 	bergsjaeger 	= 0
-	garrison		= 0
-    hq 				= 0
-	militia 		= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
 #				100 %
 	interceptor 	= 0
-	multi_role 		= 0
-	cas 			= 0
+	multi_role 	= 0
+	cas 		= 0
 	strategic_bomber = 0
 	tactical_bomber = 0
 	naval_bomber 	= 0
@@ -181,192 +105,82 @@
 	flying_bomb 	= 0
 	flying_rocket 	= 0
 #				0 %
-	battleship 		= 0
-	carrier 		= 0
+	battleship 	= 0
+	carrier 	= 0
 	escort_carrier	= 0
-	destroyer 		= 0
+	destroyer 	= 0
 	light_cruiser 	= 0
 	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 0
+	submarine 	= 0
+	transports 	= 0
 #				0 %
 
 	#### Brigades
-	artillery 			= 35
+	artillery 		= 60
 	sp_artillery 		= 0
-	rocket_artillery	= 0
+	rocket_artillery	= 0 
 	sp_rct_artillery 	= 0
-	anti_tank 			= 15
+	anti_tank 		= 0
 	tank_destroyer 		= 0
-	light_armor_brigade = 0
+	light_armor_brigade 	= 0
 	heavy_armor 		= 0
 	super_heavy_armor 	= 0
 	armored_car 		= 0
-	anti_air 			= 0
-	police 				= 0
-	engineer 			= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 40
 
 	cag = 100.000 
 }
 
 technology = { 
-	endgoal 	= { } 
-	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Land Doctrines
-		6210 6300
-	} 
-	ignore 		= {
-		# Assembly Line
-		5140 5150 5160 5170
-
-		# Arcriculture
-		5010 5020 5030 5040
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Cavalry
-		1190 1200 1210 1220
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Rocketry
-		5550 5560 5570 5580 5590
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Bas Decimetric
-		5410 5420 5430 5440 5450 5460
-
-		# CAS
-		4170 4280 4180
-
-		# Escort/Multirole Fighters
-		4040 4050 4070 4080 4100 4110
-		
-		# Tactical Bombers
-		4140 4150 4160
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Strategic Bomber
-		4220 4230 4240
-
-		# Air Transports
-		4250 4260 4270
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Medium tanks
-		2010 2070 2080 2090
-
-		# Heavy Tanks and Semi-Modern Tank
-		2100 2110 2120 2140
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-		
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-		
-		# Anti Air Brigade
-		2510 2520 2530 2540
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Land Doctrines
-		6010
-
-		# Armoured Cars
-		2150 2160
-
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
-
-		# Land Doctrines
-		14080 # Guerilla Warfare
-	}
+	endgoal 	= { 1020 1030 1040 1050 1060 1200 1210 1220 1310 2290 2300 2310 2320 2330 2340 2350 2360 5080 }
+	preference 	= { 1020 1030 1040 1050 1060 1200 1210 1220 1310 2290 2300 2310 2320 2330 2340 2350 2360 5080 }
+	ignore 		= { 1070 1110 1150 1340 1350 1360 2010 2160 2220 2370 2400 2510 5410 5470 5550 6010 6220 }
  
-	armor 			= 3
-	infantry 		= 4
-	industry 		= 3
-	aircraft 		= 0
-	naval 			= 0
-	land_doctrines 	= 4
+	armor 		= 7
+	infantry 	= 9
+	industry 	= 6
+	aircraft 	= 0
+	naval 		= 0
+	land_doctrines 	= 5
 	secret_weapons 	= 0
 	air_doctrines 	= 0
 	naval_doctrines = 0
-}
+}  
+
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
-	defend_overseas_beaches = yes
+	defend_overseas_beaches = no
 	home_multiplier 	= 0.5
 	overseas_multiplier 	= 0.5
-	home_peace_cap 		= 10
+	home_peace_cap 		= 101
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 0
 	revolt_risk_mult	= 1.0
 
 	# PRIORITIES:
-	beach			= 20	# Beach level 2
-	capital			= 40	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	beach			= 0	# Beach level 2
+	capital			= 50	# Our capital
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -374,25 +188,17 @@
 
 	# Borders with specific countries
 	country_priorities = {
-		TAN = -1
+		CGX = -1
+		CHC = -1
 		CHI = -1
 		CSX = -1
-		SIK = -1
 		CXB = -1
 		CYN = -1
-		CGX = -1
-		CHC = -1
-		VIC = -1
-		JAP = 50
-		SIA = 10
+		SIK = -1
+		TAN = -1
 		SOV = -1
-		POR = -1
-		ENG = 50
-		FRA = 50
-		USA = 50
-		AST = 10
-		NZL = 10
-		MAN = 10
+		JAP = 50
+		MAN = 50
 	}
 	province_priorities = {	}
 	area_multiplier = { }
@@ -406,117 +212,39 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
-	max_attack_odds		= 3.0
-	reinforce_odds		= 1.2
-	withdraw_odds		= 0.6
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
+	max_attack_odds		= 2.5
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.8
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
+	dig_in 		= 1.25 # Against defender
 
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
-
-	enemy_handicap = { } 
-	passivity = { } 
+      	enemy_handicap = { } 
+      	passivity = { } 
 } 
+
 ###################################
-# Air bombardment and defense
+# Intelligence
 ###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = MON
+	}
+}
 
 air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
+	min_mission_strength_org = 0.7
 }
-###################################
-# Invasions and Naval
-###################################
-invasion = { 
- 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal		= 0.1	#increase to avoid coastal forts more.
-	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 0.1	#higher = avoid long distance.
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island		= 0.1	#prioritise taking pure islands.
-	enemy		= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
-	air_base	= 1.5 
-      	naval_base 	= 0.1 
-      	air_support 	= 3.0 
-      	redirect 	= priority
-	ignore		= no
-      
-	target = { } 
-} 
-admiral = { 
-	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
-	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
-	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
-	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-
-	target = { } 
-	core = { } 
-}
\ No newline at end of file
diff -Naur Doomsday Data Files.old/ai/nzl_1936.ai Doomsday Data Files/ai/nzl_1936.ai
--- Doomsday Data Files.old/ai/nzl_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/nzl_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,20 +1,18 @@
-# New Zealand 1936 AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 4.0 
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
-neutrality = 110
-war = 1
-upgrading = 0.35
-reinforcement = 0.2
+neutrality = 50 
+war = 20
 strat_redeploy_threshold = 25
-exp_force_ratio = 0.25
+exp_force_ratio = 0.55
 exp_force_ratios = {
 	ENG = 1.0
 } 
-no_exp_forces_to = { FRA BEL HOL NOR DEN POL LUX SPA SPR GRE YUG }
-use_offensive_supply = no
 
 ###################################
 # Diplomacy
@@ -23,11 +21,6 @@
 
 befriend = {
 	USA = 100
-	ENG = 100
-	FRA = 80 
-	AST = 80 
-	SAF = 80
-	CAN = 80
 	HOL = 50
 	BEL = 50 
 }
@@ -43,8 +36,6 @@
 }
 target = { } 
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -73,84 +64,16 @@
 	}
 	embargo = { }
 	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Naval Bomber
-		4190 = 100
-		4200 = 100
-		4210 = 100
-
-		# Marines
-		1150 = 100
-		1160 = 100
-		1170 = 100
-		1180 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 3
-		counter_espionage =  10
-		country = NZL
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
+	prioritized = {	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
 #Default values
 construction = { 
-	max_factor = 0.0
+	max_factor = 0.100 
+
 
 	AA_batteries = no
 	max_AA_level = 3
@@ -166,13 +89,13 @@
 	max_radar = 5 
 	radar_provs = { } 
 
-	air_base = yes
+	air_base = atwar
 	max_air_base = 5
 	air_base_provs = {
 		1868 # Auckland
 	} 
 
-	naval_base = no
+	naval_base = yes
 	max_naval_base = 10 
 	naval_base_provs = {
 		1868 # Auckland
@@ -182,233 +105,168 @@
 	max_land_level = 2
 	fort_borders = { } 
 
-	ic_at_war = no 
+	ic_at_war = yes 
 	force_ic_until = 1935
-	ic_end_year = 1935
+	ic_end_year = 1940
 	IC_provs = {
 		1871 # Wellington
 	} 
 }
 
 military = { 
-	relative_build_scheme 	= no
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 360 
+	max_batch_war 		= 180 
 	max_batch_home_front 	= 180
 
 	#### Divisions etc...
-	infantry 		= 15
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
+	infantry 	= 50
+	cavalry 	= 20
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 0
+	armor 		= 0
 	paratrooper 	= 0
-	marine 			= 15
+	marine 		= 0
 	bergsjaeger 	= 0
-	garrison		= 0
-    hq 				= 3
-	militia 		= 0
-#				33 %
-	interceptor 	= 10
-	multi_role 		= 0
-	cas 			= 5
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				70 %
+	interceptor 	= 0
+	multi_role 	= 0
+	escort 		= 0
+	cas 		= 0
 	strategic_bomber = 0
-	tactical_bomber = 5
-	naval_bomber 	= 5
+	tactical_bomber = 0
+	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				25 %
-	battleship 		= 0
-	carrier 		= 0
-	escort_carrier	= 0
-	destroyer 		= 27
-	light_cruiser 	= 8
+#				0 %
+	battleship 	= 0
+	carrier 	= 0
+	destroyer 	= 10
+	light_cruiser 	= 10
 	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 7
-#				42 %
+	submarine 	= 0
+	transports 	= 10
+#				30 %
 
 	#### Brigades
-	artillery 			= 25
-	sp_artillery 		= 0
+	artillery 		= 30
+	sp_artillery 		= 10
 	rocket_artillery	= 0 
 	sp_rct_artillery 	= 0
-	anti_tank 			= 10
+	anti_tank 		= 0
 	tank_destroyer 		= 0
-	light_armor_brigade = 0
+	light_armor_brigade 	= 0
 	heavy_armor 		= 0
 	super_heavy_armor 	= 0
-	armored_car 		= 0
-	anti_air 			= 0
-	police 				= 0	
-	engineer 			= 10 
+	armored_car 		= 15
+	anti_air 		= 5
+	police 			= 10	
+	engineer 		= 5 
 
 	cag = 100.000 
 }
 
 technology = { 
 	endgoal 	= { } 
-	preference = {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Naval Doctrines
-		8200 8250 8140 8260
-
-		# Land Doctrines
-		6170
-
-		# Air Doctrines
-		9040 9050 9060 9070 9080 9090 9100 9110 9120 9130 9190 9210 9220 9230 9240 9250 9350
-
-		# CAS
-		4170 4280 4180
-	} 
-	ignore 	= {
-		# Vehicle Assembly & Rocket Assembly
-		5160 5170
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Cavalry
-		1190 1200 1210 1220
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Motorized
-		1230 1240 1250
-
-		# Air Transports
-		4250 4260 4270
-
-		# Strategic bombers
-		4220 4230 4240
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Test and Research
-		5550 5560 5570 5580 5590
-
-		# Bas Decimetric
-		5410 5420 5430 5440 5450 5460
-
-		# Multi Fighters
-		4040 4070 4100
-		
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Medium tanks
-		2010 2070 2080 2090
-
-		# Heavy Tanks and Semi-Modern Tank
-		2100 2110 2120 2140
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-		
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-		
-		# Anti Air Brigade
-		2510 2520 2530 2540
-
-		# Armoured Cars
-		2150 2160
-
-		# Heavy Cruiser
-		3130 3140 3150 3160 3170 3180 3190
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Battleship
-		3250 3260 3270 3280 3290 3300 3310
-
-		# Carrier
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Submarines
-		3400 3410 3420 3430 3440 3450
-		
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
-	}
+	preference 	= { 
+			# inf
+			1310 1320 1330 1340 1350 1360 # supply 
+			1010 1020 1030 1040 1050 1060 # inf 
+			 
+			# tank & ARI 
+			2150 2160 # AC 
+			2290 2300 2310 2320 2340 2350 2360 # ARI 
+			2100 2110 2120 # heavy tanks 
+			 
+			# navy 
+			3010 3020 3040 3050 3060 # destroyer			 
+			3070 3080 3090 3100 3110 # lc
+
+			# industry 
+			5010 5020 5030 5040 #  agriculture 
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 # industry 
+			 
+			# nav docs 
+			8200  8130
+			} 
+	ignore 		= { 
+			#Inf
+			1080 1090 1100 # Para
+			1150 1160 1170 1180 # marine			 
+			1110 1120 1130 1140 # mountie
+			 
+			#ARI & Tank	
+			2130 # super heavy
+			2260 2270 2280 # SP Rock
+			2370 2380 2390 # rock
+			2470 2480 2490  # AA
+			2170 2180 2190 2200 2210 # SP AT 
+			 
+			#Mavy 
+			3190 3200 3210 3220 3230 #BC
+			3310 # SH BB
+			3430 3450 # sub 
+			3320 3330 3340 3350 3360 3370 # carrier 
+			3250 3260 3270 3280 3290 3300 # bb
+			12100 12110 12120 12130 12140 12150 # light  carrier
+			3130 3140 3150 3160 3170 # hc 
+			 
+			#Plane 
+			4070 4040 4100 # Fighter
+			4170 4280 4180 # cas 
+			4260 4270 # Transport
+			4220 4230 4240 # strat
  
-	armor 		= 3
-	infantry 	= 5
+			#industry 
+			5550 5560 5570 5580 5590 # rocket
+			5190 5200 5210 5220 5230 # oil 
+			5470 5480 5490 5500 5510 5520 5530 5540 # nuclear 
+			5170 # rocket assembly 
+			 
+			# landdocs 
+			6160 6170 6190 6200			 
+			# airdocs
+			9040 9050 9060 9070 9080
+			9270 9280 9290 9300
+			9140 9150 9160 9170 9180 
+			9430 9440 9450 9460 
+			9230 9240 9250 9260 
+			9390 9400 9410 9420 
+		}
+	armor 		= 4 
+	infantry 	= 4
 	industry 	= 4
-	aircraft 	= 1
-	naval 		= 1
-	land_doctrines 	= 1
-	secret_weapons 	= 0
-	air_doctrines 	= 1
-	naval_doctrines = 1
-}
-
+	aircraft 	= 4
+	naval 		= 2
+	land_doctrines 	= 3
+	secret_weapons 	= 1
+	air_doctrines 	= 2
+	naval_doctrines = 2
+}  
 
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 1.0
@@ -421,8 +279,8 @@
 	# PRIORITIES:
 	beach			= 20	# Beach level 2
 	capital			= 40	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -446,97 +304,28 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
 	withdraw_odds		= 0.6
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = { } 
       	passivity = { } 
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
 invasion = { 
-	invasion 	= no
+	invasion 	= yes
 
  	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
 	random		= 8.0	#How big a random range.  (1.0 = 1%)
@@ -552,241 +341,85 @@
       	air_support 	= 3.0 
       	redirect 	= priority
 	ignore		= no
-      
+      staging_province = {
+		906
+		1457
+		23
+
+	}
 	target = { } 
-} 
-admiral = { 
+}	
+admiral = {
 	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
 	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
 	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
 
-	ignore = {
-		#Baltic Area
-		"Northern Baltic"
-		"Southern Baltic" 
-		"Bothnian Bay"
-		
-		#Murmansk/Archangel
-		"Barents Sea"
-		"Arctic Ocean"
-		
-		#Norway Coast (Denmark Coast)
-		"Norwegian Sea"
-		"East North Sea"
-		"Kattegat"
-		
-		#North Sea, East Coast of England
-		"Central Northsea"
-		"West Northsea"
-		"Southeast Northsea"
-		
-		#England/France border Sea Areas
-		"English Channel"
-		"Bay of Biscay"
-		"Cape Finisterre"
-		
-		#Spanish Coast (Atlantic Side)
-		"Portugese Coast"
-		"Cap St Vincent"
-		
-		#Iceland
-		"Faroes Gap"
-		"Denmark Strait"
-		
-		#Ireland/West Coast of England
-		"Irish Sea"
-		"The Hebreides"
-		"Irish West Coast"
-		
-		#Greenland
-		"Greenland Coast"
-		"Northern Sea of Labrador" 
-		"Southern Sea of Labrador"
-		
-		#Canada East Coast
-		"Hudson Bay"
-		"Grand Banks"
-		"Canadian Maritimes"
-		
-		#Western Mediterranean
-		"Costa del Sol"
-		"Gulf of Lyon"
-		"Algerian Coast"
-		
-		#Central Mediterranean
-		"Tyrrhenian Sea"
-		"Adriatic Sea"
-		
-		#Eastern Mediterranean
-		"Black Sea"
-		"Aegean Sea"
-		"Egyptian Coast"
-		
-		#North Atlantic
-		"North Atlantic"
-		"Western Approaches"
-		"The Seamounts"
-		"Azores"
-		
-		#Central Atlantic
-		"Central Atlantic"
-		"Central Mid-Atlantic Ridge"
-		"Bermuda Triangle"
-		"Guiana Basin"
-		"South-Central Mid-Atlantic Ridge"
-		"Cap Verde"
-		
-		#South Atlantic
-		"Pernambuco Plain"
-		"Ascension Fracture Zone"
-		"Argentine Plain"
-		"Angola Plain"
-		
-		#Caribbean Sea and Guilf of Mexico
-		"West Gulf of Mexico"
-		"East Gulf of Mexico" 
-		"Florida Strait"
-		"Yucatan Strait"
-		"Windward Islands"
-		"Central Carribean"
-		
-		#Brazil and Argentina Coast
-		"Coast of Guyana"
-		"Coast of Recife" 
-		"Coast of Uruguay"
-		"Coast of Brazil"
-		"Coast of Argentina"
-		
-		# West Africa
-		"Coast of Africa"
-		"Coast of Bissao" 
-		
-		#Equitorial Africa
-		"Gulf of Guinea"
-		"Coast of Angola-Namibia"
-		
-		#South Africa
-		"Coast of South Africa"
-		"Atlantic-Indian Ridge"
-		
-		#East Africa
-		"Red Sea"
-		"Horn of Africa"
-		
-		#Madagascar Coast
-		"South Mozambique Channel"
-		"North Mozambique Channel" 
-		"Northeast Coast of Madagascar"
-		"Southeast Coast of Madagascar" 
-		
-		#North Indian Ocean (Persian Gulf)
-		"Persian Gulf"
-		"North Arabian Sea"
-		"South Arabian Sea" 
-		"Coast of Ceylon"
-		
-		#Central/South Indian Ocean
-		"Mascarene Plateau"
-		"Mid-Indian Ridge" 
-		"Ninetyeast Ridge" 
-		"Southeast Indian Ocean"
-		"Southwest Indian Ocean" 
-		
-		#Bay of Bengal & West Indonesia
-		"East Bay of Bengal"
-		"West Bay of Bengal"
-		"Malacca Strait"
-		"Java Ridge"
-		"Java Trench"
-		
-		#Indo-China, Borneo, Phillipenes
-		"Gulf of Siam"
-		"Coast of Indochina"
-		"Spratly Sea"
-		"Coast of Brunei"
-		"Flores Sea"
-		"Sulu Sea"
-		"Celebes Sea"
-		"Luzon Strait"
-		
-		#China Coast
-		"Taiwan Strait"
-		"Yellow Sea"
-		
-		#Japanese Coast
-		"Sea of Japan"
-		"Ryukyus"
-		"Coast of Japan"
-		"South Sea of Okhotsk"
-		"West Sea of Okhotsk" 
-		"East Sea of Okhotsk" 
-		
-		#Mariana Basin, Phillipenes
-		"Philipine Trench"
-		"Central Philippine Sea"
-		"Mariana Trench"
-		"East Mariana Basin"
-		"Mid-Pacific Mountains"
-		"North Bismarck Sea"
-		
-		# South and West Australia
-		"Timor Sea"
-		"West Coast of Australia"
-		"East Great Australian Bight"
-		"West Great Australian Bight" 
-		
-		#North Pacific
-		"Coast of Kamchatka"
-		"East Bering Sea"
-		"West Bering Sea" 
-		"Aleutians"
-		"Northwest Pacific Basin"
-		"North Northeast Pacific Basin"
-		
-		#Central Pacific
-		"Hawaiian Rise"
-		"North East Pacific Ocean"
-		"Marshalls Sea"
-		"South East Pacific Ocean"
-		"Marianas"
-		"Western Solomons"
-		"Eastern Solomons"
-		"US Maritimes"
-		"Carolines"
-		
-		#South Pacific
-		"Gilberts"
-		"Line Islands"
-		"Fiji Basin"
-		"Southwest Pacific Basin"
-		
-		# South American West Coast
-		"Southeast Pacific Basin"
-		"West Coast of Chile"
-		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
-		
-		# USA West Coast
-		"Gulf of Alaska"
-		"West Coast of the United States"
-		
-		#West Coast of Mexico
-		"West Coast of Mexico"
-		"West Coast of Central America"
+ignore = {
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+
+# North Sea
+"Kattegat"
+"Southeast Northsea"
+"West Northsea"
+"Central Northsea"
+"Norwegian Sea"
+"East North Sea"
+"Barents Sea"
+
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
 	}
-	target = {
-		2105 = 200
-		2102 = 200
-		2103 = 200
-		2107 = 150
-		2109 = 150
-		2591 = 100
-	} 
-	core = {
-		2108
-		2110
-		2106
-	} 
-}
\ No newline at end of file
+} 
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = NZL
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/ott_1936.ai Doomsday Data Files/ai/ott_1936.ai
--- Doomsday Data Files.old/ai/ott_1936.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/ott_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,273 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 1.5
+max_front_ratios = { }
+max_garrison_prop = 0.50
+min_garrison_prop = 0.25
+neutrality = 100.000
+war = 0
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.5
+exp_force_ratios = {
+	GER = 0.6
+	ITA = 0.3
+}
+desperation = 0.50
+use_offensive_supply = no
+
+###################################
+# Diplomacy
+###################################
+claim_acceptance = -49
+
+combat = { }
+demand_claims = { }
+befriend = { }
+protect = { }
+target = { } 
+
+trade = {
+	cancel_deal_threshold = 3
+
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = {
+ GER = 100 
+ ITA = 100 
+}
+	embargo = { }
+}
+
+tech_sharing = {
+	favored = { 
+GER = 100 
+ITA = 100 
+
+}
+	embargo = { }
+	not = { }
+	prioritized = {	}
+}
+
+###################################
+# Construction and Tech Research
+###################################
+construction = { 
+	max_factor = 0.250
+	AA_batteries = no
+	coastal_fort = no
+	radar_station = no
+	air_base = no
+	naval_base = no
+	land_fort = no
+	ic_at_war = no
+}
+
+military = { 
+	relative_build_scheme 	= no
+	max_batch_peace 	= 540
+	max_batch_war 		= 360
+	max_batch_home_front 	= 360
+
+	#### Divisions etc...
+	infantry 	= 52
+	cavalry 	= 5
+	motorized 	= 8
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 0
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 7
+	garrison	= 0
+      	hq 		= 4
+	militia 	= 0
+#				76 %
+	interceptor 	= 7
+	multi_role 	= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 6
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				13 %
+	battleship 	= 0
+	carrier 	= 0
+	escort_carrier	= 0
+	destroyer 	= 5
+	light_cruiser 	= 5
+	heavy_cruiser 	= 0
+	battlecruiser 	= 0
+	submarine 	= 1
+	transports 	= 0
+#				11 %
+
+	#### Brigades
+	artillery 		= 30
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 20
+
+	cag = 100.000 
+}
+
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4120 4130 4140 4150 4160 15100 15110 # Tac Bombers
+	}
+	preference 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4120 4130 4140 4150 4160 15100 15110 # Tac Bombers
+	}
+	ignore 		= {
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1340 1350 1360 # Repair shops
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2450 2460 2470 2480 2490 2500 11080 # Static Anti-Air
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		4040 4070 4100 15030 15040 15050 # Fighters
+		4190 4200 4210 15140 15150 # Naval Bombers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5150 5170 # Ship + Rocket Assembly Lines
+		5410 5420 5430 5440 5450 5460 13030 # Radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+		14080 # Guerilla Warfare
+	}
+
+	armor 		= 4
+	infantry 	= 8
+	industry 	= 6
+	aircraft 	= 4
+	naval 		= 1
+	land_doctrines 	= 4
+	secret_weapons 	= 0
+	air_doctrines 	= 3
+	naval_doctrines = 0
+}
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 1.0
+
+	# PRIORITIES:
+	beach			= 75	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = { }
+	province_priorities = { }
+	area_multiplier = { }
+}
+
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
+
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
+
+###################################
+# Invasions and Naval
+###################################
+invasion = { 
+	ignore		= no 
+	invasion	= no
+      
+	target = { } 
+} 
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = OTT
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/saf_1936.ai Doomsday Data Files/ai/saf_1936.ai
--- Doomsday Data Files.old/ai/saf_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/saf_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,20 +1,18 @@
-# South Africa 1936 AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 4.0 
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
-neutrality = 110
-war = 1
-upgrading = 0.25
-reinforcement = 0.2
+neutrality = 50 
+war = 20
 strat_redeploy_threshold = 25
 exp_force_ratio = 0.750
 exp_force_ratios = {
 	ENG = 1.0
 } 
-no_exp_forces_to = { FRA BEL HOL NOR DEN POL LUX SPA SPR GRE YUG }
-use_offensive_supply = no
 
 ###################################
 # Diplomacy
@@ -23,11 +21,6 @@
 
 befriend = {
 	USA = 100
-	ENG = 100
-	FRA = 80 
-	NZL = 80 
-	AST = 80
-	CAN = 80
 	HOL = 50
 	BEL = 50 
 }
@@ -43,8 +36,6 @@
 }
 target = { } 
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -73,75 +64,18 @@
 	}
 	embargo = { }
 	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 3
-		counter_espionage =  10
-		country = SAF
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
+	prioritized = {	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
 #Default values
 construction = { 
-	max_factor = 1.00 
+	max_factor = 0.000 
 
-	AA_batteries = no
+
+	AA_batteries = atwar
 	max_AA_level = 3
 	AA_provs = { 
 		1116 # Cape Town
@@ -155,7 +89,7 @@
 	max_radar = 5 
 	radar_provs = { } 
 
-	air_base = no
+	air_base = atwar
 	max_air_base = 2 
 	air_base_provs = { } 
 
@@ -168,223 +102,167 @@
 	fort_borders = { } 
 
 	ic_at_war = yes 
-	force_ic_until = 1945
-	ic_end_year = 1945
+	force_ic_until = 1935
+	ic_end_year = 1940
 	IC_provs = {
-		1121 # Pretoria
-		1120 # Johannesburg
-		1119 # Durban
 		1116 # Cape Town
 	} 
 }
 
 military = { 
-	relative_build_scheme 	= no
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
-	max_batch_home_front 	= 180
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 540
+	max_batch_war 		= 540 
+	max_batch_home_front 	= 540
 
 	#### Divisions etc...
-	infantry 		= 20
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
+	infantry 	= 50
+	cavalry 	= 10
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 0
+	armor 		= 10
 	paratrooper 	= 0
-	marine 			= 0
+	marine 		= 0
 	bergsjaeger 	= 0
-	garrison		= 0
-    hq 				= 0
-	militia 		= 0
-#				20 %
-	interceptor 	= 10
-	multi_role 		= 0
-	cas 			= 7
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				70 %
+	interceptor 	= 0
+	multi_role 	= 0
+	escort 		= 0
+	cas 		= 0
 	strategic_bomber = 0
 	tactical_bomber = 5
 	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				22 %
-	battleship 		= 0
-	carrier 		= 0
-	escort_carrier	= 0
-	destroyer 		= 38
-	light_cruiser 	= 15
+#				5 %
+	battleship 	= 0
+	carrier 	= 0
+	destroyer 	= 15
+	light_cruiser 	= 0
 	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 5
-#				58 %
+	submarine 	= 0
+	transports 	= 10
+#				25 %
 
 	#### Brigades
-	artillery 			= 25
-	sp_artillery 		= 0
-	rocket_artillery	= 0
+	artillery 		= 30
+	sp_artillery 		= 10
+	rocket_artillery	= 0 
 	sp_rct_artillery 	= 0
-	anti_tank 			= 15
+	anti_tank 		= 0
 	tank_destroyer 		= 0
-	light_armor_brigade = 0
+	light_armor_brigade 	= 0
 	heavy_armor 		= 0
 	super_heavy_armor 	= 0
-	armored_car 		= 0
-	anti_air 			= 0
-	police 				= 0
-	engineer 			= 0 
+	armored_car 		= 10
+	anti_air 		= 0
+	police 			= 10	
+	engineer 		= 10 
 
 	cag = 100.000 
 }
 
 technology = { 
-	endgoal 	= { } 
-	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5180
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Land Doctrines
-		6030 6150
-
-		# Air Doctrines
-		9040 9050 9060 9080 9100 9110 9120 9130 9140 9190 9200 9210 9220 9230 9240 9250 9260 9270 9280 9290 9300 9310 9320 9330 9340 9350 9360 9370 9380 9390 9400 9410 9420
-
-		# CAS
-		4170 4280 4180
-	} 
+	endgoal 	= {
+			# inf
+			1310 1320 1330 1340 1350 1360 # supply 
+			1010 1020 1030 1040 1050 1060 # inf 
+			 
+			# tank & ARI 
+			2150 2160 # AC 
+			2290 2300 2310 2320 2340 2350 2360 # ARI 
+			2100 2110 2120 # heavy tanks 
+			 
+			# navy 
+			3010 3020 3040 3050 3060 # destroyer			 
+
+			# industry 
+			5010 5020 5030 5040 #  agriculture 
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 # industry 
+			 
+			# nav docs 
+			8200  8130
+			}
 	ignore 		= {
-		# Assembly Line
-		5160 5170
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Motorized
-		1230 1240 1250
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Cavalry
-		1190 1200 1210 1220
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Air Transports
-		4250 4260 4270
-
-		# Multirole Fighters
-		4040 4070 4100
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Strategic Bomber
-		4220 4230 4240
-
-		# Rocketry
-		5550 5560 5570 5580 5590
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Bas Decimetric
-		5410 5420 5430 5440 5450 5460
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Medium tanks
-		2010 2070 2080 2090
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-		
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-
-		# Anti Air Brigade
-		2510 2520 2530 2540
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Armoured Cars
-		2150 2160
-
-		# Heavy Cruiser
-		3130 3140 3150 3160 3170 3180 3190
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Battleship
-		3250 3260 3270 3280 3290 3300 3310
-
-		# Carrier
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Submarines
-		3400 3410 3420 3430 3440 3450
-
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
-	}
+			#Inf
+			1080 1090 1100 # Para
+			1150 1160 1170 1180 # marine			 
+			1110 1120 1130 1140 # mountie
+			 
+			#ARI & Tank	
+			2130 # super heavy
+			2260 2270 2280 # SP Rock
+			2370 2380 2390 # rock
+			2470 2480 2490  # AA
+			2170 2180 2190 2200 2210 # SP AT 
+			 
+			#Mavy 
+			3190 3200 3210 3220 3230 #BC
+			3310 # SH BB
+			3430 3450 # sub 
+			3320 3330 3340 3350 3360 3370 # carrier 
+			3250 3260 3270 3280 3290 3300 # bb
+			12100 12110 12120 12130 12140 12150 # light  carrier
+			3130 3140 3150 3160 3170 # hc 
+			3070 3080 3090 3100 3110 # lc
+			 
+			#Plane 
+			4070 4040 4100 # Fighter
+			4170 4280 4180 # cas 
+			4260 4270 # Transport
+			4220 4230 4240 # strat
  
-	armor 		= 3
-	infantry 	= 5
+			#industry 
+			5550 5560 5570 5580 5590 # rocket
+			5190 5200 5210 5220 5230 # oil 
+			5470 5480 5490 5500 5510 5520 5530 5540 # nuclear 
+			5170 # rocket assembly 
+			 
+			# landdocs 
+			6160 6170 6190 6200			 
+			# airdocs
+			9040 9050 9060 9070 9080
+			9270 9280 9290 9300
+			9140 9150 9160 9170 9180 
+			9430 9440 9450 9460 
+			9230 9240 9250 9260 
+			9390 9400 9410 9420 
+		}
+ 
+	armor 		= 4 
+	infantry 	= 4
 	industry 	= 4
-	aircraft 	= 1
-	naval 		= 1
-	land_doctrines 	= 1
-	secret_weapons 	= 0
-	air_doctrines 	= 1
-	naval_doctrines = 1
-}
-
+	aircraft 	= 4
+	naval 		= 2
+	land_doctrines 	= 3
+	secret_weapons 	= 1
+	air_doctrines 	= 2
+	naval_doctrines = 2
+}  
 
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 1.0
@@ -397,8 +275,8 @@
 	# PRIORITIES:
 	beach			= 20	# Beach level 2
 	capital			= 40	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -427,97 +305,29 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
 	withdraw_odds		= 0.6
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = { } 
       	passivity = { } 
 } 
 ###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
 invasion = { 
-	invasion 	= no
+	invasion 	= yes
 
  	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
 	random		= 8.0	#How big a random range.  (1.0 = 1%)
@@ -533,231 +343,144 @@
       	air_support 	= 3.0 
       	redirect 	= priority
 	ignore		= no
+	staging_province = {
+		906 # AlexANDRia
+		23
+
+	}
       
-	target = { } 
+	target = { 
+		534 = 1000 # Sardinia
+		521 = 1000#	Naples 			
+		519 = 1000#	Anzio
+		518 = 1000#	Cassino
+		525 = 1000#	Palermo
+		
+		401 = 1000 # Athen
+		394 = 1000 # Patras 
+		396 = 500 # Crete
 } 
-admiral = { 
+}	
+admiral = {
 	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
 	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
 	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
 
-	ignore = {
-		#Baltic Area
-		"Northern Baltic"
-		"Southern Baltic" 
-		"Bothnian Bay"
-		
-		#Murmansk/Archangel
-		"Barents Sea"
-		"Arctic Ocean"
-		
-		#Norway Coast (Denmark Coast)
-		"Norwegian Sea"
-		"East North Sea"
-		"Kattegat"
-		
-		#North Sea, East Coast of England
-		"Central Northsea"
-		"West Northsea"
-		"Southeast Northsea"
-		
-		#England/France border Sea Areas
-		"English Channel"
-		"Bay of Biscay"
-		"Cape Finisterre"
-		
-		#Spanish Coast (Atlantic Side)
-		"Portugese Coast"
-		"Cap St Vincent"
-		
-		#Iceland
-		"Faroes Gap"
-		"Denmark Strait"
-		
-		#Ireland/West Coast of England
-		"Irish Sea"
-		"The Hebreides"
-		"Irish West Coast"
-		
-		#Greenland
-		"Greenland Coast"
-		"Northern Sea of Labrador" 
-		"Southern Sea of Labrador"
-		
-		#Canada East Coast
-		"Hudson Bay"
-		"Grand Banks"
-		"Canadian Maritimes"
-		
-		#Western Mediterranean
-		"Costa del Sol"
-		"Gulf of Lyon"
-		"Algerian Coast"
-		
-		#Central Mediterranean
-		"Tyrrhenian Sea"
-		"Adriatic Sea"
-		
-		#Eastern Mediterranean
-		"Black Sea"
-		"Aegean Sea"
-		"Egyptian Coast"
-		
-		#North Atlantic
-		"North Atlantic"
-		"Western Approaches"
-		"The Seamounts"
-		"Azores"
-		
-		#Central Atlantic
-		"Central Atlantic"
-		"Central Mid-Atlantic Ridge"
-		"Bermuda Triangle"
-		"Guiana Basin"
-		"South-Central Mid-Atlantic Ridge"
-		"Cap Verde"
-		
-		#Caribbean Sea and Guilf of Mexico
-		"West Gulf of Mexico"
-		"East Gulf of Mexico" 
-		"Florida Strait"
-		"Yucatan Strait"
-		"Windward Islands"
-		"Central Carribean"
-		
-		#Brazil and Argentina Coast
-		"Coast of Guyana"
-		"Coast of Recife" 
-		"Coast of Uruguay"
-		"Coast of Brazil"
-		"Coast of Argentina"
-		
-		# West Africa
-		"Coast of Africa"
-		"Coast of Bissao" 
-		
-		#North Indian Ocean (Persian Gulf)
-		"Persian Gulf"
-		"North Arabian Sea"
-		"South Arabian Sea" 
-		"Coast of Ceylon"
-		
-		#Central/South Indian Ocean
-		"Mascarene Plateau"
-		"Mid-Indian Ridge" 
-		"Ninetyeast Ridge" 
-		"Southeast Indian Ocean"
-		"Southwest Indian Ocean" 
-		
-		#Bay of Bengal & West Indonesia
-		"East Bay of Bengal"
-		"West Bay of Bengal"
-		"Malacca Strait"
-		"Java Ridge"
-		"Java Trench"
-		
-		#Indo-China, Borneo, Phillipenes
-		"Gulf of Siam"
-		"Coast of Indochina"
-		"Spratly Sea"
-		"Coast of Brunei"
-		"Flores Sea"
-		"Sulu Sea"
-		"Celebes Sea"
-		"Luzon Strait"
-		
-		#China Coast
-		"Taiwan Strait"
-		"Yellow Sea"
-		
-		#Japanese Coast
-		"Sea of Japan"
-		"Ryukyus"
-		"Coast of Japan"
-		"South Sea of Okhotsk"
-		"West Sea of Okhotsk" 
-		"East Sea of Okhotsk" 
-		
-		#Mariana Basin, Phillipenes
-		"Philipine Trench"
-		"Central Philippine Sea"
-		"Mariana Trench"
-		"East Mariana Basin"
-		"Mid-Pacific Mountains"
-		"North Bismarck Sea"
-		
-		#New Guinea, East/North Australia and New Zealan
-		"Coast of New Guinea"
-		"Molucca Sea"
-		"Banda Sea"
-		"Arafura Sea"
-		"South Bismarck Sea"
-		"Solomon Sea"
-		"West Coral Sea"
-		"East Coral Sea" 
-		"North Tasman Sea"
-		"South Tasman Sea" 
-		"East Cost of New Zealand"
-		
-		# South and West Australia
-		"Timor Sea"
-		"West Coast of Australia"
-		"East Great Australian Bight"
-		"West Great Australian Bight" 
-		
-		#North Pacific
-		"Coast of Kamchatka"
-		"East Bering Sea"
-		"West Bering Sea" 
-		"Aleutians"
-		"Northwest Pacific Basin"
-		"North Northeast Pacific Basin"
-		
-		#Central Pacific
-		"Hawaiian Rise"
-		"North East Pacific Ocean"
-		"Marshalls Sea"
-		"South East Pacific Ocean"
-		"Marianas"
-		"Western Solomons"
-		"Eastern Solomons"
-		"US Maritimes"
-		"Carolines"
-		
-		#South Pacific
-		"Gilberts"
-		"Line Islands"
-		"Fiji Basin"
-		"Southwest Pacific Basin"
-		
-		# South American West Coast
-		"Southeast Pacific Basin"
-		"West Coast of Chile"
-		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
-		
-		# USA West Coast
-		"Gulf of Alaska"
-		"West Coast of the United States"
-		
-		#West Coast of Mexico
-		"West Coast of Mexico"
-		"West Coast of Central America"
+ignore = {
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+
+# North Sea
+"Kattegat"
+"Southeast Northsea"
+"West Northsea"
+"Central Northsea"
+"Norwegian Sea"
+"East North Sea"
+"Barents Sea"
+
+
+# Pacific
+"Luzon Strait"
+"Philipine Trench"
+"Coast of Brunei"
+"Flores Sea"
+"Molucca Sea"
+"Banda Sea"
+"West Coral Sea"
+"Sulu Sea"
+"Celebes Sea"
+"Arafura Sea"
+"Java Ridge"
+"Malacca Strait"
+"Gulf of Siam"
+"Spratly Sea"
+"Coast of Indochina"
+"Taiwan Strait"
+"Sea of Japan"
+"North Bismarck Sea"
+"South Bismarck Sea"
+"Marianas"
+"Marshalls Sea"
+"Western Solomons"
+"Eastern Solomons"
+"East Coral Sea"
+"Coast of Japan"
+"Solomon Sea"
+"North Tasman Sea"
+"South Tasman Sea"
+"East Great Australian Bight"
+"West Great Australian Bight"
+"Aleutians"
+"Carolines"
+"Central Philippine Sea"
+"Coast of Kamchatka"
+"East Bering Sea"
+"East Mariana Basin"
+"East Sea of Okhotsk"
+"Gulf of Alaska"
+"Hawaiian Rise"
+"Mariana Trench"
+"Mid-Pacific Mountains"
+"North Northeast Pacific Basin"
+"Northwest Pacific Basin"
+"Ryukyus"
+"South Sea of Okhotsk"
+"Timor Sea"
+"West Bering Sea"
+"West Coast of Australia"
+"West Coast of Mexico"
+"West Coast of the United States"
+"West Sea of Okhotsk"
+"Yellow Sea"
+"Fiji Basin"
+"Gilberts"
+"Line Islands"
+"North East Pacific Ocean"
+"South East Pacific Ocean"
+"East Cost of New Zealand"
+"North Southeast Pacific Ocean"
+"South Southeast Pacific Ocean"
+"Southeast Pacific Basin"
+"Southwest Pacific Basin"
+"West Coast of Central America"
+"West Coast of Chile"
+"West Coast of Peru"
+"Coast of New Guinea"
+
 	}
-	target = {
-		2274 = 200
-		2272 = 200
-		2007 = 200
-		2008 = 150
-		2011 = 150
-		2012 = 150
-		2010 = 100
-	} 
-	core = {
-		2269
-		2268
-		2273
-	} 
-}
\ No newline at end of file
+} 
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = SAF
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/sca_1936.ai Doomsday Data Files/ai/sca_1936.ai
--- Doomsday Data Files.old/ai/sca_1936.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/sca_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,265 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 1.5
+max_front_ratios = { }
+max_garrison_prop = 0.50
+min_garrison_prop = 0.25
+neutrality = 100.000
+war = 0
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.75
+exp_force_ratios = {
+	GER = 0.9
+}
+desperation = 0.50
+use_offensive_supply = no
+
+###################################
+# Diplomacy
+###################################
+claim_acceptance = -49
+
+combat = { }
+demand_claims = { }
+befriend = { }
+protect = { }
+target = { } 
+
+trade = {
+	cancel_deal_threshold = 3
+
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = { GER = 100 }
+	embargo = { }
+}
+
+tech_sharing = {
+	favored = { GER = 100 }
+	embargo = { }
+	not = { }
+	prioritized = {	}
+}
+
+###################################
+# Construction and Tech Research
+###################################
+construction = { 
+	max_factor = 0.250
+	AA_batteries = no
+	coastal_fort = no
+	radar_station = no
+	air_base = no
+	naval_base = no
+	land_fort = no
+	ic_at_war = no
+}
+
+military = { 
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 360
+	max_batch_war 		= 360
+	max_batch_home_front 	= 360
+
+	#### Divisions etc...
+	infantry 	= 42
+	cavalry 	= 6
+	motorized 	= 9
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 8
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 8
+	garrison	= 0
+      	hq 		= 5
+	militia 	= 0
+#				78 %
+	interceptor 	= 8
+	multi_role 	= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 7
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				15 %
+	battleship 	= 0
+	carrier 	= 0
+	escort_carrier	= 0
+	destroyer 	= 3
+	light_cruiser 	= 0
+	heavy_cruiser 	= 0
+	battlecruiser 	= 0
+	submarine 	= 4
+	transports 	= 0
+#				7 %
+
+	#### Brigades
+	artillery 		= 30
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 20
+
+	cag = 100.000 
+}
+
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4120 4130 4140 4150 4160 15100 15110 # Tac Bombers
+	}
+	preference 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4120 4130 4140 4150 4160 15100 15110 # Tac Bombers
+	}
+	ignore 		= {
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1340 1350 1360 # Repair shops
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2450 2460 2470 2480 2490 2500 11080 # Static Anti-Air
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		4040 4070 4100 15030 15040 15050 # Fighters
+		4190 4200 4210 15140 15150 # Naval Bombers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5150 5170 # Ship + Rocket Assembly Lines
+		5410 5420 5430 5440 5450 5460 13030 # Radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+		14080 # Guerilla Warfare
+	}
+
+	armor 		= 4
+	infantry 	= 8
+	industry 	= 6
+	aircraft 	= 4
+	naval 		= 0
+	land_doctrines 	= 4
+	secret_weapons 	= 0
+	air_doctrines 	= 3
+	naval_doctrines = 0
+}
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 1.0
+
+	# PRIORITIES:
+	beach			= 75	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = { }
+	province_priorities = { }
+	area_multiplier = { }
+}
+
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
+
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
+
+###################################
+# Invasions and Naval
+###################################
+invasion = { 
+	ignore		= no 
+	invasion	= no
+      
+	target = { } 
+} 
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = SCA
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/sia_1936.ai Doomsday Data Files/ai/sia_1936.ai
--- Doomsday Data Files.old/ai/sia_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/sia_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,18 +1,19 @@
-# Siam 1936 AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 2.0 
 max_garrison_prop = 0.30
 min_garrison_prop = 0.20
-neutrality = 95
+neutrality = 150
 war = 0
-upgrading = 0.35
-reinforcement = 0.2
-strat_redeploy_threshold = 25
+strat_redeploy_threshold = 21
 exp_force_ratio = 0.750
-exp_force_ratios = { } 
+exp_force_ratios = { 
+JAP = 1.0
+} 
 no_exp_forces_to = { GER ROM HUN SLO BUL ITA VIC YUG FIN CRO }
-use_offensive_supply = no
 
 ###################################
 # Diplomacy
@@ -30,8 +31,6 @@
 protect = { }
 target = { } 
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -50,67 +49,9 @@
 	}
 	embargo = { }
 	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 3
-		counter_espionage =  10
-		country = SIA
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
+	prioritized = {	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
@@ -156,104 +97,73 @@
 
 military = { 
 	relative_build_scheme 	= yes 
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
+	max_batch_peace 	= 360 
+	max_batch_war 		= 180 
 	max_batch_home_front 	= 180
 
 	#### Divisions etc...
-	infantry 		= 70
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
+	infantry 	= 70
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 0
+	armor 		= 0
 	paratrooper 	= 0
-	marine 			= 0
-	bergsjaeger 	= 30
-	garrison		= 0
-    hq 				= 0
-	militia 		= 0
-#				100 %
-	interceptor 	= 0
-	multi_role 		= 0
-	cas 			= 0
+	marine 		= 0
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 5
+	militia 	= 5
+#				80 %
+	interceptor 	= 5
+	multi_role 	= 0
+	escort 		= 0
+	cas 		= 0
 	strategic_bomber = 0
-	tactical_bomber = 0
+	tactical_bomber = 5
 	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				0 %
-	battleship 		= 0
-	carrier 		= 0
-	escort_carrier	= 0
-	destroyer 		= 0
+#				10 %
+	battleship 	= 0
+	carrier 	= 0
+	destroyer 	= 5
 	light_cruiser 	= 0
 	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 0
-#				0 %
+	submarine 	= 5
+	transports 	= 0
+#				10 %
 
 	#### Brigades
-	artillery 			= 20
+	artillery 		= 30
 	sp_artillery 		= 0
-	rocket_artillery	= 0
+	rocket_artillery	= 0 
 	sp_rct_artillery 	= 0
-	anti_tank 			= 18
+	anti_tank 		= 0
 	tank_destroyer 		= 0
-	light_armor_brigade = 0
+	light_armor_brigade 	= 0
 	heavy_armor 		= 0
 	super_heavy_armor 	= 0
-	armored_car 		= 0
-	anti_air 			= 0
-	police 				= 0
-	engineer 			= 0
-	
+	armored_car 		= 10
+	anti_air 		= 0
+	police 			= 10	
+	engineer 		= 10 
+
 	cag = 100.000 
 }
 
 technology = { 
 	endgoal 	= { } 
-	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-
-		# Assembly Line
-		5130 5180
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Land Doctrines
-		6010 6030
-	} 
+	preference 	= { } 
 	ignore 		= {
-		# Assembly Line
-		5140 5150 5160 5170
-
-		# Arcriculture
-		5010 5020 5030 5040
-
 		# Airborne
 		1070 1080 1090 1100
 
 		# Marines
 		1150 1160 1170 1180
 
-		# Cavalry
-		1190 1200 1210 1220
-
 		# Air Transports
 		4250 4260 4270
 
@@ -265,73 +175,41 @@
 
 		# Bas Decimetric
 		5410 5420 5430 5440 5450 5460
-
-		# motorized
-		1230 1240 1250
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Land Doctrines
-		6210
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Medium tanks
-		2010 2070 2080 2090
-
-		# Heavy Tanks and Semi-Modern Tank
-		2100 2110 2120 2140
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-		
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-		
-		# Anti Air Brigade
-		2510 2520 2530 2540
 	}
-
-	armor 		= 1
-	infantry 	= 6
-	industry 	= 3
-	aircraft 	= 0
-	naval 		= 0
-	land_doctrines 	= 8
-	secret_weapons 	= 0
-	air_doctrines 	= 0
-	naval_doctrines = 0
+ 
+	armor 		= 1 
+	infantry 	= 4
+	industry 	= 4
+	aircraft 	= 1
+	naval 		= 1
+	land_doctrines 	= 1
+	secret_weapons 	= 1
+	air_doctrines 	= 1
+	naval_doctrines = 1
 }  
 
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 1.0
 	overseas_multiplier 	= 0.5
-	home_peace_cap 		= 20
+	home_peace_cap 		= 21
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 0
 	revolt_risk_mult	= 1.0
@@ -339,8 +217,8 @@
 	# PRIORITIES:
 	beach			= 20	# Beach level 2
 	capital			= 40	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -364,7 +242,7 @@
 	area_multiplier = { }
 }
 front = { 
-	recklessness 		= 0 # 0-3
+	recklessness 		= 2 # 0-3
 	distrib_vs_ai 		= op_defensive
 	distrib_vs_human 	= op_defensive
 
@@ -372,18 +250,18 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
 	withdraw_odds		= 0.6
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
+	dig_in 		= 1.25 # Against defender
 
 	frozen_attack 	= 1.0
 	snow_attack 	= 1.0
@@ -391,8 +269,8 @@
 	storm_attack 	= 1.0
 	muddy_attack 	= 1.0
 
-	
-	
+	largefort 	= 2.0
+	smallfort 	= 1.5
 	occupied 	= 0.7
 	owned 		= 0.7
 
@@ -413,57 +291,7 @@
 		CHI = 300
 	} 
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
@@ -491,235 +319,111 @@
 	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
 
+	target = { } 
 	ignore = {
-		#Baltic Area
-		"Northern Baltic"
-		"Southern Baltic" 
-		"Bothnian Bay"
-		
-		#Murmansk/Archangel
-		"Barents Sea"
-		"Arctic Ocean"
-		
-		#Norway Coast (Denmark Coast)
-		"Norwegian Sea"
-		"East North Sea"
-		"Kattegat"
-		
-		#North Sea, East Coast of England
-		"Central Northsea"
-		"West Northsea"
-		"Southeast Northsea"
-		
-		#England/France border Sea Areas
-		"English Channel"
-		"Bay of Biscay"
-		"Cape Finisterre"
-		
-		#Spanish Coast (Atlantic Side)
-		"Portugese Coast"
-		"Cap St Vincent"
-		
-		#Iceland
-		"Faroes Gap"
-		"Denmark Strait"
-		
-		#Ireland/West Coast of England
-		"Irish Sea"
-		"The Hebreides"
-		"Irish West Coast"
-		
-		#Greenland
-		"Greenland Coast"
-		"Northern Sea of Labrador" 
-		"Southern Sea of Labrador"
-		
-		#Canada East Coast
-		"Hudson Bay"
-		"Grand Banks"
-		"Canadian Maritimes"
-		
-		#Western Mediterranean
-		"Costa del Sol"
-		"Gulf of Lyon"
-		"Algerian Coast"
-		
-		#Central Mediterranean
-		"Tyrrhenian Sea"
-		"Adriatic Sea"
-		
-		#Eastern Mediterranean
-		"Black Sea"
-		"Aegean Sea"
-		"Egyptian Coast"
-		
-		#North Atlantic
-		"North Atlantic"
-		"Western Approaches"
-		"The Seamounts"
-		"Azores"
-		
-		#Central Atlantic
-		"Central Atlantic"
-		"Central Mid-Atlantic Ridge"
-		"Bermuda Triangle"
-		"Guiana Basin"
-		"South-Central Mid-Atlantic Ridge"
-		"Cap Verde"
-		
-		#South Atlantic
-		"Pernambuco Plain"
-		"Ascension Fracture Zone"
-		"Argentine Plain"
-		"Angola Plain"
-		
-		#Caribbean Sea and Guilf of Mexico
-		"West Gulf of Mexico"
-		"East Gulf of Mexico" 
-		"Florida Strait"
-		"Yucatan Strait"
-		"Windward Islands"
-		"Central Carribean"
-		
-		#Brazil and Argentina Coast
-		"Coast of Guyana"
-		"Coast of Recife" 
-		"Coast of Uruguay"
-		"Coast of Brazil"
-		"Coast of Argentina"
-		
-		# West Africa
-		"Coast of Africa"
-		"Coast of Bissao" 
-		
-		#Equitorial Africa
-		"Gulf of Guinea"
-		"Coast of Angola-Namibia"
-		
-		#South Africa
-		"Coast of South Africa"
-		"Atlantic-Indian Ridge"
-		
-		#East Africa
-		"Red Sea"
-		"Horn of Africa"
-		
-		#Madagascar Coast
-		"South Mozambique Channel"
-		"North Mozambique Channel" 
-		"Northeast Coast of Madagascar"
-		"Southeast Coast of Madagascar" 
-		
-		#North Indian Ocean (Persian Gulf)
-		"Persian Gulf"
-		"North Arabian Sea"
-		"South Arabian Sea" 
-		"Coast of Ceylon"
-		
-		#Central/South Indian Ocean
-		"Mascarene Plateau"
-		"Mid-Indian Ridge" 
-		"Ninetyeast Ridge" 
-		"Southeast Indian Ocean"
-		"Southwest Indian Ocean" 
-		
-		#Bay of Bengal & West Indonesia
-		"East Bay of Bengal"
-		"West Bay of Bengal"
-		"Malacca Strait"
-		"Java Ridge"
-		"Java Trench"
-		
-		#Indo-China, Borneo, Phillipenes
-		"Coast of Indochina"
-		"Spratly Sea"
-		"Coast of Brunei"
-		"Flores Sea"
-		"Sulu Sea"
-		"Celebes Sea"
-		"Luzon Strait"
-		
-		#China Coast
-		"Taiwan Strait"
-		"Yellow Sea"
-		
-		#Japanese Coast
-		"Sea of Japan"
-		"Ryukyus"
-		"Coast of Japan"
-		"South Sea of Okhotsk"
-		"West Sea of Okhotsk" 
-		"East Sea of Okhotsk" 
-		
-		#Mariana Basin, Phillipenes
-		"Philipine Trench"
-		"Central Philippine Sea"
-		"Mariana Trench"
-		"East Mariana Basin"
-		"Mid-Pacific Mountains"
-		"North Bismarck Sea"
-		
-		#New Guinea, East/North Australia and New Zealan
-		"Coast of New Guinea"
-		"Molucca Sea"
-		"Banda Sea"
-		"Arafura Sea"
-		"South Bismarck Sea"
-		"Solomon Sea"
-		"West Coral Sea"
-		"East Coral Sea" 
-		"North Tasman Sea"
-		"South Tasman Sea" 
-		"East Cost of New Zealand"
-		
-		# South and West Australia
-		"Timor Sea"
-		"West Coast of Australia"
-		"East Great Australian Bight"
-		"West Great Australian Bight" 
-		
-		#North Pacific
-		"Coast of Kamchatka"
-		"East Bering Sea"
-		"West Bering Sea" 
-		"Aleutians"
-		"Northwest Pacific Basin"
-		"North Northeast Pacific Basin"
-		
-		#Central Pacific
-		"Hawaiian Rise"
-		"North East Pacific Ocean"
-		"Marshalls Sea"
-		"South East Pacific Ocean"
-		"Marianas"
-		"Western Solomons"
-		"Eastern Solomons"
-		"US Maritimes"
-		"Carolines"
-		
-		#South Pacific
-		"Gilberts"
-		"Line Islands"
-		"Fiji Basin"
-		"Southwest Pacific Basin"
-		
-		# South American West Coast
-		"Southeast Pacific Basin"
-		"West Coast of Chile"
-		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
-		
-		# USA West Coast
-		"Gulf of Alaska"
-		"West Coast of the United States"
-		
-		#West Coast of Mexico
-		"West Coast of Mexico"
-		"West Coast of Central America"
+
+# Mediterranean
+"Adriatic Sea"
+"Aegean Sea"
+"Black Sea"
+"Tyrrhenian Sea"
+"Costa del Sol"
+"Algerian Coast"
+"Egyptian Coast"
+"Gulf of Lyon"
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+
+# North Sea
+"Kattegat"
+"English Channel"
+"Southeast Northsea"
+"West Northsea"
+"Central Northsea"
+"Norwegian Sea"
+"Western Approaches"
+"Greenland Coast"
+"Faroes Gap"
+"North Atlantic"
+"Bay of Biscay"
+"Azores"
+"Portugese Coast"
+"Cap St Vincent"
+"Cape Finisterre"
+"Irish West Coast"
+"The Hebreides"
+
+# North Atlantic
+"Barents Sea"
+"Irish Sea"
+"Denmark Strait"
+"Central Atlantic"
+"Hudson Bay"
+"Bermuda Triangle"
+"Northern Sea of Labrador"
+"Southern Sea of Labrador"
+"Grand Banks"
+"The Seamounts"
+"Canadian Maritimes"
+"US Maritimes"
+"Central Mid-Atlantic Ridge"
+"East North Sea"
+"Arctic Ocean"
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
 	}
-	target = { } 
 	core = {
 		2148
 	} 
-}
\ No newline at end of file
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = SIA
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/sov_1936.ai Doomsday Data Files/ai/sov_1936.ai
--- Doomsday Data Files.old/ai/sov_1936.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/sov_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,55 +1,60 @@
-# Soviet 1936 AI File by Lothos
-
-switch = no # [yes/no]
-max_front_ratio = 1.2 
-max_front_ratios = {
-	JAP = 1.0 
-	MAN = 1.0
-}
-max_garrison_prop = 0.30
-min_garrison_prop = 0.20
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no
+max_front_ratio = 2.0
+max_garrison_prop = 0.75
+min_garrison_prop = 0.25
 neutrality = 120.000 
 war = 0
-strat_redeploy_threshold = 50
-max_redeploying = 0.05
+reinforcement = 0.01
+upgrading = 0.0
+desperation = 0.9
+strat_redeploy_threshold = 91
 exp_force_ratio = 0.10
-exp_force_ratios = { } 
-no_exp_forces_to = { }
+use_offensive_supply = no
+max_fuel_offensive = 1
 
 ###################################
 # Diplomacy
 ###################################
-combat = { }
-
 claim_acceptance = -49
 
-# Special resistance against "influence" by the listed nations. Value range = [0 - 10]  
-resistance = {  
-	GER = 1 
-	ENG = 2
-	FRA = 2
-	USA = 2
-	JAP = 2
-}
 demand_claims = {
-	EST
-	LAT
-	ROM
-	LIT
-	FIN
 }
+
 befriend = {
-	ENG = 10
-	ROM = 50
-	BUL = 40 
-	TUR = 60 
-	POL = 20 
-	YUG = 40
-	PER = 60 
-	SPR = 100
-	MON = 100
-	TAN = 100
+	JAP = -10
+	MAN = -10
+	CHI = -10
+	MON = -10
+	TAN = -10
+	SIK = -10
+	AFG = -10
+	PER = 50
+	TUR = -10
+	ROM = -10
+	BUL = -10
+	POL = -10
+	LIT = -10
+	LAT = -10
+	EST = -10
+	FIN = -10
+	NOR = -10
+	SWE = -10
+	GER = -10
+	SLO = -10
+	HUN = -10
+	CSX = -10
+	CXB = -10
+	CYN = -10
+	CGX = -10
+	CHC = -10
+	MEN = -10
+	SPR = -10
 }
+
 protect = {
 	PER = 80 
 	ROM = 80 
@@ -63,40 +68,8 @@
 	MON = 50
 	AFG = 50
 }
-target = { 
-	#Tannu Tuva
-	1318 = 150 # Kyzyl
-
-	#Finland
-	145 = 100 # Viipur
-	146 = 100 # Sortavalo
-
-	#Estonia
-	193 = 90 # Narva
-	195 = 90 # Tartu
-	194 = 90 # Tallin
-	196 = 90 # Parnu
-
-	#Latvia
-	198 = 80 # Gulbene
-	197 = 80 # Riga
-	202 = 80 # Dagaupulis
-	203 = 80 # Jekapils
-	204 = 80 # Jelgava
-	205 = 80 # Mazirbe
-
-	#Lithuania
-	207 = 70 # Kaunas
-	577 = 70 # Siauliau
-	511 = 70 # Alytus
-
-	#Romania
-	230 = 50 # Beltsy
-	434 = 50 # Tiraspol
-} 
-trade = {
-	cancel_deal_threshold = 2
 
+trade = {
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -105,514 +78,253 @@
 	money 		= -1
 
 	favored = {
-		GER = 80
-		SWE = 20
+		BUL = 50
 		ITA = 50
-		SPR = 60
-		BUL = 40
-		YUG = 40
-		TUR = 50
-		ROM = 30
-		JAP = 40
+		JAP = 50
+		ROM = 50
+		YUG = 50
+		GER = 75
+		SPR = 75
+		MON = 100
+		TAN = 100
 	}
 	embargo = { }
 }
-tech_sharing = {
-	favored = {
-		GER = 20
-		SWE = 20
-		ITA = 50
-		SPR = 60
-		BUL = 40
-		YUG = 40
-		TUR = 50
-		ROM = 30
-		JAP = 20
-	}
-	embargo = { }
-	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Motorized
-		1230 = 100
-		1240 = 100
-		1250 = 100
-
-		# CAS
-		4170 = 100
-		4280 = 100
-		4180 = 100
-
-		# Medium tanks
-		2070 = 100
-		2080 = 100
-		2090 = 100
-
-		# Light tanks
-		2020 = 100
-		2030 = 100
-		2040 = 100
-		2050 = 100
-		2060 = 100
-
-		# Mechanized
-		1260 = 100
-		1270 = 100
-		1280 = 100
-		1290 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = SOV
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 2
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 10
-		nuclear_sabotage 	= 0
-		found_partisans		= 2
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 4
-		country 			= GER
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 3
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= USA
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 6
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 3
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= ENG
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 6
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 3
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= JAP
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 3
-		sabotage_industry 	= 1
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= TUR
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 3
-		sabotage_industry 	= 1
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= FIN
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 3
-		sabotage_industry 	= 1
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= POL
-	}
-}
+
 ###################################
 # Construction and Tech Research
 ###################################
-#Default values
 construction = { 
-	max_factor = 1.00
+	max_factor = 1.000
 
 	AA_batteries = no
-	max_AA_level = 3
-	AA_provs = {
-		187 # Leningrad
-		175 # Moscow
-		238 # Kiev
-		235 # Dnepropetrovsk
-		163 # Stalingrad
-		248 # Kharkov
-		277 # Bryansk
-		1574 # Chelyabinsk
-		1372 # Vladivostock
-	} 
+	max_AA_level = 0
+	AA_provs = { } 
 
 	coastal_fort = no
-	max_coastal_level = 3
-	coastal_fort_provs = {
-		187 # Leningrad
-	} 
+	max_coastal_level = 0
+	coastal_fort_provs = { } 
 
 	radar_station = no 
-	max_radar = 5 
+	max_radar = 0
 	radar_provs = { } 
 
 	air_base = no
-	max_air_base = 2
+	max_air_base = 0
 	air_base_provs = { }
 
 	naval_base = no 
-	max_naval_base = 5 
+	max_naval_base = 0
 	naval_base_provs = { } 
 
 	land_fort = no
-	max_land_level = 2
+	max_land_level = 0
 	fort_borders = { } 
 
 	ic_at_war = yes 
-	force_ic_until = 1939
-	ic_end_year = 1939
+	force_ic_until = 1937
+	ic_end_year = 1937
 	IC_provs = {
-		163 # Stalingrad
-		168 # Gorki
-		175 # Moscow
-		177 # Danilov
-		178 # Yaroslavl
-		187 # Leningrad
-		1150 # Osa
-		1151 # Molotov
-		1416 # Irkutsk
-		1544 # Tomsk
-		1547 # Barnaul
-		1548 # Novosibirsk
-		1550 # Semipalatinsk
-		1552 # Omsk
-		1560 # Krasnoyarsk
-		1561 # Achinsk
-		1566 # Berezniki
-		1567 # Ufa
-		1569 # Gurjev
-		1571 # Serov
-		1572 # Sverdlovsk
-		1573 # NicnijTagil
-		1574 # Ghelyabinsk
-		1575 # Kurgan
-		1577 # Orsk
-		1592 # Petropavlovsk
-		1593 # Tyumen
-		1832 # Saratov
-		1830 # Syzran
-		1839 # Novouzensk
-		1827 # Naberezhnye Chelny
+		1384
+		1416
+		1417
+		1427
+		1485
+		1487
+		1489
+		1490
+		1491
+		1520
+		1544
+		1547
+		1548
+		1549
+		1550
+		1551
+		1552
+		1553
+		1556
+		1557
+		1558
+		1560
+		1561
+		1571
+		1573
+		1575
+		1580
+		1582
+		1586
+		1592
+		1593
 	} 
 }
 
 military = { 
-	relative_build_scheme 	= no
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
-	max_batch_home_front 	= 180
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 270
+	max_batch_war 		= 270
+	max_batch_home_front 	= 270
 
 	#### Divisions etc...
-	infantry 	= 49
+	infantry 	= 100
 	cavalry 	= 0
-	motorized 	= 8
+	motorized 	= 0
 	mechanized 	= 0
-	light_armor = 8
+	light_armor 	= 0
 	armor 		= 0
-	paratrooper = 0
+	paratrooper 	= 0
 	marine 		= 0
-	bergsjaeger = 0
-	garrison	= 2
-    hq 			= 4
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 0
 	militia 	= 0
-#				71 %
-	interceptor 	= 6
-	multi_role 		= 2
-	cas 			= 4
+#				100 %
+	interceptor 	= 0
+	multi_role 	= 0
+	cas 		= 0
 	strategic_bomber = 0
-	tactical_bomber = 2
+	tactical_bomber = 0
 	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				14 %
-	battleship 		= 1
-	carrier 		= 0
+#				0 %
+	battleship 	= 0
+	carrier 	= 0
 	escort_carrier	= 0
-	destroyer 		= 3
-	light_cruiser 	= 3
-	heavy_cruiser 	= 1
+	destroyer 	= 0
+	light_cruiser 	= 0
+	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 5
-	nuclear_submarine = 0
-	transports 		= 2
-#				15 %
+	submarine 	= 0
+	transports 	= 0
+#				0 %
 
 	#### Brigades
-	artillery 			= 16
-	sp_artillery 		= 5
-	rocket_artillery	= 4 
-	sp_rct_artillery 	= 4
-	anti_tank 			= 10
-	tank_destroyer 		= 4
-	light_armor_brigade = 3
-	heavy_armor 		= 6
+	artillery 		= 0
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
 	super_heavy_armor 	= 0
 	armored_car 		= 0
-	anti_air 			= 6
-	police 				= 0
-	engineer 			= 5 
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 0
 
 	cag = 100.000 
 }
 
-technology = { 
-	endgoal 	= { } 
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2400 2410 2420 2430 2440 11070 # Anti-Tank
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4170 4280 4180 15120 15130 # CAS
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5160 5180 # Assembly Lines
+		5310 5320 5330 5340 # Computing Machines
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+		7140 7150 7160 16000 # Computers
+		9090 9100 9110 9120 # Air Doctrines
+		14000 14010 14020 14030 14040 # Hospitals
+	}
 	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Arcriculture
-		5020 5030 5040
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Motorized
-		1230 1240 1250
-
-		# Fighter
-		4040 4070 4100
-
-		# CAS
-		4170 4280 4180
-
-		# Medium tanks
-		2070 2080 2090
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Naval Doctrines
-		8120 8130 8310 8190 8160 8330 8200
-
-		# Air Doctrines
-		9090 9050 9060 9100 9110 9120 9140 9070 9080 9130 9150 9190 9200 9210 9220 9240 9260 9270 9280 9310 9320 9330 9350
-	} 
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2400 2410 2420 2430 2440 11070 # Anti-Tank
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4170 4280 4180 15120 15130 # CAS
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5160 5180 # Assembly Lines
+		5310 5320 5330 5340 # Computing Machines
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+		7140 7150 7160 16000 # Computers
+		9090 9100 9110 9120 # Air Doctrines
+		14000 14010 14020 14030 14040 # Hospitals
+	}
 	ignore 		= {
-		# Ship & Rocket Assembly
-		5150 5170
-		
-		# Marines
-		1150 1160 1170 1180
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Air Transports 
-		4250 4260 4270
-
-		# Strategic bombers
-		4220 4230 4240
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-		
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Carrier 
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Armoured Cars
-		2150 2160
-
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
-		
-		# Land Doctrines
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1340 1350 1360 # Repair shops
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2450 2460 2470 2480 2490 2500 11080 # Static Anti-Air
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+		4040 4070 4100 15030 15040 15050 # Fighters
+		4190 4200 4210 15140 15150 # Naval Bombers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5150 5170 # Ship + Rocket Assembly Lines
+		5410 5420 5430 5440 5450 5460 13030 # Radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
 		14080 # Guerilla Warfare
 	}
- 
+
 	armor 		= 8
-	infantry 	= 8
-	industry 	= 6
-	aircraft 	= 3
-	naval 		= 1
-	land_doctrines 	= 2
+	infantry 	= 9
+	industry 	= 5
+	aircraft 	= 4
+	naval 		= 0
+	land_doctrines 	= 4
 	secret_weapons 	= 1
 	air_doctrines 	= 1
-	naval_doctrines = 1
-}  
+	naval_doctrines = 0
+}
 
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = no
 	home_multiplier 	= 1.0
 	overseas_multiplier 	= 0.5
-	home_peace_cap 		= 20
+	home_peace_cap 		= 101
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 1.0
 	revolt_risk_mult	= 1.0
 
 	# PRIORITIES:
-	beach			= 0	# Beach level 2
-	capital			= 40	# Our capital
-	human_border	= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
-	reserves 		= 40
+	beach			= 10	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -626,242 +338,96 @@
 		CHI = -1
 		AFG = -1
 		PER = 10
-		TUR = 20
-		FIN = 15
+		TUR = 10
+		FIN = 10
+		NOR = 10
+		JAP = 20
+		MAN = 20
 		ROM = 100
 		POL = 100
 		GER = 100
-		ITA = 50
-		JAP = 20
-		MAN = 20
-		SWE = 20
-		NOR = 20
-		HUN = 15
-		SLO = 15
-		BUL = 15
+		HUN = 100
 	}
 	province_priorities = {
-		187 = 50 # Leningrad
-		238 = 50 # Kiev
-		235 = 50 # Dnepropetrovsk
-		163 = 50 # Stalingrad
-		248 = 50 # Kharkov
-		277 = 50 # Bryansk
-		1372 = 50 # Vladivostock
-		133 = 50 # Murmansk
-	}
-	ignore = {
-		205 # Mazirbe (German Border easy surround hex)
-                1175 # Ocha (Bordering Japan, unimportant)
-                1172 # Petrothingie (USSR putting units here, don't know why, far east mountain)
-	}
-	area_multiplier = {
-		133 = 1.2 # Murmansk
+		187 = 60
+		163 = 60
+		175 = 80
+		238 = 80
+		1907 = 40
+		1572 = 40
 	}
+	ignore = { }
+	area_multiplier = { }
 }
 front = { 
 	recklessness 		= 1 # 0-3
 	distrib_vs_ai 		= even
-	distrib_vs_human 	= even
+	distrib_vs_human 	= op_defensive
 
-	enemy_reinf_days	= 6
-	reserve_prop		= 0.1
-	panic_ratio_vs_ai	= 2.0
-	panic_ratio_vs_human	= 2.0
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
-	max_attack_odds		= 3.0
+	enemy_reinf_days	= 3
+	reserve_prop		= 0.2
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
+	max_attack_odds		= 4.0
 	reinforce_odds		= 1.2
-	withdraw_odds		= 0.6
+	withdraw_odds		= 0.9
+
+	support_defense_prop = 0.5
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = {
-		JAP = 20
-		MAN = 20
 	} 
       	passivity = {
-		JAP = 70
-		MAN = 70
-	}
+	} 
 	province_priorities = {
-		187  = 6.0 # Leningrad
-		238  = 6.0 # Kiev
-		235  = 6.0 # Dnepropetrovsk
-		163  = 6.0 # Stalingrad
-		248  = 6.0 # Kharkov
-		277  = 6.0 # Bryansk
-		1372 = 6.0 # Vladivostock
-		113  = 6.0 # Murmansk
-		253  = 6.0 # Sevastopool
-		258  = 6.0 # Rostov
-		219  = 6.0 # Smolensk
-		175  = 9.0 # Moscow
-		243  = 6.0 # Kursk
+		163 = 2.5
+		175 = 2.5
+		187 = 2.5
+		238 = 2.5
 	}
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
+tech_sharing = {
+	favored = {
+		TAN = 200
+		MON = 200
+	}
 }
+
 ###################################
 # Invasions and Naval
 ###################################
 invasion = { 
- 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal		= 0.1	#increase to avoid coastal forts more.
-	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 0.1	#higher = avoid long distance.
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island		= 0.1	#prioritise taking pure islands.
-	enemy		= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
-	air_base	= 1.5 
-      	naval_base 	= 0.1 
-      	air_support 	= 3.0 
-      	redirect 	= priority
-	ignore		= no
+	ignore		= no 
+	invasion	= no
       
-	target = { 
-		#Norway
-		107 = 4000 # Oslo
-		108 = 4000 # Kristiansan
-		109 = 4000 # Stavanger
-		110 = 4000 # Bergen
-		125 = 4000 # Narvik
-		117 = 3750 # Alesund
-		118 = 3750 # Trondheim
-		124 = 3750 # Mo I Ran
-
-		#Sweden
-		106 = 4000 # Amal
-		98  = 4000 # Goterborg
-		93  = 4000 # Malmo
-		97  = 4000 # Jonkoping
-		100 = 3750 # Norrkoping
-		101 = 3750 # Stockholm
-		102 = 3750 # Uppsala
-		114 = 3750 # Gavle
-		120 = 4000 # Sundsuall
-		122 = 4000 # Umea
-		127 = 4000 # Lulea
-
-		#Finland
-		142 = 2000 # Helsinki
-		141 = 2000 # Turku
-		140 = 2000 # Pori
-		138 = 2000 # Vaasa
-		137 = 1750 # Oulu
-		131 = 1750 # Tornio
-	} 
+	target = { } 
 } 
-admiral = { 
-	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
-	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
-	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
-	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-
-	#Which provinces to use as bases..
-	base = {
-		187	# Leningrad
-		253	# Sevastopool
-		133	# Murmansk
-		154	# Archangel
-		1372	# Vladivostok
-		1848	# Batum
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = SOV
 	}
-	target = {
-		2382 = 200
-		2385 = 200
-		2386 = 150
-		2601 = 150
-		2482 = 200
-		2483 = 200
-		2467 = 200
-		2466 = 150
-		2215 = 50
-		2216 = 50
-		2217 = 25
-		2218 = 25
-	} 
-	core = {
-		2468
-		2484
-		2384
-		2381
-		2383
-		2191
-	} 
-}
\ No newline at end of file
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/sov_1938.ai Doomsday Data Files/ai/sov_1938.ai
--- Doomsday Data Files.old/ai/sov_1938.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/sov_1938.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,404 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no
+max_front_ratio = 2.0
+max_garrison_prop = 0.75
+min_garrison_prop = 0.25
+neutrality = 120.000 
+war = 0
+reinforcement = 0.05
+upgrading = 0.05
+desperation = 0.9
+strat_redeploy_threshold = 91
+exp_force_ratio = 0.10
+use_offensive_supply = no
+max_fuel_offensive = 1
+
+###################################
+# Diplomacy
+###################################
+claim_acceptance = -49
+
+demand_claims = {
+	EST
+	LAT
+	LIT
+}
+
+befriend = {
+	JAP = -10
+	MAN = -10
+	CHI = -10
+	MON = -10
+	TAN = -10
+	SIK = -10
+	AFG = -10
+	PER = 50
+	TUR = -10
+	ROM = -10
+	BUL = -10
+	POL = -10
+	LIT = -10
+	LAT = -10
+	EST = -10
+	FIN = -10
+	NOR = -10
+	SWE = -10
+	GER = -10
+	SLO = -10
+	HUN = -10
+	CSX = -10
+	CXB = -10
+	CYN = -10
+	CGX = -10
+	CHC = -10
+	MEN = -10
+	SPR = -10
+}
+
+protect = {
+	PER = 80 
+	ROM = 80 
+	TUR = 80
+	POL = 10
+	LAT = 50
+	EST = 50
+	LIT = 50
+	FIN = 50
+	TAN = 50
+	MON = 50
+	AFG = 50
+}
+
+trade = {
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = {
+		BUL = 50
+		ITA = 50
+		JAP = 50
+		ROM = 50
+		YUG = 50
+		GER = 75
+		SPR = 75
+		MON = 100
+		TAN = 100
+	}
+	embargo = { }
+}
+
+###################################
+# Construction and Tech Research
+###################################
+construction = { 
+	max_factor = 0.0
+
+	AA_batteries = no
+	max_AA_level = 0
+	AA_provs = { } 
+
+	coastal_fort = no
+	max_coastal_level = 0
+	coastal_fort_provs = { } 
+
+	radar_station = no 
+	max_radar = 0
+	radar_provs = { } 
+
+	air_base = no
+	max_air_base = 0
+	air_base_provs = { }
+
+	naval_base = no 
+	max_naval_base = 0
+	naval_base_provs = { } 
+
+	land_fort = no
+	max_land_level = 0
+	fort_borders = { } 
+
+	ic_at_war = no 
+	force_ic_until = 1935
+	ic_end_year = 1935
+	IC_provs = { }
+}
+
+military = { 
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 720
+	max_batch_war 		= 720
+	max_batch_home_front 	= 720
+
+	#### Divisions etc...
+	infantry 	= 100
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 0
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				100 %
+	interceptor 	= 0
+	multi_role 	= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 0
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				0 %
+	battleship 	= 0
+	carrier 	= 0
+	escort_carrier	= 0
+	destroyer 	= 0
+	light_cruiser 	= 0
+	heavy_cruiser 	= 0
+	battlecruiser 	= 0
+	submarine 	= 0
+	transports 	= 0
+#				0 %
+
+	#### Brigades
+	artillery 		= 0
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 0
+
+	cag = 100.000 
+}
+
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2400 2410 2420 2430 2440 11070 # Anti-Tank
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4170 4280 4180 15120 15130 # CAS
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5160 5180 # Assembly Lines
+		5310 5320 5330 5340 # Computing Machines
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+		7140 7150 7160 16000 # Computers
+		9090 9100 9110 9120 # Air Doctrines
+		14000 14010 14020 14030 14040 # Hospitals
+	}
+	preference 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2400 2410 2420 2430 2440 11070 # Anti-Tank
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4170 4280 4180 15120 15130 # CAS
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5160 5180 # Assembly Lines
+		5310 5320 5330 5340 # Computing Machines
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+		7140 7150 7160 16000 # Computers
+		9090 9100 9110 9120 # Air Doctrines
+		14000 14010 14020 14030 14040 # Hospitals
+	}
+	ignore 		= {
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1340 1350 1360 # Repair shops
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2450 2460 2470 2480 2490 2500 11080 # Static Anti-Air
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+		4040 4070 4100 15030 15040 15050 # Fighters
+		4190 4200 4210 15140 15150 # Naval Bombers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5150 5170 # Ship + Rocket Assembly Lines
+		5410 5420 5430 5440 5450 5460 13030 # Radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+		14080 # Guerilla Warfare
+	}
+
+	armor 		= 8
+	infantry 	= 9
+	industry 	= 5
+	aircraft 	= 4
+	naval 		= 0
+	land_doctrines 	= 4
+	secret_weapons 	= 1
+	air_doctrines 	= 1
+	naval_doctrines = 0
+}
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
+
+garrison = {
+	defend_overseas_beaches = no
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 1.0
+
+	# PRIORITIES:
+	beach			= 10	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		MON = -1
+		TAN = -1
+		SIK = -1
+		CHI = -1
+		AFG = -1
+		PER = 10
+		TUR = 10
+		FIN = 10
+		NOR = 10
+		JAP = 20
+		MAN = 20
+		ROM = 100
+		POL = 100
+		GER = 100
+		HUN = 100
+	}
+	province_priorities = {
+		187 = 60
+		163 = 60
+		175 = 80
+		238 = 80
+		1907 = 40
+		1572 = 40
+	}
+	ignore = { }
+	area_multiplier = { }
+}
+front = { 
+	recklessness 		= 1 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= op_defensive
+
+	enemy_reinf_days	= 3
+	reserve_prop		= 0.2
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
+	max_attack_odds		= 4.0
+	reinforce_odds		= 1.2
+	withdraw_odds		= 0.9
+
+	support_defense_prop = 0.5
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = {
+	} 
+      	passivity = {
+	} 
+	province_priorities = {
+		163 = 2.5
+		175 = 2.5
+		187 = 2.5
+		238 = 2.5
+	}
+} 
+
+tech_sharing = {
+	favored = {
+		TAN = 200
+		MON = 200
+	}
+}
+
+###################################
+# Invasions and Naval
+###################################
+invasion = { 
+	ignore		= no 
+	invasion	= no
+      
+	target = { } 
+} 
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = SOV
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/sov_1939.ai Doomsday Data Files/ai/sov_1939.ai
--- Doomsday Data Files.old/ai/sov_1939.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/sov_1939.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,50 +1,63 @@
-# Soviet 1939 AI File by Lothos
-
-switch = no # [yes/no]
-max_front_ratio = 1.2 
-max_front_ratios = {
-	JAP = 1.0 
-	MAN = 1.0
-}
-max_garrison_prop = 0.30
-min_garrison_prop = 0.20
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no
+max_front_ratio = 2.0
+max_garrison_prop = 0.75
+min_garrison_prop = 0.25
 neutrality = 120.000 
 war = 0
-strat_redeploy_threshold = 50
-max_redeploying = 0.05
+reinforcement = 0.05
+upgrading = 0.05
+desperation = 0.9
+strat_redeploy_threshold = 91
 exp_force_ratio = 0.10
-exp_force_ratios = { } 
-no_exp_forces_to = { }
+use_offensive_supply = no
+max_fuel_offensive = 1
 
-flags = {
-  	MolotovPact = yes
-}
 ###################################
 # Diplomacy
 ###################################
-combat = { }
-
 claim_acceptance = -49
 
 demand_claims = {
 	EST
 	LAT
-	ROM
 	LIT
-	FIN
 }
+
 befriend = {
-	ENG = 10
-	ROM = 50
-	BUL = 40 
-	TUR = 60 
-	POL = 20 
-	YUG = 40
-	PER = 60 
-	SPR = 100
-	MON = 100
-	TAN = 100
+	JAP = -10
+	MAN = -10
+	CHI = -10
+	MON = -10
+	TAN = -10
+	SIK = -10
+	AFG = -10
+	PER = 50
+	TUR = -10
+	ROM = -10
+	BUL = -10
+	POL = -10
+	LIT = -10
+	LAT = -10
+	EST = -10
+	FIN = -10
+	NOR = -10
+	SWE = -10
+	GER = -10
+	SLO = -10
+	HUN = -10
+	CSX = -10
+	CXB = -10
+	CYN = -10
+	CGX = -10
+	CHC = -10
+	MEN = -10
+	SPR = -10
 }
+
 protect = {
 	PER = 80 
 	ROM = 80 
@@ -58,40 +71,8 @@
 	MON = 50
 	AFG = 50
 }
-target = { 
-	#Tannu Tuva
-	1318 = 150 # Kyzyl
-
-	#Finland
-	145 = 100 # Viipur
-	146 = 100 # Sortavalo
-
-	#Estonia
-	193 = 90 # Narva
-	195 = 90 # Tartu
-	194 = 90 # Tallin
-	196 = 90 # Parnu
-
-	#Latvia
-	198 = 80 # Gulbene
-	197 = 80 # Riga
-	202 = 80 # Dagaupulis
-	203 = 80 # Jekapils
-	204 = 80 # Jelgava
-	205 = 80 # Mazirbe
-
-	#Lithuania
-	207 = 70 # Kaunas
-	577 = 70 # Siauliau
-	511 = 70 # Alytus
-
-	#Romania
-	230 = 50 # Beltsy
-	434 = 50 # Tiraspol
-} 
-trade = {
-	cancel_deal_threshold = 2
 
+trade = {
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -100,512 +81,221 @@
 	money 		= -1
 
 	favored = {
-		GER = 80
-		SWE = 20
+		BUL = 50
 		ITA = 50
-		SPR = 60
-		BUL = 40
-		YUG = 40
-		TUR = 50
-		ROM = 30
-		JAP = 40
+		JAP = 50
+		ROM = 50
+		YUG = 50
+		GER = 75
+		SPR = 75
+		MON = 100
+		TAN = 100
 	}
 	embargo = { }
 }
-tech_sharing = {
-	favored = {
-		GER = 20
-		SWE = 20
-		ITA = 50
-		SPR = 60
-		BUL = 40
-		YUG = 40
-		TUR = 50
-		ROM = 30
-		JAP = 20
-	}
-	embargo = { }
-	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Motorized
-		1230 = 100
-		1240 = 100
-		1250 = 100
-
-		# CAS
-		4170 = 100
-		4280 = 100
-		4180 = 100
-
-		# Medium tanks
-		2070 = 100
-		2080 = 100
-		2090 = 100
-
-		# Light tanks
-		2020 = 100
-		2030 = 100
-		2040 = 100
-		2050 = 100
-		2060 = 100
-
-		# Mechanized
-		1260 = 100
-		1270 = 100
-		1280 = 100
-		1290 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = SOV
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 2
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 10
-		nuclear_sabotage 	= 0
-		found_partisans		= 2
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 4
-		country 			= GER
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 3
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= USA
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 6
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 3
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= ENG
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 6
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 3
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= JAP
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 3
-		sabotage_industry 	= 1
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= TUR
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 3
-		sabotage_industry 	= 1
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= FIN
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 3
-		sabotage_industry 	= 1
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= POL
-	}
-}
+
 ###################################
 # Construction and Tech Research
 ###################################
-#Default values
 construction = { 
-	max_factor = 0.350
-
-	AA_batteries = atwar
-	max_AA_level = 3
-	AA_provs = {
-		187 # Leningrad
-		175 # Moscow
-		238 # Kiev
-		235 # Dnepropetrovsk
-		163 # Stalingrad
-		248 # Kharkov
-		277 # Bryansk
-		1574 # Chelyabinsk
-		1372 # Vladivostock
-	} 
+	max_factor = 0.0
 
-	coastal_fort = atwar
-	max_coastal_level = 3
-	coastal_fort_provs = {
-		187 # Leningrad
-	} 
+	AA_batteries = no
+	max_AA_level = 0
+	AA_provs = { } 
+
+	coastal_fort = no
+	max_coastal_level = 0
+	coastal_fort_provs = { } 
 
 	radar_station = no 
-	max_radar = 5 
+	max_radar = 0
 	radar_provs = { } 
 
-	air_base = atwar
-	max_air_base = 2
+	air_base = no
+	max_air_base = 0
 	air_base_provs = { }
 
 	naval_base = no 
-	max_naval_base = 5 
+	max_naval_base = 0
 	naval_base_provs = { } 
 
 	land_fort = no
-	max_land_level = 2
+	max_land_level = 0
 	fort_borders = { } 
 
-	ic_at_war = yes 
-	force_ic_until = 1938
-	ic_end_year = 1940
-	IC_provs = {
-		163 # Stalingrad
-		168 # Gorki
-		175 # Moscow
-		177 # Danilov
-		178 # Yaroslavl
-		187 # Leningrad
-		1150 # Osa
-		1151 # Molotov
-		1416 # Irkutsk
-		1544 # Tomsk
-		1547 # Barnaul
-		1548 # Novosibirsk
-		1550 # Semipalatinsk
-		1552 # Omsk
-		1560 # Krasnoyarsk
-		1561 # Achinsk
-		1566 # Berezniki
-		1567 # Ufa
-		1569 # Gurjev
-		1571 # Serov
-		1572 # Sverdlovsk
-		1573 # NicnijTagil
-		1574 # Ghelyabinsk
-		1575 # Kurgan
-		1577 # Orsk
-		1592 # Petropavlovsk
-		1593 # Tyumen
-		1832 # Saratov
-		1830 # Syzran
-		1839 # Novouzensk
-		1827 # Naberezhnye Chelny
-	} 
+	ic_at_war = no 
+	force_ic_until = 1935
+	ic_end_year = 1935
+	IC_provs = { }
 }
 
 military = { 
-	relative_build_scheme 	= no
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
-	max_batch_home_front 	= 180
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 540
+	max_batch_war 		= 540
+	max_batch_home_front 	= 540
 
 	#### Divisions etc...
-	infantry 		= 49
-	cavalry 		= 4
-	motorized 		= 8
-	mechanized 		= 4
+	infantry 	= 95
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 12
+	armor 		= 5
 	paratrooper 	= 0
-	marine 			= 0
+	marine 		= 0
 	bergsjaeger 	= 0
-	garrison		= 1
-    hq 				= 8
-	militia 		= 0
-#				86 %
-	interceptor 	= 4
-	multi_role 		= 3
-	cas 			= 3
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				100 %
+	interceptor 	= 0
+	multi_role 	= 0
+	cas 		= 0
 	strategic_bomber = 0
-	tactical_bomber = 4
+	tactical_bomber = 0
 	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				14 %
-	battleship 		= 0
-	carrier 		= 0
+#				0 %
+	battleship 	= 0
+	carrier 	= 0
 	escort_carrier	= 0
-	destroyer 		= 0
+	destroyer 	= 0
 	light_cruiser 	= 0
 	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 0
+	submarine 	= 0
+	transports 	= 0
 #				0 %
 
 	#### Brigades
-	artillery 			= 16
-	sp_artillery 		= 5
-	rocket_artillery	= 4 
-	sp_rct_artillery 	= 2
-	anti_tank 			= 8
-	tank_destroyer 		= 4
-	light_armor_brigade = 3
-	heavy_armor 		= 6
+	artillery 		= 0
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
 	super_heavy_armor 	= 0
-	armored_car 		= 2
-	anti_air 			= 6
-	police 				= 2
-	engineer 			= 5 
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 0
 
 	cag = 100.000 
 }
 
-technology = { 
-	endgoal 	= { } 
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2400 2410 2420 2430 2440 11070 # Anti-Tank
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4170 4280 4180 15120 15130 # CAS
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5160 5180 # Assembly Lines
+		5310 5320 5330 5340 # Computing Machines
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+		7140 7150 7160 16000 # Computers
+		9090 9100 9110 9120 # Air Doctrines
+		14000 14010 14020 14030 14040 # Hospitals
+	}
 	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Arcriculture
-		5020 5030 5040
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Motorized
-		1230 1240 1250
-
-		# Fighter
-		4040 4070 4100
-
-		# CAS
-		4170 4280 4180
-
-		# Medium tanks
-		2070 2080 2090
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Naval Doctrines
-		8120 8130 8310 8190 8160 8330 8200
-
-		# Air Doctrines
-		9090 9050 9060 9100 9110 9120 9140 9070 9080 9130 9150 9190 9200 9210 9220 9240 9260 9270 9280 9310 9320 9330 9350
-	} 
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2400 2410 2420 2430 2440 11070 # Anti-Tank
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4170 4280 4180 15120 15130 # CAS
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5160 5180 # Assembly Lines
+		5310 5320 5330 5340 # Computing Machines
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+		7140 7150 7160 16000 # Computers
+		9090 9100 9110 9120 # Air Doctrines
+		14000 14010 14020 14030 14040 # Hospitals
+	}
 	ignore 		= {
-		# Ship & Rocket Assembly
-		5150 5170
-		
-		# Marines
-		1150 1160 1170 1180
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Air Transports 
-		4250 4260 4270
-
-		# Strategic bombers
-		4220 4230 4240
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-		
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Carrier 
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Armoured Cars
-		2150 2160
-
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
-		
-		# Land Doctrines
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1340 1350 1360 # Repair shops
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2450 2460 2470 2480 2490 2500 11080 # Static Anti-Air
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+		4040 4070 4100 15030 15040 15050 # Fighters
+		4190 4200 4210 15140 15150 # Naval Bombers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5150 5170 # Ship + Rocket Assembly Lines
+		5410 5420 5430 5440 5450 5460 13030 # Radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
 		14080 # Guerilla Warfare
 	}
-  
+
 	armor 		= 8
-	infantry 	= 8
-	industry 	= 6
-	aircraft 	= 3
-	naval 		= 1
-	land_doctrines 	= 2
+	infantry 	= 9
+	industry 	= 5
+	aircraft 	= 4
+	naval 		= 0
+	land_doctrines 	= 4
 	secret_weapons 	= 1
 	air_doctrines 	= 1
-	naval_doctrines = 1
+	naval_doctrines = 0
 }
+
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = no
 	home_multiplier 	= 1.0
 	overseas_multiplier 	= 0.5
-	home_peace_cap 		= 20
+	home_peace_cap 		= 101
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 1.0
 	revolt_risk_mult	= 1.0
 
 	# PRIORITIES:
-	beach			= 0	# Beach level 2
-	capital			= 40	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	beach			= 10	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -619,242 +309,96 @@
 		CHI = -1
 		AFG = -1
 		PER = 10
-		TUR = 20
-		FIN = 50
+		TUR = 10
+		FIN = 10
+		NOR = 10
+		JAP = 20
+		MAN = 20
 		ROM = 100
 		POL = 100
 		GER = 100
-		ITA = 50
-		JAP = 20
-		MAN = 20
-		SWE = 20
-		NOR = 20
-		HUN = 15
-		SLO = 15
-		BUL = 15
+		HUN = 100
 	}
 	province_priorities = {
-		187 = 50 # Leningrad
-		238 = 50 # Kiev
-		235 = 50 # Dnepropetrovsk
-		163 = 50 # Stalingrad
-		248 = 50 # Kharkov
-		277 = 50 # Bryansk
-		1372 = 50 # Vladivostock
-		113 = 50 # Murmansk
-	}
-	ignore = {
-		205 # Mazirbe (German Border easy surround hex)
-                1175 # Ocha (Bordering Japan, unimportant)
-                1172 # Petrothingie (USSR putting units here, don't know why, far east mountain)
-	}
-	area_multiplier = {
-		113 = 2.5 # Murmansk
+		187 = 60
+		163 = 60
+		175 = 80
+		238 = 80
+		1907 = 40
+		1572 = 40
 	}
+	ignore = { }
+	area_multiplier = { }
 }
 front = { 
 	recklessness 		= 1 # 0-3
 	distrib_vs_ai 		= even
-	distrib_vs_human 	= even
+	distrib_vs_human 	= op_defensive
 
-	enemy_reinf_days	= 6
-	reserve_prop		= 0.1
-	panic_ratio_vs_ai	= 2.0
-	panic_ratio_vs_human	= 2.0
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
-	max_attack_odds		= 3.0
+	enemy_reinf_days	= 3
+	reserve_prop		= 0.2
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
+	max_attack_odds		= 4.0
 	reinforce_odds		= 1.2
-	withdraw_odds		= 0.6
+	withdraw_odds		= 0.9
+
+	support_defense_prop = 0.5
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = {
-		JAP = 20
-		MAN = 20
 	} 
       	passivity = {
-		JAP = 70
-		MAN = 70
 	} 
 	province_priorities = {
-		187  = 6.0 # Leningrad
-		238  = 6.0 # Kiev
-		235  = 6.0 # Dnepropetrovsk
-		163  = 6.0 # Stalingrad
-		248  = 6.0 # Kharkov
-		277  = 6.0 # Bryansk
-		1372 = 6.0 # Vladivostock
-		113  = 6.0 # Murmansk
-		253  = 6.0 # Sevastopool
-		258  = 6.0 # Rostov
-		219  = 6.0 # Smolensk
-		175  = 9.0 # Moscow
-		243  = 6.0 # Kursk
+		163 = 2.5
+		175 = 2.5
+		187 = 2.5
+		238 = 2.5
 	}
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
+tech_sharing = {
+	favored = {
+		TAN = 200
+		MON = 200
+	}
 }
+
 ###################################
 # Invasions and Naval
 ###################################
 invasion = { 
- 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal		= 0.1	#increase to avoid coastal forts more.
-	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 0.1	#higher = avoid long distance.
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island		= 0.1	#prioritise taking pure islands.
-	enemy		= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
-	air_base	= 1.5 
-      	naval_base 	= 0.1 
-      	air_support 	= 3.0 
-      	redirect 	= priority
-	ignore		= no
+	ignore		= no 
+	invasion	= no
       
-	target = { 
-		#Norway
-		107 = 4000 # Oslo
-		108 = 4000 # Kristiansan
-		109 = 4000 # Stavanger
-		110 = 4000 # Bergen
-		125 = 4000 # Narvik
-		117 = 3750 # Alesund
-		118 = 3750 # Trondheim
-		124 = 3750 # Mo I Ran
-
-		#Sweden
-		106 = 4000 # Amal
-		98  = 4000 # Goterborg
-		93  = 4000 # Malmo
-		97  = 4000 # Jonkoping
-		100 = 3750 # Norrkoping
-		101 = 3750 # Stockholm
-		102 = 3750 # Uppsala
-		114 = 3750 # Gavle
-		120 = 4000 # Sundsuall
-		122 = 4000 # Umea
-		127 = 4000 # Lulea
-
-		#Finland
-		142 = 2000 # Helsinki
-		141 = 2000 # Turku
-		140 = 2000 # Pori
-		138 = 2000 # Vaasa
-		137 = 1750 # Oulu
-		131 = 1750 # Tornio
-	} 
+	target = { } 
 } 
-admiral = { 
-	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
-	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
-	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
-	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-
-	#Which provinces to use as bases..
-	base = {
-		187	# Leningrad
-		253	# Sevastopool
-		133	# Murmansk
-		154	# Archangel
-		1372	# Vladivostok
-		1848	# Batum
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = SOV
 	}
-	target = {
-		2382 = 200
-		2385 = 200
-		2386 = 150
-		2601 = 150
-		2482 = 200
-		2483 = 200
-		2467 = 200
-		2466 = 150
-		2215 = 50
-		2216 = 50
-		2217 = 25
-		2218 = 25
-	} 
-	core = {
-		2468
-		2484
-		2384
-		2381
-		2383
-		2191
-	} 
-}
\ No newline at end of file
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/sov_1941.ai Doomsday Data Files/ai/sov_1941.ai
--- Doomsday Data Files.old/ai/sov_1941.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/sov_1941.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,103 +1,66 @@
-# Soviet 1944 AI File by Lothos
-
-switch = no # [yes/no]
-max_front_ratio = 1.2 
-max_front_ratios = { 	# Override the default against specific countries. Ignored against humans.
-	JAP = 1.0 
-	GER = 20.0
-	ROM = 20.0
-}
-max_garrison_prop = 0.07
-min_garrison_prop = 0.03
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no
+max_front_ratio = 2.0
+max_garrison_prop = 0.75
+min_garrison_prop = 0.25
 neutrality = 120.000 
 war = 0
-strat_redeploy_threshold = 50
+reinforcement = 0.20
+upgrading = 0.10
+desperation = 0.9
+strat_redeploy_threshold = 151
 max_redeploying = 0.05
-exp_force_ratio = 0.05
-exp_force_ratios = { } 
-no_exp_forces_to = { }
+exp_force_ratio = 0.10
+use_offensive_supply = no
+max_fuel_offensive = 1
 
 ###################################
 # Diplomacy
 ###################################
-combat = { }
-
 claim_acceptance = -49
 
-# Special resistance against "influence" by the listed nations. Value range = [0 - 10]  
-resistance = {  
-	GER = 1 
-	ENG = 2
-	FRA = 2
-	USA = 2
-	JAP = 2
-}
 demand_claims = {
-	EST
-	LAT
 	ROM
-	LIT
-	FIN
 }
+
 befriend = {
-	ENG = 10
-	ROM = 50
-	BUL = 40 
-	TUR = 60 
-	POL = 20 
-	YUG = 40
-	PER = 60 
-	SPR = 100
-	MON = 100
-	TAN = 100
+	JAP = -10
+	MAN = -10
+	CHI = -10
+	MON = -10
+	TAN = -10
+	SIK = -10
+	AFG = -10
+	PER = 50
+	TUR = -10
+	ROM = -10
+	BUL = -10
+	POL = -10
+	LIT = -10
+	LAT = -10
+	EST = -10
+	FIN = -10
+	NOR = -10
+	SWE = -10
+	GER = -10
+	SLO = -10
+	HUN = -10
+	CSX = -10
+	CXB = -10
+	CYN = -10
+	CGX = -10
+	CHC = -10
+	MEN = -10
+	SPR = -10
 }
+
 protect = {
-	PER = 80 
-	ROM = 80 
-	TUR = 80
-	POL = 10
-	LAT = 50
-	EST = 50
-	LIT = 50
-	FIN = 50
-	TAN = 50
-	MON = 50
-	AFG = 50
-}
-target = { 
-	#Tannu Tuva
-	1318 = 150 # Kyzyl
-
-	#Finland
-	145 = 100 # Viipur
-	146 = 100 # Sortavalo
-
-	#Estonia
-	193 = 90 # Narva
-	195 = 90 # Tartu
-	194 = 90 # Tallin
-	196 = 90 # Parnu
-
-	#Latvia
-	198 = 80 # Gulbene
-	197 = 80 # Riga
-	202 = 80 # Dagaupulis
-	203 = 80 # Jekapils
-	204 = 80 # Jelgava
-	205 = 80 # Mazirbe
-
-	#Lithuania
-	207 = 70 # Kaunas
-	577 = 70 # Siauliau
-	511 = 70 # Alytus
-
-	#Romania
-	230 = 50 # Beltsy
-	434 = 50 # Tiraspol
-} 
-trade = {
-	cancel_deal_threshold = 2
+}
 
+trade = {
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -106,490 +69,214 @@
 	money 		= -1
 
 	favored = {
-		GER = 80
-		SWE = 20
-		ITA = 50
-		SPR = 60
-		BUL = 40
-		YUG = 40
-		TUR = 50
-		ROM = 30
-		JAP = 40
-	}
-	embargo = { }
-}
-tech_sharing = {
-	favored = {
-		GER = 20
-		SWE = 20
-		ITA = 50
-		SPR = 60
-		BUL = 40
-		YUG = 40
-		TUR = 50
-		ROM = 30
-		JAP = 20
+		MON = 100
+		TAN = 100
 	}
 	embargo = { }
-	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Motorized
-		1230 = 100
-		1240 = 100
-		1250 = 100
-
-		# CAS
-		4170 = 100
-		4280 = 100
-		4180 = 100
-
-		# Medium tanks
-		2070 = 100
-		2080 = 100
-		2090 = 100
-
-		# Light tanks
-		2020 = 100
-		2030 = 100
-		2040 = 100
-		2050 = 100
-		2060 = 100
-
-		# Mechanized
-		1260 = 100
-		1270 = 100
-		1280 = 100
-		1290 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = SOV
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 2
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 10
-		nuclear_sabotage 	= 0
-		found_partisans		= 2
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 4
-		country 			= GER
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 10
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 3
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= USA
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 6
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 3
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= ENG
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 6
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 2
-		coup 				= 1
-		sabotage_industry 	= 3
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 2
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= JAP
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 3
-		sabotage_industry 	= 1
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= TUR
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 3
-		sabotage_industry 	= 1
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= FIN
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 4
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 3
-		sabotage_industry 	= 1
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= POL
-	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
-#Default values
 construction = { 
-	max_factor = 0.050
+	max_factor = 1.0
 
-	AA_batteries = atwar
-	max_AA_level = 3
-	AA_provs = {
-		187 # Leningrad
-		175 # Moscow
-		238 # Kiev
-		235 # Dnepropetrovsk
-		163 # Stalingrad
-		248 # Kharkov
-		277 # Bryansk
-		1574 # Chelyabinsk
-		1372 # Vladivostock
-	} 
-
-	coastal_fort = atwar
-	max_coastal_level = 3
-	coastal_fort_provs = {
-		187 # Leningrad
-	} 
+	AA_batteries = no
+	max_AA_level = 0
+	AA_provs = { } 
+
+	coastal_fort = no
+	max_coastal_level = 0
+	coastal_fort_provs = { } 
 
 	radar_station = no 
-	max_radar = 5 
+	max_radar = 0
 	radar_provs = { } 
 
-	air_base = atwar
-	max_air_base = 2
+	air_base = no
+	max_air_base = 0
 	air_base_provs = { }
 
 	naval_base = no 
-	max_naval_base = 5 
+	max_naval_base = 0
 	naval_base_provs = { } 
 
 	land_fort = no
-	max_land_level = 2
+	max_land_level = 0
 	fort_borders = { } 
 
-	ic_at_war = yes 
-	force_ic_until = 1938
-	ic_end_year = 1940
-	IC_provs = {
-		187 # Leningrad
-		175 # Moscow
-		1150 1160 1170 1180 # Osa
-		1151 # Molotov
-		235 # Dnepropetrovsk
-		163 # Stalingrad
-		248 # Kharkov
-		277 # Bryansk
-		1574 # Chelyabinsk
-		1372 # Vladivostock
-	} 
+	ic_at_war = no 
+	force_ic_until = 1935
+	ic_end_year = 1935
+	IC_provs = { } 
 }
 
 military = { 
-	relative_build_scheme 	= no
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
-	max_batch_home_front 	= 180
+	relative_build_scheme 	= yes 
+	max_batch_peace 	= 540 
+	max_batch_war 		= 540 
+	max_batch_home_front 	= 540
 
 	#### Divisions etc...
-	infantry 		= 49
-	cavalry 		= 4
-	motorized 		= 8
-	mechanized 		= 4
+	infantry 	= 63
+	cavalry 	= 3
+	motorized 	= 5
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 12
+	armor 		= 10
 	paratrooper 	= 0
-	marine 			= 0
-	bergsjaeger 	= 0
-	garrison		= 1
-    hq	 			= 8
-	militia 		= 0
-#				86 %
-	interceptor 	= 4
-	multi_role 		= 3
-	cas 			= 3
+	marine 		= 0
+	bergsjaeger 	= 5
+	garrison	= 0
+      	hq 		= 2
+	militia 	= 0
+#				88 %
+	interceptor 	= 7
+	multi_role 	= 0
+	cas 		= 5
 	strategic_bomber = 0
-	tactical_bomber = 4
+	tactical_bomber = 0
 	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				14 %
-	battleship 		= 0
-	carrier 		= 0
+#				12 %
+	battleship 	= 0
+	carrier 	= 0
 	escort_carrier	= 0
-	destroyer 		= 0
+	destroyer 	= 0
 	light_cruiser 	= 0
 	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 0
+	submarine 	= 0
+	transports 	= 0
 #				0 %
 
 	#### Brigades
-	artillery 			= 16
-	sp_artillery 		= 5
-	rocket_artillery	= 4 
-	sp_rct_artillery 	= 2
-	anti_tank 			= 8
-	tank_destroyer 		= 4
-	light_armor_brigade = 3
-	heavy_armor 		= 6
+	artillery 		= 0
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
 	super_heavy_armor 	= 0
-	armored_car 		= 2
-	anti_air 			= 6
-	police 				= 2
-	engineer 			= 5 
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 0
 
 	cag = 100.000 
 }
-technology = { 
-	endgoal 	= { } 
-	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Arcriculture
-		5020 5030 5040
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Motorized
-		1230 1240 1250
-
-		# Fighter
-		4040 4070 4100
-
-		# CAS
-		4170 4280 4180
-
-		# Medium tanks
-		2070 2080 2090
 
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Naval Doctrines
-		8120 8130 8310 8190 8160 8330 8200
-
-		# Air Doctrines
-		9090 9050 9060 9100 9110 9120 9140 9070 9080 9130 9150 9190 9200 9210 9220 9240 9260 9270 9280 9310 9320 9330 9350
-	} 
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2400 2410 2420 2430 2440 11070 # Anti-Tank
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4170 4280 4180 15120 15130 # CAS
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5160 5180 # Assembly Lines
+		5310 5320 5330 5340 # Computing Machines
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+		7140 7150 7160 16000 # Computers
+		9090 9100 9110 9120 # Air Doctrines
+		14000 14010 14020 14030 14040 # Hospitals
+	}
+	preference 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2400 2410 2420 2430 2440 11070 # Anti-Tank
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4170 4280 4180 15120 15130 # CAS
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5160 5180 # Assembly Lines
+		5310 5320 5330 5340 # Computing Machines
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+		7140 7150 7160 16000 # Computers
+		9090 9100 9110 9120 # Air Doctrines
+		14000 14010 14020 14030 14040 # Hospitals
+	}
 	ignore 		= {
-		# Ship & Rocket Assembly
-		5150 5170
-		
-		# Marines
-		1150 1160 1170 1180
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Air Transports 
-		4250 4260 4270
-
-		# Strategic bombers
-		4220 4230 4240
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-		
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Carrier 
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Armoured Cars
-		2150 2160
-
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
-		
-		# Land Doctrines
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1340 1350 1360 # Repair shops
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2450 2460 2470 2480 2490 2500 11080 # Static Anti-Air
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+		4040 4070 4100 15030 15040 15050 # Fighters
+		4190 4200 4210 15140 15150 # Naval Bombers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5150 5170 # Ship + Rocket Assembly Lines
+		5410 5420 5430 5440 5450 5460 13030 # Radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
 		14080 # Guerilla Warfare
 	}
-  
-	armor 		= 8
-	infantry 	= 8
-	industry 	= 6
-	aircraft 	= 3
-	naval 		= 1
-	land_doctrines 	= 2
+
+	armor 		= 9
+	infantry 	= 9
+	industry 	= 5
+	aircraft 	= 4
+	naval 		= 0
+	land_doctrines 	= 5
 	secret_weapons 	= 1
 	air_doctrines 	= 1
-	naval_doctrines = 1
+	naval_doctrines = 0
 }
+
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = no
 	home_multiplier 	= 1.0
 	overseas_multiplier 	= 0.5
-	home_peace_cap 		= 20
+	home_peace_cap 		= 101
 	war_zone_odds 		= 2.0
-	key_point_prio_mult	= 0.0
-	revolt_risk_mult	= 0.3
+	key_point_prio_mult	= 0.5
+	revolt_risk_mult	= 0.5
 
 	# PRIORITIES:
-	beach			= 0	# Beach level 2
-	capital			= 20	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	beach			= 10	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 200	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -597,233 +284,102 @@
 
 	# Borders with specific countries
 	country_priorities = {
-		CHI = -1
 		MON = -1
 		TAN = -1
 		SIK = -1
+		CHI = -1
 		AFG = -1
-		IRQ = -1
-		ENG = -1
 		PER = -1
 		TUR = -1
-		FIN = 20
-		ROM = 150
-		GER = 100
-		ITA = 50
-		JAP = 20
-		MAN = 20
-		SWE = -1
 		NOR = -1
-		HUN = 15
-		SLO = 15
-		BUL = 15
+		MAN = 20
+		JAP = 20
+		ROM = 50
+		HUN = 50
+		FIN = 50
+		GER = 300
+	}
+	province_priorities = {
+		187 = 70
+		163 = 70
+		175 = 80
+		238 = 80
+		1907 = 60
+		1572 = 60
 	}
-	province_priorities = { }
+	ignore = { 205 }
 	area_multiplier = { }
 }
 front = { 
-	recklessness 		= 0 # 0-3
-	distrib_vs_ai 		= op_defensive
+	recklessness 		= 1 # 0-3
+	distrib_vs_ai 		= even
 	distrib_vs_human 	= op_defensive
 
-	enemy_reinf_days	= 6
-	reserve_prop		= 0.0
-	panic_ratio_vs_ai	= 2.0
-	panic_ratio_vs_human	= 2.0
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
-	max_attack_odds		= 3.0
+	enemy_reinf_days	= 3
+	reserve_prop		= 0.2
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
+	max_attack_odds		= 4.0
 	reinforce_odds		= 1.2
-	withdraw_odds		= 0.6
+	withdraw_odds		= 0.9
+
+	support_defense_prop = 0.5
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = {
-		JAP = 20
-		MAN = 20
+		ROM = 180
 	} 
       	passivity = {
-		JAP = 70
-		MAN = 70
 	} 
 	province_priorities = {
-		187  = 6.0 # Leningrad
-		238  = 6.0 # Kiev
-		235  = 6.0 # Dnepropetrovsk
-		163  = 6.0 # Stalingrad
-		248  = 6.0 # Kharkov
-		277  = 6.0 # Bryansk
-		1372 = 6.0 # Vladivostock
-		113  = 6.0 # Murmansk
-		253  = 6.0 # Sevastopool
-		258  = 6.0 # Rostov
-		219  = 6.0 # Smolensk
-		175  = 9.0 # Moscow
-		243  = 6.0 # Kursk
+		163 = 2.5
+		175 = 2.5
+		187 = 2.5
+		238 = 2.5
 	}
 } 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
+tech_sharing = {
+	favored = {
+		TAN = 200
+		MON = 200
+	}
 }
+
 ###################################
 # Invasions and Naval
 ###################################
 invasion = { 
- 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal		= 0.1	#increase to avoid coastal forts more.
-	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 0.1	#higher = avoid long distance.
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island		= 0.1	#prioritise taking pure islands.
-	enemy		= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
-	air_base	= 1.5 
-      	naval_base 	= 0.1 
-      	air_support 	= 3.0 
-      	redirect 	= priority
-	ignore		= no
+	ignore		= no 
+	invasion	= no
       
-	target = { 
-		#Norway
-		107 = 4000 # Oslo
-		108 = 4000 # Kristiansan
-		109 = 4000 # Stavanger
-		110 = 4000 # Bergen
-		125 = 4000 # Narvik
-		117 = 3750 # Alesund
-		118 = 3750 # Trondheim
-		124 = 3750 # Mo I Ran
-
-		#Sweden
-		106 = 4000 # Amal
-		98  = 4000 # Goterborg
-		93  = 4000 # Malmo
-		97  = 4000 # Jonkoping
-		100 = 3750 # Norrkoping
-		101 = 3750 # Stockholm
-		102 = 3750 # Uppsala
-		114 = 3750 # Gavle
-		120 = 4000 # Sundsuall
-		122 = 4000 # Umea
-		127 = 4000 # Lulea
-
-		#Finland
-		142 = 2000 # Helsinki
-		141 = 2000 # Turku
-		140 = 2000 # Pori
-		138 = 2000 # Vaasa
-		137 = 1750 # Oulu
-		131 = 1750 # Tornio
-	} 
+	target = { } 
 } 
-admiral = { 
-	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
-	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
-	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
-	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-
-	#Which provinces to use as bases..
-	base = {
-		187	# Leningrad
-		253	# Sevastopool
-		133	# Murmansk
-		154	# Archangel
-		1372	# Vladivostok
-		1848	# Batum
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = SOV
 	}
-	target = {
-		2382 = 200
-		2385 = 200
-		2386 = 150
-		2601 = 150
-		2482 = 200
-		2483 = 200
-		2467 = 200
-		2466 = 150
-		2215 = 50
-		2216 = 50
-		2217 = 25
-		2218 = 25
-	} 
-	core = {
-		2468
-		2484
-		2384
-		2381
-		2383
-		2191
-	} 
-}
\ No newline at end of file
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/switch/all_research.ai Doomsday Data Files/ai/switch/all_research.ai
--- Doomsday Data Files.old/ai/switch/all_research.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/all_research.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,6 @@
+# auxiliary DAIM AI file
+# reuse is welcome as long as file origin is correctly stated
+
+technology = {
+	ignore = { }
+}
diff -Naur Doomsday Data Files.old/ai/switch/chi_puppets.ai Doomsday Data Files/ai/switch/chi_puppets.ai
--- Doomsday Data Files.old/ai/switch/chi_puppets.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/chi_puppets.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,199 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+max_front_ratio = 1.5
+max_front_ratios = { }
+
+exp_force_ratio = 0.75
+exp_force_ratios = {
+	JAP = 0.9
+}
+
+trade = {
+	cancel_deal_threshold = 3
+
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = {
+		JAP = 100
+	}
+	embargo = { }
+}
+
+tech_sharing = {
+	favored = {
+		JAP = 100
+		MAN = 100
+		MEN = 100
+		CGX = 100
+		CHC = 100
+		CHI = 100
+		CSX = 100
+		CXB = 100
+		CYN = 100
+	}
+	embargo = { }
+	not = { }
+	prioritized = {	}
+}
+
+garrison = {
+	country_priorities = {
+		SOV = 100 # Enemies
+		MON = 100
+		ENG = 100
+		FRA = 100
+		NEP = 100
+		BHU = 100
+
+		JAP = -1 # (new) Friends
+		MAN = -1
+		MEN = -1
+		CGX = -1
+		CHC = -1
+		CHI = -1
+		CSX = -1
+		CXB = -1
+		CYN = -1
+		VIC = -1
+
+		TIB = -1 # Neutrals
+		AFG = -1
+		POR = -1
+		SIK = -1
+	}
+}
+
+construction = {
+	max_factor = 0.250
+	AA_batteries = no
+	coastal_fort = no
+	radar_station = no
+	air_base = no
+	naval_base = no
+	land_fort = no
+	ic_at_war = no
+}
+
+military = { 
+	relative_build_scheme 	= no
+	max_batch_peace 	= 540
+	max_batch_war 		= 360
+	max_batch_home_front 	= 360
+
+	#### Divisions etc...
+	infantry 	= 75
+	cavalry 	= 6
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 0
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 7
+	garrison	= 0
+      	hq 		= 3
+	militia 	= 0
+#				91 %
+	interceptor 	= 5
+	multi_role 	= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 4
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				9 %
+	battleship 	= 0
+	carrier 	= 0
+	escort_carrier	= 0
+	destroyer 	= 0
+	light_cruiser 	= 0
+	heavy_cruiser 	= 0
+	battlecruiser 	= 0
+	submarine 	= 0
+	transports 	= 0
+#				0 %
+
+	#### Brigades
+	artillery 		= 40
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 0
+
+	cag = 100.000 
+}
+
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4120 4130 4140 4150 4160 15100 15110 # Tac Bombers
+	}
+	preference 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4120 4130 4140 4150 4160 15100 15110 # Tac Bombers
+	}
+	ignore 		= {
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1340 1350 1360 # Repair shops
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2450 2460 2470 2480 2490 2500 11080 # Static Anti-Air
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		4040 4070 4100 15030 15040 15050 # Fighters
+		4190 4200 4210 15140 15150 # Naval Bombers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5150 5170 # Ship + Rocket Assembly Lines
+		5410 5420 5430 5440 5450 5460 13030 # Radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+		14080 # Guerilla Warfare
+	}
+
+	armor 		= 4
+	infantry 	= 8
+	industry 	= 6
+	aircraft 	= 4
+	naval 		= 0
+	land_doctrines 	= 4
+	secret_weapons 	= 0
+	air_doctrines 	= 3
+	naval_doctrines = 0
+}
+
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
diff -Naur Doomsday Data Files.old/ai/switch/eng_beagle.ai Doomsday Data Files/ai/switch/eng_beagle.ai
--- Doomsday Data Files.old/ai/switch/eng_beagle.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/eng_beagle.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,36 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+###################################
+# Invasions and Naval
+###################################
+invasion = {
+	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 5.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.5	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 3.0	#higher = avoid long distance.
+	max_distance    = 40.0
+	pocket		= 3.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 2.0	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 0.5	#higher = much more vary of troops nearby
+	air_base	= 0.1
+      	naval_base 	= 0.1
+      	air_support 	= 2.0
+      	redirect 	= nearest
+	ignore		= yes
+
+
+
+	target = {
+		401 = 2000 # Athen
+		394 = 2000 # Patras 
+		402 = 2000
+		390 = 2000
+		388 = 2000
+		384 = 2000
+		396 = 500
+	} 
+} 
diff -Naur Doomsday Data Files.old/ai/switch/eng_dday.ai Doomsday Data Files/ai/switch/eng_dday.ai
--- Doomsday Data Files.old/ai/switch/eng_dday.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/switch/eng_dday.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,91 +1,167 @@
-# USA is planning D-Day so lets help
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
-exp_force_ratio = 0.20
+switch = no # [yes/no]
+max_front_ratio = 2.0
+max_garrison_prop = 0.30
+min_garrison_prop = 0.20
+
+war = 0
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.10
 exp_force_ratios = {
-	USA = 1.0
+	FRA = 0.4
+#	GRE = 0.4
+#	NOR = 0.4
 } 
-no_exp_forces_to = { }
 
-###################################
-# Ground Combat, Leaders and Garrisons
-###################################
 garrison = {
 	defend_overseas_beaches = yes
-	home_multiplier 	= 1.0
-	overseas_multiplier 	= 0.01
-	home_peace_cap 		= 2
+	home_multiplier 	= 1.5
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 110
 	war_zone_odds 		= 2.0
-	key_point_prio_mult	= 0.3
-	revolt_risk_mult	= 0.3
+	key_point_prio_mult	= 0.2
+	revolt_risk_mult	= 0.1
 
 	# PRIORITIES:
-	beach			= 20	# Beach level 2
-	capital			= 20	# Our capital
-	human_border	= 0		# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
-	
-	opposing_alliance	= 20	# For neutrals, all alliances are "opposing"
+	beach			= 50	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 70	# The next country targeted for attack by this AI
+
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
 	unstable_border		= 0	# Bordering countries at war with someone else get this
 
-	province_priorities = {
-		348 = 30 # Gibraltar
-		31  = 30 # Malta
-		906 = 30 # Alexandria
-	}
+
 	area_multiplier = {
-		348 = 2.0 # Gibraltar
-		31  = 2.0 # Malta
-		906 = 1.5 # Alexandria
+
+		19  = 2.0 # London
+
+
 	}
 }
+target = {
+		18  = 100 # Calais
+		43  = 100 # Dunquerque
+		42  = 100 # Dieppe
+		41  = 100 # Le Havre
+		39  = 100 # Caen
+		33  = 100 # Rennes
+		32  = 100 # Brest
+		34  = 100 # Lorient
+		35  = 100 # Nantes
+		59  = 100 # Cholet
+		325 = 100 # Bordeaux
+		326 = 100 # Dax
+}
+
+front = { 
+	recklessness 		= 3 # 0-3
+	distrib_vs_ai 		= offensive
+	distrib_vs_human 	= offensive
+
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
+
+
+
 ###################################
 # Invasions and Naval
 ###################################
-invasion = { 
-	invasion	= yes
-   	redirect 	= priority
-	help_allies = yes
-      
-	staging_province = {
-		23 # Plymouth
-		21 # Portsmouth
-		20 # Dover
-	}
+invasion = {
+	invasion 	= yes
+
+ 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 8.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.1	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 1.0	#higher = avoid long distance.
+	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 0.1	#prioritise taking pure islands.
+	enemy		= 2.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
+	air_base	= 1.5 
+      	naval_base 	= 0.1 
+      	air_support 	= 3.0 
+      	redirect 	= priority
+	ignore		= no
+ 
 	target = {
-		#England
-		20 = 9000 # Dover
-		17 = 9000 # Norwich
-		21 = 9000 # Portsmouth
-		23 = 9000 # Plymouth
-		13 = 9000 # Sheiffield
-		28 = 9000 # Belfast
-		22 = 9000 # Bristol
-		14 = 9000 # Liverpool
-		12 = 9000 # Blackpool
-		11 = 9000 # Sunderland
-		10 = 9000 # Edinburgh
-		9  = 9000 # Glasgow
-
-		# Atlantic Wall
-		292 = 8000 # Arburg
-		92  = 8000 # Arhus
-		91  = 8000 # Kolding
-		90  = -1   # Kiel
-		78  = 8000 # Leeweden
-		47  = 8000 # Amsterdam
-		46  = 8000 # Rotterdam
-		45  = 8000 # Ghent
-		18  = 8000 # Calais
-		42  = 8000 # Dieppe
-		41  = 8000 # Le Havre
-		39  = 8000 # Caen
-		33  = 8000 # Rennes
-		32  = 8000 # Brest
-		34  = 8000 # Lorient
-		35  = 8000 # Nantes
-		59  = 8000 # Cholet
-		325 = 8000 # Bordeaux
-		326 = 8000 # Dax
+		18 = 5000 # France
+		32 = 5000
+		33 = 5000
+		34 = 5000
+		35 = 5000
+		39 = 5000
+		41 = 5000
+		42 = 5000
+		43 = 5000
+		59 = 5000
+		325 = 5000
+		326 = 5000
+
+		#Denmark
+		91 = 4000
+		92 = 4000
+
+		938 = 1000 # Vichy in North Africa
+		939 = 1000
+		940 = 1000
+		949 = 1000
+		953 = 1000
+		958 = 1000
+
+		31 = 1000 # Malta
+		513 = 1000 # Mainland Italy
+		514 = 1000
+		520 = 1000
+		521 = 1000
+		523 = 1000
+		525 = 1000
+		526 = 1000
+		534 = 1000
+		932 = 1000 # Lybia
+		933 = 1000
+		924 = 1000
 	}
-} 
\ No newline at end of file
+}
+
+admiral = {
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+base = { 5 21 348 906 }
+
+target = {
+2395 = 100
+2412 = 100
+2414 = 100
+2415 = 100
+2416 = 100
+2417 = 100
+}
+core = {2395 2412  2414 2415 2416 2417}
+
+}
diff -Naur Doomsday Data Files.old/ai/switch/eng_husky.ai Doomsday Data Files/ai/switch/eng_husky.ai
--- Doomsday Data Files.old/ai/switch/eng_husky.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/eng_husky.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,42 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+target = {
+	515 = 100
+	370 = 100
+}
+
+###################################
+# Invasions and Naval
+###################################
+invasion = {
+	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 5.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.5	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 3.0	#higher = avoid long distance.
+	max_distance    = 40.0
+	pocket		= 3.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 2.0	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 0.5	#higher = much more vary of troops nearby
+	air_base	= 0.1
+      	naval_base 	= 0.1
+      	air_support 	= 2.0
+      	redirect 	= nearest
+	ignore		= yes
+
+
+	target = {
+		534 = 100  # Sardinia
+		521 = 2000 # Naples
+		519 = 2000 # Anzio
+		518 = 2000 # Cassino
+		525 = 2000 # Palermo
+		526 = 2000
+		520 = 2000
+		514 = 2000
+		513 = 2000
+	}
+}
diff -Naur Doomsday Data Files.old/ai/switch/eng_manpower.ai Doomsday Data Files/ai/switch/eng_manpower.ai
--- Doomsday Data Files.old/ai/switch/eng_manpower.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/eng_manpower.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,82 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 2.0
+max_garrison_prop = 0.30
+min_garrison_prop = 0.20
+
+war = 5
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.10
+exp_force_ratios = {
+	FRA = 0.1
+#	GRE = 0.4
+#	NOR = 0.4
+} 
+
+
+
+
+
+military = { 
+	relative_build_scheme 	= no
+	max_batch_peace 	= 540
+	max_batch_war 		= 540 
+	max_batch_home_front 	= 540
+
+
+	#### Divisions etc...
+	infantry 	= 0
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 10
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				10 %
+	interceptor 	= 5
+	multi_role 	= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 10
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				15 %
+	battleship 	= 4
+	carrier 	= 10
+	destroyer 	= 20
+	escort_carrier	= 6
+	light_cruiser 	= 5
+	heavy_cruiser 	= 1
+	battlecruiser 	= 0
+	submarine 	= 0
+	transports 	= 29
+#				75 %
+
+	#### Brigades
+	artillery 		= 0
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 0
+
+	cag = 100.000 
+}
+
diff -Naur Doomsday Data Files.old/ai/switch/eng_predday.ai Doomsday Data Files/ai/switch/eng_predday.ai
--- Doomsday Data Files.old/ai/switch/eng_predday.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/eng_predday.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,38 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 10.0
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 110
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 0.2
+	revolt_risk_mult	= 0.1
+
+	# PRIORITIES:
+	beach			= 50	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 70	# The next country targeted for attack by this AI
+
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+
+
+	area_multiplier = {
+
+		19  = 10.0 # London
+		900 = 1.0 # suez
+		1452 = 9.0 # calcutta
+		953 = 0.5 # Oran
+		2440 = 2.0 # Malta
+
+
+	}
+
+
+}
\ No newline at end of file
diff -Naur Doomsday Data Files.old/ai/switch/eng_recapture.ai Doomsday Data Files/ai/switch/eng_recapture.ai
--- Doomsday Data Files.old/ai/switch/eng_recapture.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/eng_recapture.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,141 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 2.0
+max_garrison_prop = 0.30
+min_garrison_prop = 0.20
+
+war = 0
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.10
+exp_force_ratios = {
+	FRA = 0.4
+#	GRE = 0.4
+#	NOR = 0.4
+} 
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.5
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 110
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 0.2
+	revolt_risk_mult	= 0.1
+
+	# PRIORITIES:
+	beach			= 50	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 70	# The next country targeted for attack by this AI
+
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+
+	area_multiplier = {
+
+		19  = 2.0 # London
+
+
+	}
+}
+target = {
+		9 = 100 # England
+		10 = 100
+		11 = 100
+		12 = 100
+		13 = 100
+		14 = 100
+		17 = 100
+		20 = 100
+		21 = 100
+		22 = 100
+		23 = 100
+		28 = 100
+}
+
+front = { 
+	recklessness 		= 3 # 0-3
+	distrib_vs_ai 		= offensive
+	distrib_vs_human 	= offensive
+
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
+
+
+
+###################################
+# Invasions and Naval
+###################################
+invasion = {
+	invasion	= yes    # not yet
+	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 5.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.5	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 3.0	#higher = avoid long distance.
+	max_distance    = 40.0
+	pocket		= 3.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 2.0	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 0.5	#higher = much more vary of troops nearby
+	air_base	= 0.1
+      	naval_base 	= 0.1
+      	redirect 	= nearest
+	ignore		= no
+ 
+	target = {
+		9 = 5000 # England
+		10 = 5000
+		11 = 5000
+		12 = 5000
+		13 = 5000
+		14 = 5000
+		17 = 5000
+		20 = 5000
+		21 = 5000
+		22 = 5000
+		23 = 5000
+		28 = 5000
+	}
+}
+
+admiral = {
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+
+target = {
+2395 = 100
+2412 = 100
+2414 = 100
+2415 = 100
+2416 = 100
+2417 = 100
+}
+core = {2395 2412  2414 2415 2416 2417}
+
+}
diff -Naur Doomsday Data Files.old/ai/switch/exp_china.ai Doomsday Data Files/ai/switch/exp_china.ai
--- Doomsday Data Files.old/ai/switch/exp_china.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/exp_china.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,8 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+exp_force_ratio = 0.75
+exp_force_ratios = {
+	CHI = 1.0
+}
diff -Naur Doomsday Data Files.old/ai/switch/exp_russia.ai Doomsday Data Files/ai/switch/exp_russia.ai
--- Doomsday Data Files.old/ai/switch/exp_russia.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/switch/exp_russia.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,8 +1,8 @@
 # Romania/Hungar/Slovakia EXP AI File Release by Lothos
+# modified by Spocky for DAIM
+# reuse is welcome as long as file origin is correctly stated
 
-
-exp_force_ratio = 0.70
+exp_force_ratio = 0.75
 exp_force_ratios = {
 	GER = 1.0
-} 
-no_exp_forces_to = { FIN ROM HUN BUL YUG GRE SLO TUR POL JAP SIA MAN VIC }
\ No newline at end of file
+}
diff -Naur Doomsday Data Files.old/ai/switch/ger_aggressive.ai Doomsday Data Files/ai/switch/ger_aggressive.ai
--- Doomsday Data Files.old/ai/switch/ger_aggressive.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/ger_aggressive.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,17 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+war = 75
+
+combat = {
+	POL = 75
+	DEN = 60
+	NOR = 60
+	LUX = 60
+	BEL = 60
+	FRA = 60
+	HOL = 50
+	YUG = 50
+	GRE = 50
+}
diff -Naur Doomsday Data Files.old/ai/switch/ger_balkan.ai Doomsday Data Files/ai/switch/ger_balkan.ai
--- Doomsday Data Files.old/ai/switch/ger_balkan.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/ger_balkan.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,111 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 1.5
+
+max_garrison_prop = 0.25
+min_garrison_prop = 0.10
+
+target = {
+	107 = 100
+	125 = 100
+	401 = 75
+	453 = 75
+}
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 0.5
+	revolt_risk_mult	= 0.4
+
+	# PRIORITIES:
+	beach			= 50	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		VIC = -1
+		FIN = -1
+		ITA = -1
+		SCH = -1
+		AUS = -1
+		CZE = 20
+		SOV = 20
+		DEN = 75
+		GRE = 100
+		YUG = 100
+	}
+	ignore = { }
+	province_priorities = {
+		66 = -1
+		75 = -1
+		76 = -1
+		80 = -1
+		81 = -1
+	}
+	area_multiplier = {
+		66 = 1.0
+		75 = 1.0
+		76 = 1.0
+		80 = 1.0
+		81 = 1.0
+	}
+}
+
+invasion = { 
+ 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 10.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.1	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 0.1	#higher = avoid long distance.
+	max_distance    = 25.0  #About the distance from Rostock to Narvik
+	pocket		= 1.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 0.1	#prioritise taking pure islands.
+	enemy		= 2.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
+	air_base	= 1.5 
+      	naval_base 	= 0.1 
+      	air_support 	= 3.0 
+	invasion	= yes
+	ignore		= yes
+      	redirect 	= priority
+      
+	target = { 
+		#Norway
+		107 = 1000 # Oslo
+		108 = 1000 # Kristiansan
+		109 = 1000 # Stavanger
+		110 = 1000 # Bergen
+		125 = 1000 # Narvik
+		117 = 1000 # Alesund
+		118 = 1000 # Trondheim
+		124 = 1000 # Mo I Ran
+
+		28 = -1
+	} 
+}
+
+front = { 
+	distrib_vs_ai = even
+	distrib_vs_human = even
+
+	reserve_prop = 0.1
+
+	province_priorities = {
+		74 = 1.0
+		314 = 1.0
+		315 = 1.0
+	}
+}
diff -Naur Doomsday Data Files.old/ai/switch/ger_benelux.ai Doomsday Data Files/ai/switch/ger_benelux.ai
--- Doomsday Data Files.old/ai/switch/ger_benelux.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/ger_benelux.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,99 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 1.1
+
+max_garrison_prop = 0.75
+min_garrison_prop = 0.50
+
+combat = {
+	LUX = 100
+	BEL = 100
+	FRA = 100
+	HOL = 100
+}
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 0.5
+	revolt_risk_mult	= 0.4
+
+	# PRIORITIES:
+	beach			= 50	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		VIC = -1
+		FIN = -1
+		ITA = -1
+		SCH = -1
+		AUS = -1
+		CZE = 20
+		SOV = 20
+		YUG = 20
+		DEN = 50
+		FRA = 75
+		BEL = 200
+		HOL = 200
+		LUX = 100
+	}
+	ignore = { }
+	province_priorities = {
+		66 = 200
+		75 = 200
+		76 = 200
+		80 = 200
+		81 = 200
+	}
+	area_multiplier = {
+		66 = 20.0
+		75 = 20.0
+		76 = 30.0
+		80 = 30.0
+		81 = 30.0
+	}
+}
+
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
+
+	enemy_reinf_days	= 1
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.333
+	min_attack_odds		= 1.1
+	max_attack_odds		= 2.0
+	reinforce_odds		= 1.2
+	withdraw_odds		= 0.75
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = { } 
+      	passivity = { }
+	province_priorities = {
+		74 = 0.6
+		314 = 0.6
+		315 = 0.6
+	}
+}
diff -Naur Doomsday Data Files.old/ai/switch/ger_benelux2.ai Doomsday Data Files/ai/switch/ger_benelux2.ai
--- Doomsday Data Files.old/ai/switch/ger_benelux2.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/ger_benelux2.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,34 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+
+max_front_ratio = 1.1
+max_front_ratios = {
+	BEL = 10.0
+	HOL = 10.0
+	LUX = 10.0
+}
+
+max_garrison_prop = 0.25
+min_garrison_prop = 0.10
+
+garrison = {
+	province_priorities = {
+		314 = -1
+		315 = -1
+	}
+}
+
+front = { 
+	distrib_vs_ai = reactive
+	distrib_vs_human = reactive
+
+	reserve_prop = 0.01
+
+	province_priorities = {
+		314 = 0.001
+		315 = 0.001
+	}
+}
diff -Naur Doomsday Data Files.old/ai/switch/ger_manpower.ai Doomsday Data Files/ai/switch/ger_manpower.ai
--- Doomsday Data Files.old/ai/switch/ger_manpower.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/ger_manpower.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,62 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+military = { 
+	relative_build_scheme 	= no 
+	max_batch_peace 	= 270 
+	max_batch_war 		= 270 
+	max_batch_home_front 	= 270
+
+	#### Divisions etc...
+	infantry 	= 0
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 0
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				0 %
+	interceptor 	= 15
+	multi_role 	= 15
+	cas 		= 10
+	strategic_bomber = 0
+	tactical_bomber = 10
+	naval_bomber 	= 10
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				60 %
+	battleship 	= 6
+	carrier 	= 7
+	escort_carrier	= 0
+	destroyer 	= 0
+	light_cruiser 	= 15
+	heavy_cruiser 	= 6
+	battlecruiser 	= 6
+	submarine 	= 0
+	transports 	= 0
+#				40 %
+
+	#### Brigades
+	artillery 		= 0
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 0
+
+	cag = 100.000
+}
diff -Naur Doomsday Data Files.old/ai/switch/ger_mechs.ai Doomsday Data Files/ai/switch/ger_mechs.ai
--- Doomsday Data Files.old/ai/switch/ger_mechs.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/ger_mechs.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,62 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+military = { 
+	relative_build_scheme 	= no 
+	max_batch_peace 	= 360 
+	max_batch_war 		= 360 
+	max_batch_home_front 	= 360
+
+	#### Divisions etc...
+	infantry 	= 29
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 10
+	light_armor 	= 0
+	armor 		= 8
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 4
+	garrison	= 0
+      	hq 		= 3
+	militia 	= 0
+#				54 %
+	interceptor 	= 4
+	multi_role 	= 6
+	cas 		= 7
+	strategic_bomber = 0
+	tactical_bomber = 0
+	naval_bomber 	= 3
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				20 %
+	battleship 	= 1
+	carrier 	= 0
+	escort_carrier	= 0
+	destroyer 	= 4
+	light_cruiser 	= 2
+	heavy_cruiser 	= 1
+	battlecruiser 	= 1
+	submarine 	= 12
+	transports 	= 5
+#				26 %
+
+	#### Brigades
+	artillery 		= 5
+	sp_artillery 		= 10
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 10
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 10
+	engineer 		= 15
+
+	cag = 100.000
+}
diff -Naur Doomsday Data Files.old/ai/switch/ger_rhine.ai Doomsday Data Files/ai/switch/ger_rhine.ai
--- Doomsday Data Files.old/ai/switch/ger_rhine.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/switch/ger_rhine.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,10 +1 @@
-# German occupation of the Rhine AI File by Lothos
-
-garrison = {
-	ignore = { }
-	province_priorities = {
-		314 = 150
-		315 = 150
-		74  = 150
-	}
-}
\ No newline at end of file
+# AI file removed by DAIM
\ No newline at end of file
diff -Naur Doomsday Data Files.old/ai/switch/ger_sealion.ai Doomsday Data Files/ai/switch/ger_sealion.ai
--- Doomsday Data Files.old/ai/switch/ger_sealion.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/switch/ger_sealion.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,354 +1,522 @@
-# German Sea Lion AI File by Lothos
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
-max_front_ratio = 1.2 
+switch = no # [yes/no]
+max_front_ratio = 1.5
 max_garrison_prop = 0.50
-min_garrison_prop = 0.20
-max_front_ratios = { }
+min_garrison_prop = 0.25
+neutrality = 0.000 
+war = 75
+reinforcement = 0.1
+upgrading = 0.25
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.1
+no_exp_forces_to = { JAP SIA MAN VIC }
 
 ###################################
 # Diplomacy
 ###################################
-befriend = {
-	ROM = 50
-	BUL = 40 
-	HUN = 80 
-	YUG = 50
-	SLO = 50
-	SPA = 150
-	ITA = 80 
-	SWE = 10
-	FIN = 20
-	JAP = 20
-	POR = 10
-	TUR = 30
-	DEN = 50
+combat = {
+	ENG = 100
+	USA = 100
 }
+
+demand_claims = { }
+befriend = { }
+protect = {
+	ROM = 80
+	BUL = 80 
+	SWE = 80
+	SCH = 80
+	AUS = 300
+	POL = 80
+	SLO = 80
+	NOR = 80
+	ITA = 80
+	TUR = 80
+}
+
+target = { 
+	19 = 100
+	5 = 100
+	163 = 100
+	175 = 100
+	187 = 100
+	1572 = 100
+	1907 = 100
+}
+
+trade = {
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = {
+		SWE = 150
+		FIN = 100
+		ROM = 150
+		ITA = 100
+		HUN = 100
+		YUG = 100
+		SPA = 80
+		BUL = 100
+		JAP = 50
+		CHI = 50
+	}
+	embargo = {
+		ENG FRA AST CAN NZL
+	}
+}
+
+tech_sharing = {
+	favored = {
+		ROM = 200
+		SLO = 200
+		BUL = 200
+		HUN = 200
+		SPA = 200
+		ITA = 200
+		FIN = 200
+		JAP = 200
+		CRO = 200
+	}
+	embargo = { }
+	not = { }
+	prioritized = {
+		1010 = 100 # Infs
+		1020 = 100
+		1030 = 100
+		1040 = 100
+		1050 = 100
+		1060 = 100
+		1110 = 100 # Mtns
+		1120 = 100
+		1130 = 100
+		1140 = 100
+		1190 = 100 # Cavs
+		1200 = 100
+		1210 = 100
+		1220 = 100
+		2010 = 100 # Tanks
+		2020 = 100
+		2030 = 100
+		2040 = 100
+		2050 = 100
+		2060 = 100
+		2070 = 100
+		2080 = 100
+		2090 = 100
+		2290 = 100 # Arts
+		2300 = 100
+		2310 = 100
+		2320 = 100
+		2330 = 100
+		2340 = 100
+		2350 = 100
+		2360 = 100
+		2370 = 100
+		2380 = 100
+		2390 = 100
+		4010 = 100 # IntFs
+		4020 = 100
+		4030 = 100
+		4060 = 100
+		4090 = 100
+		4120 = 100 # Tacs
+		4130 = 100
+		4140 = 100
+		4150 = 100
+		4160 = 100
+		5050 = 100 # Machine Tools
+		5060 = 100
+		5070 = 100
+		5310 = 100 # Computers
+		5320 = 100
+		5330 = 100
+		5340 = 100
+	}
+}
+
 ###################################
 # Construction and Tech Research
 ###################################
-#Default values
 construction = { 
-	land_fort = yes
-	max_land_level = 4
-	fort_borders = { SOV } 
+	max_factor = 0.400 
+
+	AA_batteries = yes
+	max_AA_level = 5
+	AA_provs = { 67 74 75 76 80 81 87 90 300 311 314 315 }
+
+	coastal_fort = yes
+	max_coastal_level = 5
+	coastal_fort_provs = { 18 32 33 34 35 39 41 42 43 45 46 47 59 78 90 91 92 292 325 326 } 
+
+	radar_station = yes
+	max_radar = 2
+	radar_provs = { 67 80 90 300 314 }
+
+	air_base = no
+	max_air_base = 0
+	air_base_provs = { } 
+
+	naval_base = no 
+	max_naval_base = 0 
+	naval_base_provs = { } 
+
+	land_fort = no
+	max_land_level = 0
+	fort_borders = { } 
+
+	ic_at_war = no
+	force_ic_until = 1935
+	ic_end_year = 1935
+	IC_provs = { } 
 }
+
+military = { 
+	relative_build_scheme 	= no 
+	max_batch_peace 	= 270 
+	max_batch_war 		= 270 
+	max_batch_home_front 	= 270
+
+	#### Divisions etc...
+	infantry 	= 0
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 5
+	light_armor 	= 0
+	armor 		= 0
+	paratrooper 	= 0
+	marine 		= 15
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				20 %
+	interceptor 	= 0
+	multi_role 	= 5
+	cas 		= 1
+	strategic_bomber = 0
+	tactical_bomber = 3
+	naval_bomber 	= 8
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				17 %
+	battleship 	= 3
+	carrier 	= 7
+	escort_carrier	= 4
+	destroyer 	= 8
+	light_cruiser 	= 11
+	heavy_cruiser 	= 2
+	battlecruiser 	= 2
+	submarine 	= 6
+	transports 	= 20
+#				63 %
+
+	#### Brigades
+	artillery 		= 50
+	sp_artillery 		= 0
+	rocket_artillery	= 0 
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 0
+
+	cag = 100.000
+}
+
+technology = { 
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+		3400 3410 3420 3430 3440 3450 # Submarines
+		4250 4260 4270 15180 15190 # Air Transports
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5150 5160 5180 # Assembly Lines
+		6210 6220 6230 6240 6250 6260 6270 6280 6290 14100 # Land Doctrines (GER path)
+		14000 14010 14020 14030 14040 # Hospitals
+	} 
+	preference 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+		3400 3410 3420 3430 3440 3450 # Submarines
+		4250 4260 4270 15180 15190 # Air Transports
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5150 5160 5180 # Assembly Lines
+		6210 6220 6230 6240 6250 6260 6270 6280 6290 14100 # Land Doctrines (GER path)
+		14000 14010 14020 14030 14040 # Hospitals
+	} 
+	ignore 		= {
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		5170 # Rocket Assembly Line
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+		14090 # Volkssturm
+	}
+
+	armor 		= 5 
+	infantry 	= 7
+	industry 	= 4
+	aircraft 	= 6
+	naval 		= 4
+	land_doctrines 	= 3
+	secret_weapons 	= 2
+	air_doctrines 	= 6
+	naval_doctrines = 5
+}  
+
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 0.5
+	revolt_risk_mult	= 0.5
+
+	# PRIORITIES:
+	beach			= 60	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		FRA = 100
+		ENG = 100
+		CAN = 100
+		AST = 100
+		NZL = 100
+		SAF = 100
+		USA = 100
+		YUG = 25
+		HOL = 25
+		BEL = 25
+		DEN = 25
+		SOV = -1
+	}
+	ignore = { }
+	province_priorities = { }
+	area_multiplier = { 19 = 2.0 }
+}
+
 front = { 
-	recklessness 		= 1 # 0-3
-	distrib_vs_ai 		= reactive
-	distrib_vs_human 	= reactive
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
 
 	enemy_reinf_days	= 6
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
-	panic_ratio_vs_human = 2.5
-	base_attack_odds	= 1.3
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.333
 	min_attack_odds		= 1.1
 	max_attack_odds		= 3.0
 	reinforce_odds		= 1.2
-	withdraw_odds		= 0.6
+	withdraw_odds		= 0.75
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = {
+	} 
+      	passivity = {
+	}
+}
 
-    enemy_handicap = { } 
-    passivity = { } 
-} 
 ###################################
 # Invasions and Naval
 ###################################
 invasion = { 
  	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal		= 0.1	#increase to avoid coastal forts more.
+	random		= 5.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.5	#increase to avoid coastal forts more.
 	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 20.0	#higher = avoid long distance.
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	distance	= 0.1	#higher = avoid long distance.
+	max_distance    = 30.0	#1 = 100km ingame
+	pocket		= 0.1	#prioritise pockets, ie provinces with no adjacent controlled by same.
 	island		= 0.1	#prioritise taking pure islands.
-	enemy		= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
-	air_base	= 1.5 
-    naval_base 	= 0.1 
-    air_support = 3.0 
-    redirect 	= nearest
-	ignore		= no
+	enemy		= 0.5	#higher = much more vary of troops in province.
+	adjacentenemy 	= 0.5	#higher = much more vary of troops nearby
+	air_base	= 0.1
+      	naval_base 	= 0.1
+      	air_support 	= 1.0
+	invasion	= yes
+	ignore		= yes
+	help_allies 	= no
+      	redirect 	= priority
       
-	staging_province = {
-		90  # Kiel
-		18  # Calais
-		47  # Amsterdam
-	}
+	staging_province = { }
+
 	target = { 
-		#Britain
-		9  = 3000 # Glasgow
-		10 = 3000 # Edinburgh
-		11 = 3000 # Sunderland
-		13 = 3000 # Sheffield
-		17 = 3000 # Norwich
-		20 = 3000 # Dover
-		21 = 2500 # Portsmouth
-		23 = 2500 # Plymouth
-
-		#Norway
-		107 = 4000 # Oslo
-		108 = 4000 # Kristiansan
-		109 = 4000 # Stavanger
-		110 = 4000 # Bergen
-		125 = 4000 # Narvik
-		117 = 3750 # Alesund
-		118 = 3750 # Trondheim
-		124 = 3750 # Mo I Ran
-
-		#Sweden
-		106 = 4000 # Amal
-		98  = 4000 # Goterborg
-		93  = 4000 # Malmo
-		97  = 4000 # Jonkoping
-		100 = 3750 # Norrkoping
-		101 = 3750 # Stockholm
-		102 = 3750 # Uppsala
-		114 = 3750 # Gavle
-		120 = 4000 # Sundsuall
-		122 = 4000 # Umea
-		127 = 4000 # Lulea
-
-		#Finland
-		142 = 2000 # Helsinki
-		141 = 2000 # Turku
-		140 = 2000 # Pori
-		138 = 2000 # Vaasa
-		137 = 1750 # Oulu
-		131 = 1750 # Tornio
+		9 = 1000 # England
+		10 = 1000
+		11 = 1000
+		12 = 1000
+		13 = 1000
+		14 = 1000
+		17 = 1000
+		20 = 1000
+		21 = 1000
+		22 = 1000
+		23 = 1000
+		28 = 100
 	} 
-} 
+}
+
 admiral = { 
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+
 	ignore = {
-		#Murmansk/Archangel
-		"Barents Sea"
-		"Arctic Ocean"
-		
-		#England/France border Sea Areas
-		"Bay of Biscay"
-		"Cape Finisterre"
-		
-		#Spanish Coase (Atlantic Side)
-		"Portugese Coast"
-		"Cap St Vincent"
-		
-		#Iceland
-		"Faroes Gap"
-		"Denmark Strait"
-		
-		#Ireland/West Coast of England
-		"Irish Sea"
-		"The Hebreides"
-		"Irish West Coast"
-		
-		#Greenland
-		"Greenland Coast"
-		"Northern Sea of Labrador" 
-		"Southern Sea of Labrador"
-		
-		#Canada East Coast
-		"Hudson Bay"
-		"Grand Banks"
-		"Canadian Maritimes"
-		
-		#Western Mediterranean
-		"Costa del Sol"
-		"Gulf of Lyon"
-		"Algerian Coast"
-		
-		#Central Mediterranean
-		"Tyrrhenian Sea"
-		"Adriatic Sea"
-		
-		#Eastern Mediterranean
-		"Black Sea"
-		"Aegean Sea"
-		"Egyptian Coast"
-		
-		#North Atlantic
-		"North Atlantic"
-		"Western Approaches"
-		"The Seamounts"
-		"Azores"
-		
-		#Central Atlantic
-		"Central Atlantic"
-		"Central Mid-Atlantic Ridge"
-		"Bermuda Triangle"
-		"Guiana Basin"
-		"South-Central Mid-Atlantic Ridge"
-		"Cap Verde"
-		
-		#South Atlantic
-		"Pernambuco Plain"
-		"Ascension Fracture Zone"
-		"Argentine Plain"
-		"Angola Plain"
-		
-		#Caribbean Sea and Guilf of Mexico
-		"West Gulf of Mexico"
-		"East Gulf of Mexico" 
-		"Florida Strait"
+		# Caribbean
 		"Yucatan Strait"
-		"Windward Islands"
 		"Central Carribean"
-		
-		#Brazil and Argentina Coast
-		"Coast of Guyana"
-		"Coast of Recife" 
-		"Coast of Uruguay"
-		"Coast of Brazil"
-		"Coast of Argentina"
-		
-		# West Africa
-		"Coast of Africa"
-		"Coast of Bissao" 
-		
-		#Equitorial Africa
-		"Gulf of Guinea"
-		"Coast of Angola-Namibia"
-		
-		#South Africa
-		"Coast of South Africa"
-		"Atlantic-Indian Ridge"
-		
-		#East Africa
-		"Red Sea"
-		"Horn of Africa"
-		
-		#Madagascar Coast
-		"South Mozambique Channel"
-		"North Mozambique Channel" 
-		"Northeast Coast of Madagascar"
-		"Southeast Coast of Madagascar" 
-		
-		#North Indian Ocean (Persian Gulf)
-		"Persian Gulf"
-		"North Arabian Sea"
-		"South Arabian Sea" 
-		"Coast of Ceylon"
-		
-		#Central/South Indian Ocean
-		"Mascarene Plateau"
-		"Mid-Indian Ridge" 
-		"Ninetyeast Ridge" 
-		"Southeast Indian Ocean"
-		"Southwest Indian Ocean" 
-		
-		#Bay of Bengal & West Indonesia
-		"East Bay of Bengal"
-		"West Bay of Bengal"
-		"Malacca Strait"
-		"Java Ridge"
-		"Java Trench"
-		
-		#Indo-China, Borneo, Phillipenes
-		"Gulf of Siam"
-		"Coast of Indochina"
-		"Spratly Sea"
+		"Windward Islands"
+		"West Gulf of Mexico"
+		"East Gulf of Mexico"
+		"Florida Strait"
+
+		# Pacific
+		"Luzon Strait"
+		"Philipine Trench"
 		"Coast of Brunei"
 		"Flores Sea"
+		"Molucca Sea"
+		"Banda Sea"
+		"West Coral Sea"
 		"Sulu Sea"
 		"Celebes Sea"
-		"Luzon Strait"
-		
-		#China Coast
+		"Arafura Sea"
+		"Java Ridge"
+		"Malacca Strait"
+		"Gulf of Siam"
+		"Spratly Sea"
+		"Coast of Indochina"
 		"Taiwan Strait"
-		"Yellow Sea"
-		
-		#Japanese Coast
 		"Sea of Japan"
-		"Ryukyus"
-		"Coast of Japan"
-		"South Sea of Okhotsk"
-		"West Sea of Okhotsk" 
-		"East Sea of Okhotsk" 
-		
-		#Mariana Basin, Phillipenes
-		"Philipine Trench"
-		"Central Philippine Sea"
-		"Mariana Trench"
-		"East Mariana Basin"
-		"Mid-Pacific Mountains"
 		"North Bismarck Sea"
-		
-		#New Guinea, East/North Australia and New Zealan
-		"Coast of New Guinea"
-		"Molucca Sea"
-		"Banda Sea"
-		"Arafura Sea"
 		"South Bismarck Sea"
+		"Marianas"
+		"Marshalls Sea"
+		"Western Solomons"
+		"Eastern Solomons"
+		"East Coral Sea"
+		"Coast of Japan"
 		"Solomon Sea"
-		"West Coral Sea"
-		"East Coral Sea" 
 		"North Tasman Sea"
-		"South Tasman Sea" 
-		"East Cost of New Zealand"
-		
-		# South and West Australia
-		"Timor Sea"
-		"West Coast of Australia"
+		"South Tasman Sea"
 		"East Great Australian Bight"
-		"West Great Australian Bight" 
-		
-		#North Pacific
+		"West Great Australian Bight"
+		"Aleutians"
+		"Carolines"
+		"Central Philippine Sea"
 		"Coast of Kamchatka"
 		"East Bering Sea"
-		"West Bering Sea" 
-		"Aleutians"
-		"Northwest Pacific Basin"
-		"North Northeast Pacific Basin"
-		
-		#Central Pacific
+		"East Mariana Basin"
+		"East Sea of Okhotsk"
+		"Gulf of Alaska"
 		"Hawaiian Rise"
-		"North East Pacific Ocean"
-		"Marshalls Sea"
-		"South East Pacific Ocean"
-		"Marianas"
-		"Western Solomons"
-		"Eastern Solomons"
-		"US Maritimes"
-		"Carolines"
-		
-		#South Pacific
+		"Mariana Trench"
+		"Mid-Pacific Mountains"
+		"North Northeast Pacific Basin"
+		"Northwest Pacific Basin"
+		"Ryukyus"
+		"South Sea of Okhotsk"
+		"Timor Sea"
+		"West Bering Sea"
+		"West Coast of Australia"
+		"West Coast of Mexico"
+		"West Coast of the United States"
+		"West Sea of Okhotsk"
+		"Yellow Sea"
+		"Fiji Basin"
 		"Gilberts"
 		"Line Islands"
-		"Fiji Basin"
-		"Southwest Pacific Basin"
-		
-		# South American West Coast
+		"North East Pacific Ocean"
+		"South East Pacific Ocean"
+		"East Cost of New Zealand"
+		"North Southeast Pacific Ocean"
+		"South Southeast Pacific Ocean"
 		"Southeast Pacific Basin"
+		"Southwest Pacific Basin"
+		"West Coast of Central America"
 		"West Coast of Chile"
 		"West Coast of Peru"
-		"South Southeast Pacific Ocean"
-		"North Southeast Pacific Ocean"
-		
-		# USA West Coast
-		"Gulf of Alaska"
-		"West Coast of the United States"
-		
-		#West Coast of Mexico
-		"West Coast of Mexico"
-		"West Coast of Central America"
+		"Coast of New Guinea"
+
+		# Indian Ocean
+		"Red Sea"
+		"Persian Gulf"
+		"Coast of Ceylon"
+		"East Bay of Bengal"
+		"Ninetyeast Ridge"
+		"Java Trench"
+		"West Bay of Bengal"
+		"Mascarene Plateau"
+		"Mid-Indian Ridge"
+		"North Arabian Sea"
+		"North Mozambique Channel"
+		"Northeast Coast of Madagascar"
+		"South Arabian Sea"
+		"South Mozambique Channel"
+		"Southeast Coast of Madagascar"
+		"Southeast Indian Ocean"
+		"Southwest Indian Ocean"
+		"Horn of Africa"
 	}
-	target = {	} 
-	core = { 
-		2494
-		2493
-		2489
-		2483
-		2481
-		2491
-		2492
-		2484
-		2482
-		2480
-		2479
-		2478
-		2477
-		2476
-		290
-	} 
-}
\ No newline at end of file
+	target = { 2394 2395 2396 2397 2398 2399 2402 2403 2404 2405 2406 2410 2411 2412 2413 2414 2471 2472 2473 2474 2475 2476 2477 2478 } 
+	core = { 2394 2395 2396 2397 2398 2399 2402 2403 2404 2405 2406 2410 2411 2412 2413 2414 2471 2472 2473 2474 2475 2476 2477 2478 } 
+}
diff -Naur Doomsday Data Files.old/ai/switch/ita_defence.ai Doomsday Data Files/ai/switch/ita_defence.ai
--- Doomsday Data Files.old/ai/switch/ita_defence.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/ita_defence.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,261 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 2.5
+max_garrison_prop = 0.50
+min_garrison_prop = 0.30
+neutrality = 90.000 
+war = 50
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.10
+exp_force_ratios = { GER = 0.10} 
+no_exp_forces_to = { JAP SIA MAN VIC }
+
+###################################
+# Construction and Tech Research
+###################################
+#Default values
+construction = { 
+	max_factor = 0.4
+
+
+	AA_batteries = atwar
+	max_AA_level = 5
+	AA_provs = { 
+		515 # Roma
+		512 # Bologna
+		370 # Milan
+		378 # Venezia
+		531 # Turin
+		521 # Naples
+		368 # Genoa
+	} 
+
+	coastal_fort = yes
+	max_coastal_level = 5
+	coastal_fort_provs = { } 
+
+	radar_station = no 
+	max_radar = 5 
+	radar_provs = { } 
+
+	air_base = yes
+	max_air_base = 2
+	air_base_provs = { } 
+
+	naval_base = yes
+	max_naval_base = 3 
+	naval_base_provs = { } 
+
+	land_fort = no
+	max_land_level = 2
+	fort_borders = { } 
+
+	ic_at_war = no
+	force_ic_until = 1938
+	ic_end_year = 1940
+	IC_provs = {
+		515 # Roma
+		512 # Bologna
+		370 # Milan
+		378 # Venezia
+		531 # Turin
+		521 # Naples
+	} 
+}
+
+military = { 
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 540
+	max_batch_war 		= 540 
+	max_batch_home_front 	= 540
+
+	#### Divisions etc...
+	infantry 	= 40
+	cavalry 	= 0
+	motorized 	= 5
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 4
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 0
+	garrison	= 26
+      	hq 		= 0
+	militia 	= 0
+#				75 %
+	interceptor 	= 5
+	multi_role 	= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 0
+	naval_bomber 	= 5
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				10 %
+	battleship 	= 0
+	carrier 	= 0
+	destroyer 	= 3
+	light_cruiser 	= 0
+	heavy_cruiser 	=  0
+	battlecruiser 	= 0
+	submarine 	= 10
+	transports 	= 2
+#				15 %
+
+	#### Brigades
+	artillery 		= 30
+	sp_artillery 		= 10
+	rocket_artillery	= 0 
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 10
+	anti_air 		= 10
+	police 			= 10	
+	engineer 		= 10 
+
+	cag = 100.000 
+}
+
+technology = { 
+	endgoal 	= { } 
+preference 	= {
+		#	5020 5030 5040 # Arcriculture
+			1310 1320 1330 1340 1350 1360 # Inf support		
+			5050 5060 5070 5080 5090 5100 5110 5120 5130 5150 5180 # Produktion
+					2020 2030 2040 2050 2060 # Light tanks
+			1230 1240 # motorized
+
+			 } 
+	ignore 		= {
+		# Marine
+		3310 #sh bb
+		3320 3330 3340 # Aircraftcarrier
+		12100 12110 12120 12130 # lightcarrier
+		3200 3210 3120 3130 # Battlecruiser
+
+		# Inf
+		1080 1090 1100 # Airborne
+		1150 1160 1170 1180 # Marines
+		1260 1270 1280 # mech 
+
+		# ARI
+		2450 2460 2470 # Static AA
+		2170 2180 2190 2200 2210 # Tank destroyers
+		2370 2380 2260 2270 2280 # SP R & Rocket Artillery
+		2130 # super heavy
+
+		# Planes
+		4250 4260 4270 # Air Transports
+		4040 4070 4100	#fighters
+		4050 4080 4110  #escorts
+		4220 4230  #strat
+
+		# Industry 		
+		5550 5560 5570 5580 5590 # Rocketry
+		5470 5480 5490 5500 5510 5520 5530 5540 # Atomic Research
+		5410 5420 5430 5440 5450 5460 # Bas Decimetric
+		5170 5150  5140 # Assembly line
+		
+		# Air Docs
+		9040 9050 9060 9070 9080          9140 9150 9160 9170 9180 
+		 9230 9240 9250 9260 9270 9280 9290 9300 9310 9320 9330 9340 9350 9360 9370 9380 9390
+		9400 9410 9420 9430 9440 9450 9460
+
+		6150 6160 6180	6190 #	landdocs
+	}
+ 
+ 
+	armor 		= 6 
+	infantry 	= 7
+	industry 	= 6
+	aircraft 	= 5
+	naval 		= 5
+	land_doctrines 	= 2
+	secret_weapons 	= 0
+	air_doctrines 	= 1
+	naval_doctrines = 2
+}  
+
+
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 2.0
+	overseas_multiplier 	= 0.1
+	home_peace_cap 		= 21
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 1.0
+
+	# PRIORITIES:
+	beach			= 100	# Beach level 2
+	capital			= 150	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		VIC = 10
+		SCH = -1
+		ENG = 100
+		FRA = 100
+		YUG = 50
+		SOV = 100
+		USA = 100
+	}
+	ignore = {
+	
+	}
+	province_priorities = {
+		534 = 50 # Sardinia
+			
+	}
+	area_multiplier = { }
+}
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= op_defence
+	distrib_vs_human 	= op_defence
+
+	enemy_reinf_days	= 6
+	reserve_prop = 0.2
+	panic_ratio_vs_ai = 3.0
+	panic_ratio_vs_human = 2.0
+	base_attack_odds = 2.0
+	min_attack_odds = 1.3
+	max_attack_odds = 1.8
+	reinforce_odds = 1.3 #1.5
+	withdraw_odds = 0.7
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+	
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
+
+###################################
+# Invasions and Naval
+###################################
+invasion = { 
+	ignore		= no 
+	invasion	= no
+      
+	target = { } 
+} 
diff -Naur Doomsday Data Files.old/ai/switch/jap_backoff.ai Doomsday Data Files/ai/switch/jap_backoff.ai
--- Doomsday Data Files.old/ai/switch/jap_backoff.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/switch/jap_backoff.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,82 +1,346 @@
-# Japan Backoff China AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
-max_garrison_prop = 0.70
-min_garrison_prop = 0.50
+max_front_ratio = 2.0
+max_garrison_prop = 0.30
+min_garrison_prop = 0.20
+#ferocity = no
+reinforcement = 0.01
+upgrading = 0.1
+combat = {
+	SIK = -1
+	CXB = -1
+	CYN = -1
+}
+###################################
+# Construction and Tech Research
+###################################
+#Default values
+construction = { 
+	max_factor = 1.000
+
+	AA_batteries = no
+	max_AA_level = 5
+	AA_provs = { } 
+
+	coastal_fort = no
+	max_coastal_level = 2
+	coastal_fort_provs = {
+
+	} 
+
+	radar_station = no
+	max_radar = 1 
+	radar_provs = {
 
-max_front_ratios = { 	
-	CHI = 0.8 
+	} 
+
+	air_base = no
+	max_air_base = 1
+	air_base_provs = { } 
+
+	naval_base = no 
+	max_naval_base = 1 
+	naval_base_provs = { } 
+
+
+	ic_at_war = no
+	force_ic_until = 1938
+	ic_end_year = 1938
+	IC_provs = { 	} 
+}
+military = { 
+	relative_build_scheme 	= no 
+	max_batch_peace 	= 540 
+	max_batch_war 		= 540 
+	max_batch_home_front 	= 540
+
+	#### Divisions etc...
+	infantry 	= 0
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 0
+	paratrooper 	= 0
+	marine 		= 10
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				10 %
+	interceptor 	= 3
+	multi_role 	= 2
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 3
+	naval_bomber 	= 1
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				9 %
+	battleship 	= 6
+	carrier 	= 15
+	escort_carrier	= 2
+	destroyer 	= 13
+	light_cruiser 	= 15
+	heavy_cruiser 	= 0
+	battlecruiser 	= 0
+	submarine 	= 0
+	transports 	= 30
+#				81 %
+
+
+	#### Brigades
+	artillery 		= 40
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 20
+	anti_air 		= 0
+	police 			= 10
+	engineer 		= 10
+
+	cag = 100.000
 }
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 garrison = {
 	defend_overseas_beaches = yes
-	home_peace_cap 		= 20
-	war_zone_odds 		= 1.0
-	key_point_prio_mult	= 0.0
-	revolt_risk_mult	= 0.3
+	home_multiplier 	= 10.0
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 110
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 0.2
+	revolt_risk_mult	= 0.1
 
 	# PRIORITIES:
-	beach			= 30	# Beach level 2
-	capital			= 30	# Our capital
-	human_border	= 0		# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
-	
+	beach			= 50	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 70	# The next country targeted for attack by this AI
+
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
 	unstable_border		= 0	# Bordering countries at war with someone else get this
 
 	# Borders with specific countries
 	country_priorities = {
-		CHI = 50
-		CSX = 50
-		SIK = 50
-		CXB = 50
-		CYN = 50
-		CGX = 50
-		CHC = 50
+		CHI = 20
+		CSX = 20
+		SIK = 20
+		CXB = 10
+		CYN = 10
+		CGX = 20
+		CHC = 20
 		VIC = -1
 		MAN = -1
 		MON = -1
 		SIA = -1
 		SOV = 25
 		POR = -1
-		ENG = 50
+		ENG = 80
 		FRA = 50
-		HOL = 10
 		USA = 50
-		AST = 10
-		NZL = 10
 	}
-	province_priorities = {
-		1337 = 35 # Saigon
-		1322 = 35 # Kaohsung
-		1613 = 35 # Truk
-		1601 = 35 # Eniwetok
-		1608 = 35 # Kwajelin
-		1670 = 35 # Rabaul
-	}
-	area_multiplier = {
-		1785 = 1.5 # Marcus Island
-		1625 = 1.5 # Rota
-		1192 = 1.5 # Anami
-		1194 = 1.5 # Jeju
-		1784 = 1.5 # Bonin Island
-		1176 = 0.1 # Etorufu
+
+		area_multiplier = {
+		# more island
+		1599 = 2.0
+
+		1627 = 2.0
+		1613 = 2.0
+
+		# carolines
+		1604 = 2.0
+		1612 = 2.0
+		1615 = 2.0
+		1616 = 2.0
+		1617 = 2.0 
+		1618 = 2.0
+		1619 = 2.0
+		1620 = 2.0
+		1621 = 2.0
+		### Marshall
+		1600 = 2.0
+		1601 = 2.0
+		1602 = 2.0
+		1603 = 2.0
+		1605 = 2.0
+		1606 = 2.0
+		1607 = 2.0
+		1608 = 2.0
+		1609 = 2.0
+		1610 = 2.0
+		###
+		2172 = 2.0
+		2172 = 2.0
+
+		# less China
+		1215 = 0.5
+		1202 = 0.5
+		1314 = 0.5
+		1321 = 0.5
+
 	}
 }
-front = { 
-	recklessness 		= 0 # 0-3
+front = {
+	recklessness 		= 1 # 0-3
 	distrib_vs_ai 		= even
-	distrib_vs_human 	= reactive
-
+	distrib_vs_human 	= even
 	enemy_reinf_days	= 6
-	reserve_prop		= 0.1
+
 	panic_ratio_vs_ai	= 2.5
-	panic_ratio_vs_human = 2.5
-	base_attack_odds	= 1.3
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.333
 	min_attack_odds		= 1.1
-	max_attack_odds		= 3.0
+	max_attack_odds		= 2.5
 	reinforce_odds		= 1.2
-	withdraw_odds		= 0.6
+	withdraw_odds		= 0.75
+
+	reserve_prop = 0.2
+
+      	passivity = {
+		CYN = 100
+		SIK = 100
+		CXB = 100
+	}
+}
+
+###################################
+# Invasions and Naval
+###################################
+invasion = {
+	invasion	= yes
+ 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 8.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.1	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 0.1	#higher = avoid long distance.
+	max_distance    = 15.0
+	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 0.1	#prioritise taking pure islands.
+	enemy		= 2.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
+	air_base	= 1.5
+      	naval_base 	= 0.1
+      	air_support 	= 3.0
+      	redirect 	= priority
+	ignore		= no
+
+	staging_province = {
+ 	#	1188 # Hiroshima
+
+	}
+	target = {
+		1204 = 1000 #Tianjin
+		1214 = 1000 #Yantal
+		1215 = 1000 #Qingdao
+		1237 = 1000 #Shanghail
+		1321 = 1000 # Hainan
+		1244 = 1000 # Fuzhou
+		1247 = 1000 # Xizmen
+		1248 = 1000 # Shantou
+	}
+}
+
+admiral = {
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+	ignore = {
+
+# Mediterranean
+"Adriatic Sea"
+"Aegean Sea"
+"Black Sea"
+"Tyrrhenian Sea"
+"Costa del Sol"
+"Algerian Coast"
+"Egyptian Coast"
+"Gulf of Lyon"
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+
+# North Sea
+"Kattegat"
+"English Channel"
+"Southeast Northsea"
+"West Northsea"
+"Central Northsea"
+"Norwegian Sea"
+"Western Approaches"
+"Greenland Coast"
+"Faroes Gap"
+"North Atlantic"
+"Bay of Biscay"
+"Azores"
+"Portugese Coast"
+"Cap St Vincent"
+"Cape Finisterre"
+"Irish West Coast"
+"The Hebreides"
+
+# North Atlantic
+"Barents Sea"
+"Irish Sea"
+"Denmark Strait"
+"Central Atlantic"
+"Hudson Bay"
+"Bermuda Triangle"
+"Northern Sea of Labrador"
+"Southern Sea of Labrador"
+"Grand Banks"
+"The Seamounts"
+"Canadian Maritimes"
+"US Maritimes"
+"Central Mid-Atlantic Ridge"
+"East North Sea"
+"Arctic Ocean"
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
+	}
+
+
+
+	base = { 1187 }
 }
\ No newline at end of file
diff -Naur Doomsday Data Files.old/ai/switch/jap_china.ai Doomsday Data Files/ai/switch/jap_china.ai
--- Doomsday Data Files.old/ai/switch/jap_china.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/switch/jap_china.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,27 +1,104 @@
-# Japan vs China AI File by Lothos
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 max_garrison_prop = 0.20
 min_garrison_prop = 0.10
+reinforcement = 0.01
+upgrading = 0.1
 
 ###################################
 # Diplomacy
 ###################################
 combat = {
-	CHI = 150
-	CSX = 150
-	SIK = 1
-	CXB = 1
-	CYN = 10
-	CGX = 50
-	CHC = 10
+	CHI = 200
+	CSX = 100
+	CGX = 100
+	CHC = 150
 }
+trade = {
+	cancel_deal_threshold = 2
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= 11
+	money 		= -1
+}
+target = {
+			1237 = 150
+			1235 = 150
+			1236 = 150
+			1258 = 150
+			1228 = 150
+}
+
 ###################################
 # Construction and Tech Research
 ###################################
-military = { 
-	max_batch_peace 		= 360 
-	max_batch_war 			= 360 
-	max_batch_home_front 	= 360
+#Default values
+construction = {
+	max_factor = 0.000
+
+}
+military = {
+	relative_build_scheme 	= no
+	max_batch_peace 	= 540
+	max_batch_war 		= 540
+	max_batch_home_front 	= 540
+
+	#### Divisions etc...
+	infantry 	= 30
+	cavalry 	= 10
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 5
+	paratrooper 	= 0
+	marine 		= 15
+	bergsjaeger 	= 15
+	garrison	= 0
+      	hq 		= 5
+	militia 	= 0
+#				80%
+	interceptor 	= 3
+	multi_role 	= 2
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 4
+	naval_bomber 	= 1
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				10 %
+	battleship 	= 0
+	carrier 	= 10
+	escort_carrier	= 0
+	destroyer 	= 0
+	light_cruiser 	= 0
+	heavy_cruiser 	= 0
+	battlecruiser 	= 0
+	submarine 	= 0
+	transports 	= 0
+#				10 %
+
+
+	#### Brigades
+	artillery 		= 40
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 20
+	anti_air 		= 0
+	police 			= 10
+	engineer 		= 10
+
+	cag = 100.000
 }
 ###################################
 # Ground Combat, Leaders and Garrisons
@@ -29,89 +106,195 @@
 garrison = {
 	defend_overseas_beaches = yes
 	home_multiplier 	= 0.5
-	overseas_multiplier = 1.0
-	home_peace_cap 		= 10
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 11
 	war_zone_odds 		= 1.5
 	key_point_prio_mult	= 0
-	revolt_risk_mult	= 0.3
+	revolt_risk_mult	= 0.1
 
 	# PRIORITIES:
-	beach			= 30	# Beach level 2
+	beach			= 20	# Beach level 2
 	capital			= 20	# Our capital
-	human_border	= 0		# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
-	reserves 		= 20
-	
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 100	# The next country targeted for attack by this AI
+
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
 	unstable_border		= 0	# Bordering countries at war with someone else get this
 
 	# Borders with specific countries
 	country_priorities = {
-		CHI = 10
-		CSX = 10
-		SIK = 10
-		CXB = 10
-		CYN = 10
-		CGX = 10
-		CHC = 10
+		CHI = 200
+		CSX = 100
+		SIK = 20
+		CXB = 20
+		CYN = 20
+		CGX = 100
+		CHC = 90
 		VIC = -1
 		MAN = -1
 		MON = -1
 		SIA = -1
-		SOV = 10
+		SOV = 25
 		POR = -1
 		ENG = 10
 		FRA = 10
 		HOL = 10
-		USA = 10
-		AST = 10
-		NZL = 10
-	}
-	province_priorities = {
-		1337 = 35 # Saigon
-		1322 = 35 # Kaohsung
-		1613 = 35 # Truk
-		1601 = 35 # Eniwetok
-		1608 = 35 # Kwajelin
-		1670 = 35 # Rabaul
-	}
-	area_multiplier = {
-		1785 = 1.0 # Marcus Island
-		1625 = 1.0 # Rota
-		1192 = 1.0 # Anami
-		1194 = 1.0 # Jeju
-		1784 = 1.0 # Bonin Island
-	}
-}
-front = { 
-	recklessness 		= 0 # 0-3
-	distrib_vs_ai 		= reactive
-	distrib_vs_human 	= reactive
+	}
+}
+front = {
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
 
 	enemy_reinf_days	= 6
-	reserve_prop		= 0.1
+
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.1
-	min_attack_odds		= 1.0
-	max_attack_odds		= 3.0
+	base_attack_odds	= 1.333
+	min_attack_odds		= 1.1
+	max_attack_odds		= 2.5
 	reinforce_odds		= 1.2
-	withdraw_odds		= 0.6
+	withdraw_odds		= 0.75
+
+	reserve_prop = 0.2
 
-   	enemy_handicap = { } 
-   	passivity = {
+      	passivity = {
+		CYN = 100
+		SIK = 100
 		CXB = 100
-	} 
-} 
+	}
+}
 ###################################
 # Invasions and Naval
 ###################################
-admiral = { 
+invasion = {
+	invasion	= yes
+ 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 8.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.1	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 20.0	#higher = avoid long distance.
+	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 0.1	#prioritise taking pure islands.
+	enemy		= 2.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
+	air_base	= 1.5 
+      	naval_base 	= 0.1 
+      	air_support 	= 3.0 
+      	redirect 	= priority
+	ignore		= no
+
+	staging_province = {
+		1322 # Kaohsung
+#		1613 # Truk
+
+	}
+	target = {
+		1204 = 2000 #Tianjin
+		1214 = 2000 #Yantal
+		1215 = 2000 #Qingdao
+		1237 = 6000 #Shanghai
+		1217 = 2000 # Nanton
+		1219 = 2000 # Lianyuang
+		1321 = 2000 # Hainan
+		1244 = 2000 # Fuzhou
+		1247 = 2000 # Xizmen
+		1248 = 2000 # Shantou
+	}
+}
+admiral = {
 	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
 	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
 	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+	min_core_attack_fleets  = 1		# Minimum amount of attack fleets to defend CORE provinces (default 0)
+	num_attack_fleets		= 2 	# ENG/USA default 3, JAP default 2 everyone else is 1
+
+
+ignore = {
+
+# Mediterranean
+"Adriatic Sea"
+"Aegean Sea"
+"Black Sea"
+"Tyrrhenian Sea"
+"Costa del Sol"
+"Algerian Coast"
+"Egyptian Coast"
+"Gulf of Lyon"
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+
+# North Sea
+"Kattegat"
+"English Channel"
+"Southeast Northsea"
+"West Northsea"
+"Central Northsea"
+"Norwegian Sea"
+"Western Approaches"
+"Greenland Coast"
+"Faroes Gap"
+"North Atlantic"
+"Bay of Biscay"
+"Azores"
+"Portugese Coast"
+"Cap St Vincent"
+"Cape Finisterre"
+"Irish West Coast"
+"The Hebreides"
+
+# North Atlantic
+"Barents Sea"
+"Irish Sea"
+"Denmark Strait"
+"Central Atlantic"
+"Hudson Bay"
+"Bermuda Triangle"
+"Northern Sea of Labrador"
+"Southern Sea of Labrador"
+"Grand Banks"
+"The Seamounts"
+"Canadian Maritimes"
+"US Maritimes"
+"Central Mid-Atlantic Ridge"
+"East North Sea"
+"Arctic Ocean"
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
+	}
 
 	target = {
 		2188 = 200
@@ -121,7 +304,7 @@
 		2263 = 100
 		2158 = 100
 		2156 = 100
-	} 
+	}
 	core = {
 		2589
 		2193
@@ -130,5 +313,6 @@
 		2194
 		2213
 		2185
-	} 
+	}
+	base = { 1187 }
 }
\ No newline at end of file
diff -Naur Doomsday Data Files.old/ai/switch/jap_defence1.ai Doomsday Data Files/ai/switch/jap_defence1.ai
--- Doomsday Data Files.old/ai/switch/jap_defence1.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/jap_defence1.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,322 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+max_front_ratio = 2.000 
+max_garrison_prop = 0.40
+min_garrison_prop = 0.20
+neutrality = 0.000 
+war = 35
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.0
+
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 5.0
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 3
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 0.5
+	revolt_risk_mult	= 0.1
+
+	# PRIORITIES:
+	beach			= 70	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 0	# Ignored for allied human players
+	war_target		= 75	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		CHI = 10
+		CSX = 10
+		SIK = 10
+		CXB = 10
+		CYN = 10
+		CGX = 10
+		CHC = 10
+		VIC = -1
+		MAN = -1
+		MON = -1
+		SIA = -1
+		SOV = 15
+		POR = -1
+		ENG = 100
+		FRA = 50
+		HOL = 50
+		USA = 150
+		PHI = 150
+		AST = 50
+		NZL = 5
+	}
+	key_point_prio_mult	= 0.5
+
+}
+###################################
+# Invasions and Naval
+###################################
+invasion = {
+
+	invasion	= yes
+ 	base		= 1.5	#Relative modifier. (lower = specific targets much more important.)
+	random		= 10.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 2.0	#increase to avoid coastal forts more.
+	beach		= 1.0	#higher, avoid worst beaches.
+	distance	= 3.0	#higher = avoid long distance.
+	max_distance    = 50.0  #About the distance from Rostock to Narvik
+	pocket		= 1.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 1.0	#prioritise taking pure islands.
+	enemy		= 3.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 3.0	#higher = much more vary of troops nearby
+	air_base	= 1.0 
+      	naval_base 	= 1.0 
+      	air_support 	= 1.0 
+      	redirect 	= nearest
+	ignore		= yes
+	help_allies 	= no
+      
+	staging_province = {
+	#	1337 # Saigon
+	#	1322 # Kaohsung
+	#	1613 # Truk
+	#	1321
+
+	}
+	target = {
+
+		#Outer Japanese Islands
+		1627 = 3250 # Saipan
+		1626 = 3250 # Tinian
+		1625 = 3250 # Rota
+
+		1621 = 3250 # Palau
+		1785 = 3250 # Marcus Island
+		
+		#Far Outer Rim Japanese Islands
+		1601 = 2250 # Eniwetok
+		1600 = 2250 # Bikini
+		1602 = 2250 # Wotje
+		1608 = 2250 # Kwajalein
+		1603 = 2250 # Maloelap
+		1605 = 2250 # Majuro
+		1607 = 2250 # Jaluit
+		1606 = 2250 # Mili
+		1610 = 2250 # Ponape
+		1609 = 2250 # Kosrae
+		1620 = 2250 # Ngulu
+		1619 = 2250 # Yap
+		1618 = 2250 # Ulithi
+		1604 = 2250 # Wolelai
+		1615 = 2250 # Ulul
+		1617 = 2250 # Woleai
+		1616 = 2250 # Pulusok
+		1613 = 2250 # Truk
+		1612 = 2250 # Satawan
+		#Phase 3
+		1666 = 500 # Aitape
+		1667 = 500 # Wewak
+		1672 = 500 # Lae
+		1677 = 500 # Buna
+		1680 = 500 # Milne Bay
+		1679 = 1000 # Port Morseby
+
+		#North Solomon Islands
+		1668 = 500 # Admirality Islands
+		1669 = 500 # New Ireland
+		1681 = 500 # Buka Island
+		1682 = 500 # Bougainville
+
+
+		# South Solomon Islands
+		1683 = 500 # Shortland Island
+		1614 = 500 # Vella Lavella
+		1622 = 500 # Kolombangara
+		1684 = 500 # New Georgia
+		1685 = 1000 # Guadalcanal
+
+
+		
+
+		#Phase 2
+		#Netherlands East Indies
+		1628 = 300 # Batavia
+		1630 = 300 # Semarang
+		1629 = 300 # Tjilatjap
+		1632 = 300 # Soerabaja
+		1634 = 300 # Madura
+		1631 = 300 # Djokjakarta
+		1633 = 300 # Malang
+		1358 = 300 # Palembang
+		1359 = 300 # Oosthaven
+		1356 = 300 # Dumai
+		1357 = 300 # Padang
+		1355 = 300 # Medan
+
+		#Borneo
+		1646 = 200 # Mini
+		1644 = 200 # Kuching
+		1642 = 200 # Pontianak
+		1641 = 200 # Bandjermasin
+		1650 = 300 # Balikpapan
+		1649 = 200 # Samarinda
+		1648 = 200 # Tarakan
+		1647 = 200 # Jessleton
+
+
+
+
+		#Indonesia
+		1653 = 100 # Menado
+		1651 = 100 # Palu
+		1640 = 300 # Makassar
+		1652 = 100 # Kendari
+		1670 = 200 # Rabaul
+		1671 = 200 # Gasmata
+
+		#Indonesia
+		1654 = 100 # Helmahera
+		1655 = 100 # Buru
+		1656 = 100 # Ceram
+
+		#North New Guinea
+		1663 = 100 # Arare
+		1664 = 200 # Sarmi
+		1665 = 1000 # Hollandia
+
+
+
+		#Phase1
+		#Philippines
+		1732 = 1000 # Manila
+
+		1740 = 1000 # Lingayen Gulf
+		1742 = 1000 # Lamon Bay
+		1743 = 1000 # Legaspi
+		1750 = 1000 # Davao
+		1749 = 1000 # Cagayan
+		1748 = 1000 # Zamboangs
+
+		1745 = 1000 # Leyte
+		1736 = 1000 # Mindoro
+
+
+} 
+}
+ 
+Admiral = { 
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+	ignore = {
+
+# Mediterranean
+"Adriatic Sea"
+"Aegean Sea"
+"Black Sea"
+"Tyrrhenian Sea"
+"Costa del Sol"
+"Algerian Coast"
+"Egyptian Coast"
+"Gulf of Lyon"
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+
+# North Sea
+"Kattegat"
+"English Channel"
+"Southeast Northsea"
+"West Northsea"
+"Central Northsea"
+"Norwegian Sea"
+"Western Approaches"
+"Greenland Coast"
+"Faroes Gap"
+"North Atlantic"
+"Bay of Biscay"
+"Azores"
+"Portugese Coast"
+"Cap St Vincent"
+"Cape Finisterre"
+"Irish West Coast"
+"The Hebreides"
+
+# North Atlantic
+"Barents Sea"
+"Irish Sea"
+"Denmark Strait"
+"Central Atlantic"
+"Hudson Bay"
+"Bermuda Triangle"
+"Northern Sea of Labrador"
+"Southern Sea of Labrador"
+"Grand Banks"
+"The Seamounts"
+"Canadian Maritimes"
+"US Maritimes"
+"Central Mid-Atlantic Ridge"
+"East North Sea"
+"Arctic Ocean"
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
+	}
+
+
+
+	target = {
+		2203 = 100
+		2254 = 100
+		2256 = 100
+		2253 = 100
+		2251 = 100
+		2252 = 100
+		2267 = 100
+ } 
+	core = {
+		2203 
+		2254 
+		2256 
+		2253 
+		2251 
+		2252 
+		2267 
+	} 
+}
\ No newline at end of file
diff -Naur Doomsday Data Files.old/ai/switch/jap_defence2.ai Doomsday Data Files/ai/switch/jap_defence2.ai
--- Doomsday Data Files.old/ai/switch/jap_defence2.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/jap_defence2.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,144 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+
+
+###################################
+# Construction and Tech Research
+###################################
+#Default values
+
+
+military = { 
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 540
+	max_batch_war 		= 540 
+	max_batch_home_front 	= 540
+
+	#### Divisions etc...
+	infantry 	= 40
+	cavalry 	= 0
+	motorized 	= 9
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 0
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 0
+	garrison	= 26
+      	hq 		= 0
+	militia 	= 0
+#				75 %
+	interceptor 	= 5
+	multi_role 	= 0
+	escort 		= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 5
+	naval_bomber 	= 5
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				15 %
+	battleship 	= 0
+	carrier 	= 0
+	destroyer 	= 0
+	light_cruiser 	= 0
+	heavy_cruiser 	= 0
+	battlecruiser 	= 0
+	submarine 	= 0
+	transports 	= 0
+#				0 %
+
+	#### Brigades
+	artillery 		= 26
+	sp_artillery 		= 9
+	rocket_artillery	= 0 
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 6
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 12
+	anti_air 		= 5
+	police 			= 9	
+	engineer 		= 10 
+
+	cag = 100.000 
+}
+
+
+
+
+
+garrison = {
+	defend_overseas_beaches = no
+	home_multiplier 	= 10.0
+	overseas_multiplier 	= 0.1
+	home_peace_cap 		= 21
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 1.0
+
+	# PRIORITIES:
+	beach			= 100	# Beach level 2
+	capital			= 150	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		ENG = 100
+		SOV = 100
+		USA = 100
+	}
+	ignore = {
+	
+	}
+	province_priorities = {
+
+			
+	}
+	area_multiplier = { }
+}
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= op_defence
+	distrib_vs_human 	= op_defence
+
+	enemy_reinf_days	= 6
+	reserve_prop = 0.2
+	panic_ratio_vs_ai = 3.0
+	panic_ratio_vs_human = 2.0
+	base_attack_odds = 2.0
+	min_attack_odds = 1.3
+	max_attack_odds = 1.8
+	reinforce_odds = 1.3 #1.5
+	withdraw_odds = 0.7
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+	
+      	enemy_handicap = { } 
+      	passivity = { } 
+} 
+
+###################################
+# Invasions and Naval
+###################################
+invasion = { 
+	ignore		= no 
+	invasion	= no
+      
+	target = { } 
+} 
diff -Naur Doomsday Data Files.old/ai/switch/jap_pacific1.ai Doomsday Data Files/ai/switch/jap_pacific1.ai
--- Doomsday Data Files.old/ai/switch/jap_pacific1.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/jap_pacific1.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,435 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+max_front_ratio = 1.100
+max_garrison_prop = 0.20
+min_garrison_prop = 0.10
+neutrality = 0.000
+war = 35
+reinforcement = 0.01
+upgrading = 0.1
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.1
+exp_force_ratios = {
+	SIA = 0.3
+	MAN = 0.3
+}
+no_exp_forces_to = { GER ITA ROM HUN SLO YUG BUL FIN }
+
+###################################
+# Diplomacy
+###################################
+combat = {
+	SIK = -1
+	CXB = -1
+	CYN = -1
+	USA = 100
+	ENG = 100
+	HOL = 100
+	PHI = 100
+	AUS = 100
+	NZL = 100
+	FRA = 100
+}
+
+target = {
+	1739 = 150
+	1737 = 150 #50 # Manila
+	1738 = 150
+	1745 = 150
+	1750 = 150
+	1749 = 150
+	1736 = 150
+}
+###################################
+# Construction and Tech Research
+###################################
+#Default values
+construction = { 
+	max_factor = 1.000
+
+	AA_batteries = no
+	max_AA_level = 5
+	AA_provs = { } 
+
+	coastal_fort = no
+	max_coastal_level = 2
+	coastal_fort_provs = {
+
+	} 
+
+	radar_station = no
+	max_radar = 1 
+	radar_provs = {
+
+	} 
+
+	air_base = no
+	max_air_base = 1
+	air_base_provs = { } 
+
+	naval_base = no 
+	max_naval_base = 1 
+	naval_base_provs = { } 
+
+
+	ic_at_war = no
+	force_ic_until = 1938
+	ic_end_year = 1939
+	IC_provs = { 	} 
+}
+
+military = {
+	relative_build_scheme 	= no
+	max_batch_peace 	= 540
+	max_batch_war 		= 540 
+	max_batch_home_front 	= 540
+
+	#### Divisions etc...
+	infantry 	= 10
+	cavalry 	= 0
+	motorized 	= 10
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 0
+	paratrooper 	= 0
+	marine 		= 10
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				30 %
+	interceptor 	= 4
+	multi_role 	= 2
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 3
+	naval_bomber 	= 1
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				10 %
+	battleship 	= 0
+	carrier 	= 11
+	escort_carrier	= 5
+	destroyer 	= 8
+	light_cruiser 	= 9
+	heavy_cruiser 	= 9
+	battlecruiser 	= 0
+	submarine 	= 1
+	transports 	= 17
+#				60 %
+
+
+	#### Brigades
+	artillery 		= 50
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 10
+	anti_air 		= 0
+	police 			= 10
+	engineer 		= 10
+
+	cag = 100.000
+}
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.5
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 300
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 0.5
+	revolt_risk_mult	= 0.1
+
+	# PRIORITIES:
+	beach			= 60   # Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 75	# The next country targeted for attack by this AI
+
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		CHI = 10
+		CSX = 10
+		SIK = 10
+		CXB = 10
+		CYN = 10
+		CGX = 10
+		CHC = 10
+		VIC = -1
+		MAN = -1
+		MON = -1
+		SIA = -1
+		SOV = 15
+		POR = -1
+		ENG = 50
+		FRA = 50
+		HOL = 50
+		USA = 150
+		PHI = 150
+		AST = 50
+		NZL = 5
+	}
+	key_point_prio_mult	= 0.5
+
+
+
+		area_multiplier = {
+		# more island
+		1599 = 2.0
+
+		1627 = 2.0
+		1613 = 2.0
+
+		# carolines
+		1604 = 2.0
+		1612 = 2.0
+		1615 = 2.0
+		1616 = 2.0
+		1617 = 2.0 
+		1618 = 2.0
+		1619 = 2.0
+		1620 = 2.0
+		1621 = 2.0
+		### Marshall
+		1600 = 2.0
+		1601 = 2.0
+		1602 = 2.0
+		1603 = 2.0
+		1605 = 2.0
+		1606 = 2.0
+		1607 = 2.0
+		1608 = 2.0
+		1609 = 2.0
+		1610 = 2.0
+		###
+		2172 = 2.0
+		2172 = 2.0
+		1192 = 2.0 ### Okinawa
+		1193 = 2.0
+		1322 = 2.0 #### taiwan
+		1323 = 2.0
+
+		# less China
+		1215 = 0.5
+		1202 = 0.5
+		1314 = 0.5
+		1321 = 0.5
+
+	}
+}
+front = {
+	recklessness 		=  3 # 0-3
+	distrib_vs_ai 		= offensive
+	distrib_vs_human 	= offensive
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.333
+	min_attack_odds		= 1.1
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.2
+	withdraw_odds		= 0.6
+
+	province_priorities = {
+		1740 = 2.0 # Lingayen Gulf
+		1742 = 2.0 # Lamon Bay
+		1743 = 2.0 # Legaspi
+		1750 = 2.0 # Davao
+		1749 = 2.0 # Cagayan
+		1748 = 2.0 # Zamboangs
+
+		1745 = 2.0 # Leyte
+		1736 = 2.0 # Mindoro
+
+		1739 = 2.0 # Clark Field
+		1738 = 2.0 # Baatan
+		1737 = 2.0 # Manila
+	}
+
+      	enemy_handicap = { }
+}
+###################################
+# Invasions and Naval
+###################################
+invasion = {
+
+	invasion	= yes
+	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 5.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.5	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 2.0	#higher = avoid long distance.
+	max_distance    = 9999.0
+	pocket		= 2.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 2.0	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 0.5	#higher = much more vary of troops nearby
+	air_base	= 0.1
+      	naval_base 	= 0.1
+      	air_support 	= 2.0
+
+
+	ignore		= yes
+	help_allies 	= no
+      	redirect 	= priority
+      	staging_province = {
+	1608
+	1321
+	1189
+	}
+
+	target = {
+
+		# Phase 1
+		#Philippines
+		1737 = 3000 # Manila
+		1740 = 3000 # Lingayen Gulf
+		1742 = 3000 # Lamon Bay
+		1741 = 3000 
+		1750 = 3000 # Davao
+		1749 = 3000 # Cagayan
+		1748 = 3000 # Zamboangs
+
+		1745 = 3000 # Leyte
+		1736 = 3000 # Mindoro
+
+		#Outer Japanese Islands
+		1624 = 2000 # Guam
+
+		#USA
+		1786 = 2000 # Wake Island
+
+	}
+}
+admiral = {
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+
+	min_core_attack_fleets  = 2		# Minimum amount of attack fleets to defend CORE provinces (default 0)
+	num_attack_fleets		= 4 	# ENG/USA default 3, JAP default 2 everyone else is 1
+
+
+	ignore = {
+
+# Mediterranean
+"Adriatic Sea"
+"Aegean Sea"
+"Black Sea"
+"Tyrrhenian Sea"
+"Costa del Sol"
+"Algerian Coast"
+"Egyptian Coast"
+"Gulf of Lyon"
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+
+# North Sea
+"Kattegat"
+"English Channel"
+"Southeast Northsea"
+"West Northsea"
+"Central Northsea"
+"Norwegian Sea"
+"Western Approaches"
+"Greenland Coast"
+"Faroes Gap"
+"North Atlantic"
+"Bay of Biscay"
+"Azores"
+"Portugese Coast"
+"Cap St Vincent"
+"Cape Finisterre"
+"Irish West Coast"
+"The Hebreides"
+
+# North Atlantic
+"Barents Sea"
+"Irish Sea"
+"Denmark Strait"
+"Central Atlantic"
+"Hudson Bay"
+"Bermuda Triangle"
+"Northern Sea of Labrador"
+"Southern Sea of Labrador"
+"Grand Banks"
+"The Seamounts"
+"Canadian Maritimes"
+"US Maritimes"
+"Central Mid-Atlantic Ridge"
+"East North Sea"
+"Arctic Ocean"
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
+	}
+
+target = {
+#Phillipines
+2159 = 100
+2256 = 100
+2254 = 100
+2252 = 100
+2250 = 100
+2260 = 100
+2258 = 100
+2261 = 100
+2262 = 100
+# Guam & Wake
+2175 = 100
+2181 = 100
+2203 = 100
+# Hawai
+1931 = 100
+}
+
+
+	base = { 1189 1321 1608 }
+}
\ No newline at end of file
diff -Naur Doomsday Data Files.old/ai/switch/jap_pacific2.ai Doomsday Data Files/ai/switch/jap_pacific2.ai
--- Doomsday Data Files.old/ai/switch/jap_pacific2.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/jap_pacific2.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,519 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+max_front_ratio = 1.100
+max_garrison_prop = 0.20
+min_garrison_prop = 0.10
+neutrality = 0.000
+war = 35
+reinforcement = 0.01
+upgrading = 0.1
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.1
+exp_force_ratios = {
+	SIA = 0.3
+	MAN = 0.3
+}
+no_exp_forces_to = { GER ITA ROM HUN SLO YUG BUL FIN }
+
+###################################
+# Diplomacy
+###################################
+combat = {
+	CHI = 50
+	CSX = 50
+	SIK = -1
+	CXB = 50
+	CYN = 50
+	CGX = 50
+	CHC = 50
+	USA = 100
+	ENG = 100
+	HOL = 100
+	PHI = 100
+	AUS = 100
+	NZL = 100
+	FRA = 100
+}
+	target = {
+		1358 = 100 # Palembang
+		1359 = 100 # Oosthaven
+		1355 = 100 # Medan
+		1650 = 100 # Balikpapan
+		1628 = 150 # Batavia
+		1640 = 100 # Makassar
+		1665 = 100 # Hollandia
+
+		1624 = 100 # Guam
+		1786 = 100 # Wake
+		 662 = 100 # Midway
+	}
+###################################
+# Construction and Tech Research
+###################################
+construction = { 
+	max_factor = 1.000
+
+	AA_batteries = no
+	max_AA_level = 5
+	AA_provs = { } 
+
+	coastal_fort = no
+	max_coastal_level = 2
+	coastal_fort_provs = {
+
+	} 
+
+	radar_station = no
+	max_radar = 1 
+	radar_provs = {
+
+	} 
+
+	air_base = no
+	max_air_base = 1
+	air_base_provs = { } 
+
+	naval_base = no 
+	max_naval_base = 1 
+	naval_base_provs = { } 
+
+
+	ic_at_war = no
+	force_ic_until = 1938
+	ic_end_year = 1939
+	IC_provs = { 	} 
+}
+#Default values
+
+military = {
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 540
+	max_batch_war 		= 540
+	max_batch_home_front 	= 540
+
+	#### Divisions etc...
+	infantry 	= 15
+	cavalry 	= 0
+	motorized 	= 10
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 0
+	paratrooper 	= 0
+	marine 		= 10
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				35 %
+	interceptor 	= 5
+	multi_role 	= 0
+	escort 		= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 3
+	naval_bomber 	= 3
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				11 %
+	battleship 	= 0
+	carrier 	= 10
+	destroyer 	= 8
+	light_cruiser 	= 9
+	heavy_cruiser 	= 9
+	battlecruiser 	= 0
+	submarine 	= 1
+	transports 	= 17   
+#	54 %
+
+
+	#### Brigades
+	artillery 		= 30
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 10
+	anti_air 		= 0
+	police 			= 10
+	engineer 		= 10
+
+	cag = 100.000
+}
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 1.0
+	home_peace_cap 		= 11
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 0.5
+	revolt_risk_mult	= 0.1
+
+	# PRIORITIES:
+	beach			= 60	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 75	# The next country targeted for attack by this AI
+
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		CHI = 10
+		CSX = 10
+		SIK = 10
+		CXB = 10
+		CYN = 10
+		CGX = 10
+		CHC = 10
+		VIC = -1
+		MAN = -1
+		MON = -1
+		SIA = -1
+		SOV = 15
+		POR = -1
+		ENG = 80
+		FRA = 50
+		HOL = 150
+		USA = 150
+		PHI = 150
+		AST = 50
+		NZL = 50
+	}
+
+
+	key_point_prio_mult	= 0.5
+
+		area_multiplier = {
+		# more island
+		1599 = 2.0
+
+		1627 = 2.0
+		1613 = 2.0
+
+
+		# carolines
+		1604 = 2.0
+		1612 = 2.0
+		1615 = 2.0
+		1616 = 2.0
+		1617 = 2.0 
+		1618 = 2.0
+		1619 = 2.0
+		1620 = 2.0
+		1621 = 2.0
+		### Marshall
+		1600 = 2.0
+		1601 = 2.0
+		1602 = 2.0
+		1603 = 2.0
+		1605 = 2.0
+		1606 = 2.0
+		1607 = 2.0
+		1608 = 2.0
+		1609 = 2.0
+		1610 = 2.0
+		###
+		2172 = 2.0
+		2172 = 2.0
+
+		# less China
+		1215 = 0.5
+		1202 = 0.5
+		1314 = 0.5
+		1321 = 0.5
+
+	}
+}
+front = {
+	recklessness 		= 3 # 0-3
+	distrib_vs_ai 		= offensive
+	distrib_vs_human 	= offensive
+
+	enemy_reinf_days	= 6
+
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.333
+	min_attack_odds		= 1.1
+	max_attack_odds		= 2.5
+	reinforce_odds		= 1.2
+	withdraw_odds		= 0.75
+
+	reserve_prop = 0.2
+
+	province_priorities = {
+		1358 = 2.0 # Palembang
+		1359 = 2.0 # Oosthaven
+		1355 = 2.0 # Medan
+		1650 = 2.0 # Balikpapan
+		1628 = 2.0 # Batavia
+		1640 = 2.0 # Makassar
+		1665 = 2.0 # Hollandia
+
+		1624 = 2.0 # Guam
+		1786 = 2.0 # Wake
+		 662 = 2.0 # Midway
+	}
+
+      	enemy_handicap = { }
+
+}
+###################################
+# Invasions and Naval
+###################################
+
+invasion = {
+	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 5.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.5	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 2.0	#higher = avoid long distance.
+	max_distance    = 9999.0
+	pocket		= 2.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 2.0	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 0.5	#higher = much more vary of troops nearby
+	air_base	= 0.1
+      	naval_base 	= 0.1
+      	air_support 	= 2.0
+
+	invasion	= yes
+	ignore		= yes
+	help_allies 	= no
+      	redirect 	= priority
+      
+      	staging_province = {
+	1608
+	1321
+	1189
+	}
+
+	target = {
+
+
+		#Phase 2
+		#Netherlands East Indies
+		1628 = 3000 # Batavia
+		1630 = 3000 # Semarang
+		1629 = 3000 # Tjilatjap
+		1632 = 3000 # Soerabaja
+		1634 = 3000 # Madura
+		1631 = 3000 # Djokjakarta
+		1633 = 3000 # Malang
+		1358 = 3000 # Palembang
+		1359 = 3000 # Oosthaven
+		1356 = 3000 # Dumai
+		1357 = 3000 # Padang
+		1355 = 3000 # Medan
+
+		#Borneo
+		1646 = 2000 # Mini
+		1644 = 2000 # Kuching
+		1642 = 2000 # Pontianak
+		1641 = 2000 # Bandjermasin
+		1650 = 3000 # Balikpapan
+		1649 = 2000 # Samarinda
+		1648 = 2000 # Tarakan
+		1647 = 2000 # Jessleton
+
+
+
+
+		#Indonesia
+		1653 = 1000 # Menado
+		1651 = 1000 # Palu
+		1640 = 3000 # Makassar
+		1652 = 1000 # Kendari
+
+		#New Britain
+		1670 = 2000 # Rabaul
+		1671 = 2000 # Gasmata
+
+		#Indonesia
+		1654 = 1000 # Helmahera
+		1655 = 1000 # Buru
+		1656 = 1000 # Ceram
+
+		#North New Guinea
+		1663 = 1000 # Arare
+		1664 = 2000 # Sarmi
+		1665 = 3000 # Hollandia
+
+
+
+		# NEI Last Remaining Islands
+		1635 = 2000 # Bali
+		1636 = 500 # Lombok
+		1637 = 500 # Sumbawa
+		1639 = 500 # Flores
+		1638 = 500 # Sumba
+		1657 = 500 # West Timor
+
+
+		#1672 = 1000 # Lae
+		#1677 = 1000 # Buna
+		#1680 = 1000 # Milne Bay
+		#1679 = 2000 # Port Morseby
+
+		#North Solomon Islands
+		#1668 = 2000 # Admirality Islands
+		#1669 = 2000 # New Ireland
+		#1681 = 2000 # Buka Island
+		#1682 = 2000 # Bougainville
+
+
+		# South Solomon Islands
+		#1683 = 1000 # Shortland Island
+		#1614 = 1000 # Vella Lavella
+		#1622 = 1000 # Kolombangara
+		#1684 = 1000 # New Georgia
+		#1685 = 2000 # Guadalcanal
+
+		#Phase1
+		#Philippines
+		1732 = 1000 # Manila
+
+		1740 = 1000 # Lingayen Gulf
+		1742 = 1000 # Lamon Bay
+		1743 = 1000 # Legaspi
+		1750 = 1000 # Davao
+		1749 = 1000 # Cagayan
+		1748 = 1000 # Zamboangs
+
+		1745 = 1000 # Leyte
+		1736 = 1000 # Mindoro
+
+		#Outer Japanese Islands
+		1624 = 2000 # Guam
+
+		#USA
+		1786 = 2000 # Wake Island
+
+	}
+}
+
+admiral = {
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+	ignore = {
+
+# Mediterranean
+"Adriatic Sea"
+"Aegean Sea"
+"Black Sea"
+"Tyrrhenian Sea"
+"Costa del Sol"
+"Algerian Coast"
+"Egyptian Coast"
+"Gulf of Lyon"
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+
+# North Sea
+"Kattegat"
+"English Channel"
+"Southeast Northsea"
+"West Northsea"
+"Central Northsea"
+"Norwegian Sea"
+"Western Approaches"
+"Greenland Coast"
+"Faroes Gap"
+"North Atlantic"
+"Bay of Biscay"
+"Azores"
+"Portugese Coast"
+"Cap St Vincent"
+"Cape Finisterre"
+"Irish West Coast"
+"The Hebreides"
+
+# North Atlantic
+"Barents Sea"
+"Irish Sea"
+"Denmark Strait"
+"Central Atlantic"
+"Hudson Bay"
+"Bermuda Triangle"
+"Northern Sea of Labrador"
+"Southern Sea of Labrador"
+"Grand Banks"
+"The Seamounts"
+"Canadian Maritimes"
+"US Maritimes"
+"Central Mid-Atlantic Ridge"
+"East North Sea"
+"Arctic Ocean"
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
+	}
+
+target = {
+# Indonesia
+2073 = 100
+2147 = 100
+2146 = 100
+2151 = 100
+2152 = 100
+2144 = 100
+2143 = 100
+2141 = 100
+2161 = 100
+2140 = 100
+2139 = 100
+2168 = 100
+2160 = 100
+2164 = 100
+## Pearl
+1931 = 100
+
+}
+
+
+	base = { 1189 1321 1608 }
+}
\ No newline at end of file
diff -Naur Doomsday Data Files.old/ai/switch/jap_pacific3.ai Doomsday Data Files/ai/switch/jap_pacific3.ai
--- Doomsday Data Files.old/ai/switch/jap_pacific3.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/jap_pacific3.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,289 @@
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+
+
+###################################
+# Invasions and Naval
+###################################
+
+invasion = {
+	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 5.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.5	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 2.0	#higher = avoid long distance.
+	max_distance    = 9999.0
+	pocket		= 2.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 2.0	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 0.5	#higher = much more vary of troops nearby
+	air_base	= 0.1
+      	naval_base 	= 0.1
+      	air_support 	= 2.0
+
+	invasion	= yes
+	ignore		= yes
+	help_allies 	= no
+      	redirect 	= priority
+            	staging_province = {
+	1608
+	1321
+	1189
+	}
+
+	target = {
+		#Phase 3
+		1666 = 1500 # Aitape
+		1667 = 1500 # Wewak
+		1672 = 1500 # Lae
+		1677 = 1500 # Buna
+		1680 = 1500 # Milne Bay
+		1679 = 2500 # Port Morseby
+
+		#North Solomon Islands
+		1668 = 2500 # Admirality Islands
+		1669 = 2500 # New Ireland
+		1681 = 2500 # Buka Island
+		1682 = 2500 # Bougainville
+
+
+		# South Solomon Islands
+		1683 = 1500 # Shortland Island
+		1614 = 1500 # Vella Lavella
+		1622 = 1500 # Kolombangara
+		1684 = 1500 # New Georgia
+		1685 = 2500 # Guadalcanal
+
+		# Pazifikisland
+
+		662  = 3500 	# midway
+		1611 = 2500     # Nauru
+		
+		# Aleuthen
+		1408  =  1500   #  Attu
+		1407  =  1500   #  Kiska
+
+		# new sealand
+		1871 =  1500 
+		1872 =  1500 
+		1868 =  1500 
+
+		# Hawai
+
+		661 =  1500 
+		660 =  1500 
+		663 =  1500 
+		659 =  1500 
+		658 =  1500 
+
+
+		
+
+
+		#Phase 2
+		#Netherlands East Indies
+		1628 = 300 # Batavia
+		1630 = 300 # Semarang
+		1629 = 300 # Tjilatjap
+		1632 = 300 # Soerabaja
+		1634 = 300 # Madura
+		1631 = 300 # Djokjakarta
+		1633 = 300 # Malang
+		1358 = 300 # Palembang
+		1359 = 300 # Oosthaven
+		1356 = 300 # Dumai
+		1357 = 300 # Padang
+		1355 = 300 # Medan
+
+		#Borneo
+		1646 = 200 # Mini
+		1644 = 200 # Kuching
+		1642 = 200 # Pontianak
+		1641 = 200 # Bandjermasin
+		1650 = 300 # Balikpapan
+		1649 = 200 # Samarinda
+		1648 = 200 # Tarakan
+		1647 = 200 # Jessleton
+
+
+
+
+		#Indonesia
+		1653 = 100 # Menado
+		1651 = 100 # Palu
+		1640 = 300 # Makassar
+		1652 = 100 # Kendari
+		1670 = 200 # Rabaul
+		1671 = 200 # Gasmata
+
+		#Indonesia
+		1654 = 100 # Helmahera
+		1655 = 100 # Buru
+		1656 = 100 # Ceram
+
+		#North New Guinea
+		1663 = 100 # Arare
+		1664 = 200 # Sarmi
+		1665 = 1000 # Hollandia
+
+
+
+		#Phase1
+		#Philippines
+		1732 = 1000 # Manila
+
+		1740 = 1000 # Lingayen Gulf
+		1742 = 1000 # Lamon Bay
+		1743 = 1000 # Legaspi
+		1750 = 1000 # Davao
+		1749 = 1000 # Cagayan
+		1748 = 1000 # Zamboangs
+
+		1745 = 1000 # Leyte
+		1736 = 1000 # Mindoro
+		#USA
+
+		1624 = 2000 # Guam
+
+		1786 = 2000 # Wake Island
+
+	}
+}
+
+admiral = {
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+	ignore = {
+
+# Mediterranean
+"Adriatic Sea"
+"Aegean Sea"
+"Black Sea"
+"Tyrrhenian Sea"
+"Costa del Sol"
+"Algerian Coast"
+"Egyptian Coast"
+"Gulf of Lyon"
+
+
+# Caribbean
+"Yucatan Strait"
+"Central Carribean"
+"Windward Islands"
+"West Gulf of Mexico"
+"East Gulf of Mexico"
+"Florida Strait"
+
+# Baltic Sea
+"Bothnian Bay"
+"Northern Baltic"
+"Southern Baltic"
+
+
+# North Sea
+"Kattegat"
+"English Channel"
+"Southeast Northsea"
+"West Northsea"
+"Central Northsea"
+"Norwegian Sea"
+"Western Approaches"
+"Greenland Coast"
+"Faroes Gap"
+"North Atlantic"
+"Bay of Biscay"
+"Azores"
+"Portugese Coast"
+"Cap St Vincent"
+"Cape Finisterre"
+"Irish West Coast"
+"The Hebreides"
+
+# North Atlantic
+"Barents Sea"
+"Irish Sea"
+"Denmark Strait"
+"Central Atlantic"
+"Hudson Bay"
+"Bermuda Triangle"
+"Northern Sea of Labrador"
+"Southern Sea of Labrador"
+"Grand Banks"
+"The Seamounts"
+"Canadian Maritimes"
+"US Maritimes"
+"Central Mid-Atlantic Ridge"
+"East North Sea"
+"Arctic Ocean"
+
+# South Atlantic
+"Coast of Brazil"
+"Cap Verde"
+"Gulf of Guinea"
+"Coast of Africa"
+"Coast of Bissao"
+"Guiana Basin"
+"South-Central Mid-Atlantic Ridge"
+"Atlantic-Indian Ridge"
+"Coast of South Africa"
+"Coast of Angola-Namibia"
+"Angola Plain"
+"Argentine Plain"
+"Coast of Argentina"
+"Coast of Uruguay"
+"Coast of Guyana"
+"Coast of Recife"
+"Pernambuco Plain"
+"Ascension Fracture Zone"
+	}
+
+target = {
+#Phillipines
+2159 = 100
+2256 = 100
+2254 = 100
+2252 = 100
+2250 = 100
+2260 = 100
+2258 = 100
+2261 = 100
+2262 = 100
+# Guam & Wake
+2175 = 100
+2181 = 100
+2203 = 100
+# Indonesia
+2073 = 100
+2147 = 100
+2146 = 100
+2151 = 100
+2152 = 100
+2144 = 100
+2143 = 100
+2141 = 100
+2161 = 100
+2140 = 100
+2139 = 100
+2168 = 100
+2160 = 100
+2164 = 100
+## Pearl
+1931 = 100
+## Midway
+1927 = 100
+1929 = 100
+1944 = 100
+###
+2168 = 100
+2169 = 100
+2121 = 100
+2122 = 100
+2126 = 100
+}
+
+base = { 1189 1321 1608 }
+}
\ No newline at end of file
diff -Naur Doomsday Data Files.old/ai/switch/neutrality_change.ai Doomsday Data Files/ai/switch/neutrality_change.ai
--- Doomsday Data Files.old/ai/switch/neutrality_change.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/switch/neutrality_change.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,3 +1,5 @@
-# Set Neutrality so they can join alliances
+# reworked by Spocky for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
-neutrality = 95.000 
+neutrality = 50.000 
diff -Naur Doomsday Data Files.old/ai/switch/no_exps.ai Doomsday Data Files/ai/switch/no_exps.ai
--- Doomsday Data Files.old/ai/switch/no_exps.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/no_exps.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1 @@
+no_exp_forces_to = { GER }
diff -Naur Doomsday Data Files.old/ai/switch/reactor1.ai Doomsday Data Files/ai/switch/reactor1.ai
--- Doomsday Data Files.old/ai/switch/reactor1.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/reactor1.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,7 @@
+# auxiliary DAIM AI file
+# reuse is welcome as long as file origin is correctly stated
+
+construction = {
+	nuclear_reactor = yes
+	max_nuclear = 1
+}
diff -Naur Doomsday Data Files.old/ai/switch/reactor2.ai Doomsday Data Files/ai/switch/reactor2.ai
--- Doomsday Data Files.old/ai/switch/reactor2.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/reactor2.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,7 @@
+# auxiliary DAIM AI file
+# reuse is welcome as long as file origin is correctly stated
+
+construction = {
+	nuclear_reactor = yes
+	max_nuclear = 2
+}
diff -Naur Doomsday Data Files.old/ai/switch/reactor3.ai Doomsday Data Files/ai/switch/reactor3.ai
--- Doomsday Data Files.old/ai/switch/reactor3.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/reactor3.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,7 @@
+# auxiliary DAIM AI file
+# reuse is welcome as long as file origin is correctly stated
+
+construction = {
+	nuclear_reactor = yes
+	max_nuclear = 3
+}
diff -Naur Doomsday Data Files.old/ai/switch/reactor4.ai Doomsday Data Files/ai/switch/reactor4.ai
--- Doomsday Data Files.old/ai/switch/reactor4.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/reactor4.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,7 @@
+# auxiliary DAIM AI file
+# reuse is welcome as long as file origin is correctly stated
+
+construction = {
+	nuclear_reactor = yes
+	max_nuclear = 4
+}
diff -Naur Doomsday Data Files.old/ai/switch/reactor5.ai Doomsday Data Files/ai/switch/reactor5.ai
--- Doomsday Data Files.old/ai/switch/reactor5.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/reactor5.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,7 @@
+# auxiliary DAIM AI file
+# reuse is welcome as long as file origin is correctly stated
+
+construction = {
+	nuclear_reactor = yes
+	max_nuclear = 5
+}
diff -Naur Doomsday Data Files.old/ai/switch/reactor6.ai Doomsday Data Files/ai/switch/reactor6.ai
--- Doomsday Data Files.old/ai/switch/reactor6.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/reactor6.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,7 @@
+# auxiliary DAIM AI file
+# reuse is welcome as long as file origin is correctly stated
+
+construction = {
+	nuclear_reactor = yes
+	max_nuclear = 6
+}
diff -Naur Doomsday Data Files.old/ai/switch/reactor7.ai Doomsday Data Files/ai/switch/reactor7.ai
--- Doomsday Data Files.old/ai/switch/reactor7.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/reactor7.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,7 @@
+# auxiliary DAIM AI file
+# reuse is welcome as long as file origin is correctly stated
+
+construction = {
+	nuclear_reactor = yes
+	max_nuclear = 7
+}
diff -Naur Doomsday Data Files.old/ai/switch/reactor8.ai Doomsday Data Files/ai/switch/reactor8.ai
--- Doomsday Data Files.old/ai/switch/reactor8.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/reactor8.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,7 @@
+# auxiliary DAIM AI file
+# reuse is welcome as long as file origin is correctly stated
+
+construction = {
+	nuclear_reactor = yes
+	max_nuclear = 8
+}
diff -Naur Doomsday Data Files.old/ai/switch/reactor9.ai Doomsday Data Files/ai/switch/reactor9.ai
--- Doomsday Data Files.old/ai/switch/reactor9.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/reactor9.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,7 @@
+# auxiliary DAIM AI file
+# reuse is welcome as long as file origin is correctly stated
+
+construction = {
+	nuclear_reactor = yes
+	max_nuclear = 9
+}
diff -Naur Doomsday Data Files.old/ai/switch/sov_baltic.ai Doomsday Data Files/ai/switch/sov_baltic.ai
--- Doomsday Data Files.old/ai/switch/sov_baltic.ai	2008-12-01 19:17:14.000000000 +0100
+++ Doomsday Data Files/ai/switch/sov_baltic.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,10 +1,371 @@
-# Soviet Baltic States AI 1936 AI File by Lothos
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no
+max_front_ratio = 2.0
+max_garrison_prop = 0.75
+min_garrison_prop = 0.25
+neutrality = 120.000 
+war = 0
+reinforcement = 0.05
+upgrading = 0.10
+desperation = 0.9
+strat_redeploy_threshold = 91
+exp_force_ratio = 0.10
 
 ###################################
 # Diplomacy
 ###################################
-combat = {
-	EST = 50
+demand_claims = {
+	EST
+	LAT
+	LIT
+	FIN
+}
+
+befriend = {
+	JAP = -10
+	MAN = -10
+	CHI = -10
+	MON = -10
+	TAN = -10
+	SIK = -10
+	AFG = -10
+	PER = 50
+	TUR = -10
+	ROM = -10
+	BUL = -10
+	POL = -10
+	LIT = -10
+	LAT = -10
+	EST = -10
+	FIN = -10
+	NOR = -10
+	SWE = -10
+	GER = -10
+	SLO = -10
+	HUN = -10
+	CSX = -10
+	CXB = -10
+	CYN = -10
+	CGX = -10
+	CHC = -10
+	MEN = -10
+	SPR = -10
+}
+
+protect = {
+	PER = 80 
+	ROM = 80 
+	TUR = 80
+	POL = 10
 	LAT = 50
+	EST = 50
 	LIT = 50
-}
\ No newline at end of file
+	FIN = 50
+	TAN = 50
+	MON = 50
+	AFG = 50
+}
+
+trade = {
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = {
+		BUL = 50
+		ITA = 50
+		JAP = 50
+		ROM = 50
+		YUG = 50
+		GER = 75
+		SPR = 75
+		MON = 100
+		TAN = 100
+	}
+	embargo = { }
+}
+
+###################################
+# Construction and Tech Research
+###################################
+construction = { 
+	max_factor = 0.0
+
+	AA_batteries = no
+	max_AA_level = 0
+	AA_provs = { } 
+
+	coastal_fort = no
+	max_coastal_level = 0
+	coastal_fort_provs = { } 
+
+	radar_station = no 
+	max_radar = 0
+	radar_provs = { } 
+
+	air_base = no
+	max_air_base = 0
+	air_base_provs = { }
+
+	naval_base = no 
+	max_naval_base = 0
+	naval_base_provs = { } 
+
+	land_fort = no
+	max_land_level = 0
+	fort_borders = { } 
+
+	ic_at_war = no 
+	force_ic_until = 1935
+	ic_end_year = 1935
+	IC_provs = { } 
+}
+
+military = { 
+	relative_build_scheme 	= no 
+	max_batch_peace 	= 360 
+	max_batch_war 		= 360 
+	max_batch_home_front 	= 360
+
+	#### Divisions etc...
+	infantry 	= 0
+	cavalry 	= 7
+	motorized 	= 9
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 35
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 12
+	garrison	= 0
+      	hq 		= 7
+	militia 	= 0
+#				70 %
+	interceptor 	= 14
+	multi_role 	= 0
+	cas 		= 16
+	strategic_bomber = 0
+	tactical_bomber = 0
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				30 %
+	battleship 	= 0
+	carrier 	= 0
+	escort_carrier	= 0
+	destroyer 	= 0
+	light_cruiser 	= 0
+	heavy_cruiser 	= 0
+	battlecruiser 	= 0
+	submarine 	= 0
+	transports 	= 0
+#				0 %
+
+	#### Brigades
+	artillery 		= 0
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 0
+
+	cag = 100.000 
+}
+
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2400 2410 2420 2430 2440 11070 # Anti-Tank
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4170 4280 4180 15120 15130 # CAS
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5160 5180 # Assembly Lines
+		5310 5320 5330 5340 # Computing Machines
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+		7140 7150 7160 16000 # Computers
+		9090 9100 9110 9120 # Air Doctrines
+		14000 14010 14020 14030 14040 # Hospitals
+	}
+	preference 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2400 2410 2420 2430 2440 11070 # Anti-Tank
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4170 4280 4180 15120 15130 # CAS
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5160 5180 # Assembly Lines
+		5310 5320 5330 5340 # Computing Machines
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+		7140 7150 7160 16000 # Computers
+		9090 9100 9110 9120 # Air Doctrines
+		14000 14010 14020 14030 14040 # Hospitals
+	}
+	ignore 		= {
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1340 1350 1360 # Repair shops
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2450 2460 2470 2480 2490 2500 11080 # Static Anti-Air
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+		4040 4070 4100 15030 15040 15050 # Fighters
+		4190 4200 4210 15140 15150 # Naval Bombers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5150 5170 # Ship + Rocket Assembly Lines
+		5410 5420 5430 5440 5450 5460 13030 # Radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+		14080 # Guerilla Warfare
+	}
+
+	armor 		= 8
+	infantry 	= 9
+	industry 	= 5
+	aircraft 	= 4
+	naval 		= 0
+	land_doctrines 	= 4
+	secret_weapons 	= 1
+	air_doctrines 	= 1
+	naval_doctrines = 0
+}
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+garrison = {
+	defend_overseas_beaches = no
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 1.0
+
+	# PRIORITIES:
+	beach			= 10	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		MON = -1
+		TAN = -1
+		SIK = -1
+		CHI = -1
+		AFG = -1
+		PER = 10
+		TUR = 10
+		NOR = 10
+		JAP = 25
+		MAN = 25
+		ROM = 75
+		HUN = 75
+		EST = 100
+		LAT = 100
+		LIT = 100
+		POL = 100
+		GER = 100
+		FIN = 100
+	}
+	province_priorities = {
+		187 = 60
+		163 = 60
+		175 = 80
+		238 = 80
+		1907 = 40
+		1572 = 40
+	}
+	ignore = { 205 }
+	area_multiplier = { }
+}
+front = { 
+	recklessness 		= 1 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= op_defensive
+
+	enemy_reinf_days	= 3
+	reserve_prop		= 0.2
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
+	max_attack_odds		= 4.0
+	reinforce_odds		= 1.2
+	withdraw_odds		= 0.9
+
+	support_defense_prop = 0.5
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = {
+		ROM = 180
+	} 
+      	passivity = {
+	} 
+	province_priorities = {
+		163 = 2.5
+		175 = 2.5
+		187 = 2.5
+		238 = 2.5
+	}
+} 
+
+tech_sharing = {
+	favored = {
+		TAN = 200
+		MON = 200
+	}
+}
+
+###################################
+# Invasions and Naval
+###################################
+invasion = { 
+	ignore		= no 
+	invasion	= no
+      
+	target = { } 
+} 
diff -Naur Doomsday Data Files.old/ai/switch/sov_retaliate.ai Doomsday Data Files/ai/switch/sov_retaliate.ai
--- Doomsday Data Files.old/ai/switch/sov_retaliate.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/sov_retaliate.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,347 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no
+max_front_ratio = 2.0
+max_garrison_prop = 0.75
+min_garrison_prop = 0.25
+neutrality = 120.000 
+war = 0
+reinforcement = 0.25
+upgrading = 0.30
+desperation = 0.9
+strat_redeploy_threshold = 91
+max_redeploying = 0.10
+exp_force_ratio = 0.10
+use_offensive_supply = yes
+max_fuel_offensive = 1000
+
+###################################
+# Diplomacy
+###################################
+demand_claims = {
+}
+
+befriend = {
+	JAP = -10
+	MAN = -10
+	CHI = -10
+	MON = -10
+	TAN = -10
+	SIK = -10
+	AFG = -10
+	PER = 50
+	TUR = -10
+	ROM = -10
+	BUL = -10
+	POL = -10
+	LIT = -10
+	LAT = -10
+	EST = -10
+	FIN = -10
+	NOR = -10
+	SWE = -10
+	GER = -10
+	SLO = -10
+	HUN = -10
+	CSX = -10
+	CXB = -10
+	CYN = -10
+	CGX = -10
+	CHC = -10
+	MEN = -10
+	SPR = -10
+}
+
+protect = {
+}
+
+trade = {
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = {
+		MON = 100
+		TAN = 100
+	}
+	embargo = { }
+}
+
+###################################
+# Construction and Tech Research
+###################################
+construction = { 
+	max_factor = 1.0
+
+	AA_batteries = no
+	max_AA_level = 0
+	AA_provs = { } 
+
+	coastal_fort = no
+	max_coastal_level = 0
+	coastal_fort_provs = { } 
+
+	radar_station = no 
+	max_radar = 0
+	radar_provs = { } 
+
+	air_base = no
+	max_air_base = 0
+	air_base_provs = { }
+
+	naval_base = no 
+	max_naval_base = 0
+	naval_base_provs = { } 
+
+	land_fort = no
+	max_land_level = 0
+	fort_borders = { } 
+
+	ic_at_war = no 
+	force_ic_until = 1935
+	ic_end_year = 1935
+	IC_provs = { } 
+}
+
+military = { 
+	relative_build_scheme 	= yes 
+	max_batch_peace 	= 540 
+	max_batch_war 		= 540 
+	max_batch_home_front 	= 540
+
+	#### Divisions etc...
+	infantry 	= 63
+	cavalry 	= 2
+	motorized 	= 4
+	mechanized 	= 6
+	light_armor 	= 0
+	armor 		= 7
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 4
+	garrison	= 0
+      	hq 		= 2
+	militia 	= 0
+#				88 %
+	interceptor 	= 7
+	multi_role 	= 0
+	cas 		= 5
+	strategic_bomber = 0
+	tactical_bomber = 0
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				12 %
+	battleship 	= 0
+	carrier 	= 0
+	escort_carrier	= 0
+	destroyer 	= 0
+	light_cruiser 	= 0
+	heavy_cruiser 	= 0
+	battlecruiser 	= 0
+	submarine 	= 0
+	transports 	= 0
+#				0 %
+
+	#### Brigades
+	artillery 		= 0
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 0
+
+	cag = 100.000 
+}
+
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2400 2410 2420 2430 2440 11070 # Anti-Tank
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4170 4280 4180 15120 15130 # CAS
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5160 5180 # Assembly Lines
+		5310 5320 5330 5340 # Computing Machines
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+		7140 7150 7160 16000 # Computers
+		9090 9100 9110 9120 # Air Doctrines
+		14000 14010 14020 14030 14040 # Hospitals
+	}
+	preference 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2400 2410 2420 2430 2440 11070 # Anti-Tank
+		4010 4020 4030 4060 4090 15000 15010 15020 # Interceptors
+		4170 4280 4180 15120 15130 # CAS
+		5010 5020 5030 5040 13000 13010 # Agriculture
+		5050 5060 5070 # Machine Tools
+		5080 5090 5100 # Construction Engineering
+		5110 5120 5130 5140 5160 5180 # Assembly Lines
+		5310 5320 5330 5340 # Computing Machines
+		6210 6300 6310 6320 6330 6340 6350 6360 6370 14060 # Land Doctrines (SOV path)
+		7140 7150 7160 16000 # Computers
+		9090 9100 9110 9120 # Air Doctrines
+		14000 14010 14020 14030 14040 # Hospitals
+	}
+	ignore 		= {
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1340 1350 1360 # Repair shops
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2370 2380 2390 # Rocket Artillery
+		2450 2460 2470 2480 2490 2500 11080 # Static Anti-Air
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+		4040 4070 4100 15030 15040 15050 # Fighters
+		4190 4200 4210 15140 15150 # Naval Bombers
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5150 5170 # Ship + Rocket Assembly Lines
+		5410 5420 5430 5440 5450 5460 13030 # Radar
+		5470 5480 5490 5500 5510 5520 5530 5540 # Nuclear Techs
+		5580 5590 # Flying Bomb / Flying Rocket
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+		14080 # Guerilla Warfare
+	}
+
+	armor 		= 8
+	infantry 	= 9
+	industry 	= 5
+	aircraft 	= 4
+	naval 		= 0
+	land_doctrines 	= 4
+	secret_weapons 	= 2
+	air_doctrines 	= 2
+	naval_doctrines = 0
+}
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+garrison = {
+	defend_overseas_beaches = no
+	home_multiplier 	= 1.0
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 0.5
+	revolt_risk_mult	= 0.5
+
+	# PRIORITIES:
+	beach			= 10	# Beach level 2
+	capital			= 75	# Our capital
+	human_border		= 100	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		MON = -1
+		TAN = -1
+		SIK = -1
+		CHI = -1
+		AFG = -1
+		PER = -1
+		TUR = -1
+		NOR = -1
+		MAN = 20
+		JAP = 20
+		ROM = 50
+		HUN = 50
+		FIN = 50
+		GER = 300
+	}
+	province_priorities = {
+		187 = 60
+		163 = 60
+		175 = 80
+		238 = 80
+		1907 = 40
+		1572 = 40
+	}
+	ignore = { }
+	area_multiplier = { }
+}
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
+
+	enemy_reinf_days	= 3
+	reserve_prop		= 0.2
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.5
+	min_attack_odds		= 1.2
+	max_attack_odds		= 4.0
+	reinforce_odds		= 1.2
+	withdraw_odds		= 0.9
+
+	support_defense_prop = 0.5
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = {
+	} 
+      	passivity = {
+	} 
+	province_priorities = {
+		163 = 2.5
+		175 = 2.5
+		187 = 2.5
+		238 = 2.5
+	}
+} 
+
+tech_sharing = {
+	favored = {
+		TAN = 200
+		MON = 200
+	}
+}
+
+###################################
+# Invasions and Naval
+###################################
+invasion = { 
+	ignore		= no 
+	invasion	= no
+      
+	target = { } 
+} 
diff -Naur Doomsday Data Files.old/ai/switch/sov_upgrades.ai Doomsday Data Files/ai/switch/sov_upgrades.ai
--- Doomsday Data Files.old/ai/switch/sov_upgrades.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/sov_upgrades.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,5 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+upgrading = 0.50
diff -Naur Doomsday Data Files.old/ai/switch/sov_war.ai Doomsday Data Files/ai/switch/sov_war.ai
--- Doomsday Data Files.old/ai/switch/sov_war.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/sov_war.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,62 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+military = { 
+	relative_build_scheme 	= no 
+	max_batch_peace 	= 540 
+	max_batch_war 		= 540 
+	max_batch_home_front 	= 540
+
+	#### Divisions etc...
+	infantry 	= 70
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 20
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
+#				90 %
+	interceptor 	= 6
+	multi_role 	= 0
+	cas 		= 4
+	strategic_bomber = 0
+	tactical_bomber = 0
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				10 %
+	battleship 	= 0
+	carrier 	= 0
+	escort_carrier	= 0
+	destroyer 	= 0
+	light_cruiser 	= 0
+	heavy_cruiser 	= 0
+	battlecruiser 	= 0
+	submarine 	= 0
+	transports 	= 0
+#				0 %
+
+	#### Brigades
+	artillery 		= 0
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 0
+
+	cag = 100.000 
+}
diff -Naur Doomsday Data Files.old/ai/switch/trades_off.ai Doomsday Data Files/ai/switch/trades_off.ai
--- Doomsday Data Files.old/ai/switch/trades_off.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/trades_off.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,6 @@
+# auxiliary DAIM AI file
+# reuse is welcome as long as file origin is correctly stated
+
+trade = {
+	cancel_deal_threshold	= -1000.000
+}
diff -Naur Doomsday Data Files.old/ai/switch/trades_on.ai Doomsday Data Files/ai/switch/trades_on.ai
--- Doomsday Data Files.old/ai/switch/trades_on.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/trades_on.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,6 @@
+# auxiliary DAIM AI file
+# reuse is welcome as long as file origin is correctly stated
+
+trade = {
+	cancel_deal_threshold	= 2.500
+}
diff -Naur Doomsday Data Files.old/ai/switch/usa_defence.ai Doomsday Data Files/ai/switch/usa_defence.ai
--- Doomsday Data Files.old/ai/switch/usa_defence.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/usa_defence.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,100 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+max_garrison_prop = 0.60
+min_garrison_prop = 0.40
+
+evac_islands = yes
+
+garrison = {
+	defend_overseas_beaches = no
+	home_multiplier 	= 2.0
+	overseas_multiplier 	= 0.5
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 0.3
+
+	# PRIORITIES:
+	beach			= 75	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 50	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+}
+
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
+}
+
+invasion = { 
+	ignore		= no 
+	invasion	= no
+      
+	target = { } 
+} 
+
+military = { 
+	relative_build_scheme 	= no
+	max_batch_peace 	= 360
+	max_batch_war 		= 360
+	max_batch_home_front 	= 360
+
+	#### Divisions etc...
+	infantry 	= 22
+	cavalry 	= 0
+	motorized 	= 6
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 6
+	paratrooper 	= 0
+	marine 		= 5
+	bergsjaeger 	= 3
+	garrison	= 0
+      	hq 		= 3
+	militia 	= 0
+#				45 %
+	interceptor 	= 0
+	multi_role 	= 7
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 4
+	naval_bomber 	= 2
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				13 %
+	battleship 	= 4
+	carrier 	= 6
+	escort_carrier	= 2
+	destroyer 	= 9
+	light_cruiser 	= 8
+	heavy_cruiser 	= 3
+	battlecruiser 	= 0
+	submarine 	= 5
+	transports 	= 5
+#				42 %
+
+	#### Brigades
+	artillery 		= 10
+	sp_artillery 		= 20
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 10
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 10
+
+	cag = 100.000 
+}
diff -Naur Doomsday Data Files.old/ai/switch/usa_invasions1.ai Doomsday Data Files/ai/switch/usa_invasions1.ai
--- Doomsday Data Files.old/ai/switch/usa_invasions1.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/usa_invasions1.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,191 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+target = {
+	515 = 100
+	525 = 100
+	1599 = 100
+	1621 = 100
+} 
+
+max_garrison_prop = 0.30
+min_garrison_prop = 0.20
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 0.9
+	overseas_multiplier 	= 1.5
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 0.3
+
+	# PRIORITIES:
+	beach			= 60	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 50	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+}
+
+###################################
+# Invasions and Naval
+###################################
+invasion = {
+	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 10.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.1	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 0.1	#higher = avoid long distance.
+	max_distance    = 50.0
+	max_staging_distance = 50.0
+	pocket		= 1.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 2.0	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 0.5	#higher = much more vary of troops nearby
+	air_base	= 0.1
+      	naval_base 	= 0.1
+      	air_support 	= 0.1
+
+	invasion	= yes
+	ignore		= yes
+	help_allies 	= yes
+      	redirect 	= nearest
+
+	staging_province = { 20 21 23 600 762 958 }
+
+	target = {
+		938 = 5000 # Vichy in North Africa
+		939 = 5000
+		940 = 5000
+		949 = 5000
+		953 = 5000
+		958 = 5000
+
+		31 = 5000 # Malta
+		513 = 5000 # Mainland Italy
+		514 = 5000
+		520 = 5000
+		521 = 5000
+		523 = 5000
+		525 = 5000
+		526 = 5000
+		534 = 5000
+		932 = 5000 # Lybia
+		933 = 5000
+		924 = 5000
+
+		658 = 1000 #Hawai
+		659 = 1000 #Maui
+		660 = 1000 #Kawai
+		661 = 1000 #Niihau
+		662 = 1000 #Midway
+		663 = 1000 #Pearl Harbour
+		1766 = 1000 #Johnson
+		1785 = 1000 #Marcus
+		1786 = 1000 #Wake
+		1799 = 1000 #IwoJima
+		1784 = 1000 #Bonin Isl.
+		1602 = 1000 #Wotje
+		1600 = 1000 #Bikini
+		1601 = 1000 #Eniwetok
+		1608 = 1000 #Kwajelein
+		1605 = 1000 #Majuro
+		1606 = 1000 #Mili
+		1607 = 1000 #Jaluit
+		1610 = 1000 #Ponape
+		1609 = 1000 #Kosrae
+		1611 = 1000 #Nauru
+		1753 = 1000 # Vanua Levu
+		1751 = 1000 # Tahiti
+		1752 = 1000 #Lau Group
+		1755 = 1000 #Taveuni
+		1756 = 1000 # Samoa
+		1757 = 1000 # Tamara
+		1770 = 1000 #Maiana
+		1761 = 1000 #Apamana
+		1769 = 1000 #Tarawa
+		1768 = 1000 #Abaiang
+		1767 = 1000 #Makin
+		1762 = 1000 #Phoenix Island
+		1763 = 1000 #Christmas isl.
+		1764 = 1000 #Jarvis
+		1765 = 1000 #Palmira
+		1760 = 1000 #Nanuti
+		1758 = 1000 #Arorae
+		1871 = 1000 #Wellington
+		1871 = 1000 #Darwina
+		1868 = 1000 #Auckland
+		1872 = 1000 #ChristChurch
+		1703 = 1000 # Darwin
+		1702 = 1000 # Mhuluibuy
+		1701 = 1000 # Borroloa
+		1695 = 1000 # Normanton
+		1694 = 1000 # Welpa
+		1722 = 1000 # Brisbane
+		1723 = 1000 # Coff's Harbour
+		1724 = 1000 # Newcastle, Australia
+		1727 = 1000 # Sydney
+		1730 = 1000 # Melbourne
+		1732 = 1000 # Mount Gambier
+		1733 = 1000 # Adelaide
+		1729 = 1000 # Tasmania
+		1718 = 1000 # Port Augusta
+		1717 = 1000 # Port Lincoln
+		1716 = 1000 # Penong
+		1713 = 1000 # Esperance
+		1712 = 1000 # Perth
+		1711 = 1000 # Geralton
+		1710 = 1000 # Carnav
+		1704 = 1000 # Katherine
+		1692 = 1000 #Noumea
+		1691 = 1000 #Lifu
+		1687 = 1000 #Nare
+		1690 = 1000 #Etafe
+		1688 = 1000 #Bank Isl.
+		1686 = 1000 #Santa Cruz
+		1685 = 1000 #Guadalcanal
+		1684 = 1000 #New Georgia
+		1622 = 1000 #Kolombangia
+		1614 = 1000 #Villa Lavella
+		1683 = 1000 #Shortland Island
+		1682 = 1000 #Boungainville
+		1681 = 1000 #Buka
+		1669 = 1000 #New Ireland
+		1670 = 1000 #Rabaul
+		1671 = 1000 #Gasmata
+		1675 = 1000 #Kerema
+		1679 = 1000 #Port Moresby
+		1680 = 1000 #Milne Bay
+		1677 = 1000 #Buna
+		1672 = 1000 #Lae
+		1668 = 1000 #Admiralty
+		1667 = 1000 #Wewak
+		1666 = 1000 #Aitape
+		1665 = 1000 #Hollandia
+		1664 = 1000 #Sarmi
+		1663 = 1000 #arare
+		1661 = 1000 #Biak_isl.
+		1612 = 1000 #Satawan
+		1613 = 1000 #Truk
+		1615 = 1000 #Ulul
+		1617 = 1000 #Woleai
+		1616 = 1000 #Pulusuk
+		1604 = 1000 #Wolelai
+		1618 = 1000 #Ulithi
+		1619 = 1000 #Yap
+		1620 = 1000 #Ngulu
+		1176 = -1
+		1202 = -1
+	}
+}
+
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
+}
diff -Naur Doomsday Data Files.old/ai/switch/usa_invasions2.ai Doomsday Data Files/ai/switch/usa_invasions2.ai
--- Doomsday Data Files.old/ai/switch/usa_invasions2.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/usa_invasions2.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,131 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+target = {
+	56 = 100
+	300 = 100
+	515 = 75
+	525 = 75
+	1599 = 100
+	1621 = 100
+} 
+
+max_garrison_prop = 0.25
+min_garrison_prop = 0.15
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 0.6
+	overseas_multiplier 	= 1.5
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 0.3
+
+	# PRIORITIES:
+	beach			= 60	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 50	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	ignore = {
+		#18 # France
+		#32
+		#33
+		#34
+		#35
+		#39
+		#41
+		#42
+		#43
+		#59
+		#325
+		#326
+	}
+}
+
+###################################
+# Invasions and Naval
+###################################
+invasion = {
+	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 10.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.1	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 0.1	#higher = avoid long distance.
+	max_distance    = 100.0
+	max_staging_distance = 100.0
+	pocket		= 1.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 0.5	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 0.5	#higher = much more vary of troops nearby
+	air_base	= 0.1
+      	naval_base 	= 0.1
+      	air_support 	= 0.1
+
+	invasion	= yes
+	ignore		= yes
+	help_allies 	= yes
+      	redirect 	= nearest
+
+	staging_province = { 20 21 23 958 }
+
+	target = {
+		18 = 5000 # France
+		32 = 5000
+		33 = 5000
+		34 = 5000
+		35 = 5000
+		39 = 5000
+		41 = 5000
+		42 = 5000
+		43 = 5000
+		59 = 5000
+		325 = 5000
+		326 = 5000
+
+		9 = 5000 # England
+		10 = 5000
+		11 = 5000
+		12 = 5000
+		13 = 5000
+		14 = 5000
+		17 = 5000
+		20 = 5000
+		21 = 5000
+		22 = 5000
+		23 = 5000
+		28 = 5000
+
+		938 = 1000 # Vichy in North Africa
+		939 = 1000
+		940 = 1000
+		949 = 1000
+		953 = 1000
+		958 = 1000
+
+		31 = 1000 # Malta
+		513 = 1000 # Mainland Italy
+		514 = 1000
+		520 = 1000
+		521 = 1000
+		523 = 1000
+		525 = 1000
+		526 = 1000
+		534 = 1000
+		932 = 1000 # Lybia
+		933 = 1000
+		924 = 1000
+	}
+}
+
+front = { 
+	recklessness 		= 2 # 0-3
+	distrib_vs_ai 		= offensive
+	distrib_vs_human 	= offensive
+}
diff -Naur Doomsday Data Files.old/ai/switch/usa_invasions3.ai Doomsday Data Files/ai/switch/usa_invasions3.ai
--- Doomsday Data Files.old/ai/switch/usa_invasions3.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/usa_invasions3.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,212 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+target = {
+	56 = 100
+	300 = 100
+	515 = 75
+	525 = 75
+	1184 = 100
+	1190 = 100
+	1599 = 75
+	1621 = 75
+} 
+
+max_garrison_prop = 0.20
+min_garrison_prop = 0.10
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 0.3
+	overseas_multiplier 	= 1.5
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 0.3
+
+	# PRIORITIES:
+	beach			= 60	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 50	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	ignore = {
+		#18 # France
+		#32
+		#33
+		#34
+		#35
+		#39
+		#41
+		#42
+		#43
+		#59
+		#325
+		#326
+	}
+}
+
+###################################
+# Invasions and Naval
+###################################
+invasion = {
+	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
+	random		= 10.0	#How big a random range.  (1.0 = 1%)
+	coastal		= 0.1	#increase to avoid coastal forts more.
+	beach		= 0.1	#higher, avoid worst beaches.
+	distance	= 0.1	#higher = avoid long distance.
+	max_distance    = 150.0
+	max_staging_distance = 100.0
+	pocket		= 0.5	#prioritise pockets, ie provinces with no adjacent controlled by same.
+	island		= 0.5	#prioritise taking pure islands.
+	enemy		= 1.0	#higher = much more vary of troops in province.
+	adjacentenemy 	= 0.5	#higher = much more vary of troops nearby
+	air_base	= 0.1
+      	naval_base 	= 0.1
+      	air_support 	= 0.1
+
+	invasion	= yes
+	ignore		= yes
+	help_allies 	= yes
+      	redirect 	= nearest
+
+	staging_province = { 20 21 23 }
+
+	target = {
+		1178 = 1000 # Mainland Japan
+		1179 = 1000
+		1180 = 1000
+		1181 = 1000
+		1184 = 1000
+		1187 = 1000
+		1188 = 1000
+		1189 = 1000
+		1190 = 1000
+		1191 = 1000
+		1192 = 1000
+		1193 = 1000
+		1322 = 1000
+		1323 = 1000
+		1736 = 1000
+		1740 = 1000
+		1741 = 1000
+		1742 = 1000
+		1743 = 1000
+		1745 = 1000
+		1748 = 1000
+		1749 = 1000
+		1750 = 1000
+
+		658 = 500 #Hawai
+		659 = 500 #Maui
+		660 = 500 #Kawai
+		661 = 500 #Niihau
+		662 = 500 #Midway
+		663 = 500 #Pearl Harbour
+		1766 = 500 #Johnson
+		1785 = 500 #Marcus
+		1786 = 500 #Wake
+		1799 = 500 #IwoJima
+		1784 = 500 #Bonin Isl.
+		1602 = 500 #Wotje
+		1600 = 500 #Bikini
+		1601 = 500 #Eniwetok
+		1608 = 500 #Kwajelein
+		1605 = 500 #Majuro
+		1606 = 500 #Mili
+		1607 = 500 #Jaluit
+		1610 = 500 #Ponape
+		1609 = 500 #Kosrae
+		1611 = 500 #Nauru
+		1753 = 500 # Vanua Levu
+		1751 = 500 # Tahiti
+		1752 = 500 #Lau Group
+		1755 = 500 #Taveuni
+		1756 = 500 # Samoa
+		1757 = 500 # Tamara
+		1770 = 500 #Maiana
+		1761 = 500 #Apamana
+		1769 = 500 #Tarawa
+		1768 = 500 #Abaiang
+		1767 = 500 #Makin
+		1762 = 500 #Phoenix Island
+		1763 = 500 #Christmas isl.
+		1764 = 500 #Jarvis
+		1765 = 500 #Palmira
+		1760 = 500 #Nanuti
+		1758 = 500 #Arorae
+		1871 = 500 #Wellington
+		1871 = 500 #Darwina
+		1868 = 500 #Auckland
+		1872 = 500 #ChristChurch
+		1703 = 500 # Darwin
+		1702 = 500 # Mhuluibuy
+		1701 = 500 # Borroloa
+		1695 = 500 # Normanton
+		1694 = 500 # Welpa
+		1722 = 500 # Brisbane
+		1723 = 500 # Coff's Harbour
+		1724 = 500 # Newcastle, Australia
+		1727 = 500 # Sydney
+		1730 = 500 # Melbourne
+		1732 = 500 # Mount Gambier
+		1733 = 500 # Adelaide
+		1729 = 500 # Tasmania
+		1718 = 500 # Port Augusta
+		1717 = 500 # Port Lincoln
+		1716 = 500 # Penong
+		1713 = 500 # Esperance
+		1712 = 500 # Perth
+		1711 = 500 # Geralton
+		1710 = 500 # Carnav
+		1704 = 500 # Katherine
+		1692 = 500 #Noumea
+		1691 = 500 #Lifu
+		1687 = 500 #Nare
+		1690 = 500 #Etafe
+		1688 = 500 #Bank Isl.
+		1686 = 500 #Santa Cruz
+		1685 = 500 #Guadalcanal
+		1684 = 500 #New Georgia
+		1622 = 500 #Kolombangia
+		1614 = 500 #Villa Lavella
+		1683 = 500 #Shortland Island
+		1682 = 500 #Boungainville
+		1681 = 500 #Buka
+		1669 = 500 #New Ireland
+		1670 = 500 #Rabaul
+		1671 = 500 #Gasmata
+		1675 = 500 #Kerema
+		1679 = 500 #Port Moresby
+		1680 = 500 #Milne Bay
+		1677 = 500 #Buna
+		1672 = 500 #Lae
+		1668 = 500 #Admiralty
+		1667 = 500 #Wewak
+		1666 = 500 #Aitape
+		1665 = 500 #Hollandia
+		1664 = 500 #Sarmi
+		1663 = 500 #arare
+		1661 = 500 #Biak_isl.
+		1612 = 500 #Satawan
+		1613 = 500 #Truk
+		1615 = 500 #Ulul
+		1617 = 500 #Woleai
+		1616 = 500 #Pulusuk
+		1604 = 500 #Wolelai
+		1618 = 500 #Ulithi
+		1619 = 500 #Yap
+		1620 = 500 #Ngulu
+	}
+}
+
+front = { 
+	recklessness 		= 3 # 0-3
+	distrib_vs_ai 		= offensive
+	distrib_vs_human 	= offensive
+}
diff -Naur Doomsday Data Files.old/ai/switch/usa_mechs.ai Doomsday Data Files/ai/switch/usa_mechs.ai
--- Doomsday Data Files.old/ai/switch/usa_mechs.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/switch/usa_mechs.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,62 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+military = { 
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 270
+	max_batch_war 		= 270
+	max_batch_home_front 	= 270
+
+	#### Divisions etc...
+	infantry 	= 8
+	cavalry 	= 0
+	motorized 	= 5
+	mechanized 	= 5
+	light_armor 	= 0
+	armor 		= 6
+	paratrooper 	= 0
+	marine 		= 6
+	bergsjaeger 	= 4
+	garrison	= 0
+      	hq 		= 3
+	militia 	= 0
+#				37 %
+	interceptor 	= 0
+	multi_role 	= 7
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 4
+	naval_bomber 	= 2
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				13 %
+	battleship 	= 3
+	carrier 	= 6
+	escort_carrier	= 3
+	destroyer 	= 9
+	light_cruiser 	= 8
+	heavy_cruiser 	= 3
+	battlecruiser 	= 0
+	submarine 	= 5
+	transports 	= 13
+#				50 %
+
+	#### Brigades
+	artillery 		= 10
+	sp_artillery 		= 20
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 10
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 10
+
+	cag = 100.000 
+}
diff -Naur Doomsday Data Files.old/ai/tan_1936.ai Doomsday Data Files/ai/tan_1936.ai
--- Doomsday Data Files.old/ai/tan_1936.ai	2008-12-01 19:17:15.000000000 +0100
+++ Doomsday Data Files/ai/tan_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,34 +1,22 @@
-# Tannu Tuva 1936 AI File by Lothos
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
+max_front_ratio = 3.0
 max_garrison_prop = 0.30
-min_garrison_prop = 0.20
-neutrality = 90.000 
+min_garrison_prop = 0.10
+neutrality = 100.000
 war = 0
-upgrading = 0.35
-reinforcement = 0.2
-strat_redeploy_threshold = 25
-exp_force_ratio = 0.0
-exp_force_ratios = { } 
+strat_redeploy_threshold = 21
+exp_force_ratio = 1.0
+exp_force_ratios = { SOV = 1.0 }
 no_exp_forces_to = { }
-use_offensive_supply = no
 
 ###################################
 # Diplomacy
 ###################################
-combat = { }
-
-befriend = {
-	SOV = 150
-}
-protect = {
-	SOV = 150
-}
-target = { } 
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -37,143 +25,77 @@
 	money 		= -1
 
 	favored = {
-		SOV = 150
+		SOV = 100
+		MON = 100
 	}
-	embargo = { }
 }
+
 tech_sharing = {
 	favored = {
-		SOV = 150
-	}
-	embargo = { }
-	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 3
-		counter_espionage =  10
-		country = TAN
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
+		SOV = 100
+		MON = 100
 	}
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
-#Default values
-construction = { 
-	max_factor = 0.00 
-
+construction = {
+	max_factor = 0.500
 
-	AA_batteries = no
+	AA_batteries = atwar
 	max_AA_level = 3
-	AA_provs = { 
-		1418 # Kyzyl
-	}
+	AA_provs = { }
 
 	coastal_fort = no
-	max_coastal_level = 3
-	coastal_fort_provs = { } 
+	max_coastal_level = 0
+	coastal_fort_provs = { }
 
-	radar_station = no 
-	max_radar = 5 
-	radar_provs = { } 
+	radar_station = no
+	max_radar = 0
+	radar_provs = { }
 
 	air_base = no
-	max_air_base = 2
-	air_base_provs = { } 
+	max_air_base = 0
+	air_base_provs = { }
 
 	naval_base = no
-	max_naval_base = 5 
-	naval_base_provs = { } 
+	max_naval_base = 0
+	naval_base_provs = { }
 
 	land_fort = no
-	max_land_level = 2
+	max_land_level = 0
 	fort_borders = { } 
 
-	ic_at_war = no 
-	force_ic_until = 1935
-	ic_end_year = 1935
-	IC_provs = {
-		1418 # Kyzyl
-	} 
+	ic_at_war = no
+	force_ic_until = 1938
+	ic_end_year = 1938
+	IC_provs = { }
 }
 
 military = { 
-	relative_build_scheme 	= no
-	max_batch_peace 		= 360 
-	max_batch_war 			= 180 
+	relative_build_scheme 	= yes 
+	max_batch_peace 	= 360 
+	max_batch_war 		= 180 
 	max_batch_home_front 	= 180
 
-
 	#### Divisions etc...
-	infantry 		= 100
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
+	infantry 	= 75
+	cavalry 	= 25
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 0
+	armor 		= 0
 	paratrooper 	= 0
-	marine 			= 0
+	marine 		= 0
 	bergsjaeger 	= 0
-	garrison		= 0
-    hq 				= 0
-	militia 		= 0
+	garrison	= 0
+      	hq 		= 0
+	militia 	= 0
 #				100 %
 	interceptor 	= 0
-	multi_role 		= 0
-	cas 			= 0
+	multi_role 	= 0
+	cas 		= 0
 	strategic_bomber = 0
 	tactical_bomber = 0
 	naval_bomber 	= 0
@@ -181,193 +103,82 @@
 	flying_bomb 	= 0
 	flying_rocket 	= 0
 #				0 %
-	battleship 		= 0
-	carrier 		= 0
+	battleship 	= 0
+	carrier 	= 0
 	escort_carrier	= 0
-	destroyer 		= 0
+	destroyer 	= 0
 	light_cruiser 	= 0
 	heavy_cruiser 	= 0
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports 		= 0
+	submarine 	= 0
+	transports 	= 0
 #				0 %
 
 	#### Brigades
-	artillery 			= 35
+	artillery 		= 60
 	sp_artillery 		= 0
-	rocket_artillery	= 0
+	rocket_artillery	= 0 
 	sp_rct_artillery 	= 0
-	anti_tank 			= 15
+	anti_tank 		= 0
 	tank_destroyer 		= 0
-	light_armor_brigade = 0
+	light_armor_brigade 	= 0
 	heavy_armor 		= 0
 	super_heavy_armor 	= 0
 	armored_car 		= 0
-	anti_air 			= 0
-	police 				= 0
-	engineer 			= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 40
 
 	cag = 100.000 
 }
 
 technology = { 
-	endgoal 	= { } 
-	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Land Doctrines
-		6210 6300
-	} 
-	ignore 		= {
-		# Assembly Line
-		5140 5150 5160 5170
-
-		# Arcriculture
-		5010 5020 5030 5040
-
-		# Airborne
-		1070 1080 1090 1100
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# Cavalry
-		1190 1200 1210 1220
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Rocketry
-		5550 5560 5570 5580 5590
-
-		# Atomic Research
-		5470 5480 5490 5500 5510 5520 5530 5540
-
-		# Bas Decimetric
-		5410 5420 5430 5440 5450 5460
-
-		# CAS
-		4170 4280 4180
-
-		# Escort/Multirole Fighters
-		4040 4050 4070 4080 4100 4110
-		
-		# Tactical Bombers
-		4140 4150 4160
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Strategic Bomber
-		4220 4230 4240
-
-		# Air Transports
-		4250 4260 4270
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Medium tanks
-		2010 2070 2080 2090
-
-		# Heavy Tanks and Semi-Modern Tank
-		2100 2110 2120 2140
-
-		# Tank destroyers
-		2170 2180 2190 2200 2210
-
-		# SP guns
-		2220 2230 2240 2250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-		
-		# Static Anti-Air
-		2450 2460 2470 2480 2490 2500
-		
-		# Anti Air Brigade
-		2510 2520 2530 2540
-
-		# Rocket Artillery
-		2370 2380 2390
-
-		# Land Doctrines
-		6010
-
-		# Armoured Cars
-		2150 2160
-
-		# Strategic Air Doctrines 9140
-		9150 9160 9170 9180 9430 9440 9450 9460
-
-		# Land Doctrines
-		14080 # Guerilla Warfare
-	}
+	endgoal 	= { 1020 1030 1040 1050 1060 1200 1210 1220 1310 2290 2300 2310 2320 2330 2340 2350 2360 5080 }
+	preference 	= { 1020 1030 1040 1050 1060 1200 1210 1220 1310 2290 2300 2310 2320 2330 2340 2350 2360 5080 }
+	ignore 		= { 1070 1110 1150 1340 1350 1360 2010 2160 2220 2370 2400 2510 5410 5470 5550 6010 6220 }
  
-	armor 			= 3
-	infantry 		= 4
-	industry 		= 3
-	aircraft 		= 0
-	naval 			= 0
-	land_doctrines 	= 4
+	armor 		= 7
+	infantry 	= 9
+	industry 	= 6
+	aircraft 	= 0
+	naval 		= 0
+	land_doctrines 	= 5
 	secret_weapons 	= 0
 	air_doctrines 	= 0
 	naval_doctrines = 0
-}
+}  
 
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
-	defend_overseas_beaches = yes
+	defend_overseas_beaches = no
 	home_multiplier 	= 0.5
 	overseas_multiplier 	= 0.5
-	home_peace_cap 		= 10
+	home_peace_cap 		= 101
 	war_zone_odds 		= 2.0
 	key_point_prio_mult	= 0
 	revolt_risk_mult	= 1.0
 
 	# PRIORITIES:
-	beach			= 20	# Beach level 2
-	capital			= 40	# Our capital
-	human_border		= 0	# Ignored for allied human players
-	war_target		= 50	# The next country targeted for attack by this AI
+	beach			= 0	# Beach level 2
+	capital			= 50	# Our capital
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 150	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
 	claim_threat		= 0	# If we are neutral, countries with claims on us get this
@@ -375,25 +186,17 @@
 
 	# Borders with specific countries
 	country_priorities = {
-		MON = -1
+		CGX = -1
+		CHC = -1
 		CHI = -1
 		CSX = -1
-		SIK = -1
 		CXB = -1
 		CYN = -1
-		CGX = -1
-		CHC = -1
-		VIC = -1
-		JAP = 50
-		SIA = 10
+		SIK = -1
+		MON = -1
 		SOV = -1
-		POR = -1
-		ENG = 50
-		FRA = 50
-		USA = 50
-		AST = 10
-		NZL = 10
-		MAN = 10
+		JAP = 50
+		MAN = 50
 	}
 	province_priorities = {	}
 	area_multiplier = { }
@@ -407,119 +210,39 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
-	max_attack_odds		= 3.0
-	reinforce_odds		= 1.2
-	withdraw_odds		= 0.6
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
+	max_attack_odds		= 2.5
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.8
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = { } 
       	passivity = { } 
 } 
+
 ###################################
-# Air bombardment and defense
+# Intelligence
 ###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = TAN
+	}
+}
 
 air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
+	min_mission_strength_org = 0.7
 }
-###################################
-# Invasions and Naval
-###################################
-invasion = { 
- 	base		= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random		= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal		= 0.1	#increase to avoid coastal forts more.
-	beach		= 0.1	#higher, avoid worst beaches.
-	distance	= 0.1	#higher = avoid long distance.
-	pocket		= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island		= 0.1	#prioritise taking pure islands.
-	enemy		= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 	= 2.0	#higher = much more vary of troops nearby
-	air_base	= 1.5 
-      	naval_base 	= 0.1 
-      	air_support 	= 3.0 
-      	redirect 	= priority
-	ignore		= no
-      
-	target = { } 
-} 
-admiral = { 
-	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
-	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
-	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
-	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-
-	target = { } 
-	core = { } 
-}
\ No newline at end of file
diff -Naur Doomsday Data Files.old/ai/usa_1936.ai Doomsday Data Files/ai/usa_1936.ai
--- Doomsday Data Files.old/ai/usa_1936.ai	2008-12-01 19:17:15.000000000 +0100
+++ Doomsday Data Files/ai/usa_1936.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,32 +1,35 @@
-# USA 1936 AI File by Lothos
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
-max_garrison_prop = 0.30
-min_garrison_prop = 0.20
+max_front_ratio = 1.3 
+max_garrison_prop = 0.75
+min_garrison_prop = 0.50
 neutrality = 80.000 
 war = 0
-strat_redeploy_threshold = 50
-max_redeploying = 0.10
-exp_force_ratio = 0.03
-exp_force_ratios = {
-	ENG = 1.0
-} 
+reinforcement = 0.0
+upgrading = 0.0
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.1
+exp_force_ratios = { } 
 no_exp_forces_to = { }
+use_offensive_supply = yes
+max_fuel_offensive = 1000
 evac_islands = no
 
 ###################################
 # Diplomacy
 ###################################
-combat = { }
+claim_acceptance = -49
 
-# Special resistance against "influence" by the listed nations. Value range = [0 - 10]  
 resistance = {  
 	GER = 8 
 	JAP = 8
 	SOV = 4
 	ITA = 3
 }
+
 befriend = {
 	ENG = 50
 	BEL = 70
@@ -41,8 +44,8 @@
 	POR = 20
 	CHI = 20
 }
+
 protect = {
-	# SOUTH AMERICA
 	ARG = 300 # Argentina
 	BOL = 300 # Bolivia
 	BRA = 300 # Brazil
@@ -55,8 +58,6 @@
 	PRU = 300 # Peru
 	URU = 300 # Uruguay
 	VEN = 300 # Venezuela
-
-	# CENTRAL AMERICA
 	COS = 300 # Costa Rica
 	CUB = 300 # Cuba
 	DOM = 300 # Dominican Republic
@@ -66,23 +67,9 @@
 	MEX = 300 # Mexico
 	PAN = 300 # Panama
 	SAL = 300 # El Salvador
+}
 
-	# NORTH AMERICA
-	CAL = 300 # California
-	CSA = 300 # Confederated States
-	QUE = 300 # Quebec
-	TEX = 300 # Texas
-}
-target = {
-	#Japan 
-	1184 = 100 # Tokyo
-	
-	#Germany
-	300 = 100 # Berlin
-} 
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -110,516 +97,227 @@
 	}
 	embargo = { }
 }
-tech_sharing = {
-	favored = {
-		FRA = 100
-		CAN = 100
-		AST = 100
-		NZL = 100
-		ENG = 100
-		BEL = 90
-		HOL = 90
-		SPR = 30
-		POL = 20 
-		CZE = 20
-		TUR = 10
-		IRQ = 100
-		PER = 100
-		POR = 10
-		CHI = 10
-	}
-	embargo = { }
-	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Motorized
-		1230 = 100
-		1240 = 100
-		1250 = 100
-
-		# Mechanized
-		1260 = 100
-		1270 = 100
-		1280 = 100
-		1290 = 100
-
-		# Medium tanks
-		2070 = 100
-		2080 = 100
-		2090 = 100
-
-		# Light tanks
-		2020 = 100
-		2030 = 100
-		2040 = 100
-		2050 = 100
-		2060 = 100
-
-		# Marines
-		1150 = 100
-		1160 = 100
-		1170 = 100
-		1180 = 100
-
-		# Vehicle Assembly
-		5130 = 100
-		5140 = 100
-		5150 = 100
-		5160 = 100
-		5180 = 100
-
-		# Strategic bombers
-		4220 = 100
-		4230 = 100
-		4240 = 100
-
-		# Escort/Multirole Fighters
-		4040 = 100
-		4050 = 100
-		4070 = 100
-		4080 = 100
-		4100 = 100
-		4110 = 100
-
-		# Naval Bomber
-		4190 = 100
-		4200 = 100
-		4210 = 100
-
-		# Tactical Bomber
-		4140 = 100
-		4150 = 100
-		4160 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = USA
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 9
-		NumberOfSpies		= 9
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 2
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= GER
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 7
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= JAP
-	}
-	spyprefsdata = {
-		country_priorities	= 9
-		NumberOfSpies		= 7
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= SOV
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 4
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 1
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= ITA
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 1
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= SPA
-	}
-}
+
 ###################################
 # Construction and Tech Research
 ###################################
-#Default values
 construction = { 
-	max_factor = 1.0 
+	max_factor = 1.000
 
 	AA_batteries = no
-	max_AA_level = 4
-	AA_provs = {
-		658 # Hawaii
-		662 # Midway
-		1756# Samoa
-		765 # San Francisco
-		762 # Los Angeles
-		761 # San Diego
-		780 # Seattle
-		600 # Boston
-		602 # New York
-		606 # Washington DC
-		651 # Miami
-	} 
+	max_AA_level = 0
+	AA_provs = { } 
 
 	coastal_fort = no
-	max_coastal_level = 3
+	max_coastal_level = 0
 	coastal_fort_provs = { } 
 
-	radar_station = no
-	max_radar = 4
-	radar_provs = {
-		663 # Pearl Harbor
-		658 # Hawaii
-		662 # Midway
-		1756# Samoa
-		765 # San Francisco
-		761 # San Diego
-		780 # Seattle
-		549 # Anchorage
-		600 # Boston
-		602 # New York
-		606 # Washington DC
-		651 # Miami
-	} 
+	radar_station = no 
+	max_radar = 0
+	radar_provs = { } 
 
 	air_base = no
-	max_air_base = 4
-	air_base_provs = {
-		658  # Hawaii
-		662  # Midway
-		1766 # Johnson Island
-		1762 # Phoenix Island
-		1756 # Samoa
-	} 
+	max_air_base = 0
+	air_base_provs = { }
 
-	naval_base = no
-	max_naval_base = 10 
-	naval_base_provs = {
-		1756 # Samoa
-	} 
+	naval_base = no 
+	max_naval_base = 0
+	naval_base_provs = { } 
 
 	land_fort = no
-	max_land_level = 10
+	max_land_level = 0
 	fort_borders = { } 
 
-	ic_at_war = yes
-	force_ic_until = 1940
-	ic_end_year = 1948
+	nuclear_reactor_prov = 726
+
+	ic_at_war = yes 
+	force_ic_until = 1937
+	ic_end_year = 1937
 	IC_provs = {
-		761 # San Diego
-		780 # Seattle
-		765 # San Fransisco
-		762 # Los Angeles
-		783 # Portland
-		600 # Boston
-		602 # New York
-		606 # Washington DC
-		651 # Miami
-		616	# Detroit
-		620 # Chicago
-		614 # Pitsburgh
-		603 # Newark
-		608 # Philladelphia
-		715 # Dallas
-		716 # Houston
-		707 # Denver
-		733 # Salt Lake City
-	} 
+		614
+		615
+		616
+		618
+		619
+		620
+		621
+		625
+		626
+		627
+		628
+		629
+		640
+		689
+		690
+		691
+		692
+		693
+		698
+		711
+		713
+		788
+		789
+		792
+		793
+	}
 }
+
 military = { 
-	relative_build_scheme 	= yes 
-	max_batch_peace 	= 360 
-	max_batch_war 		= 180 
-	max_batch_home_front 	= 180
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 360
+	max_batch_war 		= 360
+	max_batch_home_front 	= 360
 
 	#### Divisions etc...
-	infantry 		= 2
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
+	infantry 	= 29
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 0
+	armor 		= 6
 	paratrooper 	= 0
-	marine 			= 0
+	marine 		= 0
 	bergsjaeger 	= 0
-	garrison		= 10
-    hq 				= 2
-	militia 		= 0
-#				14 %
-	interceptor 	= 4
-	multi_role 		= 0
-	cas 			= 0
+	garrison	= 0
+      	hq 		= 5
+	militia 	= 0
+#				40 %
+	interceptor 	= 5
+	multi_role 	= 0
+	cas 		= 0
 	strategic_bomber = 0
-	tactical_bomber = 3
+	tactical_bomber = 5
 	naval_bomber 	= 0
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				7 %
-	battleship 		= 8
-	carrier 		= 4
+#				10 %
+	battleship 	= 6
+	carrier 	= 5
 	escort_carrier	= 0
-	destroyer 		= 30
-	light_cruiser 	= 11
-	heavy_cruiser 	= 11
+	destroyer 	= 9
+	light_cruiser 	= 8
+	heavy_cruiser 	= 4
 	battlecruiser 	= 0
-	submarine 		= 0
-	nuclear_submarine = 0
-	transports	 	= 15
-#				79%
+	submarine 	= 5
+	transports 	= 13
+#				50 %
 
 	#### Brigades
-	artillery 			= 15
-	sp_artillery 		= 9
-	rocket_artillery	= 0 
+	artillery 		= 30
+	sp_artillery 		= 0
+	rocket_artillery	= 0
 	sp_rct_artillery 	= 0
-	anti_tank 			= 10
-	tank_destroyer 		= 8
-	light_armor_brigade = 6
-	heavy_armor 		= 5
-	super_heavy_armor 	= 5
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
 	armored_car 		= 0
-	anti_air 			= 7
-	police 				= 0
-	engineer 			= 6 
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 20
 
 	cag = 100.000 
 }
 
-technology = { 
-	endgoal 	= { } 
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2220 2230 2240 2250 11030 11040 # SP Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3070 3080 3090 3100 3110 3120 12010 # Light Cruisers
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		5550 5560 5570 15500 # Rocket Engines
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+	} 
 	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Motorized
-		1230 1240 1250
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Medium tanks
-		2070 2080 2090
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Vehicle Assembly
-		5130 5140 5150 5160 5180
-
-		# Strategic bombers
-		4220 4230 4240
-
-		# Escort/Multirole Fighters
-		4040 4050 4070 4080 4100 4110
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Tactical Bomber
-		4140 4150 4160
-
-		# Carrier
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Naval Doctrines
-		8140 8250 8230 8320
-
-		# Air Doctrines
-		9040 9050 9060 9070 9080 9090 9100 9110 9120 9130 9190 9210 9220 9230 9240 9250 9350
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2220 2230 2240 2250 11030 11040 # SP Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3070 3080 3090 3100 3110 3120 12010 # Light Cruisers
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		5550 5560 5570 15500 # Rocket Engines
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
 	} 
 	ignore 		= {
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# CAS
-		4170 4280 4180
-
-		# Super Heavy BB
-		3310
-
-		# Air Transports 4260 4270
-		4250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-
-		# Rocket Artillery
-		2370 2380 2390
-		
-		# Armoured Cars
-		2150 2160
-
-		# CAS Air Doctrines 9040
-		9050 9060 9070 9080 9270 9280 9290 9300
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		2150 2160 # Armoured Cars
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2260 2270 2280 11050 11060 # SP Rocket Artillery
+		2370 2380 2390 # Rocket Artillery
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		3190 3200 3210 3220 3230 3240 12030 # Battlecruisers
+		4170 4280 4180 15120 15130 # CAS
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5170 # Rocket Assembly Line
+		5580 5590 # Flying Bomb / Flying Rocket
+		6090 # Combined Arms Defense
+		9050 9060 9070 9080 9270 9280 9290 9300 # CAS Doctrines
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
 	}
  
-	armor 		= 3 
-	infantry 	= 3
-	industry 	= 4
-	aircraft 	= 3
-	naval 		= 3
-	land_doctrines 	= 2
-	secret_weapons 	= 2
-	air_doctrines 	= 2
-	naval_doctrines = 2
-}  
+	armor 		= 6
+	infantry 	= 7
+	industry 	= 9
+	aircraft 	= 5
+	naval 		= 8
+	land_doctrines 	= 4
+	secret_weapons 	= 4
+	air_doctrines 	= 4
+	naval_doctrines = 4
+}
+
 ###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
-	home_multiplier 	= 0.0
-	overseas_multiplier = 1.0
-	home_peace_cap 		= 0
+	home_multiplier 	= 2.0
+	overseas_multiplier 	= 1.5
+	home_peace_cap 		= 101
 	war_zone_odds 		= 2.0
-	key_point_prio_mult	= 0.3
+	key_point_prio_mult	= 1.0
 	revolt_risk_mult	= 0.3
 
 	# PRIORITIES:
-	beach			= 30	# Beach level 2
-	capital			= 30	# Our capital
-	human_border	= 0		# Ignored for allied human players
+	beach			= 60	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 50	# Ignored for allied human players
 	war_target		= 50	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
-	claim_threat		= 0		# If we are neutral, countries with claims on us get this
-	unstable_border		= 0		# Bordering countries at war with someone else get this
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
 
 	# Borders with specific countries
 	country_priorities = {
@@ -627,62 +325,17 @@
 		MEX = -1
 	}
 	ignore = {
-		#Libya
-		918   #Forte Maddalens
-		926   #Al Jaghbun
-		927   #Aujila
-		1017  #Calanslo
-		1018  #Kufra
-		1016  #Murzuk
-		1015  #Ghat
-		931   #Ghadames
-		928   #Sorno
-		
-		#Egypt/East Africa
-		1020  #Siwa
-		1019  #Great Sand Sea
-		907   #Qattara
-		1021  #AinDalla
-		1022  #Western Desert
-		1067  #El Atiun
-		1068  #El Obeid
-		1069  #Waw
-		1065  #Malakal
-		1032  #Omdurman
-		1041  #Gallabal
-		1040  #Kassala
-		1059  #Marsabit
-
-		#Ethiopia
-		1039  #Asmara
-		1048  #Adwa
-		1042  #Gonder
-		1044  #Debre
-		1045  #Gambela
-		1047  #Jima
-		1053  #Moyale
-		1049  #Denakil
-		1043  #Dese
-		1050  #Diredawa
-		1054  #Ogaden
-		1055  #Bardera
-
-		#Belgian Congo
-		1071  #Stanleyville
-		1072  #Buta
-		1073  #Costermanville
-		1074  #Coquihatville
-		1144  #Abertville
-		1143  #Kindu-Port-Empain
-		1142  #Leopoldville
 	}
 	province_priorities = {
-		663 = 50 #Pearl Harbour
 	}
 	area_multiplier = {
-		663 = 2.5 #Pearl Harbour
+		663 = 3.0 # Pearl Harbour
+		662 = 2.5 # Midway
+		1624 = 2.5 # Guam
+		1786 = 2.5 # Wake
 	}
 }
+
 front = { 
 	recklessness 		= 1 # 0-3
 	distrib_vs_ai 		= even
@@ -692,140 +345,61 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
 	max_attack_odds		= 3.0
-	reinforce_odds		= 1.3
-	withdraw_odds		= 0.6
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
+	dig_in 		= 1.25 # Against defender
 
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
-
-      	enemy_handicap = { } 
-      	passivity = { } 
-} 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
-
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
+      	enemy_handicap = {
+	} 
+      	passivity = {
+	} 
 }
+
 ###################################
 # Invasions and Naval
 ###################################
 invasion = { 
- 	base				= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random				= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal				= 0.1	#increase to avoid coastal forts more.
-	beach				= 0.1	#higher, avoid worst beaches.
-	max_distance  		= 250.0  #About the distance from Japan to Batavia
-	max_staging_distance = 10	# How far should the staging area be from the target invasion point
-	distance			= 0.1	#higher = avoid long distance.
-	pocket				= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island				= 0.1	#prioritise taking pure islands.
-	enemy				= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 		= 2.0	#higher = much more vary of troops nearby
-	air_base			= 1.5 
-    naval_base 			= 0.1 
-    air_support 		= 3.0 
-    redirect 			= priority
-	ignore				= no
+	ignore		= no 
+	invasion	= no
       
 	target = { } 
 } 
+
 admiral = { 
 	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
 	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
 	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-	min_core_attack_fleets  = 1		# Minimum amount of attack fleets to defend CORE provinces (default 0)
-	num_attack_fleets		= 4 	# ENG/USA default 3, JAP default 2 everyone else is 1
 
-	#Which provinces to use as bases..
-	base = {
-		683	# Hawaii
-		1756	# Samoa
-		765	# San Francisco
-		633	# Norfolk
-		651	# Miami
-		602	# Boston
-		1613	# Truk
-		1670	# Rabaul
-		1337	# Saigon
-		1353	# Singapore
-		1628	# Batavia
-		1737	# Manila
-		1624	# Guam
-	}
-	target = { } 
+	target = {
+		2349 = 200
+		2318 = 100
+		2350 = 200
+		2351 = 100
+		2351 = 100
+		2315 = 100
+		2316 = 100
+		2317 = 150
+		2579 = 200
+		2532 = 200
+		1923 = 200
+		1935 = 150
+		1920 = 150
+		1942 = 150
+		1934 = 100
+		1932 = 150
+		1944 = 200
+		2562 = 200
+	} 
 	core = {
 		2348
 		2347
@@ -844,4 +418,24 @@
 		2564
 		2563
 	} 
-}
\ No newline at end of file
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = USA
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/usa_1938.ai Doomsday Data Files/ai/usa_1938.ai
--- Doomsday Data Files.old/ai/usa_1938.ai	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/ai/usa_1938.ai	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,432 @@
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
+
+switch = no # [yes/no]
+max_front_ratio = 1.3 
+max_garrison_prop = 0.75
+min_garrison_prop = 0.50
+neutrality = 80.000 
+war = 0
+reinforcement = 0.10
+upgrading = 0.30
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.1
+exp_force_ratios = { } 
+no_exp_forces_to = { }
+use_offensive_supply = yes
+max_fuel_offensive = 1000
+evac_islands = no
+
+###################################
+# Diplomacy
+###################################
+claim_acceptance = -49
+
+resistance = {  
+	GER = 8 
+	JAP = 8
+	SOV = 4
+	ITA = 3
+}
+
+befriend = {
+	ENG = 50
+	BEL = 70
+	HOL = 70
+	SPR = 40 
+	POL = 80 
+	AUS = 30
+	CZE = 40
+	TUR = 10 
+	IRQ = 20
+	PER = 20
+	POR = 20
+	CHI = 20
+}
+
+protect = {
+	ARG = 300 # Argentina
+	BOL = 300 # Bolivia
+	BRA = 300 # Brazil
+	CHL = 300 # Chile
+	COL = 300 # Colombia
+	ECU = 300 # Ecuador
+	GUI = 300 # Guinea
+	GUY = 300 # Guyana
+	PAR = 300 # Paraguay
+	PRU = 300 # Peru
+	URU = 300 # Uruguay
+	VEN = 300 # Venezuela
+	COS = 300 # Costa Rica
+	CUB = 300 # Cuba
+	DOM = 300 # Dominican Republic
+	GUA = 300 # Guatemala
+	HAI = 300 # Haiti
+	HON = 300 # Honduras
+	MEX = 300 # Mexico
+	PAN = 300 # Panama
+	SAL = 300 # El Salvador
+}
+
+trade = {
+	energy 		= -1
+	rare_materials 	= -1
+	metal 		= -1
+	oil 		= -1
+	supplies 	= -1
+	money 		= -1
+
+	favored = {
+		JAP = 100
+		FRA = 100
+		CAN = 100
+		AST = 100
+		NZL = 100
+		ENG = 100
+		BEL = 90
+		HOL = 90
+		SPR = 30
+		POL = 20 
+		CZE = 20
+		TUR = 10
+		IRQ = 100
+		PER = 100
+		POR = 10
+		CHI = 10
+	}
+	embargo = { }
+}
+
+###################################
+# Construction and Tech Research
+###################################
+construction = { 
+	max_factor = 0.333
+
+	AA_batteries = yes
+	max_AA_level = 3
+	AA_provs = {
+		658  # Hawaii
+		662  # Midway
+		1756 # Samoa
+	} 
+
+	coastal_fort = no
+	max_coastal_level = 0
+	coastal_fort_provs = { } 
+
+	radar_station = yes
+	max_radar = 2
+	radar_provs = {
+		663  # Pearl Harbor
+		658  # Hawaii
+		662  # Midway
+		1756 # Samoa
+	} 
+
+	air_base = yes
+	max_air_base = 4
+	air_base_provs = {
+		658  # Hawaii
+		662  # Midway
+		1766 # Johnson Island
+		1762 # Phoenix Island
+		1756 # Samoa
+	} 
+
+	naval_base = yes
+	max_naval_base = 5
+	naval_base_provs = {
+		1756 # Samoa
+	} 
+
+	land_fort = no
+	max_land_level = 10
+	fort_borders = { } 
+
+	nuclear_reactor_prov = 726
+
+	ic_at_war = no
+	force_ic_until = 1935
+	ic_end_year = 1935
+	IC_provs = { } 
+}
+
+military = { 
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 360
+	max_batch_war 		= 360
+	max_batch_home_front 	= 360
+
+	#### Divisions etc...
+	infantry 	= 29
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
+	light_armor 	= 0
+	armor 		= 6
+	paratrooper 	= 0
+	marine 		= 0
+	bergsjaeger 	= 0
+	garrison	= 0
+      	hq 		= 5
+	militia 	= 0
+#				40 %
+	interceptor 	= 5
+	multi_role 	= 0
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 5
+	naval_bomber 	= 0
+	transport_plane = 0
+	flying_bomb 	= 0
+	flying_rocket 	= 0
+#				10 %
+	battleship 	= 6
+	carrier 	= 5
+	escort_carrier	= 0
+	destroyer 	= 9
+	light_cruiser 	= 8
+	heavy_cruiser 	= 4
+	battlecruiser 	= 0
+	submarine 	= 5
+	transports 	= 13
+#				50 %
+
+	#### Brigades
+	artillery 		= 30
+	sp_artillery 		= 0
+	rocket_artillery	= 0
+	sp_rct_artillery 	= 0
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 0
+	super_heavy_armor 	= 0
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 20
+
+	cag = 100.000 
+}
+
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2220 2230 2240 2250 11030 11040 # SP Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3070 3080 3090 3100 3110 3120 12010 # Light Cruisers
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		5550 5560 5570 15500 # Rocket Engines
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+	} 
+	preference 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2220 2230 2240 2250 11030 11040 # SP Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3070 3080 3090 3100 3110 3120 12010 # Light Cruisers
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		5550 5560 5570 15500 # Rocket Engines
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+	} 
+	ignore 		= {
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		2150 2160 # Armoured Cars
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2260 2270 2280 11050 11060 # SP Rocket Artillery
+		2370 2380 2390 # Rocket Artillery
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		3190 3200 3210 3220 3230 3240 12030 # Battlecruisers
+		4170 4280 4180 15120 15130 # CAS
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5170 # Rocket Assembly Line
+		5580 5590 # Flying Bomb / Flying Rocket
+		6090 # Combined Arms Defense
+		9050 9060 9070 9080 9270 9280 9290 9300 # CAS Doctrines
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+	}
+ 
+	armor 		= 6
+	infantry 	= 7
+	industry 	= 9
+	aircraft 	= 5
+	naval 		= 8
+	land_doctrines 	= 4
+	secret_weapons 	= 4
+	air_doctrines 	= 4
+	naval_doctrines = 4
+}
+
+###################################
+# Ground Combat, Leaders and Garrisons
+###################################
+leader_ratio = {
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
+}
+
+garrison = {
+	defend_overseas_beaches = yes
+	home_multiplier 	= 2.0
+	overseas_multiplier 	= 1.5
+	home_peace_cap 		= 101
+	war_zone_odds 		= 2.0
+	key_point_prio_mult	= 1.0
+	revolt_risk_mult	= 0.3
+
+	# PRIORITIES:
+	beach			= 60	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 50	# Ignored for allied human players
+	war_target		= 50	# The next country targeted for attack by this AI
+	
+	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
+	claim_threat		= 0	# If we are neutral, countries with claims on us get this
+	unstable_border		= 0	# Bordering countries at war with someone else get this
+
+	# Borders with specific countries
+	country_priorities = {
+		CAN = -1
+		MEX = -1
+	}
+	ignore = {
+	}
+	province_priorities = {
+	}
+	area_multiplier = {
+		663 = 3.0 # Pearl Harbour
+		662 = 2.5 # Midway
+		1624 = 2.5 # Guam
+		1786 = 2.5 # Wake
+	}
+}
+
+front = { 
+	recklessness 		= 1 # 0-3
+	distrib_vs_ai 		= even
+	distrib_vs_human 	= even
+
+	enemy_reinf_days	= 6
+	reserve_prop		= 0.1
+	panic_ratio_vs_ai	= 2.5
+	panic_ratio_vs_human	= 2.5
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
+	max_attack_odds		= 3.0
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
+
+	strength 	= 1.0
+	organisation 	= 2.0
+	soft_attack 	= 1.0
+	hard_attack 	= 2.0
+	ground_defense 	= 1.0
+	dig_in 		= 1.25 # Against defender
+
+      	enemy_handicap = {
+	} 
+      	passivity = {
+	} 
+}
+
+###################################
+# Invasions and Naval
+###################################
+invasion = { 
+	ignore		= no 
+	invasion	= no
+      
+	target = { } 
+} 
+
+admiral = { 
+	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
+	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
+	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
+	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
+
+	target = {
+		2349 = 200
+		2318 = 100
+		2350 = 200
+		2351 = 100
+		2351 = 100
+		2315 = 100
+		2316 = 100
+		2317 = 150
+		2579 = 200
+		2532 = 200
+		1923 = 200
+		1935 = 150
+		1920 = 150
+		1942 = 150
+		1934 = 100
+		1932 = 150
+		1944 = 200
+		2562 = 200
+	} 
+	core = {
+		2348
+		2347
+		2346
+		2535
+		2534
+		2533
+		2531
+		2530
+		1922
+		1936
+		1937
+		1938
+		1943
+		1931
+		2564
+		2563
+	} 
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = USA
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/usa_1939.ai Doomsday Data Files/ai/usa_1939.ai
--- Doomsday Data Files.old/ai/usa_1939.ai	2008-12-01 19:17:15.000000000 +0100
+++ Doomsday Data Files/ai/usa_1939.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,36 +1,35 @@
-# USA 1936 AI File by Lothos
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
-max_garrison_prop = 0.30
-min_garrison_prop = 0.20
+max_front_ratio = 1.3 
+max_garrison_prop = 0.75
+min_garrison_prop = 0.50
 neutrality = 80.000 
 war = 0
-strat_redeploy_threshold = 50
-max_redeploying = 0.10
-exp_force_ratio = 0.03
-exp_force_ratios = {
-	ENG = 1.0
-} 
+reinforcement = 0.10
+upgrading = 0.30
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.1
+exp_force_ratios = { } 
 no_exp_forces_to = { }
-
-flags = {
-	GC1939 = yes
-}
+use_offensive_supply = yes
+max_fuel_offensive = 1000
 evac_islands = no
 
 ###################################
 # Diplomacy
 ###################################
-combat = { }
+claim_acceptance = -49
 
-# Special resistance against "influence" by the listed nations. Value range = [0 - 10]  
 resistance = {  
 	GER = 8 
 	JAP = 8
 	SOV = 4
 	ITA = 3
 }
+
 befriend = {
 	ENG = 50
 	BEL = 70
@@ -45,8 +44,8 @@
 	POR = 20
 	CHI = 20
 }
+
 protect = {
-	# SOUTH AMERICA
 	ARG = 300 # Argentina
 	BOL = 300 # Bolivia
 	BRA = 300 # Brazil
@@ -59,8 +58,6 @@
 	PRU = 300 # Peru
 	URU = 300 # Uruguay
 	VEN = 300 # Venezuela
-
-	# CENTRAL AMERICA
 	COS = 300 # Costa Rica
 	CUB = 300 # Cuba
 	DOM = 300 # Dominican Republic
@@ -70,23 +67,9 @@
 	MEX = 300 # Mexico
 	PAN = 300 # Panama
 	SAL = 300 # El Salvador
+}
 
-	# NORTH AMERICA
-	CAL = 300 # California
-	CSA = 300 # Confederated States
-	QUE = 300 # Quebec
-	TEX = 300 # Texas
-}
-target = {
-	#Japan 
-	1184 = 100 # Tokyo
-	
-	#Germany
-	300 = 100 # Berlin
-} 
 trade = {
-	cancel_deal_threshold = 2
-
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -95,7 +78,6 @@
 	money 		= -1
 
 	favored = {
-		JAP = 100
 		FRA = 100
 		CAN = 100
 		AST = 100
@@ -114,268 +96,32 @@
 	}
 	embargo = { }
 }
-tech_sharing = {
-	favored = {
-		FRA = 100
-		CAN = 100
-		AST = 100
-		NZL = 100
-		ENG = 100
-		BEL = 90
-		HOL = 90
-		SPR = 30
-		POL = 20 
-		CZE = 20
-		TUR = 10
-		IRQ = 100
-		PER = 100
-		POR = 10
-		CHI = 10
-	}
-	embargo = { }
-	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Motorized
-		1230 = 100
-		1240 = 100
-		1250 = 100
-
-		# Mechanized
-		1260 = 100
-		1270 = 100
-		1280 = 100
-		1290 = 100
-
-		# Medium tanks
-		2070 = 100
-		2080 = 100
-		2090 = 100
-
-		# Light tanks
-		2020 = 100
-		2030 = 100
-		2040 = 100
-		2050 = 100
-		2060 = 100
-
-		# Marines
-		1150 = 100
-		1160 = 100
-		1170 = 100
-		1180 = 100
-
-		# Vehicle Assembly
-		5130 = 100
-		5140 = 100
-		5150 = 100
-		5160 = 100
-		5180 = 100
-
-		# Strategic bombers
-		4220 = 100
-		4230 = 100
-		4240 = 100
-
-		# Escort/Multirole Fighters
-		4040 = 100
-		4050 = 100
-		4070 = 100
-		4080 = 100
-		4100 = 100
-		4110 = 100
-
-		# Naval Bomber
-		4190 = 100
-		4200 = 100
-		4210 = 100
-
-		# Tactical Bomber
-		4140 = 100
-		4150 = 100
-		4160 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = USA
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 9
-		NumberOfSpies		= 9
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 2
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= GER
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 7
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= JAP
-	}
-	spyprefsdata = {
-		country_priorities	= 9
-		NumberOfSpies		= 7
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= SOV
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 4
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 1
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= ITA
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 1
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= SPA
-	}
-}
+
 ###################################
 # Construction and Tech Research
 ###################################
-#Default values
 construction = { 
-	max_factor = 0.30 
+	max_factor = 0.200
 
-	AA_batteries = atwar
-	max_AA_level = 4
+	AA_batteries = yes
+	max_AA_level = 3
 	AA_provs = {
 		658  # Hawaii
 		662  # Midway
 		1756 # Samoa
-		765 # San Francisco
-		762 # Los Angeles
-		761 # San Diego
-		780 # Seattle
-		600 # Boston
-		602 # New York
-		606 # Washington DC
-		651 # Miami
 	} 
 
 	coastal_fort = no
-	max_coastal_level = 3
+	max_coastal_level = 0
 	coastal_fort_provs = { } 
 
 	radar_station = yes
-	max_radar = 4
+	max_radar = 2
 	radar_provs = {
-		663 # Pearl Harbor
+		663  # Pearl Harbor
 		658  # Hawaii
 		662  # Midway
 		1756 # Samoa
-		765 # San Francisco
-		761 # San Diego
-		780 # Seattle
-		549 # Anchorage
-		600 # Boston
-		602 # New York
-		606 # Washington DC
-		651 # Miami
 	} 
 
 	air_base = yes
@@ -389,7 +135,7 @@
 	} 
 
 	naval_base = yes
-	max_naval_base = 10 
+	max_naval_base = 5
 	naval_base_provs = {
 		1756 # Samoa
 	} 
@@ -398,207 +144,169 @@
 	max_land_level = 10
 	fort_borders = { } 
 
-	ic_at_war = yes
-	force_ic_until = 1940
-	ic_end_year = 1948
+	nuclear_reactor_prov = 726
+
+	ic_at_war = no
+	force_ic_until = 1935
+	ic_end_year = 1935
 	IC_provs = { } 
 }
+
 military = { 
-	relative_build_scheme 	= yes 
-	max_batch_peace 	= 360 
-	max_batch_war 		= 180 
-	max_batch_home_front 	= 180
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 360
+	max_batch_war 		= 360
+	max_batch_home_front 	= 360
 
 	#### Divisions etc...
-	infantry 		= 2
-	cavalry 		= 0
-	motorized 		= 0
-	mechanized 		= 0
+	infantry 	= 17
+	cavalry 	= 0
+	motorized 	= 0
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 0
+	armor 		= 6
 	paratrooper 	= 0
-	marine 			= 0
-	bergsjaeger 	= 0
-	garrison		= 10
-    hq	 			= 2
-	militia 		= 0
-#				14 %
-	interceptor 	= 3
-	multi_role 		= 0
-	cas 			= 0
+	marine 		= 6
+	bergsjaeger 	= 4
+	garrison	= 0
+      	hq 		= 4
+	militia 	= 0
+#				37 %
+	interceptor 	= 0
+	multi_role 	= 7
+	cas 		= 0
 	strategic_bomber = 0
-	tactical_bomber = 3
-	naval_bomber 	= 0
+	tactical_bomber = 4
+	naval_bomber 	= 2
 	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				6 %
-	battleship 		= 8
-	carrier 		= 4
-	escort_carrier	= 0
-	destroyer 		= 22
-	light_cruiser 	= 11
-	heavy_cruiser 	= 11
+#				13 %
+	battleship 	= 5
+	carrier 	= 5
+	escort_carrier	= 2
+	destroyer 	= 9
+	light_cruiser 	= 8
+	heavy_cruiser 	= 3
 	battlecruiser 	= 0
-	submarine 		= 9
-	nuclear_submarine = 0
-	transports 		= 15
-#				80 %
+	submarine 	= 5
+	transports 	= 13
+#				50 %
 
 	#### Brigades
-	artillery 			= 15
-	sp_artillery 		= 9
-	rocket_artillery	= 0 
+	artillery 		= 30
+	sp_artillery 		= 0
+	rocket_artillery	= 0
 	sp_rct_artillery 	= 0
-	anti_tank 			= 10
-	tank_destroyer 		= 8
-	light_armor_brigade = 6
-	heavy_armor 		= 5
-	super_heavy_armor 	= 5
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 10
+	super_heavy_armor 	= 0
 	armored_car 		= 0
-	anti_air 			= 7
-	police 				= 0
-	engineer 			= 6 
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 10
 
 	cag = 100.000 
 }
 
-technology = { 
-	endgoal 	= { } 
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2220 2230 2240 2250 11030 11040 # SP Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3070 3080 3090 3100 3110 3120 12010 # Light Cruisers
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		5470 5480 5490 5500 5510 5520 5530 5540 7170 7180 7190 16010 16020 # Nuclear Techs
+		5550 5560 5570 15500 # Rocket Engines
+		8110 8140 8180 8230 8240 8250 8270 8320 8350 18000 # Carrier Doctrines
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+	} 
 	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Motorized
-		1230 1240 1250
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Medium tanks
-		2070 2080 2090
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Vehicle Assembly
-		5130 5140 5150 5160 5180
-
-		# Strategic bombers
-		4220 4230 4240
-
-		# Escort/Multirole Fighters
-		4040 4050 4070 4080 4100 4110
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Tactical Bomber
-		4140 4150 4160
-
-		# Carrier
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Naval Doctrines
-		8140 8250 8230 8320
-
-		# Air Doctrines
-		9040 9050 9060 9070 9080 9090 9100 9110 9120 9130 9190 9210 9220 9230 9240 9250 9350
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2220 2230 2240 2250 11030 11040 # SP Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3070 3080 3090 3100 3110 3120 12010 # Light Cruisers
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		5470 5480 5490 5500 5510 5520 5530 5540 7170 7180 7190 16010 16020 # Nuclear Techs
+		5550 5560 5570 15500 # Rocket Engines
+		8110 8140 8180 8230 8240 8250 8270 8320 8350 18000 # Carrier Doctrines
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
 	} 
 	ignore 		= {
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# CAS
-		4170 4280 4180
-
-		# Super Heavy BB
-		3310
-
-		# Air Transports 4260 4270
-		4250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-
-		# Rocket Artillery
-		2370 2380 2390
-		
-		# Armoured Cars
-		2150 2160
-
-		# CAS Air Doctrines 9040
-		9050 9060 9070 9080 9270 9280 9290 9300
-	}
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		2150 2160 # Armoured Cars
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2260 2270 2280 11050 11060 # SP Rocket Artillery
+		2370 2380 2390 # Rocket Artillery
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		3190 3200 3210 3220 3230 3240 12030 # Battlecruisers
+		4170 4280 4180 15120 15130 # CAS
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		4250 4260 4270 15180 15190 # Air Transports
+		5170 # Rocket Assembly Line
+		5580 5590 # Flying Bomb / Flying Rocket
+		6090 # Combined Arms Defense
+		9050 9060 9070 9080 9270 9280 9290 9300 # CAS Doctrines
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+	}
+
+	armor 		= 6
+	infantry 	= 7
+	industry 	= 9
+	aircraft 	= 6
+	naval 		= 9
+	land_doctrines 	= 4
+	secret_weapons 	= 4
+	air_doctrines 	= 5
+	naval_doctrines = 4
+}
 
-	armor 		= 3 
-	infantry 	= 3
-	industry 	= 4
-	aircraft 	= 3
-	naval 		= 3
-	land_doctrines 	= 2
-	secret_weapons 	= 2
-	air_doctrines 	= 2
-	naval_doctrines = 2
-}  ###################################
+###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
-	home_multiplier 	= 0.3
-	overseas_multiplier 	= 1.0
-	home_peace_cap 		= 20
+	home_multiplier 	= 2.0
+	overseas_multiplier 	= 1.5
+	home_peace_cap 		= 101
 	war_zone_odds 		= 2.0
-	key_point_prio_mult	= 0.3
+	key_point_prio_mult	= 1.0
 	revolt_risk_mult	= 0.3
 
 	# PRIORITIES:
-	beach			= 30	# Beach level 2
-	capital			= 30	# Our capital
-	human_border		= 0	# Ignored for allied human players
+	beach			= 60	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 50	# Ignored for allied human players
 	war_target		= 50	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
@@ -611,62 +319,17 @@
 		MEX = -1
 	}
 	ignore = {
-		#Libya
-		918   #Forte Maddalens
-		926   #Al Jaghbun
-		927   #Aujila
-		1017  #Calanslo
-		1018  #Kufra
-		1016  #Murzuk
-		1015  #Ghat
-		931   #Ghadames
-		928   #Sorno
-		
-		#Egypt/East Africa
-		1020  #Siwa
-		1019  #Great Sand Sea
-		907   #Qattara
-		1021  #AinDalla
-		1022  #Western Desert
-		1067  #El Atiun
-		1068  #El Obeid
-		1069  #Waw
-		1065  #Malakal
-		1032  #Omdurman
-		1041  #Gallabal
-		1040  #Kassala
-		1059  #Marsabit
-
-		#Ethiopia
-		1039  #Asmara
-		1048  #Adwa
-		1042  #Gonder
-		1044  #Debre
-		1045  #Gambela
-		1047  #Jima
-		1053  #Moyale
-		1049  #Denakil
-		1043  #Dese
-		1050  #Diredawa
-		1054  #Ogaden
-		1055  #Bardera
-
-		#Belgian Congo
-		1071  #Stanleyville
-		1072  #Buta
-		1073  #Costermanville
-		1074  #Coquihatville
-		1144  #Abertville
-		1143  #Kindu-Port-Empain
-		1142  #Leopoldville
 	}
 	province_priorities = {
-		663 = 50 #Pearl Harbour
 	}
 	area_multiplier = {
-		663 = 2.5 #Pearl Harbour
+		663 = 3.0 # Pearl Harbour
+		662 = 2.5 # Midway
+		1624 = 2.5 # Guam
+		1786 = 2.5 # Wake
 	}
 }
+
 front = { 
 	recklessness 		= 1 # 0-3
 	distrib_vs_ai 		= even
@@ -676,140 +339,61 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
 	max_attack_odds		= 3.0
-	reinforce_odds		= 1.3
-	withdraw_odds		= 0.6
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
-
-      	enemy_handicap = { } 
-      	passivity = { } 
-} 
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
+	dig_in 		= 1.25 # Against defender
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
+      	enemy_handicap = {
+	} 
+      	passivity = {
+	} 
 }
+
 ###################################
 # Invasions and Naval
 ###################################
 invasion = { 
- 	base				= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random				= 8.0	#How big a random range.  (1.0 = 1%)
-	coastal				= 0.1	#increase to avoid coastal forts more.
-	beach				= 0.1	#higher, avoid worst beaches.
-	max_distance  		= 250.0  #About the distance from Japan to Batavia
-	max_staging_distance = 10	# How far should the staging area be from the target invasion point
-	distance			= 0.1	#higher = avoid long distance.
-	pocket				= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island				= 0.1	#prioritise taking pure islands.
-	enemy				= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 		= 2.0	#higher = much more vary of troops nearby
-	air_base			= 1.5 
-    naval_base 			= 0.1 
-    air_support 		= 3.0 
-    redirect 			= priority
-	ignore				= no
+	ignore		= no 
+	invasion	= no
       
 	target = { } 
 } 
+
 admiral = { 
 	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
 	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
 	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-	min_core_attack_fleets  = 1		# Minimum amount of attack fleets to defend CORE provinces (default 0)
-	num_attack_fleets		= 4 	# ENG/USA default 3, JAP default 2 everyone else is 1
 
-	#Which provinces to use as bases..
-	base = {
-		683	# Hawaii
-		1756	# Samoa
-		765	# San Francisco
-		633	# Norfolk
-		651	# Miami
-		602	# Boston
-		1613	# Truk
-		1670	# Rabaul
-		1337	# Saigon
-		1353	# Singapore
-		1628	# Batavia
-		1737	# Manila
-		1624	# Guam
-	}
-	target = { } 
+	target = {
+		2349 = 200
+		2318 = 100
+		2350 = 200
+		2351 = 100
+		2351 = 100
+		2315 = 100
+		2316 = 100
+		2317 = 150
+		2579 = 200
+		2532 = 200
+		1923 = 200
+		1935 = 150
+		1920 = 150
+		1942 = 150
+		1934 = 100
+		1932 = 150
+		1944 = 200
+		2562 = 200
+	} 
 	core = {
 		2348
 		2347
@@ -828,4 +412,24 @@
 		2564
 		2563
 	} 
-}
\ No newline at end of file
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = USA
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/ai/usa_1941.ai Doomsday Data Files/ai/usa_1941.ai
--- Doomsday Data Files.old/ai/usa_1941.ai	2008-12-01 19:17:15.000000000 +0100
+++ Doomsday Data Files/ai/usa_1941.ai	2008-12-01 21:31:17.000000000 +0100
@@ -1,32 +1,33 @@
-# USA 1944 AI File by Lothos
+# reworked by G'Kar for DAIM
+# based on the original files (HoI2 1.1) by Lothos
+# reuse is welcome as long as file origin is correctly stated
 
 switch = no # [yes/no]
-max_front_ratio = 1.2 
-max_garrison_prop = 0.15
-min_garrison_prop = 0.10
+max_front_ratio = 1.1 
+max_garrison_prop = 0.75
+min_garrison_prop = 0.50
 neutrality = 80.000 
 war = 0
-strat_redeploy_threshold = 50
-max_redeploying = 0.10
-exp_force_ratio = 0.03
-exp_force_ratios = {
-	ENG = 1.0
-} 
-no_exp_forces_to = { }
+reinforcement = 0.10
+upgrading = 0.30
+strat_redeploy_threshold = 21
+exp_force_ratio = 0.05
+use_offensive_supply = yes
+max_fuel_offensive = 1000
 evac_islands = no
 
 ###################################
 # Diplomacy
 ###################################
-combat = { }
+claim_acceptance = -49
 
-# Special resistance against "influence" by the listed nations. Value range = [0 - 10]  
 resistance = {  
 	GER = 8 
 	JAP = 8
 	SOV = 4
 	ITA = 3
 }
+
 befriend = {
 	ENG = 50
 	BEL = 70
@@ -41,8 +42,8 @@
 	POR = 20
 	CHI = 20
 }
+
 protect = {
-	# SOUTH AMERICA
 	ARG = 300 # Argentina
 	BOL = 300 # Bolivia
 	BRA = 300 # Brazil
@@ -55,8 +56,6 @@
 	PRU = 300 # Peru
 	URU = 300 # Uruguay
 	VEN = 300 # Venezuela
-
-	# CENTRAL AMERICA
 	COS = 300 # Costa Rica
 	CUB = 300 # Cuba
 	DOM = 300 # Dominican Republic
@@ -66,23 +65,9 @@
 	MEX = 300 # Mexico
 	PAN = 300 # Panama
 	SAL = 300 # El Salvador
-
-	# NORTH AMERICA
-	CAL = 300 # California
-	CSA = 300 # Confederated States
-	QUE = 300 # Quebec
-	TEX = 300 # Texas
 }
-target = {
-	#Japan 
-	1184 = 100 # Tokyo
-	
-	#Germany
-	300 = 100 # Berlin
-} 
-trade = {
-	cancel_deal_threshold = 2
 
+trade = {
 	energy 		= -1
 	rare_materials 	= -1
 	metal 		= -1
@@ -107,492 +92,200 @@
 		POR = 10
 		CHI = 10
 	}
-	embargo = { JAP MAN }
-}
-tech_sharing = {
-	favored = {
-		FRA = 100
-		CAN = 100
-		AST = 100
-		NZL = 100
-		ENG = 100
-		BEL = 90
-		HOL = 90
-		SPR = 30
-		POL = 20 
-		CZE = 20
-		TUR = 10
-		IRQ = 100
-		PER = 100
-		POR = 10
-		CHI = 10
-	}
-	embargo = { JAP MAN }
-	not = { }
-	prioritized = {
-		# Arcriculture
-		5020 = 100
-		5030 = 100
-		5040 = 100
-
-		# Inf support
-		1310 = 100
-		1320 = 100
-		1330 = 100
-		1340 = 100
-		1350 = 100
-		1360 = 100
-
-		# Production
-		5050 = 100
-		5060 = 100
-		5070 = 100
-		5080 = 100
-		5090 = 100
-		5100 = 100
-		5110 = 100
-		5120 = 100
-		5130 = 100
-		5150 = 100
-		5180 = 100
-
-		# Motorized
-		1230 = 100
-		1240 = 100
-		1250 = 100
-
-		# Mechanized
-		1260 = 100
-		1270 = 100
-		1280 = 100
-		1290 = 100
-
-		# Medium tanks
-		2070 = 100
-		2080 = 100
-		2090 = 100
-
-		# Light tanks
-		2020 = 100
-		2030 = 100
-		2040 = 100
-		2050 = 100
-		2060 = 100
-
-		# Marines
-		1150 = 100
-		1160 = 100
-		1170 = 100
-		1180 = 100
-
-		# Vehicle Assembly
-		5130 = 100
-		5140 = 100
-		5150 = 100
-		5160 = 100
-		5180 = 100
-
-		# Strategic bombers
-		4220 = 100
-		4230 = 100
-		4240 = 100
-
-		# Escort/Multirole Fighters
-		4040 = 100
-		4050 = 100
-		4070 = 100
-		4080 = 100
-		4100 = 100
-		4110 = 100
-
-		# Naval Bomber
-		4190 = 100
-		4200 = 100
-		4210 = 100
-
-		# Tactical Bomber
-		4140 = 100
-		4150 = 100
-		4160 = 100
-	}
-}
-###################################
-# Spying
-###################################
-spyprefs =
-{
-	percentage_on_spies 		= 0.2
-	percentage_foreign_mission 	= 0.7
-
-	# Used for Homeland Defense Spying
-	spyprefsdata = 
-	{
-		NumberOfSpies = 5
-		counter_espionage =  10
-		country = USA
-	}
-	# Defaul Spy parms used for countries the AI is atwar with but has no specific entry
-	spyprefsdata = {
-		country_priorities	= 3
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 3
-		coup 				= 4
-		sabotage_industry 	= 5
-		nuclear_sabotage 	= 0
-		found_partisans 	= 0
-		massmedia 			= 3
-		counter_espionage 	= 5
-		disrupt_techteam	= 5
-		country 			= NONE
-	}
-	spyprefsdata = {
-		country_priorities	= 9
-		NumberOfSpies		= 9
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 2
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= GER
-	}
-	spyprefsdata = {
-		country_priorities	= 10
-		NumberOfSpies		= 7
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= JAP
-	}
-	spyprefsdata = {
-		country_priorities	= 9
-		NumberOfSpies		= 7
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 0
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= SOV
-	}
-	spyprefsdata = {
-		country_priorities	= 6
-		NumberOfSpies		= 4
-		min_number_of_spies = 2
-		steal_blueprint 	= 10
-		minister_assassination = 1
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 1
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= ITA
-	}
-	spyprefsdata = {
-		country_priorities	= 4
-		NumberOfSpies		= 3
-		min_number_of_spies = 1
-		steal_blueprint 	= 10
-		minister_assassination = 0
-		smear_campaign 		= 1
-		coup 				= 1
-		sabotage_industry 	= 4
-		nuclear_sabotage 	= 0
-		found_partisans		= 1
-		massmedia 			= 1
-		counter_espionage 	= 5
-		disrupt_techteam 	= 5
-		country 			= SPA
-	}
+	embargo = { }
 }
+
 ###################################
 # Construction and Tech Research
 ###################################
-#Default values
 construction = { 
-	max_factor = 0.10 
+	max_factor = 0.250
 
-	AA_batteries = yes
-	max_AA_level = 5
-	AA_provs = {
-		658  # Hawaii
-		662  # Midway
-		1756 # Samoa
-		765 # San Francisco
-		762 # Los Angeles
-		761 # San Diego
-		780 # Seattle
-		600 # Boston
-		602 # New York
-		606 # Washington DC
-		651 # Miami
-	} 
+	AA_batteries = no
+	max_AA_level = 0
+	AA_provs = { } 
 
 	coastal_fort = no
-	max_coastal_level = 3
+	max_coastal_level = 0
 	coastal_fort_provs = { } 
 
-	radar_station = yes
-	max_radar = 5 
-	radar_provs = {
-		658  # Hawaii
-		662  # Midway
-		1756 # Samoa
-		765 # San Francisco
-		761 # San Diego
-		780 # Seattle
-		549 # Anchorage
-		600 # Boston
-		602 # New York
-		606 # Washington DC
-		651 # Miami
-	} 
-
-	air_base = yes
-	max_air_base = 4
-	air_base_provs = {
-		658  # Hawaii
-		662  # Midway
-		1766 # Johnson Island
-		1762 # Phoenix Island
-		1756 # Samoa
-	} 
-
-	naval_base = yes
-	max_naval_base = 10 
-	naval_base_provs = {
-		1756 # Samoa
-	} 
+	radar_station = no
+	max_radar = 0
+	radar_provs = { } 
+
+	air_base = no
+	max_air_base = 0
+	air_base_provs = { } 
+
+	naval_base = no
+	max_naval_base = 0
+	naval_base_provs = { } 
 
 	land_fort = no
-	max_land_level = 10
+	max_land_level = 0
 	fort_borders = { } 
 
-	ic_at_war = yes
-	force_ic_until = 1940
-	ic_end_year = 1948
+	ic_at_war = no
+	force_ic_until = 1935
+	ic_end_year = 1935
 	IC_provs = { } 
 }
+
 military = { 
-	relative_build_scheme 	= no
-	max_batch_peace 	= 360 
-	max_batch_war 		= 180 
-	max_batch_home_front 	= 180
+	relative_build_scheme 	= yes
+	max_batch_peace 	= 270
+	max_batch_war 		= 270
+	max_batch_home_front 	= 270
 
 	#### Divisions etc...
-	infantry 		= 6
-	cavalry 		= 0
-	motorized 		= 6
-	mechanized 		= 6
+	infantry 	= 9
+	cavalry 	= 0
+	motorized 	= 7
+	mechanized 	= 0
 	light_armor 	= 0
-	armor 			= 5
-	paratrooper 	= 1
-	marine 			= 3
-	bergsjaeger 	= 0
-	garrison		= 0
-    hq 				= 3
-	militia 		= 0
-#				30 %
-	interceptor 	= 4
-	multi_role 		= 2
-	cas 			= 0
-	strategic_bomber = 3
-	tactical_bomber = 3
-	naval_bomber 	= 4
-	transport_plane = 1
+	armor 		= 7
+	paratrooper 	= 0
+	marine 		= 6
+	bergsjaeger 	= 4
+	garrison	= 0
+      	hq 		= 4
+	militia 	= 0
+#				37 %
+	interceptor 	= 0
+	multi_role 	= 7
+	cas 		= 0
+	strategic_bomber = 0
+	tactical_bomber = 4
+	naval_bomber 	= 2
+	transport_plane = 0
 	flying_bomb 	= 0
 	flying_rocket 	= 0
-#				17 %
-	battleship 		= 3
-	carrier 		= 7
+#				13 %
+	battleship 	= 4
+	carrier 	= 6
 	escort_carrier	= 2
-	destroyer 		= 15
-	light_cruiser 	= 7
-	heavy_cruiser 	= 4
+	destroyer 	= 9
+	light_cruiser 	= 8
+	heavy_cruiser 	= 3
 	battlecruiser 	= 0
-	submarine 		= 5
-	nuclear_submarine = 0
-	transports 		= 10
-#				53 %
+	submarine 	= 5
+	transports 	= 13
+#				50 %
 
 	#### Brigades
-	artillery 			= 15
-	sp_artillery 		= 9
-	rocket_artillery	= 0 
+	artillery 		= 10
+	sp_artillery 		= 20
+	rocket_artillery	= 0
 	sp_rct_artillery 	= 0
-	anti_tank 			= 8
-	tank_destroyer 		= 8
-	light_armor_brigade = 6
-	heavy_armor 		= 5
+	anti_tank 		= 0
+	tank_destroyer 		= 0
+	light_armor_brigade 	= 0
+	heavy_armor 		= 10
 	super_heavy_armor 	= 0
-	armored_car 		= 5
-	anti_air 			= 7
-	police 				= 2
-	engineer 			= 6 
+	armored_car 		= 0
+	anti_air 		= 0
+	police 			= 0
+	engineer 		= 10
 
 	cag = 100.000 
 }
 
-technology = { 
-	endgoal 	= { } 
+technology = {
+	endgoal 	= {
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2220 2230 2240 2250 11030 11040 # SP Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3070 3080 3090 3100 3110 3120 12010 # Light Cruisers
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		5470 5480 5490 5500 5510 5520 5530 5540 7170 7180 7190 16010 16020 # Nuclear Techs
+		5550 5560 5570 15500 # Rocket Engines
+		8110 8140 8180 8230 8240 8250 8270 8320 8350 18000 # Carrier Doctrines
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
+	} 
 	preference 	= {
-		# Tools
-		5050 5060 5070
-
-		# Engineering
-		5080 5090 5100
-		
-		# Production Control
-		5110 5120
-		
-		# Assembly Line
-		5130 5140 5150 5160 5180
-		
-		# Cryptography
-		5310 5320 5330 5340
-		
-		# Special Weapons
-		7140 7150 7160
-
-		#Infantry
-		1010 1020 1030 1040 1050 1060
-
-		# Inf support
-		1310 1320 1330 1340 1350 1360
-
-		# Motorized
-		1230 1240 1250
-
-		# Mechanized
-		1260 1270 1280 1290
-
-		# Medium tanks
-		2070 2080 2090
-
-		# Light tanks
-		2020 2030 2040 2050 2060
-
-		# Marines
-		1150 1160 1170 1180
-
-		# Vehicle Assembly
-		5130 5140 5150 5160 5180
-
-		# Strategic bombers
-		4220 4230 4240
-
-		# Escort/Multirole Fighters
-		4040 4050 4070 4080 4100 4110
-
-		# Naval Bomber
-		4190 4200 4210
-
-		# Tactical Bomber
-		4140 4150 4160
-
-		# Carrier
-		3320 3330 3340 3350 3360 3370 3380 3390
-
-		# Light Carrier
-		12100 12110 12120 12130 12140 12150
-
-		# Naval Doctrines
-		8140 8250 8230 8320
-
-		# Air Doctrines
-		9040 9050 9060 9070 9080 9090 9100 9110 9120 9130 9190 9210 9220 9230 9240 9250 9350
+		1010 1020 1030 1040 1050 1060 10000 10010 # Infantry
+		1070 1080 1090 1100 10020 10030 # Paratroopers
+		1110 1120 1130 1140 10040 10050 # Mountaineers
+		1150 1160 1170 1180 10060 10070 # Marines
+		1230 1240 1250 10080 10090 # Motorized Inf
+		1260 1270 1280 1290 10100 10110 # Mechanized Inf
+		1310 1320 1330 10120 # Logistics
+		2010 2020 2030 2040 2050 2060 2070 2080 2090 2100 2110 2120 2130 2140 11000 11010 # Tanks
+		2290 2300 2310 2320 2330 2340 2350 2360 # Artillery
+		2220 2230 2240 2250 11030 11040 # SP Artillery
+		3010 3020 3030 3040 3050 3060 12000 # Destroyers
+		3070 3080 3090 3100 3110 3120 12010 # Light Cruisers
+		3320 3330 3340 3350 3360 3370 3380 3390 12060 # Carriers
+		5470 5480 5490 5500 5510 5520 5530 5540 7170 7180 7190 16010 16020 # Nuclear Techs
+		5550 5560 5570 15500 # Rocket Engines
+		8110 8140 8180 8230 8240 8250 8270 8320 8350 18000 # Carrier Doctrines
+		12100 12110 12120 12130 12140 12150 # Escort Carriers
 	} 
 	ignore 		= {
-		# Battle Cruiser
-		3190 3200 3210 3220 3230 3240
-
-		# Mountain Unit techs
-		1110 1120 1130 1140
-
-		# CAS
-		4170 4280 4180
-
-		# Super Heavy BB
-		3310
-
-		# Air Transports 4260 4270
-		4250
-
-		# SP Rocket Artillery
-		2260 2270 2280 
-
-		# Rocket Artillery
-		2370 2380 2390
-		
-		# Armoured Cars
-		2150 2160
+		2150 2160 # Armoured Cars
+		2170 2180 2190 2200 2210 11020 # Tank Destroyers
+		2260 2270 2280 11050 11060 # SP Rocket Artillery
+		2370 2380 2390 # Rocket Artillery
+		2510 2520 2530 2540 11090 # Anti-Air Brigades
+		3190 3200 3210 3220 3230 3240 12030 # Battlecruisers
+		4170 4280 4180 15120 15130 # CAS
+		4220 4230 4240 15160 15170 # Strategic Bombers
+		5170 # Rocket Assembly Line
+		5580 5590 # Flying Bomb / Flying Rocket
+		6090 # Combined Arms Defense
+		9050 9060 9070 9080 9270 9280 9290 9300 # CAS Doctrines
+		9150 9160 9170 9180 9430 9440 9450 9460 17010 # Strategic Bombardment Doctrines
+	}
+
+	armor 		= 6
+	infantry 	= 7
+	industry 	= 9
+	aircraft 	= 7
+	naval 		= 8
+	land_doctrines 	= 6
+	secret_weapons 	= 4
+	air_doctrines 	= 6
+	naval_doctrines = 7
+}
 
-		# CAS Air Doctrines 9040
-		9050 9060 9070 9080 9270 9280 9290 9300
-	}
- 
-	armor 		= 3 
-	infantry 	= 3
-	industry 	= 4
-	aircraft 	= 3
-	naval 		= 3
-	land_doctrines 	= 2
-	secret_weapons 	= 2
-	air_doctrines 	= 2
-	naval_doctrines = 2
-}  ###################################
+###################################
 # Ground Combat, Leaders and Garrisons
 ###################################
 leader_ratio = {
-	land_field_marshal 	=0.02
-	land_general 		=0.031
-	land_lt_general 	=0.41
-
-	sea_grand_admiral 	=0.02
-	sea_admiral 		=0.061
-	sea_vice_admiral 	=0.401
-
-	air_marshal 		=0.02
-	air_general 		=0.091
-	air_lt_General 		=0.11
+	land_field_marshal	= 0.056 # = 1/18
+	land_general		= 0.074 # = 1/13.5
+	land_lt_general		= 0.333 # = 1/3
+
+	sea_grand_admiral	= 0.033 # = 1/30
+	sea_admiral		= 0.056 # = 1/18
+	sea_vice_admiral	= 0.083 # = 1/12
+
+	air_marshal		= 0.063 # = 1/16
+	air_general		= 0.125 # = 1/8
+	air_lt_General		= 0.250 # = 1/4
 }
+
 garrison = {
 	defend_overseas_beaches = yes
-	home_multiplier 	= 0.3
-	overseas_multiplier 	= 0.4
-	home_peace_cap 		= 20
+	home_multiplier 	= 2.0
+	overseas_multiplier 	= 1.5
+	home_peace_cap 		= 101
 	war_zone_odds 		= 2.0
-	key_point_prio_mult	= 0.3
+	key_point_prio_mult	= 1.0
 	revolt_risk_mult	= 0.3
 
 	# PRIORITIES:
-	beach			= 30	# Beach level 2
-	capital			= 20	# Our capital
-	human_border		= 0	# Ignored for allied human players
+	beach			= 60	# Beach level 2
+	capital			= 100	# Our capital
+	human_border		= 50	# Ignored for allied human players
 	war_target		= 50	# The next country targeted for attack by this AI
 	
 	opposing_alliance	= 50	# For neutrals, all alliances are "opposing"
@@ -603,67 +296,21 @@
 	country_priorities = {
 		CAN = -1
 		MEX = -1
-		SPA = -1
-		SCH = -1
-		GER = 100
-		JAP = 60
-		ITA = 60
 	}
 	ignore = {
-		#Libya
-		918   #Forte Maddalens
-		926   #Al Jaghbun
-		927   #Aujila
-		1017  #Calanslo
-		1018  #Kufra
-		1016  #Murzuk
-		1015  #Ghat
-		931   #Ghadames
-		928   #Sorno
-		
-		#Egypt/East Africa
-		1020  #Siwa
-		1019  #Great Sand Sea
-		907   #Qattara
-		1021  #AinDalla
-		1022  #Western Desert
-		1067  #El Atiun
-		1068  #El Obeid
-		1069  #Waw
-		1065  #Malakal
-		1032  #Omdurman
-		1041  #Gallabal
-		1040  #Kassala
-		1059  #Marsabit
-
-		#Ethiopia
-		1039  #Asmara
-		1048  #Adwa
-		1042  #Gonder
-		1044  #Debre
-		1045  #Gambela
-		1047  #Jima
-		1053  #Moyale
-		1049  #Denakil
-		1043  #Dese
-		1050  #Diredawa
-		1054  #Ogaden
-		1055  #Bardera
-
-		#Belgian Congo
-		1071  #Stanleyville
-		1072  #Buta
-		1073  #Costermanville
-		1074  #Coquihatville
-		1144  #Abertville
-		1143  #Kindu-Port-Empain
-		1142  #Leopoldville
 	}
-	province_priorities = {	}
-	area_multiplier = { }
+	province_priorities = {
+	}
+	area_multiplier = {
+		663 = 3.0 # Pearl Harbour
+		662 = 2.5 # Midway
+		1624 = 2.5 # Guam
+		1786 = 2.5 # Wake
+	}
 }
+
 front = { 
-	recklessness 		= 0 # 0-3
+	recklessness 		= 1 # 0-3
 	distrib_vs_ai 		= even
 	distrib_vs_human 	= even
 
@@ -671,598 +318,61 @@
 	reserve_prop		= 0.1
 	panic_ratio_vs_ai	= 2.5
 	panic_ratio_vs_human	= 2.5
-	base_attack_odds	= 1.3
-	min_attack_odds		= 1.1
+	base_attack_odds	= 1.75
+	min_attack_odds		= 1.5
 	max_attack_odds		= 3.0
-	reinforce_odds		= 1.3
-	withdraw_odds		= 0.6
+	reinforce_odds		= 1.333
+	withdraw_odds		= 0.9
 
 	strength 	= 1.0
-	organisation 	= 1.0
+	organisation 	= 2.0
 	soft_attack 	= 1.0
-	hard_attack 	= 1.0
+	hard_attack 	= 2.0
 	ground_defense 	= 1.0
-	dig_in 		= 1.0 # Against defender
-
-	frozen_attack 	= 1.0
-	snow_attack 	= 1.0
-	blizzard_attack = 1.0
-	storm_attack 	= 1.0
-	muddy_attack 	= 1.0
-
-	
-	
-	occupied 	= 0.7
-	owned 		= 0.7
-
-	jungle_attack 	= 1.0
-	mountain_attack = 1.0
-	swamp_attack 	= 1.0
-	forest_attack 	= 1.0
-	hill_attack 	= 1.0
-	urban_attack 	= 1.0
-	river 		= 1.0
+	dig_in 		= 1.25 # Against defender
 
       	enemy_handicap = {
-		GER = 20
 	} 
       	passivity = {
-		GER = 40
 	} 
 }
-###################################
-# Air bombardment and defense
-###################################
-# Air AI File For Ground Bombings as priority
-# bomber is now obsolete and NOT USED AT ALL replace and use Air Marshal instead
 
-air_marshal = {
-	min_mission_strength_org	= 0.8
-	icxdayscostfactor 			= 10.0		# How to value true industrial cost when calculating expect causalties
-	manpowercostfactor			= 100.0		# How to value manpower cost when calculating expect causalties
-	destructionriskthreashold 	= 0.2		# when to fear a divisiopn might be destroyed
-
-	# desirability is a multiplier used when calcualting the mission desirability
-	airsuperioritydesirability 		= 30.0
-	groundattackdesirability 		= 40.0
-	inderdictiondesirability 		= 20.0
-	logisticalstrikedesirability 	= 2.0
-	runwaycrateringdesirability 	= 10.0
-	strategicstrikedesirability 	= 10.0
-	installationstrikedesirability 	= 5.0
-	navalstrikedesirability 		= 15.0
-	portstrikedesirability 			= 9.0
-	convoyraiddesirability			= 9.0
-
-	# tolerance is the required kill:loss ration expected to do 
-	#    mission, 2.0 accept twice the losses of your enemy, 0.5 accept half
-	airsuperioritylosstolerance 	= 1.0
-	groundattacklosstolerance 		= 1.0
-	interdictionlosstolerance 		= 2.0
-	logisticalstrikelosstolerance 	= 0.5
-	runwaycrateringlosstolerance 	= 1.5
-	strategicstriketolerance 		= 4.5
-	installationstriketolerance 	= 1.5
-	navalstriketolerance 			= 1.0
-	portstriketolerance 			= 1.0
-	convoyraidtolerance				= 1.0
-
-	# efficency is a tweakable param to adjust according to how 
-	#    much actual damage comes from doing this mission (not to be confused with desirability)
-	logisticalstrikeefficency 	= 0.01
-	runwaycrateringefficency 	= 0.01
-	strategicstrikeefficency 	= 0.01
-	installationstrikeefficency = 0.01
-
-	taskforcetype = { name = "Air Superiority" desiredratio = 0.400 rangeweight = 10.000 airkillpowerweight = 2000.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes air_superiority = yes } 
-	taskforcetype = { name = "Soft Bombing" desiredratio = 0.250 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Hard Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 2000.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes interdiction = yes ground_attack = yes } 
-	taskforcetype = { name = "Strategic Bombing" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 0.000 strategickillpowerweight = 2000.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = -0.500 surfacevulnurabilityweight = -0.500 idle = yes reorganize = yes logistical_strike = yes runway_cratering = yes strategic_bombardment = yes installation_strike = yes } 
-	taskforcetype = { name = "Naval Bombing" desiredratio = 0.050 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = 0.000 softkillpowerweight = 0.000 navalkillpowerweight = 2000.000 strategickillpowerweight = 0.000 transportcapacityweight = -1000000.000 airvulnurabilityweight = 0.000 surfacevulnurabilityweight = -1.000 idle = yes reorganize = yes naval_strike = yes port_strike = yes convoy_air_raiding = yes } 
-	taskforcetype = { name = "Airlift" desiredratio = 0.100 rangeweight = 10.000 airkillpowerweight = 0.000 hardkillpowerweight = -2000.000 softkillpowerweight = -2000.000 navalkillpowerweight = 0.000 strategickillpowerweight = -2000.000 transportcapacityweight = 1000000.000 airvulnurabilityweight = -1.000 surfacevulnurabilityweight = 0.000 idle = yes reorganize = yes airborne_assault = yes air_supply = yes } 
-}
 ###################################
 # Invasions and Naval
 ###################################
-invasion = {
-	invasion			= yes
- 	base				= 0.1	#Relative modifier. (lower = specific targets much more important.)
-	random				= 5.0	#How big a random range.  (1.0 = 1%)
-	coastal				= 0.4	#increase to avoid coastal forts more.
-	beach				= 0.1	#higher, avoid worst beaches.
-	max_distance  		= 250.0  #About the distance from Japan to Batavia
-	max_staging_distance = 10	# How far should the staging area be from the target invasion point
-	distance			= 10.0	#higher = avoid long distance.
-	pocket				= 20.0	#prioritise pockets, ie provinces with no adjacent controlled by same.
-	island				= 2.0	#prioritise taking pure islands.
-	enemy				= 2.0	#higher = much more vary of troops in province.
-	adjacentenemy 		= 2.0	#higher = much more vary of troops nearby
-	air_base			= 1.5 
-   	naval_base 			= 0.1 
-   	air_support 		= 3.0 
-   	redirect 			= priority
-	ignore				= no
-	help_allies 		= yes
+invasion = { 
+	ignore		= no 
+	invasion	= no
       
-	staging_province = { }
-
-	target = {
-		# PACIFIC OCEAN
-		# -------------
-		#Alaska
-		548 = 50	# Unimak Island
-		547 = 50	# Unalaska Island
-		546 = 50	# Unmak Island
-		545 = 50	# Yunasaka Island
-		544 = 50	# Andrean Island
-		542 = 50	# Kisgan Island
-
-		#Alaska - mainland
-		553 = 5000 # Juneau
-
-		#Kurils
-		1177 = -1 	# Estorofu
-		1174 = -1 	# Shumushushima
-
-		#Central Pacific
-		658 = 4000 #Hawai
-		659 = 4000 #Maui
-		660 = 4000 #Kawai
-		661 = 4000 #Niihau
-		662 = 3000 #Midway
-		663 = 4000 #Pearl Harbour
-		1766 = 3000 #Johnson
-		1785 = 60 #Marcus
-		1786 = 60 #Wake
-		1799 = 30 #IwoJima
-		1784 = 30 #Bonin Isl.
-		1602 = 40 #Wotje
-		1600 = 40 #Bikini
-		1601 = 45 #Eniwetok
-		1608 = 45 #Kwajelein
-		1605 = 40 #Majuro
-		1606 = 40 #Mili
-		1607 = 40 #Jaluit
-		1610 = 40 #Ponape
-		1609 = 40 #Kosrae
-		1611 = 40 #Nauru
-
-		#South Pacific
-		1753 = 40 # Vanua Levu
-		1751 = 40 # Tahiti
-		1752 = 40 #Lau Group
-		1755 = 40 #Taveuni
-		1756 = 3000 # Samoa
-		1757 = 40 # Tamara
-		1770 = 40 #Maiana
-		1761 = 40 #Apamana
-		1769 = 40 #Tarawa
-		1768 = 40 #Abaiang
-		1767 = 40 #Makin
-		1762 = 45 #Phoenix Island
-		1763 = 45 #Christmas isl.
-		1764 = 45 #Jarvis
-		1765 = 45 #Palmira
-		1760 = 40 #Nanuti
-		1758 = 40 #Arorae
-
-		#New Zealand
-		1871 = 3000 #Wellington
-		1871 = 3000 #Darwina
-		1868 = 3000 #Auckland
-		1872 = 3000 #ChristChurch
-
-		#Australia
-		1703 = 2750 # Darwin
-		1702 = 2750 # Mhuluibuy
-		1701 = 2750 # Borroloa
-		1695 = 2750 # Normanton
-		1694 = 2750 # Welpa
-		1722 = 2750 # Brisbane
-		1723 = 2750 # Coff's Harbour
-		1724 = 2750 # Newcastle, Australia
-		1727 = 2750 # Sydney
-		1730 = 2750 # Melbourne
-		1732 = 2750 # Mount Gambier
-		1733 = 2750 # Adelaide
-		1729 = 2750 # Tasmania
-		1718 = 2750 # Port Augusta
-		1717 = 2750 # Port Lincoln
-		1716 = 2750 # Penong
-		1713 = 2750 # Esperance
-		1712 = 2750 # Perth
-		1711 = 2750 # Geralton
-		1710 = 2750 # Carnav
-		1704 = 2750 # Katherine
-
-		#Coral Sea
-		1692 = 40 #Noumea
-		1691 = 40 #Lifu
-		1687 = 40 #Nare
-		1690 = 40 #Etafe
-		1688 = 40 #Bank Isl.
-		1686 = 40 #Santa Cruz
-		1685 = 40 #Guadalcanal
-		1684 = 40 #New Georgia
-		1622 = 40 #Kolombangia
-		1614 = 40 #Villa Lavella
-		1683 = 40 #Shortland Island
-		1682 = 40 #Boungainville
-		1681 = 40 #Buka
-		1669 = 40 #New Ireland
-		1670 = 40 #Rabaul
-		1671 = 40 #Gasmata
-		1675 = 40 #Kerema
-		1679 = 45 #Port Moresby
-		1680 = 40 #Milne Bay
-		1677 = 40 #Buna
-		1672 = 40 #Lae
-
-		#Carolinese
-		1668 = 40 #Admiralty
-		1667 = 40 #Wewak
-		1666 = 40 #Aitape
-		1665 = 40 #Hollandia
-		1664 = 40 #Sarmi
-		1663 = 40 #arare
-		1661 = 40 #Biak_isl.
-		1612 = 40 #Satawan
-		1613 = 45 #Truk
-		1615 = 40 #Ulul
-		1617 = 40 #Woleai
-		1616 = 40 #Pulusuk
-		1604 = 40 #Wolelai
-		1618 = 40 #Ulithi
-		1619 = 40 #Yap
-		1620 = 20 #Ngulu
-
-		#Molucca
-		1674 = 35 #Mereuke
-		1673 = 35 #Agats
-		1660 = 35 #Babo
-		1659 = 35 #Sarang
-		1654 = 35 #Helmahera
-		1656 = 35 #Ceram
-		1655 = 35 #Buru
-		1653 = 35 #Menado
-		1651 = 35 #Palu
-		1640 = 35 #Makassar
-		1652 = 35 #Kendari
-		1658 = 35 #Timor
-		1657 = 35 #West Timor
-		1635 = 35 #Bali
-		1636 = 35 #Lambok
-		1637 = 35 #Sumbaung
-		1638 = 35 #Flores
-		1639 = 35 #Flores
-
-		#Borneo
-		1642 = 10 #Pontianak
-		1641 = 10 #Bandjermasin
-		1650 = 10 #Balikpapan
-		1649 = 10 #Samarinda
-		1648 = 10 #Tarakan
-		1647 = 10 #Jesselton
-		1646 = 10 #Miri
-		1644 = 10 #Kuching
-
-		#Java
-		1633 = 10 #Malang
-		1634 = 10 #Madura
-		1631 = 10 #Djokjakarta
-		1630 = 10 #Samarang
-		1629 = 10 #Tjilajap
-		1628 = 10 #Batavia
-
-		#Sumatra
-		1358 = 5  #Palembang
-		1359 = 5  #Oosthaven
-		1354 = 5  #Bangka Isl.
-		1356 = 5  #Dumai
-		1351 = 5  #Padang
-		1355 = 5  #Medan
-
-		#Hainan
-		1321 = 10
-
-		#Philippines
-		1735 = 30 #Palawan
-		1736 = 30 #Mindoro
-		1744 = 30 #Samar
-		1745 = 30 #Leyte
-		1749 = 30 #Cagayan
-		1747 = 30 #Negros
-		1750 = 30 #Davos
-		1746 = 30 #Panay
-
-		#Luzon
-		1743 = 35 #Legaspi
-		1742 = 35 #Lamon Bay
-		1740 = 35 #Lingayen Gulf
-		1741 = 35 #Aparii
-
-		#Formose
-		1323 = 30
-		1322 = 30
-
-		#RyuKyu Islands
-		1193 = 35 #Okinawa
-		1192 = 35 #Amami
-
-		#Malaisia
-		1353 = 15 #Singapore
-		1349 = 15 #Kuala Lumpur
-		1351 = 15 #Kuanta
-		1350 = 15 #Kota Bahru
-		1348 = 15 #Singora
-
-		#Indochina
-		1345 = 10 #Thom Buri
-		1343 = 10 #Bangkok
-		1339 = 10 #Battambang
-		1338 = 10 #Rachgio
-		1337 = 10 #Saigon
-		1335 = 10 #Nha Trang
-		1334 = 10 #Qui Non
-		1333 = 10 #DaNang
-		1328 = 10 #Hanoi
-		1326 = 10 #Haiphong
-
-		#Sakhalin
-		1176 = 10 #Toyohara
-		75   = 10 #Ocha
-
-		#China-Korea
-		1316 = 10 #Macao
-		1248 = 10 #Shantou
-		1247 = 10 #Xianen
-		1244 = 10 #Fuzhou
-		1235 = 10 #Shangai
-		1215 = 10 #Qingdao
-		1214 = 10 #Yantai
-		1204 = 10 #Tianjin
-		1202 = 10 #Dalian
-		1199 = 10 #Seoul
-		1196 = 10 #Busan
-
-		#Kyushu
-		1190 = 20 #Fukuoka
-		1191 = 20 #Kagoshima
-
-		#Shikoku
-		1189 = 20
-
-		#Honshu
-		1188 = 25 #Hiroshima
-		1187 = 25 #Osaka
-		1186 = 25 #Kanazawa
-		1185 = 25 #Nagoya
-		1184 = 25 #Tokyo
-		1183 = 25 #Niigata
-		1182 = 25 #Fukushima
-		1181 = 25 #Akita
-		1180 = 25 #Sendai
-
-		#Hokaido
-		1179 = 20 #Saporo
-		1178 = 20 #Asahikawa
-
-		#Canada - vancouver
-		556 = 40 #Vancouver Island
-		541 = 40 #Vancouver
-
-		#USA-West Coast
-		780 = 40 #Seattle
-		782 = 40 #Tacoma
-		765 = 40 #San Francisco
-		762 = 40 #Los Angeles
-		761 = 40 #San diego
-
-		#Latin America
-		737 = 5000 # Mexicali
-		738 = 5000 # Lapaz
-		739 = 5000 # Hermisillo
-		743 = 5000 # Culliacom
-		751 = 5000 # Guadalajara
-		754 = 5000 # Acapulco
-		755 = 5000 # Villahermosa
-		759 = 5000 # San Salvador
-		539 = 5000 # San Jose
-		888 = 5000 # Panama
-		890 = 5000 # Medellin
-		814 = 5000 # Guadayaquil
-
-
-		# ATLANTIC OCEAN
-		# -------------
-		#Islands in cold Water
-		563 = 4750 #Baffin Bay
-		800 = 4750 #Greenland
-		1   = 4750 #Reijavik
-		576 = 4750 #New Foundland
-		578 = 4750 #Cape Breton
-
-		#Bahamas and Bermuda
-		538 = 4750 #Bermuda
-		652 = 4750 #Andros
-		665 = 4750 #Abbacos
-		664 = 4750 #Grand Bahamas
-		653 = 4750 #New Providence
-		666 = 4750 #Eleuthera
-		668 = 4750 #Long Island
-
-		#Mid Atlantic
-		1867 = 4750 #Azores
-		866  = 4750 #Falklands have substantial logistic facilities
-
-		#South America
-		802  = 4750 #Barquisimoto
-		810  = 4750 #Cananca
-		870  = 4750 #Ciudad Guyana
-		871  = 4750 #Guyana
-		873  = 4750 #Georgetown
-		874  = 4750 #Parameibo
-		875  = 4750 #Cayenne
-		876  = 4750 #Macapa
-		877  = 4750 #Marajo
-		879  = 4750 #Belem
-		881  = 4750 #Recife
-		882  = 4750 #Salvador
-		884  = 4750 #Vitoria
-		885  = 4750 #Rio de Janeiro
-		886  = 4750 #Sao Paulo
-		847  = 4750 #Curibita
-		848  = 4750 #Porto Allegre
-		849  = 4750 #Monte Video
-		667  = 4750 #Buenos Aires
-		852  = 4750 #Mardel Plata
-		853  = 4750 #Bahia Blanca
-		854  = 4750 #Viedna
-		857  = 4750 #Puerto Madrin
-		858  = 4750 #Comodo Rivada
-		863  = 4750 #Santa Cruz
-
-		#Carabean
-		654 = 5000 #Havana
-		655 = 5000 #Santa Cruz
-		656 = 5000 #Camaguay
-		657 = 5000 #Guantanamo
-		758 = 5000 #Belize
-		891 = 5000 #Jamaica
-		892 = 5000 #Port au Prince
-		893 = 5000 #Santiago
-		894 = 5000 #Santo Domingo
-		895 = 5000 #Puerto Rico
-		896 = 5000 #Virgin Island
-		897 = 5000 #Antigua
-		898 = 5000 #Guadeloupe
-		899 = 5000 #Martinique
-		805 = 5000 #Ste Lucie
-		807 = 5000 #Barbados
-		806 = 5000 #St George
-		809 = 5000 #Port of Spain
-
-		# MEDITERRANEAN SEA
-		# -----------------
-		# Italy
-		525 = 35 # Palermo
-		526 = 35 # Catania
-		521 = 35 # Naples
-		523 = 35 # Taranto
-		520 = 35 # Foggia
-		519 = 35 # Anzio
-
-		31  = 3000 # Malta
-
-		# North Africa
-		900 = 35	# Suez
-		901 = 35	# Port Said
-		906 = 35	# Alexandra
-		909 = 35	# El Alamein
-		910 = 35	# Fuka
-		916 = 35	# Tobruk
-		919 = 35	# Bardia
-		924 = 35	# Bengazi
-		932 = 35	# Lybia
-		933 = 35
-		938 = 2500 # Tunisia
-		939 = 2500 
-		940 = 2500 
-		949 = 3000 # Algeria
-		953 = 3000 
-		954 = 3000 # Morocco
-		958 = 3000 
-
-		# Middle East
-		404 = 35	# Palestine
-		406 = 35	#
-		1793 = 35	# Syria
-		1794 = 35	#
-		1798 = 35	# Palestine
-		1799 = 35	#
-		1800 = 35	#
-		1801 = 35	#
-		1862 = 35	# Lebanon
-
-		#Temp Shut Down of Europe
-		#Norway
-		107 = -1 # Oslo
-		108 = -1 # Kristiansan
-		109 = -1 # Stavanger
-		110 = -1 # Bergen
-		125 = -1 # Narvik
-		117 = -1 # Alesund
-		118 = -1 # Trondheim
-		124 = -1 # Mo I Ran
-
-		# Baltic States (in case of un-holy alliance)
-		205 = -1 # Marzibe
-		204 = -1 # Gelgava
-		197 = -1 # Riga
-		196 = -1 # Parnu
-		194 = -1 # Tallinn
-		193 = -1 # Narva
-		188 = -1 # Kingiseep
-		187 = -1 # Leningrad
-		145 = -1 # Vipurii
-
-		# German
-		206 = -1 # Memel
-		510 = -1 # Konigsburg
-		304 = -1 # Elbing
-		303 = -1 # Danzig
-		302 = -1 # Setting
-		301 = -1 # Stralsrul
-		296 = -1 # Rostock
-		89  = -1 # Lubeck
-	
-		# Atlantic Wall
-		292 = -1 # Arburg
-		92  = -1 # Arhus
-		91  = -1 # Kolding
-		90  = -1 # Kiel
-		78  = -1 # Leeweden
-		47  = -1 # Amsterdam
-		46  = -1 # Rotterdam
-		45  = -1 # Ghent
-		18  = -1 # Calais
-		42  = -1 # Dieppe
-		41  = -1 # Le Havre
-		39  = -1 # Caen
-		33  = -1 # Rennes
-		32  = -1 # Brest
-		34  = -1 # Lorient
-		35  = -1 # Nantes
-		59  = -1 # Cholet
-		325 = -1 # Bordeaux
-		326 = -1 # Dax	
-	} 
+	target = { } 
 } 
+
 admiral = { 
 	min_org		= 100	# NEW: Percent of org gained back before the unit can leave port
 	min_dmg		= 98    # NEW: Percent of dmg gained back before the unit can leave port
 	return_org 	= 60 	# NEW: PERCENT OF ORG LOST BEFORE RETURNING TO PORT applies to all fleets/ships
 	return_dmg 	= 80 	# NEW: PERCENT OF DMG LOST BEFORE RETURNING TO PORT for repairs applies to all fleets/ships
-	min_core_attack_fleets  = 1		# Minimum amount of attack fleets to defend CORE provinces (default 0)
-	num_attack_fleets		= 4 	# ENG/USA default 3, JAP default 2 everyone else is 1
 
-	#Which provinces to use as bases..
-	base = {
-		683	# Hawaii
-		1756	# Samoa
-		765	# San Francisco
-		633	# Norfolk
-		651	# Miami
-		602	# Boston
-		1613	# Truk
-		1670	# Rabaul
-		1337	# Saigon
-		1353	# Singapore
-		1628	# Batavia
-		1737	# Manila
-		1624	# Guam
-	}
-	target = { } 
+	target = {
+		2349 = 200
+		2318 = 100
+		2350 = 200
+		2351 = 100
+		2351 = 100
+		2315 = 100
+		2316 = 100
+		2317 = 150
+		2579 = 200
+		2532 = 200
+		1923 = 200
+		1935 = 150
+		1920 = 150
+		1942 = 150
+		1934 = 100
+		1932 = 150
+		1944 = 200
+		2562 = 200
+	} 
 	core = {
 		2348
 		2347
@@ -1281,4 +391,70 @@
 		2564
 		2563
 	} 
-}
\ No newline at end of file
+	ignore = {
+		# Baltic Sea
+		"Bothnian Bay"
+		"Northern Baltic"
+		"Southern Baltic"
+
+		# South Atlantic
+		"Coast of Brazil"
+		"Cap Verde"
+		"Gulf of Guinea"
+		"Coast of Africa"
+		"Coast of Bissao"
+		"Guiana Basin"
+		"South-Central Mid-Atlantic Ridge"
+		"Atlantic-Indian Ridge"
+		"Coast of South Africa"
+		"Coast of Angola-Namibia"
+		"Angola Plain"
+		"Argentine Plain"
+		"Coast of Argentina"
+		"Coast of Uruguay"
+		"Coast of Guyana"
+		"Coast of Recife"
+		"Pernambuco Plain"
+		"Ascension Fracture Zone"
+
+		# Indian Ocean
+		"Red Sea"
+		"Persian Gulf"
+		"Coast of Ceylon"
+		"East Bay of Bengal"
+		"Ninetyeast Ridge"
+		"Java Trench"
+		"West Bay of Bengal"
+		"Mascarene Plateau"
+		"Mid-Indian Ridge"
+		"North Arabian Sea"
+		"North Mozambique Channel"
+		"Northeast Coast of Madagascar"
+		"South Arabian Sea"
+		"South Mozambique Channel"
+		"Southeast Coast of Madagascar"
+		"Southeast Indian Ocean"
+		"Southwest Indian Ocean"
+		"Horn of Africa"
+	}
+}
+
+###################################
+# Intelligence
+###################################
+spyprefs = {
+	percentage_on_spies = 0.2
+	percentage_foreign_mission = 0.7
+
+	spyprefsdata = {
+		country_priorities = 10
+		min_number_of_spies = 5
+		NumberOfSpies = 10
+		counter_espionage = 10
+		country = USA
+	}
+}
+
+air_marshal = {
+	min_mission_strength_org = 0.7
+}
diff -Naur Doomsday Data Files.old/db/events/AI_AST.txt Doomsday Data Files/db/events/AI_AST.txt
--- Doomsday Data Files.old/db/events/AI_AST.txt	2008-03-28 10:46:23.000000000 +0100
+++ Doomsday Data Files/db/events/AI_AST.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,448 +1 @@
-####################################
-# Australia AI events 36200 - 36299 by Lothos
-####################################
-################
-# Minister of Security Section 36200 - 36209
-#############################################
-event = { # Alexander McLachlan takes power
-	id = 36200
-	random = no 
-	country = AST
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 56079 # Alexander McLachlan
-		NOT = { InCabinet = 56079 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 56079 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # James McCarthy takes power
-	id = 36201
-	random = no 
-	country = AST
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 56087 # James McCarthy
-		NOT = { InCabinet = 56087 }
-		NOT = { minister = 56079 } # Alexander McLachlan
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 56087 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Staff Section 36210 - 36219
-#############################################
-event = { # George F. Langley takes power
-	id = 36210
-	random = no 
-	country = AST
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 56108 # George F. Langley
-		NOT = { InCabinet = 56108 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 56108 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Cyril Bingham-White takes power
-	id = 36211
-	random = no 
-	country = AST
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 56104 # Cyril Bingham-White
-		NOT = { InCabinet = 56104 }
-		NOT = { minister = 56108 } # George F. Langley
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 56104 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Head of Intelligence Section 36220 - 36229
-#############################################
-event = { # Norman J. Makin takes power
-	id = 36220
-	random = no 
-	country = AST
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 56096 # Norman J. Makin
-		NOT = { InCabinet = 56096 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 56096 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Alexander McLachlan takes power
-	id = 36221
-	random = no 
-	country = AST
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 56006 # Alexander McLachlan
-		NOT = { InCabinet = 56006 }
-		NOT = { minister = 56096 } # Norman J. Makin
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 56006 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of the Army Section 36230 - 36239
-#############################################
-event = { # Alan Ramsay takes power
-	id = 36230
-	random = no 
-	country = AST
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 56115 # Alan Ramsay
-		NOT = { InCabinet = 56115 }
-		OR = {
-			atwar = no
-			NOT = { minister = 56110 } # Cyril Bingham-White
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 56115 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Cyril Bingham-White takes power
-	id = 36231
-	random = no 
-	country = AST
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 56110 # Cyril Bingham-White
-		NOT = { InCabinet = 56110 }
-		OR = {
-			atwar = yes
-			NOT = { minister = 56115 } # Alan Ramsay
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 56110 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Armament Minister Section 36240 - 36249
-#############################################
-event = { # G.A. Street takes power
-	id = 36240
-	random = no 
-	country = AST
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 56057 # G.A. Street
-		NOT = { InCabinet = 56057 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 56057 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Hattil S. Foll takes power
-	id = 36241
-	random = no 
-	country = AST
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 56058 # Hattil S. Foll
-		NOT = { InCabinet = 56058 }
-		NOT = { minister = 56057 } # G.A. Street
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 56058 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Air Minister Section 36250 - 36259
-#############################################
-event = { # Richard Williams takes power
-	id = 36250
-	random = no 
-	country = AST
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 56010 # Richard Williams
-		NOT = { InCabinet = 56010 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 56010 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Navy Minister Section 36260 - 36269
-#############################################
-event = { # Ragnar M. Colvin takes power
-	id = 36260
-	random = no 
-	country = AST
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 56009 # Ragnar M. Colvin
-		NOT = { InCabinet = 56009 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofnavy which = 56009 }
-		command = { type = dissent value = -1 }
-	}
-}
-
-
-
-
-
-
-
-#############################################
-# Regular AI Events 36270 - 36299
-#############################################
-################
-# Australia changes production
-#############################################
-event = {
-	id = 36270
-	random = no 
-	country = AST
-	
-	trigger = {
-		ai = yes
-		OR = {
-			atwar = yes
-			year = 1939
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/AST_Change_Production.ai" }
-	}
-}
-################
-# Australia Air AI
-#############################################
-event = {
-	id = 36271
-	random = no 
-	country = AST
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = ASTGroundAir }
-		lost_national = { country = AST value = 1 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = ASTGroundAir }
-		command = { type = local_clrflag which = ASTNavalAir }
-		command = { type = ai which = "Air_Ground.ai" }
-	}
-}
-event = {
-	id = 36272
-	random = no 
-	country = AST
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = ASTNavalAir }
-		NOT = { lost_national = { country = AST value = 1 } }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ASTGroundAir }
-		command = { type = local_setflag which = ASTNavalAir }
-		command = { type = ai which = "Air_Naval.ai" }
-	}
-}
-################
-# Shift Production
-#############################################
-event = {
-	id = 36273
-	random = no 
-	country = AST
-	
-	trigger = {
-		ai = yes
-		OR = {
-			year = 1938
-			atwar = HOL
-			atwar = PHI
-			atwar = USA
-			war = { country = JAP country = AST }
-			AND = {
-				atwar = yes
-				lost_national = { country = AST value = 1 }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/Minor_Gear_Up.ai" }
-	}
-}
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/AI_CAN.txt Doomsday Data Files/db/events/AI_CAN.txt
--- Doomsday Data Files.old/db/events/AI_CAN.txt	2008-03-28 10:46:23.000000000 +0100
+++ Doomsday Data Files/db/events/AI_CAN.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,463 +1 @@
-####################################
-# Canada AI events 36100 - 36199 by Lothos
-####################################
-################
-# Minister of Security Section 36100 - 36109
-#############################################
-event = { # Thomas A. Crerar takes power
-	id = 36100
-	random = no 
-	country = CAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 45070 # Thomas A. Crerar
-		NOT = { InCabinet = 45070 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 45070 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # George Eulas Foster takes power
-	id = 36101
-	random = no 
-	country = CAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 45068 # George Eulas Foster
-		NOT = { InCabinet = 45068 }
-		NOT = { minister = 45070 } # Thomas A. Crerar
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 45068 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Staff Section 36110 - 36119
-#############################################
-event = { # Frederick M.W. Harvey takes power
-	id = 36110
-	random = no 
-	country = CAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 45104 # Frederick M.W. Harvey
-		NOT = { InCabinet = 45104 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 45104 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Kenneth Stuart takes power
-	id = 36111
-	random = no 
-	country = CAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 45101 # Kenneth Stuart
-		NOT = { InCabinet = 45101 }
-		NOT = { minister = 45104 } # Frederick M.W. Harvey
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 45101 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Head of Intelligence Section 36120 - 36129
-#############################################
-event = { # René St. Pierre takes power
-	id = 36120
-	random = no 
-	country = CAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 45092 # René St. Pierre
-		NOT = { InCabinet = 45092 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 45092 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Henry Crerar takes power
-	id = 36121
-	random = no 
-	country = CAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 45006 # Henry Crerar
-		NOT = { InCabinet = 45006 }
-		NOT = { minister = 45092 } # René St. Pierre
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 45006 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of the Army Section 36130 - 36139
-#############################################
-event = { # Ernest Ashton takes power
-	id = 36130
-	random = no 
-	country = CAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 45008 # Ernest Ashton
-		NOT = { InCabinet = 45008 }
-		OR = {
-			atwar = no
-			NOT = { minister = 45110 } # Kenneth Stuart
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 45008 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Kenneth Stuart takes power
-	id = 36131
-	random = no 
-	country = CAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 45110 # Kenneth Stuart
-		NOT = { InCabinet = 45110 }
-		OR = {
-			atwar = yes
-			NOT = { minister = 45008 } # Ernest Ashton
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 45110 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Armament Minister Section 36140 - 36149
-#############################################
-event = { # Ian A. MacKenzie takes power
-	id = 36140
-	random = no 
-	country = CAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 45004 # Ian A. MacKenzie
-		NOT = { InCabinet = 45004 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 45004 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Arthur Meighen takes power
-	id = 36141
-	random = no 
-	country = CAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 45056 # Arthur Meighen
-		NOT = { InCabinet = 45056 }
-		NOT = { minister = 45004 } # Ian A. MacKenzie
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 45056 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Air Minister Section 36150 - 36159
-#############################################
-event = { # Joseph Roméo Vachon takes power
-	id = 36150
-	random = no 
-	country = CAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 45123 # Joseph Roméo Vachon
-		NOT = { InCabinet = 45123 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 45123 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Navy Minister Section 36160 - 36169
-#############################################
-event = { # Percy Nelles takes power
-	id = 36160
-	random = no 
-	country = CAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 45009 # Percy Nelles
-		NOT = { InCabinet = 45009 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofnavy which = 45009 }
-		command = { type = dissent value = -1 }
-	}
-}
-
-
-
-
-
-
-
-#############################################
-# Regular AI Events 36170 - 36199
-#############################################
-################
-# Canada Load D-Day AI
-#############################################
-event = {
-	id = 36170
-	random = no 
-	country = CAN
-	
-	trigger = {
-		ai = yes
-		alliance = { country = CAN country = USA }
-		OR = {
-			event = 28005 # USA Loaded D-Day
-			control = { province = 292 data = USA } # Arburg
-			control = { province = 92  data = USA } # Arhus
-			control = { province = 91  data = USA } # Kolding			
-			control = { province = 78  data = USA } # Leeweden
-			control = { province = 47  data = USA } # Amsterdam
-			control = { province = 46  data = USA } # Rotterdam
-			control = { province = 45  data = USA } # Ghent
-			control = { province = 18  data = USA } # Calais
-			control = { province = 42  data = USA } # Dieppe
-			control = { province = 41  data = USA } # Le Havre
-			control = { province = 39  data = USA } # Caen
-			control = { province = 33  data = USA } # Rennes
-			control = { province = 32  data = USA } # Brest
-			control = { province = 34  data = USA } # Lorient
-			control = { province = 35  data = USA } # Nantes
-			control = { province = 59  data = USA } # Cholet
-			control = { province = 325 data = USA } # Bordeaux
-			control = { province = 326 data = USA } # Dax
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/CAN_Dday.ai" }
-		command = { type = ai which = "Air_Ground.ai" }
-	}
-}
-################
-# Canada Air AI
-#############################################
-event = {
-	id = 36171
-	random = no 
-	country = CAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = CANGroundAir }
-		lost_national = { country = CAN value = 1 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = CANGroundAir }
-		command = { type = local_clrflag which = CANStrategicAir }
-		command = { type = ai which = "Air_Ground.ai" }
-	}
-}
-event = {
-	id = 36172
-	random = no 
-	country = CAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = CANStrategicAir }
-		NOT = { lost_national = { country = CAN value = 1 } }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = CANGroundAir }
-		command = { type = local_setflag which = CANStrategicAir }
-		command = { type = ai which = "Air_Strategic.ai" }
-	}
-}
-################
-# Shift Production
-#############################################
-event = {
-	id = 36173
-	random = no 
-	country = CAN
-	
-	trigger = {
-		ai = yes
-		OR = {
-			atwar = yes
-			atwar = GER
-			atwar = ENG
-			atwar = FRA
-			atwar = USA
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/Minor_Gear_Up.ai" }
-	}
-}
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/AI_CHI.txt Doomsday Data Files/db/events/AI_CHI.txt
--- Doomsday Data Files.old/db/events/AI_CHI.txt	2008-03-28 10:46:23.000000000 +0100
+++ Doomsday Data Files/db/events/AI_CHI.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,1348 +1 @@
-####################################
-# China and the Warlords 27000 - 27999 by Lothos
-####################################
-# Behavior Flags
-#	UPGPeace			= Upgrading of existing units flag
-#	ChinaBackoff		= Go on the attack or no in China
-
-# Request for Help Flags
-#	ChinaFeeder1	= 10% Exp force request for help
-#	ChinaFeeder2	= 20% Exp force request for help
-#	ChinaFeeder3	= 30% Exp force request for help
-#	ChinaFeeder4	= 40% Exp force request for help
-#	ChinaFeeder5	= 50% Exp force request for help
-#	ChinaFeeder6	= 60% Exp force request for help
-#	ChinaFeeder7	= 70% Exp force request for help
-
-################
-# China changes to defensive AI vs Japan
-#############################################
-event = {
-	id = 27000
-	random = no 
-	country = CHI
-	
-	trigger = {
-		ai = yes
-		OR = {
-			war = { country = JAP country = CHI }
-			AND = {
-				event = 27010
-				NOT = { exists = CHC }
-				NOT = { exists = CSX }
-				NOT = { exists = SIK }
-				NOT = { exists = CXB }
-				NOT = { exists = CYN }
-				NOT = { exists = CGX }
-				NOT = { exists = TIB }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/CHI_Japan.ai" }
-		command = { type = ai which = "Air_Ground.ai" }
-	}
-}
-################
-# Backoff from Japan AI
-#############################################
-event = {
-	id = 27001
-	random = no 
-	country = CHI
-	
-	trigger = {
-		ai = yes
-		OR = {
-			event = 22001
-			event = 22002
-			lost_national = { country = CHI value = 35 }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/CHI_Backoff.ai" }
-		command = { type = ai which = "Air_Ground.ai" }
-	}
-}
-################
-# Event 27002 deleted
-#############################################
-################
-# Event 27003 deleted
-#############################################
-################
-# Event 27004 deleted
-#############################################
-################
-# Do not use 27005 as it is in AI_CGX.txt
-#############################################
-################
-# Event 27006 deleted
-#############################################
-################
-# Do not use 27008 and 27009 as they are in nationalist_china.txt
-#############################################
-################
-# China alternate AI if Japan is atwar with someone else not China (part 1)
-#############################################
-event = {
-	id = 27010
-	random = no 
-	country = CHI
-	
-	trigger = {
-		ai = yes
-		NOT = { atwar = CHI }
-		OR = {
-			atwar = JAP
-			NOT = { exists = JAP }
-			ispuppet = JAP
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/CHI_WAR_Warlords.ai" }
-		command = { type = ai which = "Air_Ground.ai" }
-	}
-}
-################
-# China alternate AI loaded to go after Japan (part 2)
-#############################################
-event = {
-	id = 27011
-	random = no 
-	country = CHI
-	
-	trigger = {
-		ai = yes
-		event = 27010
-		NOT = { atwar = CHI }
-		NOT = { exists = CHC }
-		NOT = { exists = CSX }
-		NOT = { exists = SIK }
-		NOT = { exists = CXB }
-		NOT = { exists = CYN }
-		NOT = { exists = CGX }
-		NOT = { exists = TIB }
-		OR = {
-			exists = MAN
-			control = { province = 1390 data = JAP } # Harbin
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/CHI_WAR_Japan.ai" }
-		command = { type = ai which = "Air_Naval.ai" }
-	}
-}
-################
-# China turns isolationlist
-#############################################
-event = {
-	id = 27012
-	random = no 
-	country = CHI
-	
-	trigger = {
-		ai = yes
-		event = 27010
-		NOT = { atwar = CHI }
-		NOT = { exists = CHC }
-		NOT = { exists = CSX }
-		NOT = { exists = SIK }
-		NOT = { exists = CXB }
-		NOT = { exists = CYN }
-		NOT = { exists = CGX }
-		NOT = { exists = TIB }
-		AND = {
-			NOT = { exists = MAN }
-			NOT = { control = { province = 1390 data = JAP } } # Harbin
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/CHI_Isolationist.ai" }
-		command = { type = ai which = "Air_Ground.ai" }
-	}
-}
-################
-# China changes front ratio at Xi'An event
-#############################################
-event = {
-	id = 27013
-	random = no 
-	country = CHI
-	
-	trigger = {
-		ai = yes
-		event = 90
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = march year = 1937 }
-
-	action_a = {
-		command = { type = ai which = "switch/CHI_ChangeFrontRatio.ai" }
-	}
-}
-################
-# Guangxi Clique puts all his forces under Chinese control
-#############################################
-# 27014 deleted by Lothos
-
-################
-# Shanxi changes to defensive AI vs Japan
-#############################################
-# 27015 deleted by Lothos
-
-################
-# China loads new front garrison parms from CGX war
-########################################
-event = {
-	id = 27016
-	random = no
-	country = CHI
-
-	trigger = {
-		ai = yes
-		war = { country = CHI country = CGX }
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = june year = 1936 }
-	offset = 7
-	deathdate = { day = 30 month = august year = 1936 }
-
-	action_a = {
-		command = { type = ai which = "switch/CHI_After_CGX.ai" }
-	}
-}
-################
-# China loads initial Backoff AI
-########################################
-event = {
-	id = 27017
-	random = no
-	country = CHI
-
-	trigger = {
-		ai = yes
-		ai = JAP
-		war = { country = CHI country = JAP }
-		NOT = {war = { country = CHI country = CHC } }
-		NOT = {war = { country = CHI country = CGX } }
-		NOT = {war = { country = CHI country = CYN } }
-		NOT = {war = { country = CHI country = CSX } }
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ChinaBackoff }
-		command = { type = ai which = "switch/CHI_Backoff.ai" }
-	}
-}
-################
-# China lost to much to JAP go back on the attack
-#############################################
-event = {
-	id = 27018
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		ai = JAP
-		NOT = { local_flag = ChinaBackoff }
-		war = { country = CHI country = JAP }
-		OR = {
-			AND = {
-				year = 1937
-				NOT = { year = 1939 }
-				OR = {
-					AND = {
-						lost_national = { country = CHI value = 35 }
-						NOT = { control = { province = 1320 data = JAP } }
-						NOT = { control = { province = 1321 data = JAP } }
-					}
-					AND = {
-						lost_national = { country = CHI value = 40 }
-						OR = {
-							control = { province = 1320 data = JAP }
-							control = { province = 1321 data = JAP }
-						}
-					}
-				}
-			}
-			AND = {
-				year = 1939
-				NOT = { year = 1941 }
-				OR = {
-					AND = {
-						lost_national = { country = CHI value = 38 }
-						NOT = { control = { province = 1320 data = JAP } }
-						NOT = { control = { province = 1321 data = JAP } }
-					}
-					AND = {
-						lost_national = { country = CHI value = 43 }
-						OR = {
-							control = { province = 1320 data = JAP }
-							control = { province = 1321 data = JAP }
-						}
-					}
-				}
-			}
-			AND = {
-				year = 1941
-				OR = {
-					AND = {
-						lost_national = { country = CHI value = 40 }
-						NOT = { control = { province = 1320 data = JAP } }
-						NOT = { control = { province = 1321 data = JAP } }
-					}
-					AND = {
-						lost_national = { country = CHI value = 45 }
-						OR = {
-							control = { province = 1320 data = JAP }
-							control = { province = 1321 data = JAP }
-						}
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = ChinaBackoff }
-		command = { type = ai which = "switch/CHI_Backoff_Remove.ai" }
-	}
-}
-################
-# China regained its areas go back on the defense
-#############################################
-event = {
-	id = 27019
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		ai = JAP
-		local_flag = ChinaBackoff
-		war = { country = CHI country = JAP }
-		NOT = {
-			AND = {
-				year = 1937
-				NOT = { year = 1939 }
-				OR = {
-					AND = {
-						lost_national = { country = CHI value = 35 }
-						NOT = { control = { province = 1320 data = JAP } }
-						NOT = { control = { province = 1321 data = JAP } }
-					}
-					AND = {
-						lost_national = { country = CHI value = 40 }
-						OR = {
-							control = { province = 1320 data = JAP }
-							control = { province = 1321 data = JAP }
-						}
-					}
-				}
-			}
-			AND = {
-				year = 1939
-				NOT = { year = 1941 }
-				OR = {
-					AND = {
-						lost_national = { country = CHI value = 38 }
-						NOT = { control = { province = 1320 data = JAP } }
-						NOT = { control = { province = 1321 data = JAP } }
-					}
-					AND = {
-						lost_national = { country = CHI value = 43 }
-						OR = {
-							control = { province = 1320 data = JAP }
-							control = { province = 1321 data = JAP }
-						}
-					}
-				}
-			}
-			AND = {
-				year = 1941
-				OR = {
-					AND = {
-						lost_national = { country = CHI value = 40 }
-						NOT = { control = { province = 1320 data = JAP } }
-						NOT = { control = { province = 1321 data = JAP } }
-					}
-					AND = {
-						lost_national = { country = CHI value = 45 }
-						OR = {
-							control = { province = 1320 data = JAP }
-							control = { province = 1321 data = JAP }
-						}
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ChinaBackoff }
-		command = { type = ai which = "switch/CHI_Backoff.ai" }
-	}
-}
-################
-# China receives EXP forces from warlords (Feeder AI)
-#############################################
-event = {
-	id = 27020
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { flag = ChinaFeeder1 }
-		OR = {
-			NOT = { flag = ChinaFeeder2 }
-			AND = {
-				flag = ChinaFeeder2
-				OR = {
-					AND = {
-						ai = JAP
-						land_percentage = { country = JAP value = 0.8 }
-					}
-					AND = {
-						NOT = { ai = JAP }
-						land_percentage = { country = JAP value = 1.3 }
-					}
-				}
-			}
-		}
-		NOT = { flag = ChinaFeeder3 }
-		NOT = { flag = ChinaFeeder4 }
-		NOT = { flag = ChinaFeeder5 }
-		NOT = { flag = ChinaFeeder6 }
-		NOT = { flag = ChinaFeeder7 }
-		war = { country = CHI country = JAP }
-		OR = {
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-			AND = {
-				day = 15
-				NOT = { day = 16 }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = setflag which = ChinaFeeder1 }
-		command = { type = clrflag which = ChinaFeeder2 }
-		command = { type = clrflag which = ChinaFeeder3 }
-		command = { type = clrflag which = ChinaFeeder4 }
-		command = { type = clrflag which = ChinaFeeder5 }
-		command = { type = clrflag which = ChinaFeeder6 }
-		command = { type = clrflag which = ChinaFeeder7 }
-	}
-}
-event = {
-	id = 27021
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		flag = ChinaFeeder1
-		NOT = { flag = ChinaFeeder2 }
-		OR = {
-			NOT = { flag = ChinaFeeder3 }
-			AND = {
-				flag = ChinaFeeder3
-				OR = {
-					AND = {
-						ai = JAP
-						land_percentage = { country = JAP value = 0.8 }
-					}
-					AND = {
-						NOT = { ai = JAP }
-						land_percentage = { country = JAP value = 1.3 }
-					}
-				}
-			}
-		}
-		NOT = { flag = ChinaFeeder4 }
-		NOT = { flag = ChinaFeeder5 }
-		NOT = { flag = ChinaFeeder6 }
-		NOT = { flag = ChinaFeeder7 }
-		war = { country = CHI country = JAP }
-		OR = {
-			AND = {
-				day = 3
-				NOT = { day = 4 }
-			}
-			AND = {
-				day = 17
-				NOT = { day = 18 }
-			}
-		}
-		OR = {
-			AND = {
-				ai = JAP
-				NOT = { land_percentage = { country = JAP value = 0.7 } }
-			}
-			AND = {
-				NOT = { ai = JAP }
-				NOT = { land_percentage = { country = JAP value = 1.2 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = clrflag which = ChinaFeeder1 }
-		command = { type = setflag which = ChinaFeeder2 }
-		command = { type = clrflag which = ChinaFeeder3 }
-		command = { type = clrflag which = ChinaFeeder4 }
-		command = { type = clrflag which = ChinaFeeder5 }
-		command = { type = clrflag which = ChinaFeeder6 }
-		command = { type = clrflag which = ChinaFeeder7 }
-	}
-}
-event = {
-	id = 27022
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { flag = ChinaFeeder1 }
-		flag = ChinaFeeder2
-		NOT = { flag = ChinaFeeder3 }
-		OR = {
-			NOT = { flag = ChinaFeeder4 }
-			AND = {
-				flag = ChinaFeeder4
-				OR = {
-					AND = {
-						ai = JAP
-						land_percentage = { country = JAP value = 0.8 }
-					}
-					AND = {
-						NOT = { ai = JAP }
-						land_percentage = { country = JAP value = 1.3 }
-					}
-				}
-			}
-		}
-		NOT = { flag = ChinaFeeder5 }
-		NOT = { flag = ChinaFeeder6 }
-		NOT = { flag = ChinaFeeder7 }
-		war = { country = CHI country = JAP }
-		OR = {
-			AND = {
-				day = 5
-				NOT = { day = 6 }
-			}
-			AND = {
-				day = 19
-				NOT = { day = 20 }
-			}
-		}
-		OR = {
-			AND = {
-				ai = JAP
-				NOT = { land_percentage = { country = JAP value = 0.7 } }
-			}
-			AND = {
-				NOT = { ai = JAP }
-				NOT = { land_percentage = { country = JAP value = 1.2 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = clrflag which = ChinaFeeder1 }
-		command = { type = clrflag which = ChinaFeeder2 }
-		command = { type = setflag which = ChinaFeeder3 }
-		command = { type = clrflag which = ChinaFeeder4 }
-		command = { type = clrflag which = ChinaFeeder5 }
-		command = { type = clrflag which = ChinaFeeder6 }
-		command = { type = clrflag which = ChinaFeeder7 }
-	}
-}
-event = {
-	id = 27023
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { flag = ChinaFeeder1 }
-		NOT = { flag = ChinaFeeder2 }
-		flag = ChinaFeeder3
-		NOT = { flag = ChinaFeeder4 }
-		OR = {
-			NOT = { flag = ChinaFeeder5 }
-			AND = {
-				flag = ChinaFeeder5
-				OR = {
-					AND = {
-						ai = JAP
-						land_percentage = { country = JAP value = 0.8 }
-					}
-					AND = {
-						NOT = { ai = JAP }
-						land_percentage = { country = JAP value = 1.3 }
-					}
-				}
-			}
-		}
-		NOT = { flag = ChinaFeeder6 }
-		NOT = { flag = ChinaFeeder7 }
-		war = { country = CHI country = JAP }
-		OR = {
-			AND = {
-				day = 7
-				NOT = { day = 8 }
-			}
-			AND = {
-				day = 21
-				NOT = { day = 22 }
-			}
-		}
-		OR = {
-			AND = {
-				ai = JAP
-				NOT = { land_percentage = { country = JAP value = 0.7 } }
-			}
-			AND = {
-				NOT = { ai = JAP }
-				NOT = { land_percentage = { country = JAP value = 1.2 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = clrflag which = ChinaFeeder1 }
-		command = { type = clrflag which = ChinaFeeder2 }
-		command = { type = clrflag which = ChinaFeeder3 }
-		command = { type = setflag which = ChinaFeeder4 }
-		command = { type = clrflag which = ChinaFeeder5 }
-		command = { type = clrflag which = ChinaFeeder6 }
-		command = { type = clrflag which = ChinaFeeder7 }
-	}
-}
-event = {
-	id = 27024
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { flag = ChinaFeeder1 }
-		NOT = { flag = ChinaFeeder2 }
-		NOT = { flag = ChinaFeeder3 }
-		flag = ChinaFeeder4
-		NOT = { flag = ChinaFeeder5 }
-		OR = {
-			NOT = { flag = ChinaFeeder6 }
-			AND = {
-				flag = ChinaFeeder6
-				OR = {
-					AND = {
-						ai = JAP
-						land_percentage = { country = JAP value = 0.8 }
-					}
-					AND = {
-						NOT = { ai = JAP }
-						land_percentage = { country = JAP value = 1.3 }
-					}
-				}
-			}
-		}
-		NOT = { flag = ChinaFeeder7 }
-		war = { country = CHI country = JAP }
-		OR = {
-			AND = {
-				day = 9
-				NOT = { day = 10 }
-			}
-			AND = {
-				day = 23
-				NOT = { day = 24 }
-			}
-		}
-		OR = {
-			AND = {
-				ai = JAP
-				NOT = { land_percentage = { country = JAP value = 0.7 } }
-			}
-			AND = {
-				NOT = { ai = JAP }
-				NOT = { land_percentage = { country = JAP value = 1.2 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = clrflag which = ChinaFeeder1 }
-		command = { type = clrflag which = ChinaFeeder2 }
-		command = { type = clrflag which = ChinaFeeder3 }
-		command = { type = clrflag which = ChinaFeeder4 }
-		command = { type = setflag which = ChinaFeeder5 }
-		command = { type = clrflag which = ChinaFeeder6 }
-		command = { type = clrflag which = ChinaFeeder7 }
-	}
-}
-event = {
-	id = 27025
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { flag = ChinaFeeder1 }
-		NOT = { flag = ChinaFeeder2 }
-		NOT = { flag = ChinaFeeder3 }
-		NOT = { flag = ChinaFeeder4 }
-		flag = ChinaFeeder5
-		NOT = { flag = ChinaFeeder6 }
-		OR = {
-			NOT = { flag = ChinaFeeder7 }
-			AND = {
-				flag = ChinaFeeder7
-				OR = {
-					AND = {
-						ai = JAP
-						land_percentage = { country = JAP value = 0.8 }
-					}
-					AND = {
-						NOT = { ai = JAP }
-						land_percentage = { country = JAP value = 1.3 }
-					}
-				}
-			}
-		}
-		war = { country = CHI country = JAP }
-		OR = {
-			AND = {
-				day = 11
-				NOT = { day = 12 }
-			}
-			AND = {
-				day = 25
-				NOT = { day = 26 }
-			}
-		}
-		OR = {
-			AND = {
-				ai = JAP
-				NOT = { land_percentage = { country = JAP value = 0.7 } }
-			}
-			AND = {
-				NOT = { ai = JAP }
-				NOT = { land_percentage = { country = JAP value = 1.2 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = clrflag which = ChinaFeeder1 }
-		command = { type = clrflag which = ChinaFeeder2 }
-		command = { type = clrflag which = ChinaFeeder3 }
-		command = { type = clrflag which = ChinaFeeder4 }
-		command = { type = clrflag which = ChinaFeeder5 }
-		command = { type = setflag which = ChinaFeeder6 }
-		command = { type = clrflag which = ChinaFeeder7 }
-	}
-}
-event = {
-	id = 27026
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { flag = ChinaFeeder1 }
-		NOT = { flag = ChinaFeeder2 }
-		NOT = { flag = ChinaFeeder3 }
-		NOT = { flag = ChinaFeeder4 }
-		NOT = { flag = ChinaFeeder5 }
-		flag = ChinaFeeder6
-		NOT = { flag = ChinaFeeder7 }
-		war = { country = CHI country = JAP }
-		OR = {
-			AND = {
-				day = 13
-				NOT = { day = 14 }
-			}
-			AND = {
-				day = 27
-				NOT = { day = 28 }
-			}
-		}
-		OR = {
-			AND = {
-				ai = JAP
-				NOT = { land_percentage = { country = JAP value = 0.7 } }
-			}
-			AND = {
-				NOT = { ai = JAP }
-				NOT = { land_percentage = { country = JAP value = 1.2 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = clrflag which = ChinaFeeder1 }
-		command = { type = clrflag which = ChinaFeeder2 }
-		command = { type = clrflag which = ChinaFeeder3 }
-		command = { type = clrflag which = ChinaFeeder4 }
-		command = { type = clrflag which = ChinaFeeder5 }
-		command = { type = clrflag which = ChinaFeeder6 }
-		command = { type = setflag which = ChinaFeeder7 }
-	}
-}
-event = {
-	id = 27027
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = no
-		OR = {
-			flag = ChinaFeeder1
-			flag = ChinaFeeder2
-			flag = ChinaFeeder3
-			flag = ChinaFeeder4
-			flag = ChinaFeeder5
-			flag = ChinaFeeder6
-			flag = ChinaFeeder7
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = clrflag which = ChinaFeeder1 }
-		command = { type = clrflag which = ChinaFeeder2 }
-		command = { type = clrflag which = ChinaFeeder3 }
-		command = { type = clrflag which = ChinaFeeder4 }
-		command = { type = clrflag which = ChinaFeeder5 }
-		command = { type = clrflag which = ChinaFeeder6 }
-		command = { type = clrflag which = ChinaFeeder7 }
-	}
-}
-################
-# Concetrate on upgrading while at peace
-#############################################
-event = {
-	id = 27028
-	random = no
-	country = CHI
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		atwar = no
-		NOT = { local_flag = UPGPeace }
-	}
-
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	name = "AI_EVENT"
-	style = 0
-
-	action_a = {
-		command = { type = ai which = "switch/Minor_Upg_Peace.ai" }
-		command = { type = local_setflag which = UPGPeace }
-	}
-}
-event = {
-	id = 27029
-	random = no
-	country = CHI
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		atwar = yes
-		local_flag = UPGPeace
-	}
-
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	name = "AI_EVENT"
-	style = 0
-
-	action_a = {
-		command = { type = ai which = "switch/Minor_Upg_War.ai" }
-		command = { type = local_clrflag which = UPGPeace }
-	}
-}
-################
-# CHina AI Slider manipulation
-#
-#	Interventionism
-#############################################
-event = { # Interventionism
-	id = 27030
-	random = no
-	country = CHI
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = interventionism value = 1}
-		NOT = { domestic = { type = interventionism value = 9 } }
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = interventionism value = 1 }
-	}
-}
-################
-#	Hawk Lobby
-#############################################
-event = { # Hawk Lobby
-	id = 27031
-	random = no
-	country = CHI
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = defense_lobby value = 1}
-		NOT = { domestic = { type = defense_lobby value = 9 } }
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = defense_lobby value = 1 }
-	}
-}
-################
-#	Standing Army
-#############################################
-event = { # Standing Army
-	id = 27032
-	random = no
-	country = CHI
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = professional_army value = 1}
-		NOT = { domestic = { type = professional_army value = 9 } }
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = professional_army value = 1 }
-	}
-}
-
-
-
-####################################
-# China 27500 - 27599 = Minister Change Events
-####################################
-################
-# Minister of Security Section 22500 - 22509
-#############################################
-event = { # Dai Li takes power
-	id = 27500
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 52063 # Dai Li
-		NOT = { InCabinet = 52063 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 52063 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Staff Section 27510 - 27519
-#############################################
-event = { # Bai Chongxi takes power
-	id = 27510
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 52088 # Bai Chongxi
-		NOT = { InCabinet = 52088 }
-		OR = {
-			NOT = { manpower = 400 }
-			NOT = {
-				atwar = yes
-				NOT = { minister = 52093 } # Xu Zuyi
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 52088 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Xu Zuyi takes power
-	id = 27511
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		manpower = 400
-		minister = 52093 # Xu Zuyi
-		NOT = { InCabinet = 52093 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 52093 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Head of Intelligence Section 27520 - 27529
-#############################################
-event = { # He Yaozu takes power
-	id = 27520
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 52079 # He Yaozu
-		NOT = { InCabinet = 52079 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 52079 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of the Army Section 27530 - 27539
-#############################################
-event = { # Gu Zhutong takes power
-	id = 27530
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 52097 # Gu Zhutong
-		NOT = { InCabinet = 52097 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 52097 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Zhang Xueliang takes power
-	id = 27531
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 52008 # Zhang Xueliang
-		NOT = { InCabinet = 52008 }
-		NOT = { minister = 52097 } # Zhang Xueliang
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 52008 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Armament Minister Section 27540 - 27549
-#############################################
-event = { # Huang Chenzuo takes power
-	id = 27540
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 52047 # Huang Chenzuo
-		NOT = { InCabinet = 52047 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 52047 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Bai Chongxi takes power
-	id = 27541
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 52045 # Bai Chongxi Chenzuo
-		NOT = { InCabinet = 52045 }
-		NOT = { minister = 52047 } # Huang Chenzuo
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 52045 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Air Minister Section 27550 - 27559
-#############################################
-event = { # Huang Chenzuo takes power
-	id = 27550
-	random = no 
-	country = CHI
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 52108 # Huang Chenzuo
-		NOT = { InCabinet = 52108 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 52108 }
-		command = { type = dissent value = -1 }
-	}
-}
-
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/AI_ITA.txt Doomsday Data Files/db/events/AI_ITA.txt
--- Doomsday Data Files.old/db/events/AI_ITA.txt	2008-03-28 10:46:23.000000000 +0100
+++ Doomsday Data Files/db/events/AI_ITA.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,1538 +1 @@
-####################################
-# Italy 26000 - 26999 by Lothos
-####################################
-# Who he is invading flags
-#	ITAInvadeGreece		= Prepare for the invasion of Greece
-#	ITAInvadeRussia		= Not actual war prep but send exp forces to Germany if allied
-
-# Behavior Flags
-#	ITADefendItaly		= Homeland defense AI
-#	ITABuildStandard	= Standard builds
-#	ITABuildLand		= Build Heavy on Land units
-
-# Air AI Flags
-#	ITAAirAINaval		= Priority on Naval targets
-#	ITAAirAIGround		= Priority on Ground targets
-
-# Naval AI Flags
-#	ITANavalStandard	= Protect the central part of the med
-#	ITANavalEthiopia	= Support Ethiopia
-#	ITANavalGreece		= Support Greece invasion
-#	ITANavalWestMed		= Support Spanish Invasion of Western Med is secured
-#	ITANavalEastMed		= Support Eastern med as it is secured
-#	ITANavalAllMed		= All of the Med is secured
-
-################
-# Italy changes political stance in war
-#############################################
-event = {
-	id = 26000
-	random = no 
-	country = ITA
-
-	trigger = {
-		ai = yes
-		OR = {
-			AND = {
-				# Belgium
-				control = { province = 45 data = GER }
-				control = { province = 50 data = GER }
-				control = { province = 51 data = GER }
-				control = { province = 52 data = GER }
-				control = { province = 65 data = GER }
-				control = { province = 68 data = GER }
-				control = { province = 69 data = GER }
-				control = { province = 70 data = GER }
-				random = 30
-			}
-			control = { province = 56 data = GER } # Paris
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ITA_Neutrality.ai" }
-	}
-}
-################
-# Italy prepares for Greece invasion
-#############################################
-event = {
-	id = 26001
-	random = no 
-	country = ITA
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		exists = GRE
-		atwar = no
-		control = { province = 390 data = ITA }
-		control = { province = 391 data = ITA }
-		NOT = { alliance = { country = GER country = GRE } }
-		NOT = { alliance = { country = ITA country = GRE } }
-		NOT = { local_flag = ITADefendItaly }
-		NOT = { local_flag = ITAInvadeGreece }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = ITAInvadeGreece }
-		command = { type = local_clrflag which = ITAInvadeRussia }
-		command = { type = ai which = "switch/ITA_Greece_Buildup.ai" }
-	}
-}
-################
-# Italy invades Greece
-#############################################
-event = {
-	id = 26002
-	random = no 
-	country = ITA
-
-	trigger = {
-		ai = yes
-		local_flag = ITAInvadeGreece
-		NOT = { local_flag = ITADefendItaly }
-		OR = {
-			NOT = { exists = GRE }
-			AND = {
-				NOT = { exists = YUG }
-				control = { province = 390 data = ITA }
-				control = { province = 391 data = ITA }
-			}
-			AND = {
-				exists = GRE
-				NOT = { war = { country = ITA country = GRE } }
-				NOT = { alliance = { country = GER country = GRE } }
-				NOT = { alliance = { country = ITA country = GRE } }
-				random = 15
-				NOT = { war = { country = ITA country = USA } }
-				control = { province = 390 data = ITA }
-				control = { province = 391 data = ITA }
-				OR = {
-					garrison = { country = ITA province = 390 type = land size = 4 area = no } # Tirana
-					garrison = { country = ITA province = 391 type = land size = 4 area = no } # Vlore
-				}
-				OR = {
-					month = 9 # October
-					AND = {
-						month = 0 # January
-						NOT = { month = 1 } # Febuary
-					}
-				}
-				NOT = { local_flag = ITADefendItaly }
-				OR = {
-					exists = VIC
-					control = { province = 56 data = GER } # Paris
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = war which = GRE }
-		command = { type = ai which = "switch/ITA_Greece_Attack.ai" }
-		command = { type = sleepevent which = 26001 }
-		command = { type = local_clrflag which = ITAInvadeGreece }
-	}
-}
-################
-# Italy atwar with Russia
-#############################################
-event = {
-	id = 26004
-	random = no 
-	country = ITA
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		alliance = { country = ITA country = GER }
-		NOT = { local_flag = ITAInvadeRussia }
-		NOT = { local_flag = ITADefendItaly }
-		NOT = { local_flag = ITAInvadeGreece }
-		OR = {
-			war = { country = ITA country = SOV }
-			war = { country = ITA country = USA }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 30 month = february year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ITA_Russia.ai" }
-		command = { type = local_setflag which = ITAInvadeRussia }
-	}
-}
-################
-# Italy reset garrison after Ethiopia war
-#############################################
-event = {
-	id = 26005
-	random = no 
-	country = ITA
-
-	trigger = {
-		ai = yes
-		NOT = { war = { country = ITA country = ETH } }
-	}
-	
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ITA_Reset_Garrison.ai" }
-	}
-}
-	
-################
-# Italy defends the homeland
-#############################################
-event = {
-	id = 26006
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = ITADefendItaly }
-		OR = {
-			AND = { # Means they attacked Italy
-				lost_national = { country = ITA value = 2 }
-				control = { province = 534 data = ITA } # Sardinia
-			}
-			AND = { # Means they attacked Italy
-				lost_national = { country = ITA value = 10 }
-				NOT = { control = { province = 534 data = ITA } }# Sardinia
-			}
-			AND = { # Means they are preparing to attack Italy
-				# Libya
-				NOT = { control = { province = 932 data = ITA } }
-				NOT = { control = { province = 924 data = ITA } }
-				NOT = { control = { province = 919 data = ITA } }
-			}
-			
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = ITADefendItaly }
-		command = { type = local_clrflag which = ITAInvadeRussia }
-		command = { type = ai which = "switch/ITA_Homeland.ai" }
-	}
-}
-################
-# Italy sends troops back out
-#############################################
-event = {
-	id = 26007
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ITADefendItaly
-		NOT = {
-			AND = { # Means they attacked Italy
-				lost_national = { country = ITA value = 2 }
-				control = { province = 534 data = ITA } # Sardinia
-			}
-			AND = { # Means they attacked Italy
-				lost_national = { country = ITA value = 10 }
-				NOT = { control = { province = 534 data = ITA } }# Sardinia
-			}
-			AND = { # Means they are preparing to attack Italy
-				# Libya
-				NOT = { control = { province = 932 data = ITA } }
-				NOT = { control = { province = 924 data = ITA } }
-				NOT = { control = { province = 919 data = ITA } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ITADefendItaly }
-		command = { type = ai which = "switch/ITA_Homeland_Normal.ai" }
-	}
-}
-################
-# Italy Air AI Naval portion
-#############################################
-event = {
-	id = 26008
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = ITAAirAINaval }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		# These statements must be true to load the Naval Air AI
-		OR = {
-			AND = {
-				war = { country = ENG country = ITA }
-				NOT = { lost_national = { country = ITA value = 2 } }
-				OR = {
-					# Central Med
-					garrison = { country = ENG province = 2439  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2437  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2438  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2441  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2440  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2442  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2443  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2448  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2446  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2445  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2444  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = FRA country = ITA }
-				NOT = { lost_national = { country = ITA value = 2 } }
-				OR = {
-					# Central Med
-					garrison = { country = FRA province = 2439  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2437  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2438  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2441  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2440  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2442  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2443  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2448  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2446  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2445  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2444  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = USA country = ITA }
-				NOT = { lost_national = { country = ITA value = 2 } }
-				OR = {
-					# Central Med
-					garrison = { country = USA province = 2439  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2437  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2438  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2441  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2440  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2442  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2443  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2448  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2446  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2445  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2444  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = SOV country = ITA }
-				NOT = { lost_national = { country = ITA value = 2 } }
-				OR = {
-					# Central Med
-					garrison = { country = SOV province = 2439  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2437  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2438  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2441  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2440  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2442  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2443  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2448  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2446  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2445  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2444  type = naval size = 2 area = no }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = ITAAirAINaval }
-		command = { type = local_clrflag which = ITAAirAIGround }
-		command = { type = ai which = "switch/ITA_Air_Naval.ai" }
-	}
-}
-################
-# Italy Air AI Ground portion
-#############################################
-event = {
-	id = 26009
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = ITAAirAIGround }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		# These statements must be true to load the GRound Air AI
-		NOT = {
-			AND = {
-				war = { country = ENG country = ITA }
-				NOT = { lost_national = { country = ITA value = 2 } }
-				OR = {
-					# Central Med
-					garrison = { country = ENG province = 2439  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2437  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2438  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2441  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2440  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2442  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2443  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2448  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2446  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2445  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2444  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = FRA country = ITA }
-				NOT = { lost_national = { country = ITA value = 2 } }
-				OR = {
-					# Central Med
-					garrison = { country = FRA province = 2439  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2437  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2438  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2441  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2440  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2442  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2443  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2448  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2446  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2445  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2444  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = USA country = ITA }
-				NOT = { lost_national = { country = ITA value = 2 } }
-				OR = {
-					# Central Med
-					garrison = { country = USA province = 2439  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2437  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2438  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2441  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2440  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2442  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2443  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2448  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2446  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2445  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2444  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = SOV country = ITA }
-				NOT = { lost_national = { country = ITA value = 2 } }
-				OR = {
-					# Central Med
-					garrison = { country = SOV province = 2439  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2437  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2438  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2441  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2440  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2442  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2443  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2448  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2446  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2445  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2444  type = naval size = 2 area = no }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ITAAirAINaval }
-		command = { type = local_setflag which = ITAAirAIGround }
-		command = { type = ai which = "switch/ITA_Air_Ground.ai" }
-	}
-}
-################
-# Italy standard Naval AI
-#############################################
-event = {
-	id = 26010
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		OR = {
-			NOT = { local_flag = ITANavalStandard }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		NOT = { war = { country = GRE country = ITA } }
-		NOT = { war = { country = TUR country = ITA } }
-		NOT = {
-			OR = {
-				control = { province = 906 data = ITA } # Alexandria
-				AND = {
-					alliance = { country = GER country = ITA }
-					control = { province = 906 data = GER } # Alexandria
-				}
-			}
-			OR = {
-				war = { country = SPR country = ITA }
-				war = { country = SPA country = ITA }
-				control = { province = 354 data = ITA } # Valencia
-				AND = {
-					alliance = { country = GER country = ITA }
-					control = { province = 354 data = GER } # Valencia
-				}
-			}
-			AND = {
-				NOT = { war = { country = ENG country = ITA } }
-				NOT = { war = { country = FRA country = ITA } }
-				NOT = { war = { country = USA country = ITA } }
-				NOT = { war = { country = SPR country = ITA } }
-				NOT = { war = { country = SPA country = ITA } }
-				OR = {
-					war = { country = ETH country = ITA }
-					AND = {
-						year = 1936
-						NOT = { year = 1937 }
-						OR = {
-							NOT = { exists = ETH }
-							puppet = { country = ETH country = ITA }
-						}
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = ITANavalStandard }
-		command = { type = local_clrflag which = ITANavalEthiopia }
-		command = { type = local_clrflag which = ITANavalGreece }
-		command = { type = local_clrflag which = ITANavalWestMed }
-		command = { type = local_clrflag which = ITANavalEastMed }
-		command = { type = local_clrflag which = ITANavalAllMed }
-		command = { type = ai which = "switch/ITA_Naval_Standard.ai" }
-	}
-}
-################
-# Italy Ethiopia Naval AI
-#############################################
-event = {
-	id = 26011
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = ITANavalEthiopia }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		NOT = { war = { country = ENG country = ITA } }
-		NOT = { war = { country = FRA country = ITA } }
-		NOT = { war = { country = USA country = ITA } }
-		NOT = { war = { country = SPR country = ITA } }
-		NOT = { war = { country = SPA country = ITA } }
-		OR = {
-			war = { country = ETH country = ITA }
-			AND = {
-				year = 1936
-				NOT = { year = 1937 }
-				OR = {
-					NOT = { exists = ETH }
-					puppet = { country = ETH country = ITA }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ITANavalStandard }
-		command = { type = local_setflag which = ITANavalEthiopia }
-		command = { type = local_clrflag which = ITANavalGreece }
-		command = { type = local_clrflag which = ITANavalWestMed }
-		command = { type = local_clrflag which = ITANavalEastMed }
-		command = { type = local_clrflag which = ITANavalAllMed }
-		command = { type = ai which = "switch/ITA_Naval_Ethiopia.ai" }
-	}
-}
-################
-# Italy Greece Naval AI
-#############################################
-event = {
-	id = 26012
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = ITANavalGreece }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		war = { country = GRE country = ITA }
-		NOT = {
-			OR = {
-				control = { province = 906 data = ITA } # Alexandria
-				AND = {
-					alliance = { country = GER country = ITA }
-					control = { province = 906 data = GER } # Alexandria
-				}
-			}
-			OR = {
-				war = { country = SPR country = ITA }
-				war = { country = SPA country = ITA }
-				control = { province = 354 data = ITA } # Valencia
-				AND = {
-					alliance = { country = GER country = ITA }
-					control = { province = 354 data = GER } # Valencia
-				}
-			}
-			AND = {
-				NOT = { war = { country = ENG country = ITA } }
-				NOT = { war = { country = FRA country = ITA } }
-				NOT = { war = { country = USA country = ITA } }
-				NOT = { war = { country = SPR country = ITA } }
-				NOT = { war = { country = SPA country = ITA } }
-				year = 1936
-				NOT = { year = 1937 }
-				OR = {
-					NOT = { exists = ETH }
-					puppet = { country = ETH country = ITA }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ITANavalStandard }
-		command = { type = local_clrflag which = ITANavalEthiopia }
-		command = { type = local_setflag which = ITANavalGreece }
-		command = { type = local_clrflag which = ITANavalWestMed }
-		command = { type = local_clrflag which = ITANavalEastMed }
-		command = { type = local_clrflag which = ITANavalAllMed }
-		command = { type = ai which = "switch/ITA_Naval_Greece.ai" }
-	}
-}
-################
-# Italy Western Med Naval AI
-#############################################
-event = {
-	id = 26013
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = ITANavalWestMed }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		NOT = { war = { country = GRE country = ITA } }
-		OR = {
-			war = { country = SPR country = ITA }
-			war = { country = SPA country = ITA }
-			control = { province = 354 data = ITA } # Valencia
-			AND = {
-				alliance = { country = GER country = ITA }
-				control = { province = 354 data = GER } # Valencia
-			}
-		}
-		NOT = {
-			OR = {
-				control = { province = 906 data = ITA } # Alexandria
-				AND = {
-					alliance = { country = GER country = ITA }
-					control = { province = 906 data = GER } # Alexandria
-				}
-			}
-			AND = {
-				NOT = { war = { country = ENG country = ITA } }
-				NOT = { war = { country = FRA country = ITA } }
-				NOT = { war = { country = USA country = ITA } }
-				NOT = { war = { country = SPR country = ITA } }
-				NOT = { war = { country = SPA country = ITA } }
-				year = 1936
-				NOT = { year = 1937 }
-				OR = {
-					NOT = { exists = ETH }
-					puppet = { country = ETH country = ITA }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ITANavalStandard }
-		command = { type = local_clrflag which = ITANavalEthiopia }
-		command = { type = local_clrflag which = ITANavalGreece }
-		command = { type = local_setflag which = ITANavalWestMed }
-		command = { type = local_clrflag which = ITANavalEastMed }
-		command = { type = local_clrflag which = ITANavalAllMed }
-		command = { type = ai which = "switch/ITA_Naval_WestMed.ai" }
-	}
-}
-################
-# Italy Eastern Med Naval AI
-#############################################
-event = {
-	id = 26014
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = ITANavalEastMed }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		NOT = { war = { country = GRE country = ITA } }
-		OR = {
-			control = { province = 906 data = ITA } # Alexandria
-			AND = {
-				alliance = { country = GER country = ITA }
-				control = { province = 906 data = GER } # Alexandria
-			}
-		}
-		NOT = {
-			AND = {
-				NOT = { war = { country = ENG country = ITA } }
-				NOT = { war = { country = FRA country = ITA } }
-				NOT = { war = { country = USA country = ITA } }
-				NOT = { war = { country = SPR country = ITA } }
-				NOT = { war = { country = SPA country = ITA } }
-				year = 1936
-				NOT = { year = 1937 }
-				OR = {
-					NOT = { exists = ETH }
-					puppet = { country = ETH country = ITA }
-				}
-			}
-			OR = {
-				war = { country = SPR country = ITA }
-				war = { country = SPA country = ITA }
-				control = { province = 354 data = ITA } # Valencia
-				AND = {
-					alliance = { country = GER country = ITA }
-					control = { province = 354 data = GER } # Valencia
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ITANavalStandard }
-		command = { type = local_clrflag which = ITANavalEthiopia }
-		command = { type = local_clrflag which = ITANavalGreece }
-		command = { type = local_clrflag which = ITANavalWestMed }
-		command = { type = local_setflag which = ITANavalEastMed }
-		command = { type = local_clrflag which = ITANavalAllMed }
-		command = { type = ai which = "switch/ITA_Naval_EastMed.ai" }
-	}
-}
-################
-# Italy All of the Med Naval AI
-#############################################
-event = {
-	id = 26015
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = ITANavalAllMed }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		NOT = { war = { country = GRE country = ITA } }
-		OR = {
-			control = { province = 906 data = ITA } # Alexandria
-			AND = {
-				alliance = { country = GER country = ITA }
-				control = { province = 906 data = GER } # Alexandria
-			}
-		}
-		OR = {
-			war = { country = SPR country = ITA }
-			war = { country = SPA country = ITA }
-			control = { province = 354 data = ITA } # Valencia
-			AND = {
-				alliance = { country = GER country = ITA }
-				control = { province = 354 data = GER } # Valencia
-			}
-		}
-		NOT = {
-			AND = {
-				NOT = { war = { country = ENG country = ITA } }
-				NOT = { war = { country = FRA country = ITA } }
-				NOT = { war = { country = USA country = ITA } }
-				NOT = { war = { country = SPR country = ITA } }
-				NOT = { war = { country = SPA country = ITA } }
-				year = 1936
-				NOT = { year = 1937 }
-				OR = {
-					NOT = { exists = ETH }
-					puppet = { country = ETH country = ITA }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ITANavalStandard }
-		command = { type = local_clrflag which = ITANavalEthiopia }
-		command = { type = local_clrflag which = ITANavalGreece }
-		command = { type = local_clrflag which = ITANavalWestMed }
-		command = { type = local_clrflag which = ITANavalEastMed }
-		command = { type = local_setflag which = ITANavalAllMed }
-		command = { type = ai which = "switch/ITA_Naval_AllMed.ai" }
-	}
-}
-################
-# Italy Ethiopia Naval AI
-#############################################
-event = {
-	id = 26016
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		OR = {
-			war = { country = ENG country = ITA }
-			war = { country = FRA country = ITA }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ITA_atwar_ENG_FRA.ai" }
-	}
-}
-################
-# Italy Build AI
-#	ITABuildStandard	= Standard builds
-#	ITABuildLand		= Build Heavy on Land units
-#############################################
-event = {
-	id = 26017
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = ITABuildLand }
-		OR = {
-			lost_national = { country = ITA value = 1 }
-			war = { country = GER country = ITA }
-			AND = {
-				ai = ENG
-				war = { country = ENG country = ITA }
-				land_percentage = { country = ENG value = 0.5 }
-			}
-			AND = {
-				NOT = { ai = ENG }
-				war = { country = ENG country = ITA }
-				land_percentage = { country = ENG value = 0.8 }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ITA_Build_Land.ai" }
-		command = { type = local_setflag which = ITABuildLand }
-		command = { type = local_clrflag which = ITABuildStandard }
-	}
-}
-event = {
-	id = 26018
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = ITABuildStandard }
-		NOT = {
-			lost_national = { country = ITA value = 1 }
-			war = { country = GER country = ITA }
-			AND = {
-				ai = ENG
-				war = { country = ENG country = ITA }
-				land_percentage = { country = ENG value = 0.5 }
-			}
-			AND = {
-				NOT = { ai = ENG }
-				war = { country = ENG country = ITA }
-				land_percentage = { country = ENG value = 0.8 }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ITA_Build_Standard.ai" }
-		command = { type = local_clrflag which = ITABuildLand }
-		command = { type = local_setflag which = ITABuildStandard }
-	}
-}
-#########################################################################
-#  Italy builds paratroopers
-#########################################################################
-event = {
-	id = 26019
-	random = no
-	country = ITA
-	persistent = yes
-	style = 0	
-
-	trigger = {
-		ai = yes
-		technology = 1070 # Airborne
-		transport_plane = { country = ITA value = 1 }
-		NOT = { paratrooper = { country = ITA value = 1 } }
-		NOT = { lost_national = { country = ITA value = 2 } }
-	}
-
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	name = "AI_EVENT"
-
-	action_a = {
-		command = { type = build_division which = paratrooper }
-	}
-}
-################
-# Italian AI Slider manipulation
-#
-#	Standing Army
-#############################################
-event = { # Standing Army
-	id = 26020
-	random = no
-	country = ITA
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = professional_army value = 1}
-		NOT = { domestic = { type = professional_army value = 9 } }
-		OR = {
-			ideology = nazi
-			ideology = fascist
-			ideology = leninist
-			ideology = stalinist
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = professional_army value = 1 }
-	}
-}
-event = { # Standing Army
-	id = 26021
-	random = no
-	country = ITA
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = professional_army value = -1}
-		domestic = { type = professional_army value = 0 }
-		NOT = {
-			ideology = nazi
-			ideology = fascist
-			ideology = leninist
-			ideology = stalinist
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = professional_army value = -1 }
-	}
-}
-################
-#	Hawk Lobby
-#############################################
-event = { # Hawk Lobby
-	id = 26022
-	random = no
-	country = ITA
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = defense_lobby value = 1}
-		AND = {
-			NOT = { domestic = { type = defense_lobby value = 9 } }
-			OR = {
-				ideology = nazi
-				ideology = fascist
-				ideology = leninist
-				ideology = stalinist
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = defense_lobby value = 1 }
-	}
-}
-event = { # Hawk Lobby
-	id = 26023
-	random = no
-	country = ITA
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = defense_lobby value = -1}
-		AND = {
-			domestic = { type = defense_lobby value = 0 }
-			NOT = {
-				ideology = nazi
-				ideology = fascist
-				ideology = leninist
-				ideology = stalinist
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = defense_lobby value = -1 }
-	}
-}
-################
-#	Interventionism
-#############################################
-event = { # Interventionism
-	id = 26024
-	random = no
-	country = ITA
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = interventionism value = 1}
-		OR = {
-			atwar = yes
-			AND = {
-				NOT = { domestic = { type = interventionism value = 9 } }
-				OR = {
-					ideology = nazi
-					ideology = fascist
-					ideology = leninist
-					ideology = stalinist
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = interventionism value = 1 }
-	}
-}
-
-
-
-
-
-
-
-####################################
-# Italy 26500 - 26599 = Minister Change Events
-####################################
-################
-# Minister of Security Section 26500 - 26509
-#############################################
-################
-# Chief of Staff Section 26510 - 26519
-#############################################
-event = { # Francesco Grazioli takes power
-	id = 26510
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		minister = 3007 # Francesco Grazioli
-		NOT = { InCabinet = 3007 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 3007 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Mario Cingolani takes power
-	id = 26511
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = no
-		minister = 3130 # Mario Cingolani
-		NOT = { InCabinet = 3130 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 3130 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Head of Intelligence Section 26520 - 26529
-#############################################
-event = { # Umberto Ricci takes power
-	id = 26520
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 3016 # Umberto Ricci
-		NOT = { InCabinet = 3016 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 3016 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Dino Grandi takes power
-	id = 26521
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		NOT = { minister = 3016 } # Umberto Ricci
-		minister = 3109 # Dino Grandi
-		NOT = { InCabinet = 3109 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 3109 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of the Army Section 26530 - 26539
-#############################################
-event = { # Rodolfo Graziani takes power
-	id = 26530
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		minister = 3139 # Rodolfo Graziani
-		NOT = { InCabinet = 3139 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 3139 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Alberto Pariani takes power
-	id = 26531
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = no
-		minister = 3008 # Alberto Pariani
-		NOT = { InCabinet = 3008 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 3008 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Armament Minister Section 26540 - 26549
-#############################################
-event = { # Ubaldo Soddu takes power
-	id = 26540
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 3066 # Ubaldo Soddu
-		NOT = { InCabinet = 3066 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 3066 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Benito Mussolini takes power
-	id = 26541
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 3004 # Benito Mussolini
-		NOT = { InCabinet = 3004 }
-		NOT = { minister = 3066 } # Benito Mussolini
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 3004 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Air Minister Section 22550 - 22559
-# Air AI Flags
-#	ITAAirAINaval		= Priority on Naval targets
-#	ITAAirAIGround		= Priority on Ground targets
-#############################################
-event = { # Francesco Pricolo takes power
-	id = 26550
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ITAAirAINaval
-		minister = 3160 # Francesco Pricolo
-		NOT = { InCabinet = 3160 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 3160 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Rino Corso Fougier takes power
-	id = 26551
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ITAAirAIGround
-		minister = 3161 # Rino Corso Fougier
-		NOT = { InCabinet = 3161 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 3161 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Giuseppe Valle takes power
-	id = 26552
-	random = no 
-	country = ITA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ITAAirAIGround
-		NOT = { minister = 3161 } # Rino Corso Fougier
-		minister = 3010 # Giuseppe Valle
-		NOT = { InCabinet = 3010 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 3010 }
-		command = { type = dissent value = -1 }
-	}
-}
\ No newline at end of file
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/AI_MAN.txt Doomsday Data Files/db/events/AI_MAN.txt
--- Doomsday Data Files.old/db/events/AI_MAN.txt	2008-03-28 10:46:23.000000000 +0100
+++ Doomsday Data Files/db/events/AI_MAN.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,298 +1 @@
-####################################
-# Manchuria AI events 36500 - 36599 by Lothos
-####################################
-################
-# Minister of Security Section 36500 - 36509
-#############################################
-event = { # Soume Tcheng takes power
-	id = 36500
-	random = no 
-	country = MAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 58036 # Soume Tcheng
-		NOT = { InCabinet = 58036 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 58036 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Staff Section 36510 - 36519
-#############################################
-event = { # Kawashima Yoshiko takes power
-	id = 36510
-	random = no 
-	country = MAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 58050 # Kawashima Yoshiko
-		NOT = { InCabinet = 58050 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 58050 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Head of Intelligence Section 36520 - 36529
-#############################################
-event = { # Matsuyama Shinjiro takes power
-	id = 36520
-	random = no 
-	country = MAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 58045 # Matsuyama Shinjiro
-		NOT = { InCabinet = 58045 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 58045 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of the Army Section 36530 - 36539
-#############################################
-event = { # Kawashima Yoshiko takes power
-	id = 36530
-	random = no 
-	country = MAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 58056 # Kawashima Yoshiko
-		NOT = { InCabinet = 58056 }
-		OR = {
-			atwar = no
-			NOT = { minister = 58008 } # Chi Hsing
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 58056 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Chi Hsing takes power
-	id = 36531
-	random = no 
-	country = MAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 58008 # Chi Hsing
-		NOT = { InCabinet = 58008 }
-		OR = {
-			atwar = yes
-			NOT = { minister = 58056 } # Kawashima Yoshiko
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 58008 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Armament Minister Section 36540 - 36549
-#############################################
-event = { # Li Shao-keng takes power
-	id = 36540
-	random = no 
-	country = MAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 58004 # Li Shao-keng
-		NOT = { InCabinet = 58004 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 58004 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Air Minister Section 36550 - 36559
-#############################################
-event = { # Isono Yuzo takes power
-	id = 36550
-	random = no 
-	country = MAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 58068 # Isono Yuzo
-		NOT = { InCabinet = 58068 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 58068 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Navy Minister Section 36560 - 36569
-#############################################
-event = { # Yin Tsuo-chien takes power
-	id = 36560
-	random = no 
-	country = MAN
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 58062 # Yin Tsuo-chien
-		NOT = { InCabinet = 58062 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofnavy which = 58062 }
-		command = { type = dissent value = -1 }
-	}
-}
-
-
-
-
-
-
-
-#############################################
-# Regular AI Events 36570 - 36599
-#############################################
-################
-# Manchuria sends EXP forces to Japan
-#############################################
-event = {
-	id = 36570
-	random = no 
-	country = MAN
-	
-	trigger = {
-		ai = yes
-		OR = {
-			war = { country = JAP country = USA }
-			AND = {
-				NOT = { ai = CHI }
-				war = { country = JAP country = CHI }
-			}
-		}
-		alliance = { country = JAP country = MAN }
-		OR = {
-			ai = SOV
-			AND = {
-				NOT = { ai = SOV }
-				NOT = { war = { country = SOV country = MAN } }
-				OR = {
-					war = { country = SOV country = GER }
-					alliance = { country = SOV country = GER }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/EXP_80.ai" }
-	}
-}
-event = {
-	id = 36571
-	random = no 
-	country = MAN
-	
-	trigger = {
-		ai = yes
-		war = { country = SOV country = MAN }
-		alliance = { country = JAP country = MAN }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/EXP_100.ai" }
-	}
-}
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/AI_MON.txt Doomsday Data Files/db/events/AI_MON.txt
--- Doomsday Data Files.old/db/events/AI_MON.txt	2008-03-28 10:46:23.000000000 +0100
+++ Doomsday Data Files/db/events/AI_MON.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,107 +1 @@
-####################################
-# Mongolia AI events 35400 - 35499 by Lothos
-####################################
-################
-# Minister of Security Section 35400 - 35409
-#############################################
-################
-# Chief of Staff Section 35410 - 35419
-#############################################
-################
-# Head of Intelligence Section 35420 - 35429
-#############################################
-################
-# Chief of the Army Section 35430 - 35439
-#############################################
-################
-# Armament Minister Section 35440 - 35449
-#############################################
-
-
-
-
-
-
-
-#############################################
-# Regular AI Events 35460 - 35499
-#############################################
-# Behavior Flags
-#	MONReleaseEXP		= Release EXP forces to the soviets
-################
-#  Release EXP forces to SOV for major conflict
-#############################################
-event = {
-	id = 35463
-	random = no
-	country = MON
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		NOT = { local_flag = MONReleaseEXP }
-		alliance = { country = SOV country = MON }
-		OR = {
-			AND = {
-				lost_national = { country = SOV value = 35 }
-				atwar = SOV
-			}
-			war = { country = SOV country = JAP }
-			war = { country = SOV country = CHI }
-		}
-		
-	}
-
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	name = "AI_EVENT"
-	style = 0
-
-	action_a = {
-		command = { type = ai which = "switch/Minor_EXP_Release.ai" }
-		command = { type = local_setflag which = MONReleaseEXP }
-	}
-}
-event = {
-	id = 35464
-	random = no
-	country = MON
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		local_flag = TANReleaseEXP
-		alliance = { country = SOV country = MON }
-		NOT = {
-			AND = {
-				lost_national = { country = SOV value = 1 }
-				atwar = SOV
-			}
-			war = { country = SOV country = GER }
-			war = { country = SOV country = JAP }
-			war = { country = SOV country = ENG }
-			war = { country = SOV country = FRA }
-			war = { country = SOV country = USA }
-			war = { country = SOV country = ITA }
-			war = { country = SOV country = TUR }
-			war = { country = SOV country = CHI }
-		}
-		
-	}
-
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	name = "AI_EVENT"
-	style = 0
-
-	action_a = {
-		command = { type = ai which = "switch/Minor_EXP_Retrack.ai" }
-		command = { type = local_setflag which = MONReleaseEXP }
-	}
-}
\ No newline at end of file
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/AI_NZL.txt Doomsday Data Files/db/events/AI_NZL.txt
--- Doomsday Data Files.old/db/events/AI_NZL.txt	2008-03-28 10:46:23.000000000 +0100
+++ Doomsday Data Files/db/events/AI_NZL.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,302 +1 @@
-####################################
-# New Zealand AI events 36300 - 36399 by Lothos
-####################################
-################
-# Minister of Security Section 36300 - 36309
-#############################################
-event = { # Adam Hamilton takes power
-	id = 36300
-	random = no 
-	country = NZL
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 55066 # Adam Hamilton
-		NOT = { InCabinet = 55066 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 55066 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Edward Blundell takes power
-	id = 36301
-	random = no 
-	country = NZL
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 55061 # Edward Blundell
-		NOT = { InCabinet = 55061 }
-		NOT = { minister = 55066 } # Adam Hamilton
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 55061 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Staff Section 36310 - 36319
-#############################################
-event = { # William Sinclair-Burgess takes power
-	id = 36310
-	random = no 
-	country = NZL
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 55007 # William Sinclair-Burgess
-		NOT = { InCabinet = 55007 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 55007 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Head of Intelligence Section 36320 - 36329
-#############################################
-event = { # Ken MacKenzie takes power
-	id = 36320
-	random = no 
-	country = NZL
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 55072 # Ken MacKenzie
-		NOT = { InCabinet = 55072 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 55072 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Frederick Freeman takes power
-	id = 36321
-	random = no 
-	country = NZL
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 55026 # Frederick Freeman
-		NOT = { InCabinet = 55026 }
-		NOT = { minister = 55072 } # Ken MacKenzie
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 55026 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of the Army Section 36330 - 36339
-#############################################
-event = { # Edward Puttick takes power
-	id = 36330
-	random = no 
-	country = NZL
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 55083 # Edward Puttick
-		NOT = { InCabinet = 55083 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 55083 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # J.C. Nichols takes power
-	id = 36331
-	random = no 
-	country = NZL
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 55082 # J.C. Nichols
-		NOT = { InCabinet = 55082 }
-		NOT = { minister = 55083 } # Edward Puttick
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 55082 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Armament Minister Section 36340 - 36349
-#############################################
-event = { # Walter Nash takes power
-	id = 36340
-	random = no 
-	country = NZL
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 55004 # Walter Nash
-		NOT = { InCabinet = 55004 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 55004 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Dan Sullivan takes power
-	id = 36341
-	random = no 
-	country = NZL
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 55048 # Dan Sullivan
-		NOT = { InCabinet = 55048 }
-		NOT = { minister = 55004 } # Walter Nash
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 55048 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Air Minister Section 36350 - 36359
-#############################################
-event = { # R.A. Cochrane takes power
-	id = 36350
-	random = no 
-	country = NZL
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 55010 # R.A. Cochrane
-		NOT = { InCabinet = 55010 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 55010 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Navy Minister Section 36360 - 36369
-#############################################
-event = { # H.E. Horan takes power
-	id = 36360
-	random = no 
-	country = NZL
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 55085 # H.E. Horan
-		NOT = { InCabinet = 55085 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofnavy which = 55085 }
-		command = { type = dissent value = -1 }
-	}
-}
-
-
-
-
-
-
-
-#############################################
-# Regular AI Events 36370 - 36399
-#############################################
\ No newline at end of file
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/AI_SAF.txt Doomsday Data Files/db/events/AI_SAF.txt
--- Doomsday Data Files.old/db/events/AI_SAF.txt	2006-02-10 18:10:58.000000000 +0100
+++ Doomsday Data Files/db/events/AI_SAF.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,283 +1 @@
-####################################
-# South Africa AI events 36400 - 36499 by Lothos
-####################################
-################
-# Minister of Security Section 36400 - 36409
-#############################################
-event = { # D. F. Malan takes power
-	id = 36400
-	random = no 
-	country = SAF
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 70060 # D. F. Malan
-		NOT = { InCabinet = 70060 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 70060 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # C. R. Swart takes power
-	id = 36401
-	random = no 
-	country = SAF
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 70057 # C. R. Swart
-		NOT = { InCabinet = 70057 }
-		NOT = { minister = 70060 } # D. F. Malan
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 70057 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Staff Section 36410 - 36419
-#############################################
-event = { # Jan C. Smuts takes power
-	id = 36410
-	random = no 
-	country = SAF
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 70074 # Jan C. Smuts
-		NOT = { InCabinet = 70074 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 70074 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Head of Intelligence Section 36420 - 36429
-#############################################
-event = { # Nicolaas Havenga takes power
-	id = 36420
-	random = no 
-	country = SAF
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 70070 # Nicolaas Havenga
-		NOT = { InCabinet = 70070 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 70070 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of the Army Section 36430 - 36439
-#############################################
-event = { # James Mitchell-Baker takes power
-	id = 36430
-	random = no 
-	country = SAF
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 70077 # James Mitchell-Baker
-		NOT = { InCabinet = 70077 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 70077 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Armament Minister Section 36440 - 36449
-#############################################
-event = { # S.P. Le Roux takes power
-	id = 36440
-	random = no 
-	country = SAF
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 70043 # S.P. Le Roux
-		NOT = { InCabinet = 70043 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 70043 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # W. E. Madeley takes power
-	id = 36441
-	random = no 
-	country = SAF
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 70046 # W. E. Madeley
-		NOT = { InCabinet = 70046 }
-		NOT = { minister = 70043 } # S.P. Le Roux
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 70046 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Air Minister Section 36450 - 36459
-#############################################
-event = { # Pierre van Ryneveld takes power
-	id = 36450
-	random = no 
-	country = SAF
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 70010 # Pierre van Ryneveld
-		NOT = { InCabinet = 70010 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 70010 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Navy Minister Section 36460 - 36469
-#############################################
-event = { # Pierre Oliver-Knoll takes power
-	id = 36460
-	random = no 
-	country = SAF
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 70009 # Pierre Oliver-Knoll
-		NOT = { InCabinet = 70009 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofnavy which = 70009 }
-		command = { type = dissent value = -1 }
-	}
-}
-
-
-
-
-
-
-
-#############################################
-# Regular AI Events 36470 - 36499
-#############################################
-################
-# Shift Production
-#############################################
-event = {
-	id = 36470
-	random = no 
-	country = SAF
-	
-	trigger = {
-		ai = yes
-		OR = {
-			atwar = yes
-			atwar = GER
-			atwar = ENG
-			atwar = FRA
-			atwar = USA
-			year = 1939
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/Minor_Gear_Up.ai" }
-	}
-}
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/AI_SIA.txt Doomsday Data Files/db/events/AI_SIA.txt
--- Doomsday Data Files.old/db/events/AI_SIA.txt	2006-02-10 18:10:58.000000000 +0100
+++ Doomsday Data Files/db/events/AI_SIA.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,282 +1 @@
-####################################
-# Siam AI events 36600 - 36699 by Lothos
-####################################
-################
-# Minister of Security Section 36600 - 36609
-#############################################
-event = { # Srisena Sampatisiri takes power
-	id = 36600
-	random = no 
-	country = SIA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 62075 # Srisena Sampatisiri
-		NOT = { InCabinet = 62075 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 62075 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Staff Section 36610 - 36619
-#############################################
-event = { # Luang Phibunsongkhram takes power
-	id = 36610
-	random = no 
-	country = SIA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 62007 # Luang Phibunsongkhram
-		NOT = { InCabinet = 62007 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 62007 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Head of Intelligence Section 36620 - 36629
-#############################################
-event = { # Pridi Phanomyong takes power
-	id = 36620
-	random = no 
-	country = SIA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 62006 # Pridi Phanomyong
-		NOT = { InCabinet = 62006 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 62006 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of the Army Section 36630 - 36639
-#############################################
-event = { # Luang Phibunsongkhram takes power
-	id = 36630
-	random = no 
-	country = SIA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 62008 # Luang Phibunsongkhram
-		NOT = { InCabinet = 62008 }
-		OR = {
-			atwar = no
-			NOT = { minister = 62097 } # Manphya Khanphialong
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 62008 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Manphya Khanphialong takes power
-	id = 36631
-	random = no 
-	country = SIA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 62097 # Manphya Khanphialong
-		NOT = { InCabinet = 62097 }
-		OR = {
-			atwar = yes
-			NOT = { minister = 62008 } # Luang Phibunsongkhram
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 62097 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Armament Minister Section 36640 - 36649
-#############################################
-event = { # Phya Bidadhkosha takes power
-	id = 36640
-	random = no 
-	country = SIA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 62054 # Phya Bidadhkosha
-		NOT = { InCabinet = 62054 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 62054 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Air Minister Section 36650 - 36659
-#############################################
-event = { # Phra Vechayanrangsarit takes power
-	id = 36650
-	random = no 
-	country = SIA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 62010 # Phra Vechayanrangsarit
-		NOT = { InCabinet = 62010 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 62010 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Navy Minister Section 36660 - 36669
-#############################################
-event = { # Pridi Phanomyong takes power
-	id = 36660
-	random = no 
-	country = SIA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 62009 # Pridi Phanomyong
-		NOT = { InCabinet = 62009 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofnavy which = 62009 }
-		command = { type = dissent value = -1 }
-	}
-}
-
-
-
-
-
-
-
-#############################################
-# Regular AI Events 36670 - 36699
-#############################################
-################
-# Siam sends EXP forces to Japan
-#############################################
-event = {
-	id = 36670
-	random = no 
-	country = SIA
-	
-	trigger = {
-		ai = yes
-		war = { country = ENG country = SIA }
-		alliance = { country = JAP country = SIA }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/EXP_100.ai" }
-	}
-}
-event = {
-	id = 36671
-	random = no 
-	country = SIA
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		NOT = { war = { country = ENG country = SIA } }
-		alliance = { country = JAP country = SIA }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/EXP_50.ai" }
-	}
-}
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/AI_TAN.txt Doomsday Data Files/db/events/AI_TAN.txt
--- Doomsday Data Files.old/db/events/AI_TAN.txt	2006-02-10 18:10:58.000000000 +0100
+++ Doomsday Data Files/db/events/AI_TAN.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,113 +1 @@
-####################################
-# Tanna Tuva AI events 34100 - 34199 by Lothos
-####################################
-################
-# Minister of Security Section 34100 - 34109
-#############################################
-################
-# Chief of Staff Section 34110 - 34119
-#############################################
-################
-# Head of Intelligence Section 34120 - 34129
-#############################################
-################
-# Chief of the Army Section 34130 - 34139
-#############################################
-################
-# Armament Minister Section 34140 - 34149
-#############################################
-
-
-
-
-
-
-
-#############################################
-# Regular AI Events 34160 - 34199
-#############################################
-# Behavior Flags
-#	TANReleaseEXP		= Release EXP forces to the soviets
-################
-#  Release EXP forces to SOV for major conflict
-#############################################
-event = {
-	id = 34160
-	random = no
-	country = TAN
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		NOT = { local_flag = TANReleaseEXP }
-		alliance = { country = SOV country = TAN }
-		OR = {
-			AND = {
-				lost_national = { country = SOV value = 1 }
-				atwar = SOV
-			}
-			war = { country = SOV country = GER }
-			war = { country = SOV country = JAP }
-			war = { country = SOV country = ENG }
-			war = { country = SOV country = FRA }
-			war = { country = SOV country = USA }
-			war = { country = SOV country = ITA }
-			war = { country = SOV country = TUR }
-			war = { country = SOV country = CHI }
-		}
-		
-	}
-
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	name = "AI_EVENT"
-	style = 0
-
-	action_a = {
-		command = { type = ai which = "switch/Minor_EXP_Release.ai" }
-		command = { type = local_setflag which = TANReleaseEXP }
-	}
-}
-event = {
-	id = 34161
-	random = no
-	country = TAN
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		local_flag = TANReleaseEXP
-		alliance = { country = SOV country = TAN }
-		NOT = {
-			AND = {
-				lost_national = { country = SOV value = 1 }
-				atwar = SOV
-			}
-			war = { country = SOV country = GER }
-			war = { country = SOV country = JAP }
-			war = { country = SOV country = ENG }
-			war = { country = SOV country = FRA }
-			war = { country = SOV country = USA }
-			war = { country = SOV country = ITA }
-			war = { country = SOV country = TUR }
-			war = { country = SOV country = CHI }
-		}
-		
-	}
-
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	name = "AI_EVENT"
-	style = 0
-
-	action_a = {
-		command = { type = ai which = "switch/Minor_EXP_Retrack.ai" }
-		command = { type = local_setflag which = TANReleaseEXP }
-	}
-}
\ No newline at end of file
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/AI_USA.txt Doomsday Data Files/db/events/AI_USA.txt
--- Doomsday Data Files.old/db/events/AI_USA.txt	2006-02-10 18:10:58.000000000 +0100
+++ Doomsday Data Files/db/events/AI_USA.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,2567 +1 @@
-####################################
-# USA 28000 - 28999 by Lothos
-####################################
-# Unit building AI
-#	USADefense			= Build massive land troops
-#	USABuildStandard	= Standard Build
-#	USABuildLand 		= Build more land troops
-
-# Behavior Flags
-#	USADDay				= Launch D-Day
-#	USAInvadeUK			= Invade the UK
-
-# Air AI Flags
-#	USAGroundAir		= Concentrate on Ground Targets
-#	USAStrategicAir		= Concentrate on Strategic Targets
-
-# Embargo Flags (USA must be a democracy)
-#	USAEmbargoGER		= Embargo against German
-#	USAEmbargoITA		= Embargo against Italy
-#	USAEmbargoJAP		= Embargo against Japan
-#	USAEmbargoGER_ITA	= Embargo both Germany and Italy
-#	USAEmbargoGER_JAP	= Embargo both Germany and Japan
-#	USAEmbargoITA_JAP	= Embargo both Italy and Japan
-#	USAEmbargoGER_ITA_JAP	= Embargo Germany, Italy and Japan
-
-################
-# USA does Oil Embargo against Japan
-#############################################
-#event = {  Delete by Lothos replaced by Embargo AI
-#	id = 28000 
-################
-# USA Gear up Level 1
-#############################################
-event = {
-	id = 28001
-	random = no 
-	country = USA
-	
-	trigger = {
-		ai = yes
-		NOT = { war = { country = USA country = GER } }
-		OR = {
-			atwar = GER
-			year = 1939
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/USA_Gear_Up_1.ai" }
-	}
-}
-################
-# USA Gear up Level 2
-#############################################
-event = {
-	id = 28002
-	random = no 
-	country = USA
-	
-	trigger = {
-		ai = yes
-		atwar = GER
-		NOT = { war = { country = USA country = GER } }
-		control = { province = 56 data = GER } # Paris
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/USA_Gear_Up_2.ai" }
-		command = { type = sleepevent which = 28001 }
-	}
-}
-################
-# USA Gear up Level 3
-#############################################
-event = {
-	id = 28003
-	random = no 
-	country = USA
-	
-	trigger = {
-		ai = yes
-		atwar = GER
-		NOT = { war = { country = USA country = GER } }
-		war = { country = SOV country = GER }
-		control = { province = 56 data = GER } # Paris
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/USA_Gear_Up_3.ai" }
-		command = { type = sleepevent which = 28001 }
-		command = { type = sleepevent which = 28002 }
-	}
-}
-################
-# USA Gear up Level 4
-#############################################
-event = {
-	id = 28004
-	random = no 
-	country = USA
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = USADefense }		
-		OR = {
-			atwar = USA
-			AND = {
-				random = 5
-				year = 1942
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/USA_Gear_Up_4.ai" }
-		command = { type = sleepevent which = 28001 }
-		command = { type = sleepevent which = 28002 }
-		command = { type = sleepevent which = 28003 }
-	}
-}
-################
-# Load D-Day AI
-#############################################
-event = {
-	id = 28005
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		war = { country = GER country = USA }
-		NOT = { control = { province = 56 data = FRA } }# Paris
-		NOT = { local_flag = USADefense }
-		NOT = { local_flag = USADDay }
-		NOT = { local_flag = USAInvadeUK }
-		OR = {
-			AND = {
-				year = 1942
-				NOT = { year = 1943 }
-				land_percentage = { country = GER value = 0.5 }
-				OR = {
-					AND = {
-						war = { country = GER country = SOV }
-						lost_national = { country = SOV value = 38 }
-					}
-					AND = {
-						war = { country = GER country = SOV }
-						NOT = { lost_national = { country = SOV value = 1 } }
-					}
-					AND = {
-						war = { country = GER country = SOV }
-						NOT = { control = { province = 212 data = SOV } } # Minsk
-						OR = {
-							lost_national = { country = SOV value = 30 }
-							AND = {
-								NOT = { control = { province = 175 data = SOV } } # Moscow
-								NOT = { control = { province = 187 data = SOV } } # Leningrad
-							}
-							AND = {
-								NOT = { control = { province = 175 data = SOV } } # Moscow
-								NOT = { control = { province = 163 data = SOV } } # Stalingrad
-							}
-							AND = {
-								NOT = { control = { province = 187 data = SOV } } # Leningrad
-								NOT = { control = { province = 163 data = SOV } } # Stalingrad
-							}
-						}
-						lost_national = { country = SOV value = 25 }
-					}
-				}
-			}
-			AND = {
-				year = 1943
-				NOT = { year = 1944 }
-				land_percentage = { country = GER value = 0.6 }
-				OR = {
-					AND = {
-						war = { country = GER country = SOV }
-						lost_national = { country = SOV value = 38 }
-					}
-					AND = {
-						war = { country = GER country = SOV }
-						NOT = { lost_national = { country = SOV value = 1 } }
-					}
-					AND = {
-						war = { country = GER country = SOV }
-						NOT = { control = { province = 212 data = SOV } } # Minsk
-						OR = {
-							lost_national = { country = SOV value = 30 }
-							AND = {
-								NOT = { control = { province = 175 data = SOV } } # Moscow
-								NOT = { control = { province = 187 data = SOV } } # Leningrad
-							}
-							AND = {
-								NOT = { control = { province = 175 data = SOV } } # Moscow
-								NOT = { control = { province = 163 data = SOV } } # Stalingrad
-							}
-							AND = {
-								NOT = { control = { province = 187 data = SOV } } # Leningrad
-								NOT = { control = { province = 163 data = SOV } } # Stalingrad
-							}
-						}
-						lost_national = { country = SOV value = 25 }
-					}
-				}
-			}
-			AND = {
-				year = 1944
-				land_percentage = { country = GER value = 0.7 }
-			}
-		}
-		OR = {
-			control = { province = 56 data = GER } # Paris
-			control = { province = 44 data = GER } # Lille
-			control = { province = 72 data = GER } # Metz
-		}
-		OR = {
-			NOT = { exists = ENG }
-			AND = {
-				exists = ENG
-				war = { country = GER country = ENG }
-				OR = {
-					alliance = { country = ENG country = USA }
-					NOT = { war = { country = USA country = ENG } }
-				}
-				control = { province = 19 data = ENG } # London
-				control = { province = 23 data = ENG } # Plymouth
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = USADDay }
-		command = { type = setflag  which = DDay }
-		command = { type = ai which = "switch/USA_Dday.ai" }
-	}
-}
-################
-# D-Day successful go back to normal AI
-#############################################
-event = {
-	id = 28006
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		event = 28005
-		local_flag = USADDay
-		NOT = { local_flag = USADefense }
-		NOT = { local_flag = USAInvadeUK }
-		NOT = {
-			AND = {
-				year = 1942
-				NOT = { year = 1943 }
-				land_percentage = { country = GER value = 0.5 }
-				OR = {
-					AND = {
-						war = { country = GER country = SOV }
-						lost_national = { country = SOV value = 38 }
-					}
-					AND = {
-						war = { country = GER country = SOV }
-						NOT = { lost_national = { country = SOV value = 1 } }
-					}
-					AND = {
-						war = { country = GER country = SOV }
-						NOT = { control = { province = 212 data = SOV } } # Minsk
-						OR = {
-							lost_national = { country = SOV value = 30 }
-							AND = {
-								NOT = { control = { province = 175 data = SOV } } # Moscow
-								NOT = { control = { province = 187 data = SOV } } # Leningrad
-							}
-							AND = {
-								NOT = { control = { province = 175 data = SOV } } # Moscow
-								NOT = { control = { province = 163 data = SOV } } # Stalingrad
-							}
-							AND = {
-								NOT = { control = { province = 187 data = SOV } } # Leningrad
-								NOT = { control = { province = 163 data = SOV } } # Stalingrad
-							}
-						}
-						lost_national = { country = SOV value = 25 }
-					}
-				}
-			}
-			AND = {
-				year = 1943
-				NOT = { year = 1944 }
-				land_percentage = { country = GER value = 0.6 }
-				OR = {
-					AND = {
-						war = { country = GER country = SOV }
-						lost_national = { country = SOV value = 38 }
-					}
-					AND = {
-						war = { country = GER country = SOV }
-						NOT = { lost_national = { country = SOV value = 1 } }
-					}
-					AND = {
-						war = { country = GER country = SOV }
-						NOT = { control = { province = 212 data = SOV } } # Minsk
-						OR = {
-							lost_national = { country = SOV value = 30 }
-							AND = {
-								NOT = { control = { province = 175 data = SOV } } # Moscow
-								NOT = { control = { province = 187 data = SOV } } # Leningrad
-							}
-							AND = {
-								NOT = { control = { province = 175 data = SOV } } # Moscow
-								NOT = { control = { province = 163 data = SOV } } # Stalingrad
-							}
-							AND = {
-								NOT = { control = { province = 187 data = SOV } } # Leningrad
-								NOT = { control = { province = 163 data = SOV } } # Stalingrad
-							}
-						}
-						lost_national = { country = SOV value = 25 }
-					}
-				}
-			}
-			AND = {
-				year = 1944
-				land_percentage = { country = GER value = 0.7 }
-			}
-		}
-		NOT = {
-			control = { province = 56 data = GER } # Paris
-			control = { province = 44 data = GER } # Lille
-			control = { province = 72 data = GER } # Metz
-		}
-		NOT = {
-			NOT = { exists = ENG }
-			AND = {
-				exists = ENG
-				war = { country = GER country = ENG }
-				OR = {
-					alliance = { country = ENG country = USA }
-					NOT = { war = { country = USA country = ENG } }
-				}
-				control = { province = 19 data = ENG } # London
-				control = { province = 23 data = ENG } # Plymouth
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = USADDay }
-		command = { type = clrflag which = DDay }
-		command = { type = ai which = "switch/USA_Gear_Up_4.ai" }
-	}
-}
-################
-# USA loads EXP Force Ratio for war with SOV
-#############################################
-event = {
-	id = 28007
-	random = no 
-	country = USA
-	
-	trigger = {
-		ai = yes
-		war = { country = USA country = SOV }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/EXP_ALIvsSOV.ai" }
-	}
-}
-################
-# USA Loads national defense AI
-#############################################
-event = {
-	id = 28008
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = USADefense }
-		OR = {
-			war = { country = USA country = CAN }
-			war = { country = USA country = MEX }
-			AND = {
-				lost_national = { country = CAN value = 2 }
-				NOT = { war = { country = USA country = CAN } }
-			}
-			AND = {
-				lost_national = { country = MEX value = 2 }
-				NOT = { war = { country = USA country = MEX } }
-			}
-			AND = {
-				lost_national = { country = USA value = 2 }
-				atwar = USA
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = USADefense }
-		command = { type = local_clrflag which = USAInvadeUK }
-		command = { type = local_clrflag which = USABuildStandard }
-		command = { type = local_clrflag which = USABuildLand }
-		command = { type = ai which = "switch/USA_Homeland.ai" }
-	}
-}
-################
-# USA Goes back to normal war production
-#############################################
-event = {
-	id = 28009
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = USADefense
-		AND = {
-			NOT = { war = { country = USA country = CAN } }
-			NOT = { war = { country = USA country = MEX } }
-			NOT = { lost_national = { country = CAN value = 2 } }
-			NOT = { lost_national = { country = MEX value = 2 } }
-			NOT = { lost_national = { country = USA value = 2 } }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = USADefense }
-	}
-}
-################
-# USA loads Standard builds AI
-#############################################
-event = {
-	id = 28010
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		OR = {
-			atwar = yes
-			year = 1940
-		}
-		NOT = { local_flag = USABuildStandard }
-		NOT = { local_flag = USADefense }
-		NOT = {
-			AND = {
-				OR = {
-					AND = {
-						local_flag = USA1936
-						year = 1936
-						NOT = { year = 1937 }
-					}
-					AND = {
-						local_flag = USA1937
-						year = 1937
-						NOT = { year = 1938 }
-					}
-					AND = {
-						local_flag = USA1938
-						year = 1938
-						NOT = { year = 1939 }
-					}
-					AND = {
-						local_flag = USA1939
-						year = 1939
-						NOT = { year = 1940 }
-					}
-					AND = {
-						local_flag = USA1940
-						year = 1940
-						NOT = { year = 1941 }
-					}
-					AND = {
-						local_flag = USA1941
-						year = 1941
-						NOT = { year = 1942 }
-					}
-				}
-				OR = {
-					AND = {
-						NOT = { ai = GER }
-						NOT = { land_percentage = { country = GER value = 0.5 } }
-					}
-					AND = {
-						ai = GER
-						NOT = { land_percentage = { country = GER value = 0.3 } }
-					}
-					AND = {
-						NOT = { ai = JAP }
-						NOT = { land_percentage = { country = JAP value = 0.6 } }
-					}
-					AND = {
-						ai = JAP
-						NOT = { land_percentage = { country = JAP value = 0.5 } }
-					}
-					AND = {
-						war = { country = ITA country = USA }
-						NOT = { land_percentage = { country = ITA value = 1.0 } }
-					}
-					AND = {
-						war = { country = ENG country = USA }
-						NOT = { land_percentage = { country = ENG value = 0.7 } }
-					}
-					AND = {
-						war = { country = SOV country = USA }
-						NOT = { land_percentage = { country = SOV value = 0.35 } }
-					}
-				}
-			}
-			AND = {
-				OR = {
-					AND = {
-						local_flag = USA1936
-						year = 1937
-						NOT = { year = 1938 }
-					}
-					AND = {
-						local_flag = USA1937
-						year = 1938
-						NOT = { year = 1939 }
-					}
-					AND = {
-						local_flag = USA1938
-						year = 1939
-						NOT = { year = 1940 }
-					}
-					AND = {
-						local_flag = USA1939
-						year = 1940
-						NOT = { year = 1941 }
-					}
-					AND = {
-						local_flag = USA1940
-						year = 1941
-						NOT = { year = 1942 }
-					}
-					AND = {
-						local_flag = USA1941
-						year = 1942
-						NOT = { year = 1943 }
-					}
-				}
-				OR = {
-					AND = {
-						NOT = { ai = GER }
-						NOT = { land_percentage = { country = GER value = 0.6 } }
-					}
-					AND = {
-						ai = GER
-						NOT = { land_percentage = { country = GER value = 0.4 } }
-					}
-					AND = {
-						NOT = { ai = JAP }
-						NOT = { land_percentage = { country = JAP value = 0.7 } }
-					}
-					AND = {
-						ai = JAP
-						NOT = { land_percentage = { country = JAP value = 0.6 } }
-					}
-					AND = {
-						war = { country = ITA country = USA }
-						NOT = { land_percentage = { country = ITA value = 1.0 } }
-					}
-					AND = {
-						war = { country = ENG country = USA }
-						NOT = { land_percentage = { country = ENG value = 0.8 } }
-					}
-					AND = {
-						war = { country = SOV country = USA }
-						NOT = { land_percentage = { country = SOV value = 0.45 } }
-					}
-				}
-			}
-			AND = {
-				OR = {
-					AND = {
-						local_flag = USA1936
-						year = 1938
-						NOT = { year = 1939 }
-					}
-					AND = {
-						local_flag = USA1937
-						year = 1939
-						NOT = { year = 1940 }
-					}
-					AND = {
-						local_flag = USA1938
-						year = 1940
-						NOT = { year = 1941 }
-					}
-					AND = {
-						local_flag = USA1939
-						year = 1941
-						NOT = { year = 1942 }
-					}
-					AND = {
-						local_flag = USA1940
-						year = 1942
-						NOT = { year = 1943 }
-					}
-					AND = {
-						local_flag = USA1941
-						year = 1943
-						NOT = { year = 1944 }
-					}
-				}
-				OR = {
-					AND = {
-						NOT = { ai = GER }
-						NOT = { land_percentage = { country = GER value = 0.7 } }
-					}
-					AND = {
-						ai = GER
-						NOT = { land_percentage = { country = GER value = 0.5 } }
-					}
-					AND = {
-						NOT = { ai = JAP }
-						NOT = { land_percentage = { country = JAP value = 1.0 } }
-					}
-					AND = {
-						ai = JAP
-						NOT = { land_percentage = { country = JAP value = 0.7 } }
-					}
-					AND = {
-						war = { country = ITA country = USA }
-						NOT = { land_percentage = { country = ITA value = 1.0 } }
-					}
-					AND = {
-						war = { country = ENG country = USA }
-						NOT = { land_percentage = { country = ENG value = 0.9 } }
-					}
-					AND = {
-						war = { country = SOV country = USA }
-						NOT = { land_percentage = { country = SOV value = 0.55 } }
-					}
-				}
-			}
-			AND = {
-				OR = {
-					AND = {
-						local_flag = USA1936
-						year = 1939
-					}
-					AND = {
-						local_flag = USA1937
-						year = 1940
-					}
-					AND = {
-						local_flag = USA1938
-						year = 1941
-					}
-					AND = {
-						local_flag = USA1939
-						year = 1942
-					}
-					AND = {
-						local_flag = USA1940
-						year = 1943
-					}
-					AND = {
-						local_flag = USA1941
-						year = 1944
-					}
-				}
-				OR = {
-					AND = {
-						NOT = { ai = GER }
-						NOT = { land_percentage = { country = GER value = 0.8 } }
-					}
-					AND = {
-						ai = GER
-						NOT = { land_percentage = { country = GER value = 0.6 } }
-					}
-					AND = {
-						NOT = { ai = JAP }
-						NOT = { land_percentage = { country = JAP value = 1.0 } }
-					}
-					AND = {
-						ai = JAP
-						NOT = { land_percentage = { country = JAP value = 0.9 } }
-					}
-					AND = {
-						war = { country = ITA country = USA }
-						NOT = { land_percentage = { country = ITA value = 1.0 } }
-					}
-					AND = {
-						war = { country = ENG country = USA }
-						NOT = { land_percentage = { country = ENG value = 1.0 } }
-					}
-					AND = {
-						war = { country = SOV country = USA }
-						NOT = { land_percentage = { country = SOV value = 0.65 } }
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = USABuildStandard }
-		command = { type = local_clrflag which = USABuildLand }
-		command = { type = ai which = "switch/USA_Build_Standard.ai" }
-	}
-}
-################
-# USA loads Land builds AI
-#############################################
-event = {
-	id = 28011
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		OR = {
-			atwar = yes
-			year = 1940
-		}
-		NOT = { local_flag = USABuildLand }
-		NOT = { local_flag = USADefense }
-		OR = {
-			AND = {
-				OR = {
-					AND = {
-						local_flag = USA1936
-						year = 1936
-						NOT = { year = 1937 }
-					}
-					AND = {
-						local_flag = USA1937
-						year = 1937
-						NOT = { year = 1938 }
-					}
-					AND = {
-						local_flag = USA1938
-						year = 1938
-						NOT = { year = 1939 }
-					}
-					AND = {
-						local_flag = USA1939
-						year = 1939
-						NOT = { year = 1940 }
-					}
-					AND = {
-						local_flag = USA1940
-						year = 1940
-						NOT = { year = 1941 }
-					}
-					AND = {
-						local_flag = USA1941
-						year = 1941
-						NOT = { year = 1942 }
-					}
-				}
-				OR = {
-					AND = {
-						NOT = { ai = GER }
-						NOT = { land_percentage = { country = GER value = 0.5 } }
-					}
-					AND = {
-						ai = GER
-						NOT = { land_percentage = { country = GER value = 0.3 } }
-					}
-					AND = {
-						NOT = { ai = JAP }
-						NOT = { land_percentage = { country = JAP value = 0.6 } }
-					}
-					AND = {
-						ai = JAP
-						NOT = { land_percentage = { country = JAP value = 0.5 } }
-					}
-					AND = {
-						war = { country = ITA country = USA }
-						NOT = { land_percentage = { country = ITA value = 1.0 } }
-					}
-					AND = {
-						war = { country = ENG country = USA }
-						NOT = { land_percentage = { country = ENG value = 0.7 } }
-					}
-					AND = {
-						war = { country = SOV country = USA }
-						NOT = { land_percentage = { country = SOV value = 0.35 } }
-					}
-				}
-			}
-			AND = {
-				OR = {
-					AND = {
-						local_flag = USA1936
-						year = 1937
-						NOT = { year = 1938 }
-					}
-					AND = {
-						local_flag = USA1937
-						year = 1938
-						NOT = { year = 1939 }
-					}
-					AND = {
-						local_flag = USA1938
-						year = 1939
-						NOT = { year = 1940 }
-					}
-					AND = {
-						local_flag = USA1939
-						year = 1940
-						NOT = { year = 1941 }
-					}
-					AND = {
-						local_flag = USA1940
-						year = 1941
-						NOT = { year = 1942 }
-					}
-					AND = {
-						local_flag = USA1941
-						year = 1942
-						NOT = { year = 1943 }
-					}
-				}
-				OR = {
-					AND = {
-						NOT = { ai = GER }
-						NOT = { land_percentage = { country = GER value = 0.6 } }
-					}
-					AND = {
-						ai = GER
-						NOT = { land_percentage = { country = GER value = 0.4 } }
-					}
-					AND = {
-						NOT = { ai = JAP }
-						NOT = { land_percentage = { country = JAP value = 0.7 } }
-					}
-					AND = {
-						ai = JAP
-						NOT = { land_percentage = { country = JAP value = 0.6 } }
-					}
-					AND = {
-						war = { country = ITA country = USA }
-						NOT = { land_percentage = { country = ITA value = 1.0 } }
-					}
-					AND = {
-						war = { country = ENG country = USA }
-						NOT = { land_percentage = { country = ENG value = 0.8 } }
-					}
-					AND = {
-						war = { country = SOV country = USA }
-						NOT = { land_percentage = { country = SOV value = 0.45 } }
-					}
-				}
-			}
-			AND = {
-				OR = {
-					AND = {
-						local_flag = USA1936
-						year = 1938
-						NOT = { year = 1939 }
-					}
-					AND = {
-						local_flag = USA1937
-						year = 1939
-						NOT = { year = 1940 }
-					}
-					AND = {
-						local_flag = USA1938
-						year = 1940
-						NOT = { year = 1941 }
-					}
-					AND = {
-						local_flag = USA1939
-						year = 1941
-						NOT = { year = 1942 }
-					}
-					AND = {
-						local_flag = USA1940
-						year = 1942
-						NOT = { year = 1943 }
-					}
-					AND = {
-						local_flag = USA1941
-						year = 1943
-						NOT = { year = 1944 }
-					}
-				}
-				OR = {
-					AND = {
-						NOT = { ai = GER }
-						NOT = { land_percentage = { country = GER value = 0.7 } }
-					}
-					AND = {
-						ai = GER
-						NOT = { land_percentage = { country = GER value = 0.5 } }
-					}
-					AND = {
-						NOT = { ai = JAP }
-						NOT = { land_percentage = { country = JAP value = 1.0 } }
-					}
-					AND = {
-						ai = JAP
-						NOT = { land_percentage = { country = JAP value = 0.7 } }
-					}
-					AND = {
-						war = { country = ITA country = USA }
-						NOT = { land_percentage = { country = ITA value = 1.0 } }
-					}
-					AND = {
-						war = { country = ENG country = USA }
-						NOT = { land_percentage = { country = ENG value = 0.9 } }
-					}
-					AND = {
-						war = { country = SOV country = USA }
-						NOT = { land_percentage = { country = SOV value = 0.55 } }
-					}
-				}
-			}
-			AND = {
-				OR = {
-					AND = {
-						local_flag = USA1936
-						year = 1939
-					}
-					AND = {
-						local_flag = USA1937
-						year = 1940
-					}
-					AND = {
-						local_flag = USA1938
-						year = 1941
-					}
-					AND = {
-						local_flag = USA1939
-						year = 1942
-					}
-					AND = {
-						local_flag = USA1940
-						year = 1943
-					}
-					AND = {
-						local_flag = USA1941
-						year = 1944
-					}
-				}
-				OR = {
-					AND = {
-						NOT = { ai = GER }
-						NOT = { land_percentage = { country = GER value = 0.8 } }
-					}
-					AND = {
-						ai = GER
-						NOT = { land_percentage = { country = GER value = 0.6 } }
-					}
-					AND = {
-						NOT = { ai = JAP }
-						NOT = { land_percentage = { country = JAP value = 1.0 } }
-					}
-					AND = {
-						ai = JAP
-						NOT = { land_percentage = { country = JAP value = 0.9 } }
-					}
-					AND = {
-						war = { country = ITA country = USA }
-						NOT = { land_percentage = { country = ITA value = 1.0 } }
-					}
-					AND = {
-						war = { country = ENG country = USA }
-						NOT = { land_percentage = { country = ENG value = 1.0 } }
-					}
-					AND = {
-						war = { country = SOV country = USA }
-						NOT = { land_percentage = { country = SOV value = 0.65 } }
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = USABuildStandard }
-		command = { type = local_setflag which = USABuildLand }
-		command = { type = ai which = "switch/USA_Build_Land.ai" }
-	}
-}
-################
-# USA builds transports
-#############################################
-event = {
-	id = 28012
-	random = no
-	country = USA
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		atwar = yes
-		NOT = { local_flag = USADefense }
-		NOT = { transport = { country = USA value = 40 } }
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = build_division which = transport }
-	}
-}
-################
-# USA Loads invasion of Italy AI
-#############################################
-event = {
-	id = 28013
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		flag = InvadeItaly
-		NOT = { local_flag = USAItaly }
-		NOT = { local_flag = USADDay }
-		NOT = { local_flag = USADefense }
-		NOT = { local_flag = USAInvadeUK }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = USAItaly }
-		command = { type = ai which = "switch/USA_Italy.ai" }
-	}
-}
-################
-# USA Loads invasion of Italy AI
-#############################################
-event = {
-	id = 28014
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = USAItaly
-		OR = {
-			local_flag = USADDay
-			local_flag = USADefense
-			local_flag = USAInvadeUK
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = USAItaly }
-	}
-}
-################
-# USA Loads invasion of UK AI
-#############################################
-event = {
-	id = 28015
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = USAInvadeUK }
-		NOT = { local_flag = USADefense }
-		OR = {
-			AND = {
-				war = { country = ENG country = USA }
-				OR = {
-					control = { province = 19 data = ENG }
-					control = { province = 20 data = ENG }
-					control = { province = 17 data = ENG }
-					control = { province = 21 data = ENG }
-					control = { province = 23 data = ENG }
-					control = { province = 22 data = ENG }
-					control = { province = 16 data = ENG }
-					control = { province = 15 data = ENG }
-					control = { province = 14 data = ENG }
-					control = { province = 13 data = ENG }
-				}
-				NOT = { garrison = { country = ENG province = 19  type = land size = 20 area = yes } }
-				OR = {
-					AND = {
-						ai = ENG
-						land_percentage = { country = ENG value = 0.6 }
-					}
-					AND = {
-						NOT = { ai = ENG }
-						land_percentage = { country = ENG value = 0.8 }
-					}
-				}
-			}
-			AND = {
-				alliance = { country = ENG country = USA }
-				NOT = { garrison = { country = GER province = 19  type = land size = 20 area = yes } }
-				NOT = { garrison = { country = ITA province = 19  type = land size = 20 area = yes } }
-				NOT = { garrison = { country = SPA province = 19  type = land size = 20 area = yes } }
-				NOT = { garrison = { country = SPR province = 19  type = land size = 20 area = yes } }
-				OR = {
-					AND = {
-						NOT = { control = { province = 19 data = ENG } }
-						NOT = { control = { province = 19 data = USA } }
-						owned = { province = 19 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 20 data = ENG } }
-						NOT = { control = { province = 20 data = USA } }
-						owned = { province = 20 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 17 data = ENG } }
-						NOT = { control = { province = 17 data = USA } }
-						owned = { province = 17  data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 21 data = ENG } }
-						NOT = { control = { province = 21 data = USA } }
-						owned = { province = 21 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 23 data = ENG } }
-						NOT = { control = { province = 23 data = USA } }
-						owned = { province = 23 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 22 data = ENG } }
-						NOT = { control = { province = 22 data = USA } }
-						owned = { province = 22 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 16 data = ENG } }
-						NOT = { control = { province = 16 data = USA } }
-						owned = { province = 16 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 15 data = ENG } }
-						NOT = { control = { province = 15 data = USA } }
-						owned = { province = 15 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 14 data = ENG } }
-						NOT = { control = { province = 14 data = USA } }
-						owned = { province = 14 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 13 data = ENG } }
-						NOT = { control = { province = 13 data = USA } }
-						owned = { province = 13 data = ENG }
-					}
-				}
-				OR = {
-					AND = {
-						ai = GER
-						OR = {
-							AND = {
-								war = { country = GER country = SOV }
-								land_percentage = { country = GER value = 0.4 }
-							}
-							AND = {
-								NOT = { war = { country = GER country = SOV } }
-								land_percentage = { country = GER value = 0.6 }
-							}
-						}
-					}
-					AND = {
-						NOT = { ai = GER }
-						OR = {
-							AND = {
-								war = { country = GER country = SOV }
-								land_percentage = { country = GER value = 0.5 }
-							}
-							AND = {
-								NOT = { war = { country = GER country = SOV } }
-								land_percentage = { country = GER value = 0.7 }
-							}
-						}
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = USAInvadeUK }
-		command = { type = local_clrflag which = USAItaly }
-		command = { type = local_clrflag which = USADDay }
-		command = { type = ai which = "switch/USA_Invade_UK.ai" }
-	}
-}
-event = {
-	id = 28016
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = USAInvadeUK
-		NOT = { local_flag = USADefense }
-		NOT = {
-			AND = {
-				war = { country = ENG country = USA }
-				OR = {
-					control = { province = 19 data = ENG }
-					control = { province = 20 data = ENG }
-					control = { province = 17 data = ENG }
-					control = { province = 21 data = ENG }
-					control = { province = 23 data = ENG }
-					control = { province = 22 data = ENG }
-					control = { province = 16 data = ENG }
-					control = { province = 15 data = ENG }
-					control = { province = 14 data = ENG }
-					control = { province = 13 data = ENG }
-				}
-				NOT = { garrison = { country = ENG province = 19  type = land size = 20 area = yes } }
-				OR = {
-					AND = {
-						ai = ENG
-						land_percentage = { country = ENG value = 0.6 }
-					}
-					AND = {
-						NOT = { ai = ENG }
-						land_percentage = { country = ENG value = 0.8 }
-					}
-				}
-			}
-			AND = {
-				alliance = { country = ENG country = USA }
-				NOT = { garrison = { country = GER province = 19  type = land size = 20 area = yes } }
-				NOT = { garrison = { country = ITA province = 19  type = land size = 20 area = yes } }
-				NOT = { garrison = { country = SPA province = 19  type = land size = 20 area = yes } }
-				NOT = { garrison = { country = SPR province = 19  type = land size = 20 area = yes } }
-				OR = {
-					AND = {
-						NOT = { control = { province = 19 data = ENG } }
-						NOT = { control = { province = 19 data = USA } }
-						owned = { province = 19 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 20 data = ENG } }
-						NOT = { control = { province = 20 data = USA } }
-						owned = { province = 20 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 17 data = ENG } }
-						NOT = { control = { province = 17 data = USA } }
-						owned = { province = 17  data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 21 data = ENG } }
-						NOT = { control = { province = 21 data = USA } }
-						owned = { province = 21 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 23 data = ENG } }
-						NOT = { control = { province = 23 data = USA } }
-						owned = { province = 23 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 22 data = ENG } }
-						NOT = { control = { province = 22 data = USA } }
-						owned = { province = 22 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 16 data = ENG } }
-						NOT = { control = { province = 16 data = USA } }
-						owned = { province = 16 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 15 data = ENG } }
-						NOT = { control = { province = 15 data = USA } }
-						owned = { province = 15 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 14 data = ENG } }
-						NOT = { control = { province = 14 data = USA } }
-						owned = { province = 14 data = ENG }
-					}
-					AND = {
-						NOT = { control = { province = 13 data = ENG } }
-						NOT = { control = { province = 13 data = USA } }
-						owned = { province = 13 data = ENG }
-					}
-				}
-				OR = {
-					AND = {
-						ai = GER
-						OR = {
-							AND = {
-								war = { country = GER country = SOV }
-								land_percentage = { country = GER value = 0.4 }
-							}
-							AND = {
-								NOT = { war = { country = GER country = SOV } }
-								land_percentage = { country = GER value = 0.6 }
-							}
-						}
-					}
-					AND = {
-						NOT = { ai = GER }
-						OR = {
-							AND = {
-								war = { country = GER country = SOV }
-								land_percentage = { country = GER value = 0.5 }
-							}
-							AND = {
-								NOT = { war = { country = GER country = SOV } }
-								land_percentage = { country = GER value = 0.7 }
-							}
-						}
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = USAInvadeUK }
-		command = { type = ai which = "switch/USA_Gear_Up_4.ai" }
-		command = { type = ai which = "switch/USA_Garrison.ai" }
-	}
-}
-################
-# USA does Embargos
-#############################################
-event = {
-	id = 28017
-	random = no 
-	country = USA
-	#persistent = yes
-	
-	trigger = {
-		ai = yes
-		government = democratic
-		NOT = { local_flag = USAEmbargoGER }
-		NOT = { alliance = { country = USA country = GER } }
-		OR = {
-			war = { country = FRA country = GER }
-			war = { country = ENG country = GER }
-			war = { country = ITA country = GER }
-			war = { country = SPR country = GER }
-			war = { country = SPA country = GER }
-			war = { country = SWE country = GER }
-			war = { country = NOR country = GER }
-			war = { country = POL country = GER }
-			war = { country = FIN country = GER }
-			war = { country = SCH country = GER }
-			war = { country = CZE country = GER }
-			war = { country = AUS country = GER }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = USAEmbargoGER }
-		command = { type = ai which = "switch/USA_Embargo_GER.ai" }
-		command = { type = end_trades which = USA where = GER }
-	}
-}
-event = {
-	id = 28018
-	random = no 
-	country = USA
-	#persistent = yes
-	
-	trigger = {
-		ai = yes
-		government = democratic
-		NOT = { local_flag = USAEmbargoJAP }
-		NOT = { alliance = { country = USA country = JAP } }
-		OR = {
-			event = 3800 # Oil Embargo
-			war = { country = FRA country = JAP }
-			war = { country = ENG country = JAP }
-			war = { country = HOL country = JAP }
-			war = { country = PHI country = JAP }
-			war = { country = VIC country = JAP }
-			war = { country = AST country = JAP }
-			war = { country = NZL country = JAP }
-			war = { country = POR country = JAP }
-			war = { country = SIA country = JAP }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = USAEmbargoJAP }
-		command = { type = ai which = "switch/USA_Embargo_JAP.ai" }
-		command = { type = end_trades which = USA where = JAP }
-	}
-}
-event = {
-	id = 28019
-	random = no 
-	country = USA
-	#persistent = yes
-	
-	trigger = {
-		ai = yes
-		government = democratic
-		NOT = { local_flag = USAEmbargoITA }
-		NOT = { alliance = { country = USA country = ITA } }
-		OR = {
-			war = { country = FRA country = ITA }
-			war = { country = ENG country = ITA }
-			war = { country = HOL country = ITA }
-			war = { country = YUG country = ITA }
-			war = { country = GRE country = ITA }
-			war = { country = SPA country = ITA }
-			war = { country = SPR country = ITA }
-			war = { country = TUR country = ITA }
-			war = { country = SCH country = ITA }
-			war = { country = POL country = ITA }
-			war = { country = CZE country = ITA }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = USAEmbargoITA }
-		command = { type = ai which = "switch/USA_Embargo_ITA.ai" }
-		command = { type = end_trades which = USA where = ITA }
-	}
-}
-event = {
-	id = 28020
-	random = no 
-	country = USA
-	#persistent = yes
-	
-	trigger = {
-		ai = yes
-		government = democratic
-		NOT = { local_flag = USAEmbargoGER_ITA }
-		local_flag = USAEmbargoGER
-		local_flag = USAEmbargoITA
-		NOT = { local_flag = USAEmbargoJAP }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = USAEmbargoGER_ITA }
-		command = { type = local_clrflag which = USAEmbargoGER_JAP }
-		command = { type = local_clrflag which = USAEmbargoITA_JAP }
-		command = { type = local_clrflag which = USAEmbargoGER_ITA_JAP }
-		command = { type = ai which = "switch/USA_Embargo_GER_ITA.ai" }
-	}
-}
-event = {
-	id = 28021
-	random = no 
-	country = USA
-	#persistent = yes
-	
-	trigger = {
-		ai = yes
-		government = democratic
-		NOT = { local_flag = USAEmbargoGER_JAP }
-		local_flag = USAEmbargoGER
-		NOT = { local_flag = USAEmbargoITA }
-		local_flag = USAEmbargoJAP
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = USAEmbargoGER_ITA }
-		command = { type = local_setflag which = USAEmbargoGER_JAP }
-		command = { type = local_clrflag which = USAEmbargoITA_JAP }
-		command = { type = local_clrflag which = USAEmbargoGER_ITA_JAP }
-		command = { type = ai which = "switch/USA_Embargo_GER_JAP.ai" }
-	}
-}
-event = {
-	id = 28022
-	random = no 
-	country = USA
-	#persistent = yes
-	
-	trigger = {
-		ai = yes
-		government = democratic
-		NOT = { local_flag = USAEmbargoITA_JAP }
-		NOT = { local_flag = USAEmbargoGER }
-		local_flag = USAEmbargoITA
-		local_flag = USAEmbargoJAP
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = USAEmbargoGER_ITA }
-		command = { type = local_clrflag which = USAEmbargoGER_JAP }
-		command = { type = local_setflag which = USAEmbargoITA_JAP }
-		command = { type = local_clrflag which = USAEmbargoGER_ITA_JAP }
-		command = { type = ai which = "switch/USA_Embargo_ITA_JAP.ai" }
-	}
-}
-event = {
-	id = 28023
-	random = no 
-	country = USA
-	#persistent = yes
-	
-	trigger = {
-		ai = yes
-		government = democratic
-		NOT = { local_flag = USAEmbargoGER_ITA_JAP }
-		local_flag = USAEmbargoGER
-		local_flag = USAEmbargoITA
-		local_flag = USAEmbargoJAP
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = USAEmbargoGER_ITA }
-		command = { type = local_clrflag which = USAEmbargoGER_JAP }
-		command = { type = local_clrflag which = USAEmbargoITA_JAP }
-		command = { type = local_setflag which = USAEmbargoGER_ITA_JAP }
-		command = { type = ai which = "switch/USA_Embargo_GER_ITA_JAP.ai" }
-	}
-}
-################
-# USA Air AI
-#############################################
-event = {
-	id = 28024
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = USAGroundAir }
-		OR = {
-			local_flag = USADefense
-			local_flag = USADDay
-			local_flag = USAInvadeUK
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = USAGroundAir }
-		command = { type = local_clrflag which = USAStrategicAir }
-		command = { type = ai which = "Air_Ground.ai" }
-	}
-}
-event = {
-	id = 28025
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = USAStrategicAir }
-		NOT = {
-			local_flag = USADefense
-			local_flag = USADDay
-			local_flag = USAInvadeUK
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = USAGroundAir }
-		command = { type = local_setflag which = USAStrategicAir }
-		command = { type = ai which = "Air_Strategic.ai" }
-	}
-}
-################
-# USA builds paratroopers and transport plane 
-#############################################
-event = {
-	id = 28026
-	random = no
-	country = USA
-	persistent = yes
-	style = 0	
-
-	trigger = {
-		ai = yes
-		atwar = yes
-		technology = 4250
-		NOT = { lost_national = { country = USA value = 2 } }
-		OR = {
-			AND = {
-				OR = {
-					AND = {
-						local_flag = USA1936
-						year = 1936
-						NOT = { year = 1937 }
-					}
-					AND = {
-						local_flag = USA1937
-						year = 1937
-						NOT = { year = 1938 }
-					}
-					AND = {
-						local_flag = USA1938
-						year = 1938
-						NOT = { year = 1939 }
-					}
-					AND = {
-						local_flag = USA1939
-						year = 1939
-						NOT = { year = 1940 }
-					}
-					AND = {
-						local_flag = USA1940
-						year = 1940
-						NOT = { year = 1941 }
-					}
-					AND = {
-						local_flag = USA1941
-						year = 1941
-						NOT = { year = 1942 }
-					}
-				}
-				NOT = { transport_plane = { country = USA value = 1 } }
-			}
-			AND = {
-				OR = {
-					AND = {
-						local_flag = USA1936
-						year = 1937
-						NOT = { year = 1938 }
-					}
-					AND = {
-						local_flag = USA1937
-						year = 1938
-						NOT = { year = 1939 }
-					}
-					AND = {
-						local_flag = USA1938
-						year = 1939
-						NOT = { year = 1940 }
-					}
-					AND = {
-						local_flag = USA1939
-						year = 1940
-						NOT = { year = 1941 }
-					}
-					AND = {
-						local_flag = USA1940
-						year = 1941
-						NOT = { year = 1942 }
-					}
-					AND = {
-						local_flag = USA1941
-						year = 1942
-						NOT = { year = 1943 }
-					}
-				}
-				NOT = { transport_plane = { country = USA value = 2 } }
-			}
-			AND = {
-				OR = {
-					AND = {
-						local_flag = USA1936
-						year = 1938
-						NOT = { year = 1939 }
-					}
-					AND = {
-						local_flag = USA1937
-						year = 1939
-						NOT = { year = 1940 }
-					}
-					AND = {
-						local_flag = USA1938
-						year = 1940
-						NOT = { year = 1941 }
-					}
-					AND = {
-						local_flag = USA1939
-						year = 1941
-						NOT = { year = 1942 }
-					}
-					AND = {
-						local_flag = USA1940
-						year = 1942
-						NOT = { year = 1943 }
-					}
-					AND = {
-						local_flag = USA1941
-						year = 1943
-						NOT = { year = 1944 }
-					}
-				}
-				NOT = { transport_plane = { country = USA value = 3 } }
-			}
-			AND = {
-				OR = {
-					AND = {
-						local_flag = USA1936
-						year = 1939
-					}
-					AND = {
-						local_flag = USA1937
-						year = 1940
-					}
-					AND = {
-						local_flag = USA1938
-						year = 1941
-					}
-					AND = {
-						local_flag = USA1939
-						year = 1942
-					}
-					AND = {
-						local_flag = USA1940
-						year = 1943
-					}
-					AND = {
-						local_flag = USA1941
-						year = 1944
-					}
-				}
-				NOT = { transport_plane = { country = USA value = 4 } }
-			}
-		}
-	}
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	name = "AI_EVENT"
-
-	action_a = {
-		command = { type = build_division which = transport_plane }
-	}
-}
-event = {
-	id = 28027
-	random = no
-	country = USA
-	persistent = yes
-	style = 0	
-
-	trigger = {
-		ai = yes
-		technology = 1070 # Airborne
-		NOT = { lost_national = { country = USA value = 2 } }
-		OR = {
-			AND = {
-				transport_plane = { country = USA value = 1 }
-				NOT = { transport_plane = { country = USA value = 1 } }
-				NOT = { paratrooper = { country = USA value = 1 } }
-			}
-			AND = {
-				transport_plane = { country = USA value = 2 }
-				NOT = { transport_plane = { country = USA value = 2 } }
-				NOT = { paratrooper = { country = USA value = 2 } }
-			}
-			AND = {
-				transport_plane = { country = USA value = 3 }
-				NOT = { transport_plane = { country = USA value = 3 } }
-				NOT = { paratrooper = { country = USA value = 3 } }
-			}
-			AND = {
-				transport_plane = { country = USA value = 4 }
-				NOT = { paratrooper = { country = USA value = 4 } }
-			}
-		}
-	}
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	name = "AI_EVENT"
-
-	action_a = {
-		command = { type = build_division which = paratrooper }
-	}
-}
-################
-# USA builds Carriers
-#############################################
-event = {
-	id = 28028
-	random = no
-	country = USA
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		NOT = { local_flag = USADefense }
-		NOT = { carrier = { country = USA value = 15 } }
-		OR = {
-			atwar = yes
-			year = 1941
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = build_division which = carrier value = cag }
-	}
-}
-################
-# USA flag start year system
-#	used to tell me how to adjust USA Production by his entry year
-#############################################
-event = {
-	id = 28029
-	random = no
-	country = USA
-
-	trigger = {
-		ai = yes
-		atwar = yes
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 14
-	deathdate = { day = 29 month = december year = 1936 }
-
-	action_a = {
-		command = { type = local_setflag which = USA1936 }
-		command = { type = sleepevent which = 28030 }
-		command = { type = sleepevent which = 28031 }
-		command = { type = sleepevent which = 28032 }
-		command = { type = sleepevent which = 28033 }
-		command = { type = sleepevent which = 28034 }
-	}
-}
-event = {
-	id = 28030
-	random = no
-	country = USA
-
-	trigger = {
-		ai = yes
-		atwar = yes
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1937 }
-	offset = 14
-	deathdate = { day = 29 month = december year = 1937 }
-
-	action_a = {
-		command = { type = local_setflag which = USA1937 }
-		command = { type = sleepevent which = 28031 }
-		command = { type = sleepevent which = 28032 }
-		command = { type = sleepevent which = 28033 }
-		command = { type = sleepevent which = 28034 }
-	}
-}
-event = {
-	id = 28031
-	random = no
-	country = USA
-
-	trigger = {
-		ai = yes
-		atwar = yes
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1938 }
-	offset = 14
-	deathdate = { day = 29 month = december year = 1938 }
-
-	action_a = {
-		command = { type = local_setflag which = USA1938 }
-		command = { type = sleepevent which = 28032 }
-		command = { type = sleepevent which = 28033 }
-		command = { type = sleepevent which = 28034 }
-	}
-}
-event = {
-	id = 28032
-	random = no
-	country = USA
-
-	trigger = {
-		ai = yes
-		atwar = yes
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1939 }
-	offset = 14
-	deathdate = { day = 29 month = december year = 1939 }
-
-	action_a = {
-		command = { type = local_setflag which = USA1939 }
-		command = { type = sleepevent which = 28033 }
-		command = { type = sleepevent which = 28034 }
-	}
-}
-event = {
-	id = 28033
-	random = no
-	country = USA
-
-	trigger = {
-		ai = yes
-		atwar = yes
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1940 }
-	offset = 14
-	deathdate = { day = 29 month = december year = 1940 }
-
-	action_a = {
-		command = { type = local_setflag which = USA1940 }
-		command = { type = sleepevent which = 28034 }
-	}
-}
-event = {
-	id = 28034
-	random = no
-	country = USA
-
-	trigger = {
-		ai = yes
-		atwar = yes
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1941 }
-	offset = 14
-	deathdate = { day = 29 month = december year = 1941 }
-
-	action_a = {
-		command = { type = local_setflag which = USA1941 }
-	}
-}
-################
-# USA builds Submarines
-#############################################
-event = {
-	id = 28035
-	random = no
-	country = USA
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		NOT = { local_flag = USADefense }
-		NOT = { submarine = { country = USA value = 10 } }
-		OR = {
-			atwar = yes
-			year = 1941
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = build_division which = submarine }
-	}
-}
-################
-# USA AI Slider manipulation
-#
-#	Interventionism
-#############################################
-event = { # Interventionism
-	id = 28036
-	random = no
-	country = USA
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = interventionism value = 1}
-		NOT = { domestic = { type = interventionism value = 9 } }
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = interventionism value = 1 }
-	}
-}
-################
-#	Standing Army
-#############################################
-event = { # Standing Army
-	id = 28037
-	random = no
-	country = USA
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = professional_army value = 1}
-		NOT = { domestic = { type = professional_army value = 9 } }
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = professional_army value = 1 }
-	}
-}
-
-
-
-
-
-####################################
-# USA 28500 - 28599 = Minister Change Events
-####################################
-################
-# Minister of Security Section 28500 - 28509
-#############################################
-event = { # J. Edgar Hoover takes power
-	id = 28500
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 6005 # J. Edgar Hoover
-		NOT = { InCabinet = 6005 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 6005 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Staff Section 28510 - 28519
-#############################################
-event = { # George C. Marshall takes power
-	id = 28510
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = no
-		minister = 6136 # George C. Marshall
-		NOT = { InCabinet = 6136 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 6136 }
-		command = { type = dissent value = -1 }
-	}
-}
-
-event = { # Douglas MacArthur takes power
-	id = 28511
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		minister = 6181 # Douglas MacArthur
-		NOT = { InCabinet = 6181 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 6181 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Dwight D. Eisenhower takes power
-	id = 28512
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		minister = 6137 # Dwight D. Eisenhower
-		NOT = { InCabinet = 6137 }
-		NOT = { minister = 6181 } # Douglas MacArthur
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 6137 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Head of Intelligence Section 28520 - 28529
-#############################################
-event = { # Henry J. Kaiser takes power
-	id = 28520
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 6120 # Henry J. Kaiser
-		NOT = { InCabinet = 6120 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 6120 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of the Army Section 28530 - 28539
-#############################################
-event = { # George C. Marshall takes power
-	id = 28530
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 6144 # George C. Marshall
-		NOT = { InCabinet = 6144 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 6144 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Kenneth Althaus takes power
-	id = 28531
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 6148 # Kenneth Althaus
-		NOT = { InCabinet = 6148 }
-		NOT = { minister = 6144 } # George C. Marshall
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 6148 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Armament Minister Section 28540 - 28549
-#############################################
-event = { # Robert F. Wagner takes power
-	id = 28540
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = no
-		minister = 6206 # Robert F. Wagner
-		NOT = { InCabinet = 6206 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 6206 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Henry Morgenthau takes power
-	id = 28541
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 6077 # Henry Morgenthau
-		NOT = { InCabinet = 6077 }
-		OR = {
-			atwar = yes
-			NOT = { minister = 6206 } # Robert F. Wagner
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 6077 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Harold Ickes takes power
-	id = 28542
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 6199 # Harold Ickes
-		NOT = { InCabinet = 6199 }
-		OR = {
-			AND = {
-				atwar = yes
-				NOT = { minister = 6077 } # Henry Morgenthau
-			}
-			AND = {
-				NOT = { minister = 6077 } # Henry Morgenthau
-				NOT = { minister = 6206 } # Robert F. Wagner
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 6199 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Air Minister Section 28550 - 28559
-#############################################
-event = { # Charles Lindbergh takes power
-	id = 28550
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 6172 # Charles Lindbergh
-		NOT = { InCabinet = 6172 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 6172 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Navy Minister Section 28560 - 28569
-#############################################
-event = { # Charles Edison takes power
-	id = 28560
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 6154 # Charles Edison
-		NOT = { InCabinet = 6154 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofnavy which = 6154 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Harold R. Stark takes power
-	id = 28561
-	random = no 
-	country = USA
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 6159 # Harold R. Stark
-		NOT = { InCabinet = 6159 }
-		NOT = { minister = 6154 } # Charles Edison
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofnavy which = 6159 }
-		command = { type = dissent value = -1 }
-	}
-}
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/ai_eng.txt Doomsday Data Files/db/events/ai_eng.txt
--- Doomsday Data Files.old/db/events/ai_eng.txt	2008-03-28 10:46:23.000000000 +0100
+++ Doomsday Data Files/db/events/ai_eng.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,2720 +1 @@
-####################################
-# United Kingdom and Minors 24000 - 24999 by Lothos
-####################################
-# Unit building AI
-#	ENGBuildStandard	= Standard Building of units 
-#	ENGBuildLand		= Priority Building land units
-
-# Air AI Flags
-#	ENGAirAINaval		= Air vs Naval priority
-#	ENGAirAIStrategic	= Strategic Bombing has priority
-#	ENGAirAIGround		= Ground Support has priority
-
-# Behavior Flags
-#	ENGInvadeItaly		= England is trying to invade Norway since low garrison
-#	ENGInvadeNorway		= England is trying to invade Norway since low garrison
-#	ENGDDay				= England is trying to help an AI USA with D-Day
-
-# Naval AI Flags
-#	ENGNavalChannel		= Ignore the English Channel cause France fell
-#	ENGNavalChannelP	= Protect the English Channel
-#	ENGNavalNorway		= English Navy support Norway Invasion
-#	ENGNavalMedShut		= English avoid sending ships through the med
-#	ENGNavalChannelMed	= Same as Channel but shuts down Med
-#	ENGNavalChannelPMed	= Same as ChannelP but shuts down Med
-#	ENGNavalNorwayMed	= Same as Norway but shuts down Med
-
-#	ENGNavalPacificShut			= English avoid sending ships through the Pacific
-#	ENGNavalChannelPacific		= Same as Channel but shuts down Pacific
-#	ENGNavalChannelPPacific		= Same as ChannelP but shuts down Pacific
-#	ENGNavalNorwayPacific		= Same as Norway but shuts down Pacific
-#	ENGNavalChannelPacificMed	= Same as Channel but shuts down Pacific and Med
-#	ENGNavalChannelPPacificMed	= Same as ChannelP but shuts down Pacific and Med
-#	ENGNavalNorwayPacificMed	= Same as Norway but shuts down Pacific and Med
-
-################
-# Battle of Britain
-#############################################
-event = {
-	id = 24000
-	random = no 
-	country = ENG
-	
-	trigger = {
-		ai = yes
-		war = { country = GER country = ENG }
-		NOT = { war = { country = GER country = SOV } }
-		OR = {
-			control = { province = 56 data = GER } # Paris
-			AND = {
-				# Belgium
-				control = { province = 45 data = GER }
-				control = { province = 50 data = GER }
-				control = { province = 51 data = GER }
-				control = { province = 52 data = GER }
-				control = { province = 65 data = GER }
-				control = { province = 68 data = GER }
-				control = { province = 69 data = GER }
-				control = { province = 70 data = GER }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Britain.ai" }
-	}
-}
-################
-# England sends help to Greece
-#############################################
-event = {
-	id = 24001
-	random = no 
-	country = ENG
-	
-	trigger = {
-		ai = yes
-		random = 30
-		war = { country = ITA country = GRE }
-		alliance = { country = ENG country = GRE }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Baklans.ai" }
-	}
-}
-################
-# Poland is being attacked DELETED
-#############################################
-#event = {
-#	id = 24003
-#	random = no 
-#	country = ENG
-
-################
-# England release troops from England to attack with
-#############################################
-event = {
-	id = 24004
-	random = no 
-	country = ENG
-	
-	trigger = {
-		ai = yes
-		OR = {
-			random = 30
-			alliance = { country = ENG country = USA }
-		}
-		war = { country = GER country = ENG }
-		OR = {
-			war = { country = GER country = USA }
-			war = { country = GER country = SOV }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Attack.ai" }
-	}
-}
-################
-# England sends more troops to France since they are allive still
-#############################################
-event = {
-	id = 24005
-	random = no 
-	country = ENG
-	
-	trigger = {
-		ai = yes
-		exists = FRA
-		control = { province = 56 data = FRA } # Paris
-		NOT = { exists = VIC }
-		war = { country = FRA country = GER }
-		alliance = { country = ENG country = FRA }
-		NOT = {	lost_national = { country = FRA value = 35 } }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1941 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_EXP_France.ai" }
-	}
-}
-################
-# England changes production prios
-#############################################
-event = {
-	id = 24006
-	random = no 
-	country = ENG
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Atwar.ai" }
-	}
-}
-################
-# Australia changes production
-#############################################
-# Event 24007 deleted by Lothos
-
-################
-# England updates Protection list
-#############################################
-event = {
-	id = 24008
-	random = no 
-	country = ENG
-	
-	trigger = {
-		ai = yes
-		war = { country = GER country = SOV }
-		war = { country = GER country = ENG }
-		NOT = { war = { country = SOV country = ENG } }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_SOV_Protect.ai" }
-	}
-}
-################
-# England loads EXP Force Ratio for war with SOV
-#############################################
-event = {
-	id = 24009
-	random = no 
-	country = ENG
-	
-	trigger = {
-		ai = yes
-		war = { country = USA country = SOV }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/EXP_ALIvsSOV2.ai" }
-	}
-}
-################
-# England Load D-Day AI
-#############################################
-event = {
-	id = 24010
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = ENGDDay }
-		alliance = { country = ENG country = USA }
-		OR = {
-			AND = {
-				ai = USA
-				flag = DDay
-			}
-			control = { province = 292 data = USA } # Arburg
-			control = { province = 92  data = USA } # Arhus
-			control = { province = 91  data = USA } # Kolding			
-			control = { province = 78  data = USA } # Leeweden
-			control = { province = 47  data = USA } # Amsterdam
-			control = { province = 46  data = USA } # Rotterdam
-			control = { province = 45  data = USA } # Ghent
-			control = { province = 18  data = USA } # Calais
-			control = { province = 42  data = USA } # Dieppe
-			control = { province = 41  data = USA } # Le Havre
-			control = { province = 39  data = USA } # Caen
-			control = { province = 33  data = USA } # Rennes
-			control = { province = 32  data = USA } # Brest
-			control = { province = 34  data = USA } # Lorient
-			control = { province = 35  data = USA } # Nantes
-			control = { province = 59  data = USA } # Cholet
-			control = { province = 325 data = USA } # Bordeaux
-			control = { province = 326 data = USA } # Dax
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Dday.ai" }
-		command = { type = local_setflag which = ENGDDay }
-	}
-}
-event = {
-	id = 24011
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGDDay
-		alliance = { country = ENG country = USA }
-		NOT = {
-			AND = {
-				ai = USA
-				flag = DDay
-			}
-			control = { province = 292 data = USA } # Arburg
-			control = { province = 92  data = USA } # Arhus
-			control = { province = 91  data = USA } # Kolding			
-			control = { province = 78  data = USA } # Leeweden
-			control = { province = 47  data = USA } # Amsterdam
-			control = { province = 46  data = USA } # Rotterdam
-			control = { province = 45  data = USA } # Ghent
-			control = { province = 18  data = USA } # Calais
-			control = { province = 42  data = USA } # Dieppe
-			control = { province = 41  data = USA } # Le Havre
-			control = { province = 39  data = USA } # Caen
-			control = { province = 33  data = USA } # Rennes
-			control = { province = 32  data = USA } # Brest
-			control = { province = 34  data = USA } # Lorient
-			control = { province = 35  data = USA } # Nantes
-			control = { province = 59  data = USA } # Cholet
-			control = { province = 325 data = USA } # Bordeaux
-			control = { province = 326 data = USA } # Dax
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Attack.ai" }
-		command = { type = local_clrflag which = ENGDDay }
-	}
-}
-################
-# Canada Load D-Day AI
-#############################################
-# Event 24012 deleted by Lothos
-
-################
-# England Air AI Naval portion
-#############################################
-event = {
-	id = 24013
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = ENGAirAINaval }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		# These statements must be false if not the land air AI has priority
-		NOT = {	lost_national = { country = ENG value = 2 }	}
-		
-		# These statements have to be true for it to load naval AI
-		OR = {
-			AND = {
-				war = { country = GER country = ENG }
-				OR = {
-					# North Sea
-					garrison = { country = GER province = 2400  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2399  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = GER province = 2402  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2471  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2398  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2397  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2396  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2395  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = GER province = 2413  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2414  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2411  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2409  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2410  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2406  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2405  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2404  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2403  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = ITA country = ENG }
-				OR = {
-					# North Sea
-					garrison = { country = ITA province = 2400  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2399  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = ITA province = 2402  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2471  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2398  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2397  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2396  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2395  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = ITA province = 2413  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2414  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2411  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2409  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2410  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2406  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2405  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2404  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2403  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = SPA country = ENG }
-				OR = {
-					# North Sea
-					garrison = { country = SPA province = 2400  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2399  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = SPA province = 2402  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2471  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2398  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2397  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2396  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2395  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = SPA province = 2413  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2414  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2411  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2409  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2410  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2406  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2405  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2404  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2403  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = USA country = ENG }
-				OR = {
-					# North Sea
-					garrison = { country = USA province = 2400  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2399  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = USA province = 2402  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2471  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2398  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2397  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2396  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2395  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = USA province = 2413  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2414  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2411  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2409  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2410  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2406  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2405  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2404  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2403  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = SOV country = ENG }
-				OR = {
-					# North Sea
-					garrison = { country = SOV province = 2400  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2399  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = SOV province = 2402  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2471  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2398  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2397  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2396  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2395  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = SOV province = 2413  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2414  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2411  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2409  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2410  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2406  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2405  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2404  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2403  type = naval size = 2 area = no }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = ENGAirAINaval }
-		command = { type = local_clrflag which = ENGAirAIStrategic }
-		command = { type = local_clrflag which = ENGAirAIGround }
-		command = { type = ai which = "switch/ENG_Air_Naval.ai" }
-	}
-}
-################
-# England Air AI Land portion
-#############################################
-event = {
-	id = 24014
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = ENGAirAIGround }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		# These statements must be false if not the land air AI has priority
-		OR = {
-			lost_national = { country = ENG value = 2 }
-			OR = {
-				#Southern Boot of Italy
-				control = { province = 526 data = ENG }
-				control = { province = 525 data = ENG }
-				control = { province = 523 data = ENG }
-				control = { province = 521 data = ENG }
-				control = { province = 520 data = ENG }
-				#Greece (Area)
-				control = { province = 394 data = ENG }
-				control = { province = 401 data = ENG }
-				control = { province = 411 data = ENG }
-				control = { province = 390 data = ENG }
-				control = { province = 410 data = ENG }
-			}
-		}
-		# These statements have to be true for it to load naval AI
-		NOT = {
-			AND = {
-				war = { country = GER country = ENG }
-				NOT = { lost_national = { country = ENG value = 2 } }
-				OR = {
-					# North Sea
-					garrison = { country = GER province = 2400  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2399  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = GER province = 2402  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2471  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2398  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2397  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2396  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2395  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = GER province = 2413  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2414  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2411  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2409  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2410  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2406  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2405  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2404  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2403  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = ITA country = ENG }
-				NOT = { lost_national = { country = ENG value = 2 } }
-				OR = {
-					# North Sea
-					garrison = { country = ITA province = 2400  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2399  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = ITA province = 2402  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2471  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2398  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2397  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2396  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2395  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = ITA province = 2413  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2414  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2411  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2409  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2410  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2406  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2405  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2404  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2403  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = SPA country = ENG }
-				NOT = { lost_national = { country = ENG value = 2 } }
-				OR = {
-					# North Sea
-					garrison = { country = SPA province = 2400  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2399  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = SPA province = 2402  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2471  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2398  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2397  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2396  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2395  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = SPA province = 2413  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2414  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2411  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2409  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2410  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2406  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2405  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2404  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2403  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = USA country = ENG }
-				NOT = { lost_national = { country = ENG value = 2 } }
-				OR = {
-					# North Sea
-					garrison = { country = USA province = 2400  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2399  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = USA province = 2402  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2471  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2398  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2397  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2396  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2395  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = USA province = 2413  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2414  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2411  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2409  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2410  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2406  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2405  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2404  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2403  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = SOV country = ENG }
-				NOT = { lost_national = { country = ENG value = 2 } }
-				OR = {
-					# North Sea
-					garrison = { country = SOV province = 2400  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2399  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = SOV province = 2402  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2471  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2398  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2397  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2396  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2395  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = SOV province = 2413  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2414  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2411  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2409  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2410  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2406  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2405  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2404  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2403  type = naval size = 2 area = no }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ENGAirAINaval }
-		command = { type = local_clrflag which = ENGAirAIStrategic }
-		command = { type = local_setflag which = ENGAirAIGround }
-		command = { type = ai which = "switch/ENG_Air_Ground.ai" }
-	}
-}
-################
-# England Air AI Strategic portion
-#############################################
-event = {
-	id = 24015
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = ENGAirAIStrategic }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		# These statements must be false to load the Strategic AI
-		NOT = {
-			lost_national = { country = ENG value = 2 }
-			OR = {
-				#Southern Boot of Italy
-				control = { province = 526 data = ENG }
-				control = { province = 525 data = ENG }
-				control = { province = 523 data = ENG }
-				control = { province = 521 data = ENG }
-				control = { province = 520 data = ENG }
-				#Greece (Area)
-				control = { province = 394 data = ENG }
-				control = { province = 401 data = ENG }
-				control = { province = 411 data = ENG }
-				control = { province = 390 data = ENG }
-				control = { province = 410 data = ENG }
-			}
-		}
-		# These statements must be false to load the Strategic AI
-		NOT = {
-			AND = {
-				war = { country = GER country = ENG }
-				NOT = { lost_national = { country = ENG value = 2 } }
-				OR = {
-					# North Sea
-					garrison = { country = GER province = 2400  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2399  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = GER province = 2402  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2471  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2398  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2397  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2396  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2395  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = GER province = 2413  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2414  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2411  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2409  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2410  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2406  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2405  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2404  type = naval size = 2 area = no }
-					garrison = { country = GER province = 2403  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = ITA country = ENG }
-				NOT = { lost_national = { country = ENG value = 2 } }
-				OR = {
-					# North Sea
-					garrison = { country = ITA province = 2400  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2399  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = ITA province = 2402  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2471  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2398  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2397  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2396  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2395  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = ITA province = 2413  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2414  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2411  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2409  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2410  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2406  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2405  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2404  type = naval size = 2 area = no }
-					garrison = { country = ITA province = 2403  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = SPA country = ENG }
-				NOT = { lost_national = { country = ENG value = 2 } }
-				OR = {
-					# North Sea
-					garrison = { country = SPA province = 2400  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2399  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = SPA province = 2402  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2471  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2398  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2397  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2396  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2395  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = SPA province = 2413  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2414  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2411  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2409  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2410  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2406  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2405  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2404  type = naval size = 2 area = no }
-					garrison = { country = SPA province = 2403  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = USA country = ENG }
-				NOT = { lost_national = { country = ENG value = 2 } }
-				OR = {
-					# North Sea
-					garrison = { country = USA province = 2400  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2399  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = USA province = 2402  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2471  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2398  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2397  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2396  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2395  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = USA province = 2413  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2414  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2411  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2409  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2410  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2406  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2405  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2404  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2403  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = SOV country = ENG }
-				NOT = { lost_national = { country = ENG value = 2 } }
-				OR = {
-					# North Sea
-					garrison = { country = SOV province = 2400  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2399  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2472  type = naval size = 2 area = no }
-					# East Coast
-					garrison = { country = SOV province = 2402  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2471  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2398  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2397  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2396  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2395  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2412  type = naval size = 2 area = no }
-					#West Coast
-					garrison = { country = SOV province = 2413  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2414  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2411  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2409  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2410  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2406  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2405  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2404  type = naval size = 2 area = no }
-					garrison = { country = SOV province = 2403  type = naval size = 2 area = no }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ENGAirAINaval }
-		command = { type = local_setflag which = ENGAirAIStrategic }
-		command = { type = local_clrflag which = ENGAirAIGround }
-		command = { type = ai which = "switch/ENG_Air_Strategic.ai" }
-	}
-}
-################
-# Englands loads Standard builds AI
-#############################################
-event = {
-	id = 24016
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		NOT = { local_flag = ENGBuildStandard }
-		NOT = {
-			AND = {
-				war = { country = GER country = ENG }
-				NOT = { land_percentage = { country = GER value = 0.5 } }
-			}
-			AND = {
-				war = { country = ITA country = ENG }
-				NOT = { land_percentage = { country = ITA value = 0.9 } }
-			}
-			AND = {
-				war = { country = SOV country = ENG }
-				NOT = { land_percentage = { country = SOV value = 0.2 } }
-			}
-			AND = {
-				war = { country = USA country = ENG }
-				NOT = { land_percentage = { country = USA value = 0.2 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = ENGBuildStandard }
-		command = { type = local_clrflag which = ENGBuildLand }
-		command = { type = ai which = "switch/ENG_Build_Standard.ai" }
-	}
-}
-################
-# Englands loads Land builds AI
-#############################################
-event = {
-	id = 24017
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		NOT = { local_flag = ENGBuildLand }
-		OR = {
-			AND = {
-				war = { country = GER country = ENG }
-				NOT = { land_percentage = { country = GER value = 0.5 } }
-			}
-			AND = {
-				war = { country = ITA country = ENG }
-				NOT = { land_percentage = { country = ITA value = 0.9 } }
-			}
-			AND = {
-				war = { country = SOV country = ENG }
-				NOT = { land_percentage = { country = SOV value = 0.2 } }
-			}
-			AND = {
-				war = { country = USA country = ENG }
-				NOT = { land_percentage = { country = USA value = 0.2 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ENGBuildStandard }
-		command = { type = local_setflag which = ENGBuildLand }
-		command = { type = ai which = "switch/ENG_Build_Land.ai" }
-	}
-}
-################
-# England invades Norway due to lack of defenses
-#	ENGInvadeNorway
-#############################################
-event = {
-	id = 24018
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		random = 10
-		war = { country = GER country = ENG }
-		NOT = {	lost_national = { country = ENG value = 2 } }
-		NOT = { local_flag = ENGInvadeNorway }
-		OR = {
-			NOT = { exists = NOR }
-			puppet = { country = NOR country = GER }
-		}
-		OR = {
-			war = { country = GER country = SOV }
-			war = { country = GER country = USA }
-		}
-		OR = { # Norway
-			control = { province = 107 data = GER }
-			control = { province = 108 data = GER }
-			control = { province = 109 data = GER }
-			control = { province = 110 data = GER }
-			control = { province = 117 data = GER }
-			control = { province = 118 data = GER }
-			control = { province = 124 data = GER }
-			control = { province = 125 data = GER }
-		}
-		OR = {
-			AND = {
-				NOT = { garrison = { country = GER province = 107  type = land size = 1 area = no } } # Oslo
-				NOT = { garrison = { country = GER province = 108  type = land size = 1 area = no } } # Kristiansan
-				NOT = { garrison = { country = GER province = 109  type = land size = 1 area = no } } # Stavanger
-			}
-			AND = {
-				NOT = { garrison = { country = GER province = 109  type = land size = 1 area = no } } # Stavanger
-				NOT = { garrison = { country = GER province = 110  type = land size = 1 area = no } } # Bergen
-				NOT = { garrison = { country = GER province = 117  type = land size = 1 area = no } } # Alesund
-			}
-			AND = {
-				NOT = { garrison = { country = GER province = 118  type = land size = 1 area = no } } # Trondheim
-				NOT = { garrison = { country = GER province = 124  type = land size = 1 area = no } } # Mo I Ran
-				NOT = { garrison = { country = GER province = 125  type = land size = 1 area = no } } # Narvik
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Norway.ai" }
-		command = { type = local_setflag which = ENGInvadeNorway }
-	}
-}
-event = {
-	id = 24019
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		war = { country = GER country = ENG }
-		local_flag = ENGInvadeNorway
-		OR = { # Norway
-			control = { province = 107 data = GER }
-			control = { province = 108 data = GER }
-			control = { province = 109 data = GER }
-			control = { province = 110 data = GER }
-			control = { province = 117 data = GER }
-			control = { province = 118 data = GER }
-			control = { province = 124 data = GER }
-			control = { province = 125 data = GER }
-		}
-		OR = {
-			lost_national = { country = ENG value = 2 }
-			NOT = {
-				AND = {
-					NOT = { garrison = { country = GER province = 107  type = land size = 1 area = no } } # Oslo
-					NOT = { garrison = { country = GER province = 108  type = land size = 1 area = no } } # Kristiansan
-					NOT = { garrison = { country = GER province = 109  type = land size = 1 area = no } } # Stavanger
-				}
-				AND = {
-					NOT = { garrison = { country = GER province = 109  type = land size = 1 area = no } } # Stavanger
-					NOT = { garrison = { country = GER province = 110  type = land size = 1 area = no } } # Bergen
-					NOT = { garrison = { country = GER province = 117  type = land size = 1 area = no } } # Alesund
-				}
-				AND = {
-					NOT = { garrison = { country = GER province = 118  type = land size = 1 area = no } } # Trondheim
-					NOT = { garrison = { country = GER province = 124  type = land size = 1 area = no } } # Mo I Ran
-					NOT = { garrison = { country = GER province = 125  type = land size = 1 area = no } } # Narvik
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Norway_Backoff.ai" }
-		command = { type = local_clrflag which = ENGInvadeNorway }
-	}
-}
-################
-# England Naval AI Section
-#	ENGNavalChannel		= Ignore the English Channel cause France fell
-#	ENGNavalChannelP	= Protect the English Channel
-#	ENGNavalNorway		= English Navy support Norway Invasion
-#	ENGNavalMedShut		= English avoid sending ships through the med
-#	ENGNavalChannelMed	= Same as Channel but shuts down Med
-#	ENGNavalChannelPMed	= Same as ChannelP but shuts down Med
-#	ENGNavalNorwayMed	= Same as Norway but shuts down Med
-
-#	ENGNavalPacificShut			= English avoid sending ships through the Pacific
-#	ENGNavalChannelPacific		= Same as Channel but shuts down Pacific
-#	ENGNavalChannelPPacific		= Same as ChannelP but shuts down Pacific
-#	ENGNavalNorwayPacific		= Same as Norway but shuts down Pacific
-#	ENGNavalChannelPacificMed	= Same as Channel but shuts down Pacific and Med
-#	ENGNavalChannelPPacificMed	= Same as ChannelP but shuts down Pacific and Med
-#	ENGNavalNorwayPacificMed	= Same as Norway but shuts down Pacific and Med
-
-#############################################
-event = {
-	id = 24020
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		NOT = { local_flag = ENGNavalChannelP }
-		OR = {
-			local_flag = ENGDDay
-			AND = {
-				alliance = { country = ENG country = FRA }
-				control = { province = 56 data = FRA } # Paris
-			}
-			AND = {
-				war = { country = ENG country = GER }
-				OR = {
-					# Baltic
-					garrison = { country = GER province = 2395  type = naval size = 1 area = no }
-					garrison = { country = GER province = 2412  type = naval size = 1 area = no }
-					garrison = { country = GER province = 2413  type = naval size = 1 area = no }
-					garrison = { country = GER province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = ITA }
-				OR = {
-					# Baltic
-					garrison = { country = ITA province = 2395  type = naval size = 1 area = no }
-					garrison = { country = ITA province = 2412  type = naval size = 1 area = no }
-					garrison = { country = ITA province = 2413  type = naval size = 1 area = no }
-					garrison = { country = ITA province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = SOV }
-				OR = {
-					# Baltic
-					garrison = { country = SOV province = 2395  type = naval size = 1 area = no }
-					garrison = { country = SOV province = 2412  type = naval size = 1 area = no }
-					garrison = { country = SOV province = 2413  type = naval size = 1 area = no }
-					garrison = { country = SOV province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = SPA }
-				OR = {
-					# Baltic
-					garrison = { country = SPA province = 2395  type = naval size = 1 area = no }
-					garrison = { country = SPA province = 2412  type = naval size = 1 area = no }
-					garrison = { country = SPA province = 2413  type = naval size = 1 area = no }
-					garrison = { country = SPA province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = SPR }
-				OR = {
-					# Baltic
-					garrison = { country = SPR province = 2395  type = naval size = 1 area = no }
-					garrison = { country = SPR province = 2412  type = naval size = 1 area = no }
-					garrison = { country = SPR province = 2413  type = naval size = 1 area = no }
-					garrison = { country = SPR province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = SWE }
-				OR = {
-					# Baltic
-					garrison = { country = SWE province = 2395  type = naval size = 1 area = no }
-					garrison = { country = SWE province = 2412  type = naval size = 1 area = no }
-					garrison = { country = SWE province = 2413  type = naval size = 1 area = no }
-					garrison = { country = SWE province = 2414  type = naval size = 1 area = no }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Naval_Channel_Protect.ai" }
-		command = { type = local_setflag which = ENGNavalChannelP }
-		command = { type = local_clrflag which = ENGNavalChannel }
-		command = { type = local_clrflag which = ENGNavalNorway }
-		command = { type = local_clrflag which = ENGNavalChannelMed }
-		command = { type = local_clrflag which = ENGNavalChannelPMed }
-		command = { type = local_clrflag which = ENGNavalNorwayMed }
-		command = { type = local_clrflag which = ENGNavalChannelPacific }
-		command = { type = local_clrflag which = ENGNavalChannelPPacific }
-		command = { type = local_clrflag which = ENGNavalNorwayPacific }
-		command = { type = local_clrflag which = ENGNavalChannelPacificMed }
-		command = { type = local_clrflag which = ENGNavalChannelPPacificMed }
-		command = { type = local_clrflag which = ENGNavalNorwayPacificMed }
-	}
-}
-################
-# England Naval AI Section
-#	ENGNavalChannel		= Ignore the English Channel cause France fell
-#############################################
-event = {
-	id = 24021
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		NOT = { control = { province = 56 data = FRA } } # Paris
-		NOT = { local_flag = ENGNavalChannel }
-		OR = {
-			NOT = { local_flag = ENGNavalNorway }
-			AND = {
-				NOT = { local_flag = ENGInvadeNorway }
-				local_flag = ENGNavalNorway
-			}
-		}
-		NOT = {
-			local_flag = ENGDDay
-			AND = {
-				alliance = { country = ENG country = FRA }
-				control = { province = 56 data = FRA } # Paris
-			}
-			AND = {
-				war = { country = ENG country = GER }
-				OR = {
-					# Baltic
-					garrison = { country = GER province = 2395  type = naval size = 1 area = no }
-					garrison = { country = GER province = 2412  type = naval size = 1 area = no }
-					garrison = { country = GER province = 2413  type = naval size = 1 area = no }
-					garrison = { country = GER province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = ITA }
-				OR = {
-					# Baltic
-					garrison = { country = ITA province = 2395  type = naval size = 1 area = no }
-					garrison = { country = ITA province = 2412  type = naval size = 1 area = no }
-					garrison = { country = ITA province = 2413  type = naval size = 1 area = no }
-					garrison = { country = ITA province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = SOV }
-				OR = {
-					# Baltic
-					garrison = { country = SOV province = 2395  type = naval size = 1 area = no }
-					garrison = { country = SOV province = 2412  type = naval size = 1 area = no }
-					garrison = { country = SOV province = 2413  type = naval size = 1 area = no }
-					garrison = { country = SOV province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = SPA }
-				OR = {
-					# Baltic
-					garrison = { country = SPA province = 2395  type = naval size = 1 area = no }
-					garrison = { country = SPA province = 2412  type = naval size = 1 area = no }
-					garrison = { country = SPA province = 2413  type = naval size = 1 area = no }
-					garrison = { country = SPA province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = SPR }
-				OR = {
-					# Baltic
-					garrison = { country = SPR province = 2395  type = naval size = 1 area = no }
-					garrison = { country = SPR province = 2412  type = naval size = 1 area = no }
-					garrison = { country = SPR province = 2413  type = naval size = 1 area = no }
-					garrison = { country = SPR province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = SPR }
-				OR = {
-					# Baltic
-					garrison = { country = SWE province = 2395  type = naval size = 1 area = no }
-					garrison = { country = SWE province = 2412  type = naval size = 1 area = no }
-					garrison = { country = SWE province = 2413  type = naval size = 1 area = no }
-					garrison = { country = SWE province = 2414  type = naval size = 1 area = no }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Naval_Channel.ai" }
-		command = { type = local_clrflag which = ENGNavalChannelP }
-		command = { type = local_setflag which = ENGNavalChannel }
-		command = { type = local_clrflag which = ENGNavalNorway }
-		command = { type = local_clrflag which = ENGNavalChannelMed }
-		command = { type = local_clrflag which = ENGNavalChannelPMed }
-		command = { type = local_clrflag which = ENGNavalNorwayMed }
-		command = { type = local_clrflag which = ENGNavalChannelPacific }
-		command = { type = local_clrflag which = ENGNavalChannelPPacific }
-		command = { type = local_clrflag which = ENGNavalNorwayPacific }
-		command = { type = local_clrflag which = ENGNavalChannelPacificMed }
-		command = { type = local_clrflag which = ENGNavalChannelPPacificMed }
-		command = { type = local_clrflag which = ENGNavalNorwayPacificMed }
-	}
-}
-################
-# England Naval AI Section
-#	ENGNavalNorway		= English Navy support Norway Invasion
-#############################################
-event = {
-	id = 24022
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		local_flag = ENGInvadeNorway
-		NOT = { local_flag = ENGNavalNorway }
-		NOT = {
-			local_flag = ENGDDay
-			AND = {
-				alliance = { country = ENG country = FRA }
-				control = { province = 56 data = FRA } # Paris
-			}
-			AND = {
-				war = { country = ENG country = GER }
-				OR = {
-					# Baltic
-					garrison = { country = GER province = 2395  type = naval size = 1 area = no }
-					garrison = { country = GER province = 2412  type = naval size = 1 area = no }
-					garrison = { country = GER province = 2413  type = naval size = 1 area = no }
-					garrison = { country = GER province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = ITA }
-				OR = {
-					# Baltic
-					garrison = { country = ITA province = 2395  type = naval size = 1 area = no }
-					garrison = { country = ITA province = 2412  type = naval size = 1 area = no }
-					garrison = { country = ITA province = 2413  type = naval size = 1 area = no }
-					garrison = { country = ITA province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = SOV }
-				OR = {
-					# Baltic
-					garrison = { country = SOV province = 2395  type = naval size = 1 area = no }
-					garrison = { country = SOV province = 2412  type = naval size = 1 area = no }
-					garrison = { country = SOV province = 2413  type = naval size = 1 area = no }
-					garrison = { country = SOV province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = SPA }
-				OR = {
-					# Baltic
-					garrison = { country = SPA province = 2395  type = naval size = 1 area = no }
-					garrison = { country = SPA province = 2412  type = naval size = 1 area = no }
-					garrison = { country = SPA province = 2413  type = naval size = 1 area = no }
-					garrison = { country = SPA province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = SPR }
-				OR = {
-					# Baltic
-					garrison = { country = SPR province = 2395  type = naval size = 1 area = no }
-					garrison = { country = SPR province = 2412  type = naval size = 1 area = no }
-					garrison = { country = SPR province = 2413  type = naval size = 1 area = no }
-					garrison = { country = SPR province = 2414  type = naval size = 1 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = SPR }
-				OR = {
-					# Baltic
-					garrison = { country = SWE province = 2395  type = naval size = 1 area = no }
-					garrison = { country = SWE province = 2412  type = naval size = 1 area = no }
-					garrison = { country = SWE province = 2413  type = naval size = 1 area = no }
-					garrison = { country = SWE province = 2414  type = naval size = 1 area = no }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Naval_Norway.ai" }
-		command = { type = local_clrflag which = ENGNavalChannelP }
-		command = { type = local_clrflag which = ENGNavalChannel }
-		command = { type = local_setflag which = ENGNavalNorway }
-		command = { type = local_clrflag which = ENGNavalChannelMed }
-		command = { type = local_clrflag which = ENGNavalChannelPMed }
-		command = { type = local_clrflag which = ENGNavalNorwayMed }
-		command = { type = local_clrflag which = ENGNavalChannelPacific }
-		command = { type = local_clrflag which = ENGNavalChannelPPacific }
-		command = { type = local_clrflag which = ENGNavalNorwayPacific }
-		command = { type = local_clrflag which = ENGNavalChannelPacificMed }
-		command = { type = local_clrflag which = ENGNavalChannelPPacificMed }
-		command = { type = local_clrflag which = ENGNavalNorwayPacificMed }
-	}
-}
-################
-# England Naval AI Section
-#	ENGNavalMedShut		= English avoid sending ships through the med
-#############################################
-event = {
-	id = 24023
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		war = { country = ENG country = GER }
-		NOT = { local_flag = ENGNavalMedShut }
-		OR = {
-			AND = {
-				war = { country = ENG country = ITA }
-				#NOT = { naval_percentage = { country = ITA value = 2.5 } }
-			}
-			AND = {
-				war = { country = ENG country = VIC }
-				#NOT = { naval_percentage = { country = VIC value = 2.5 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = ENGNavalMedShut }
-	}
-}
-event = {
-	id = 24024
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGNavalMedShut
-		NOT = {
-			NOT = { war = { country = ENG country = GER } }
-			AND = {
-				war = { country = ENG country = ITA }
-				#NOT = { naval_percentage = { country = ITA value = 2.5 } }
-			}
-			AND = {
-				war = { country = ENG country = VIC }
-				#NOT = { naval_percentage = { country = VIC value = 2.5 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ENGNavalMedShut }
-	}
-}
-################
-# England Naval AI Section (Uses regular flags with Med Shut down to figure out what to do)
-#	ENGNavalChannel		= Ignore the English Channel cause France fell
-#	ENGNavalChannelP	= Protect the English Channel
-#	ENGNavalNorway		= English Navy support Norway Invasion
-#	ENGNavalMedShut		= English avoid sending ships through the med
-#	ENGNavalChannelMed	= Same as Channel but shuts down Med
-#	ENGNavalChannelPMed	= Same as ChannelP but shuts down Med
-#	ENGNavalNorwayMed	= Same as Norway but shuts down Med
-#############################################
-event = {
-	id = 24025
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGNavalMedShut
-		local_flag = ENGNavalChannel
-		NOT = { local_flag = ENGInvadeItaly }
-		NOT = { local_flag = ENGNavalChannelMed }
-		NOT = { local_flag = ENGNavalPacificShut }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Naval_Channel_Med.ai" }
-		command = { type = local_setflag which = ENGNavalChannelMed }
-	}
-}
-event = {
-	id = 24026
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGNavalMedShut
-		local_flag = ENGNavalChannelP
-		NOT = { local_flag = ENGInvadeItaly }
-		NOT = { local_flag = ENGNavalChannelPMed }
-		NOT = { local_flag = ENGNavalPacificShut }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Naval_Channel_Protect_Med.ai" }
-		command = { type = local_setflag which = ENGNavalChannelPMed }
-	}
-}
-event = {
-	id = 24027
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGNavalMedShut
-		local_flag = ENGNavalNorway
-		NOT = { local_flag = ENGInvadeItaly }
-		NOT = { local_flag = ENGNavalNorwayMed }
-		NOT = { local_flag = ENGNavalPacificShut }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Naval_Norway_Med.ai" }
-		command = { type = local_setflag which = ENGNavalNorwayMed }
-	}
-}
-################
-# England builds transports
-#############################################
-event = {
-	id = 24028
-	random = no
-	country = ENG
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		atwar = yes
-		NOT = { lost_national = { country = ENG value = 1 } }
-		NOT = { transport = { country = ENG value = 20 } }
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = build_division which = transport }
-	}
-}
-################
-# England invades Italy
-#############################################
-event = {
-	id = 24029
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = ENGInvadeItaly }
-		war = { country = ENG country = ITA }
-		# Italian North Africa
-		NOT = { control = { province = 916 data = ITA } }
-		NOT = { control = { province = 919 data = ITA } }
-		NOT = { control = { province = 920 data = ITA } }
-		NOT = { control = { province = 923 data = ITA } }
-		NOT = { control = { province = 924 data = ITA } }
-		NOT = { control = { province = 917 data = ITA } }
-		NOT = { control = { province = 918 data = ITA } }
-		NOT = { control = { province = 921 data = ITA } }
-		NOT = { control = { province = 922 data = ITA } }
-		NOT = { control = { province = 925 data = ITA } }
-		NOT = { control = { province = 926 data = ITA } }
-		NOT = { control = { province = 927 data = ITA } }
-		NOT = { control = { province = 929 data = ITA } }
-		NOT = { control = { province = 928 data = ITA } }
-		NOT = { control = { province = 930 data = ITA } }
-		NOT = { control = { province = 931 data = ITA } }
-		NOT = { control = { province = 932 data = ITA } }
-		NOT = { control = { province = 933 data = ITA } }
-		OR = {
-			NOT = { exists = VIC }
-			NOT = { war = { country = ENG country = VIC } }
-			AND = {
-				war = { country = ENG country = VIC }
-				# Vichy North Africa
-				NOT = { control = { province = 939 data = VIC } }
-				NOT = { control = { province = 949 data = VIC } }
-				NOT = { control = { province = 953 data = VIC } }
-				NOT = { control = { province = 958 data = VIC } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Attack_Italy.ai" }
-		command = { type = setflag which = InvadeItaly }
-		command = { type = local_setflag which = ENGInvadeItaly }
-		command = { type = local_clrflag which = ENGNavalChannelP }
-		command = { type = local_clrflag which = ENGNavalChannel }
-		command = { type = local_clrflag which = ENGNavalNorway }
-		command = { type = local_clrflag which = ENGNavalChannelMed }
-		command = { type = local_clrflag which = ENGNavalChannelPMed }
-		command = { type = local_clrflag which = ENGNavalNorwayMed }
-		command = { type = local_clrflag which = ENGNavalChannelPacific }
-		command = { type = local_clrflag which = ENGNavalChannelPPacific }
-		command = { type = local_clrflag which = ENGNavalNorwayPacific }
-		command = { type = local_clrflag which = ENGNavalChannelPacificMed }
-		command = { type = local_clrflag which = ENGNavalChannelPPacificMed }
-		command = { type = local_clrflag which = ENGNavalNorwayPacificMed }
-	}
-}
-event = {
-	id = 24030
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGInvadeItaly
-		
-		# Italian North Africa
-		OR = {
-			NOT = { war = { country = ENG country = ITA } }
-			control = { province = 916 data = ITA }
-			control = { province = 919 data = ITA }
-			control = { province = 920 data = ITA }
-			control = { province = 923 data = ITA }
-			control = { province = 924 data = ITA }
-			control = { province = 917 data = ITA }
-			control = { province = 918 data = ITA }
-			control = { province = 921 data = ITA }
-			control = { province = 922 data = ITA }
-			control = { province = 925 data = ITA }
-			control = { province = 926 data = ITA }
-			control = { province = 927 data = ITA }
-			control = { province = 929 data = ITA }
-			control = { province = 928 data = ITA }
-			control = { province = 930 data = ITA }
-			control = { province = 931 data = ITA }
-			control = { province = 932 data = ITA }
-			control = { province = 933 data = ITA }
-			AND = {
-				war = { country = ENG country = VIC }
-				# Vichy North Africa
-				control = { province = 939 data = VIC }
-				control = { province = 949 data = VIC }
-				control = { province = 953 data = VIC }
-				control = { province = 958 data = VIC }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Attack.ai" }
-		command = { type = local_clrflag which = ENGInvadeItaly }
-		command = { type = local_clrflag which = ENGNavalChannelP }
-		command = { type = local_clrflag which = ENGNavalChannel }
-		command = { type = local_clrflag which = ENGNavalNorway }
-		command = { type = local_clrflag which = ENGNavalChannelMed }
-		command = { type = local_clrflag which = ENGNavalChannelPMed }
-		command = { type = local_clrflag which = ENGNavalNorwayMed }
-		command = { type = local_clrflag which = ENGNavalChannelPacific }
-		command = { type = local_clrflag which = ENGNavalChannelPPacific }
-		command = { type = local_clrflag which = ENGNavalNorwayPacific }
-		command = { type = local_clrflag which = ENGNavalChannelPacificMed }
-		command = { type = local_clrflag which = ENGNavalChannelPPacificMed }
-		command = { type = local_clrflag which = ENGNavalNorwayPacificMed }
-	}
-}
-################
-# England Naval AI Section
-#	ENGNavalPacificShut			= English avoid sending ships through the Pacific
-#	ENGNavalChannelPacific		= Same as Channel but shuts down Pacific
-#	ENGNavalChannelPPacific		= Same as ChannelP but shuts down Pacific
-#	ENGNavalNorwayPacific		= Same as Norway but shuts down Pacific
-#	ENGNavalChannelPacificMed	= Same as Channel but shuts down Pacific and Med
-#	ENGNavalChannelPPacificMed	= Same as ChannelP but shuts down Pacific and Med
-#	ENGNavalNorwayPacificMed	= Same as Norway but shuts down Pacific and Med
-#############################################
-event = {
-	id = 24031
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = ENGNavalPacificShut }
-		war = { country = ENG country = JAP }
-		war = { country = USA country = JAP }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = ENGNavalPacificShut }
-	}
-}
-event = {
-	id = 24032
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGNavalPacificShut
-		OR = {
-			NOT = { war = { country = ENG country = JAP } }
-			NOT = { war = { country = USA country = JAP } }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ENGNavalPacificShut }
-	}
-}
-################
-# England Naval AI Section
-#	Regular Pacific Shut Down
-#	ENGNavalChannelPacific		= Same as Channel but shuts down Pacific
-#	ENGNavalChannelPPacific		= Same as ChannelP but shuts down Pacific
-#	ENGNavalNorwayPacific		= Same as Norway but shuts down Pacific
-#############################################
-event = {
-	id = 24033
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGNavalChannel
-		local_flag = ENGNavalPacificShut
-		NOT = { local_flag = ENGNavalMedShut }
-		NOT = { local_flag = ENGNavalChannelPacific }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Naval_Channel_Pacific.ai" }
-		command = { type = local_setflag which = ENGNavalChannelPacific }
-	}
-}
-event = {
-	id = 24034
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGNavalChannelP
-		local_flag = ENGNavalPacificShut
-		NOT = { local_flag = ENGNavalMedShut }
-		NOT = { local_flag = ENGNavalChannelPPacific }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Naval_Channel_Protect_Pacific.ai" }
-		command = { type = local_setflag which = ENGNavalChannelPPacific }
-	}
-}
-event = {
-	id = 24035
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGNavalChannelP
-		local_flag = ENGNavalPacificShut
-		NOT = { local_flag = ENGNavalMedShut }
-		NOT = { local_flag = ENGNavalNorwayPacific }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Naval_Norway_Pacific.ai" }
-		command = { type = local_setflag which = ENGNavalNorwayPacific }
-	}
-}
-################
-# England Naval AI Section
-#	Pacific and Med Shut Down
-#	ENGNavalChannelPacificMed	= Same as Channel but shuts down Pacific and Med
-#	ENGNavalChannelPPacificMed	= Same as ChannelP but shuts down Pacific and Med
-#	ENGNavalNorwayPacificMed	= Same as Norway but shuts down Pacific and Med
-#############################################
-event = {
-	id = 24036
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGNavalChannel
-		local_flag = ENGNavalPacificShut
-		local_flag = ENGNavalMedShut
-		NOT = { local_flag = ENGNavalChannelPacificMed }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Naval_Channel_Pacific_Med.ai" }
-		command = { type = local_setflag which = ENGNavalChannelPacificMed }
-	}
-}
-event = {
-	id = 24037
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGNavalChannelP
-		local_flag = ENGNavalPacificShut
-		local_flag = ENGNavalMedShut
-		NOT = { local_flag = ENGNavalChannelPPacificMed }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Naval_Channel_Protect_Pacific_Med.ai" }
-		command = { type = local_setflag which = ENGNavalChannelPPacificMed }
-	}
-}
-event = {
-	id = 24038
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGNavalChannelP
-		local_flag = ENGNavalPacificShut
-		local_flag = ENGNavalMedShut
-		NOT = { local_flag = ENGNavalNorwayPacificMed }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/ENG_Naval_Norway_Pacific_Med.ai" }
-		command = { type = local_setflag which = ENGNavalNorwayPacificMed }
-	}
-}
-################
-# UK builds paratroopers and transport plane 
-#############################################
-event = {
-	id = 24039
-	random = no
-	country = ENG
-	persistent = yes
-	style = 0	
-
-	trigger = {
-		ai = yes
-		technology = 4250
-		alliance = { country = ENG country = USA }
-		NOT = { lost_national = { country = ENG value = 2 } }
-		NOT = { transport_plane = { country = ENG value = 2 } }
-	}
-
-	date = { day = 1 month = october year = 1938 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	name = "AI_EVENT"
-
-	action_a = {
-		command = { type = build_division which = transport_plane }
-	}
-}
-event = {
-	id = 24040
-	random = no
-	country = ENG
-	persistent = yes
-	style = 0	
-
-	trigger = {
-		ai = yes
-		technology = 1070 # Airborne
-		alliance = { country = ENG country = USA }
-		NOT = { lost_national = { country = ENG value = 2 } }
-		OR = {
-			AND = {
-				transport_plane = { country = ENG value = 1 }
-				NOT = { transport_plane = { country = ENG value = 1 } }
-				NOT = { paratrooper = { country = ENG value = 1 } }
-			}
-			AND = {
-				transport_plane = { country = ENG value = 2 }
-				NOT = { paratrooper = { country = ENG value = 2 } }
-			}
-		}
-	}
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	name = "AI_EVENT"
-
-	action_a = {
-		command = { type = build_division which = paratrooper }
-	}
-}
-################
-# England builds Submarines
-#############################################
-event = {
-	id = 24041
-	random = no
-	country = ENG
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		#NOT = { local_flag = JAPHomeland }
-		NOT = { submarine = { country = ENG value = 6 } }
-		OR = {
-			atwar = yes
-			year = 1939
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = build_division which = submarine }
-	}
-}
-################
-# England AI Slider manipulation
-#
-#	Free Market
-#############################################
-event = { # Free Market
-	id = 24042
-	random = no
-	country = ENG
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = free_market value = 1}
-		government = democratic
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = free_market value = 1 }
-	}
-}
-event = { # Free Market
-	id = 24043
-	random = no
-	country = ENG
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = free_market value = -1}
-		OR = {
-			government = fascist
-			government = communist
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = free_market value = -1 }
-	}
-}
-################
-#	Standing Army
-#############################################
-event = { # Standing Army
-	id = 24044
-	random = no
-	country = ENG
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = professional_army value = 1}
-		NOT = { domestic = { type = professional_army value = 9 } }
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = professional_army value = 1 }
-	}
-}
-################
-#	Hawk Lobby
-#############################################
-event = { # Hawk Lobby
-	id = 24045
-	random = no
-	country = ENG
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = defense_lobby value = 1}
-		AND = {
-			NOT = { domestic = { type = defense_lobby value = 9 } }
-			OR = {
-				ideology = nazi
-				ideology = fascist
-				ideology = leninist
-				ideology = stalinist
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = defense_lobby value = 1 }
-	}
-}
-event = { # Hawk Lobby
-	id = 24046
-	random = no
-	country = ENG
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = defense_lobby value = -1}
-		AND = {
-			domestic = { type = defense_lobby value = 0 }
-			NOT = {
-				ideology = nazi
-				ideology = fascist
-				ideology = leninist
-				ideology = stalinist
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = defense_lobby value = -1 }
-	}
-}
-################
-#	Interventionism
-#############################################
-event = { # Interventionism
-	id = 24047
-	random = no
-	country = ENG
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = interventionism value = 1}
-		OR = {
-			atwar = yes
-			AND = {
-				NOT = { domestic = { type = interventionism value = 9 } }
-				OR = {
-					ideology = nazi
-					ideology = fascist
-					ideology = leninist
-					ideology = stalinist
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = interventionism value = 1 }
-	}
-}
-
-
-
-
-
-####################################
-# England 24500 - 24599 = Minister Change Events
-####################################
-################
-# Minister of Security Section 24500 - 24509
-#############################################
-event = { # Sir John Simon takes power
-	id = 24500
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 1005 # Sir John Simon
-		NOT = { InCabinet = 1005 }
-		OR = {
-			manpower = 200
-			NOT = { minister = 1083 } # Viscount Templewood
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 1005 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Viscount Templewood takes power
-	id = 24501
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { manpower = 200 }
-		minister = 1083 # Viscount Templewood
-		NOT = { InCabinet = 1083 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 1083 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Staff Section 24510 - 24519
-#############################################
-event = { # Sir Alan Brooke takes power
-	id = 24510
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		minister = 1120 # Sir Alan Brooke
-		NOT = { InCabinet = 1120 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 1120 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Archibald Nye takes power
-	id = 24511
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		minister = 1122 # Archibald Nye
-		NOT = { InCabinet = 1122 }
-		NOT = { minister = 1120 } # Sir Alan Brooke
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 1122 }
-		command = { type = dissent value = -1 }
-	}
-}
-
-################
-# Head of Intelligence Section 24520 - 24529
-#############################################
-event = { # S.P. James takes power
-	id = 24520
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 1107 # S.P. James
-		NOT = { InCabinet = 1107 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 1107 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Lord Cecil of Chelwood takes power
-	id = 24521
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 1102 # Lord Cecil of Chelwood
-		NOT = { InCabinet = 1102 }
-		NOT = { minister = 1107 } # S.P. James
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 1102 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of the Army Section 24530 - 24539
-#############################################
-event = { # Sir Cyril Deverell takes power
-	id = 24530
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 1127 # Sir Cyril Deverell
-		NOT = { InCabinet = 1127 }
-		OR = {
-			atwar = no
-			NOT = { minister = 1130 } # Sir Alan Brooke
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 1127}
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Sir Alan Brooke takes power
-	id = 24531
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 1130 # Sir Alan Brooke
-		NOT = { InCabinet = 1130 }
-		OR = {
-			atwar = yes
-			NOT = { minister = 1127 } # Sir Cyril Deverell
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 1130 }
-		command = { type = dissent value = -1 }
-	}
-}
-
-################
-# Armament Minister Section 24540 - 24549
-#############################################
-event = { # Lord Beaverbrook takes power
-	id = 24540
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 1063 # Lord Beaverbrook
-		NOT = { InCabinet = 1063 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 1063 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Sir John Simon takes power
-	id = 24541
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 1060 # Sir John Simon
-		NOT = { InCabinet = 1060 }
-		NOT = { minister = 1063 } # Lord Beaverbrook
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 1060 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Hugh Dalton takes power
-	id = 24542
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 1065 # Hugh Dalton
-		NOT = { InCabinet = 1065 }
-		NOT = { minister = 1063 } # Lord Beaverbrook
-		NOT = { minister = 1060 } # Sir John Simon
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 1065 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Air Minister Section 24550 - 24559
-# Air AI Flags
-#	ENGAirAINaval		= Air vs Naval priority
-#	ENGAirAIStrategic	= Strategic Bombing has priority
-#	ENGAirAIGround		= Ground Support has priority
-#############################################
-event = { # Railton Freeman takes power
-	id = 24550
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGAirAINaval
-		minister = 1154 # Railton Freeman
-		NOT = { InCabinet = 1154 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 1154 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Sir Hugh Dowding takes power
-	id = 24551
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGAirAINaval
-		minister = 1168 # Sir Hugh Dowding
-		NOT = { InCabinet = 1168 }
-		NOT = { minister = 1154 }  # Railton Freeman
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 1168 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # John Strachey takes power
-	id = 24552
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGAirAIStrategic
-		minister = 1155 # John Strachey
-		NOT = { InCabinet = 1155 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 1155 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Sir Owen Boyd takes power
-	id = 24553
-	random = no 
-	country = ENG
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = ENGAirAIGround
-		minister = 1010 # Sir Owen Boyd
-		NOT = { InCabinet = 1010 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 1010 }
-		command = { type = dissent value = -1 }
-	}
-}
-
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/ai_ger.txt Doomsday Data Files/db/events/ai_ger.txt
--- Doomsday Data Files.old/db/events/ai_ger.txt	2008-03-28 10:46:23.000000000 +0100
+++ Doomsday Data Files/db/events/ai_ger.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,3160 +1 @@
-####################################
-# Germany 20000 - 20999 by Lothos
-####################################
-# Who he is invading flags
-#	GERInvadePoland 		= Preparing to invade Poland
-#	GERInvadeNorway 		= Preparing to invade Norway
-#	GERLowCountriesPrepare	= Prepare to invade Belgium, Holland and Luxemburg
-#	GERInvadeRussia			= Prepare to invade Russia
-#	GERInvadeSpain			= Prepare to invade Spain
-#	GERInvadeEngland		= Prepare to invade England
-#	GERInvadeYugoslavia		= Prepare to invade Yugoslavia
-#	InvYugoslavia			= Global flag to tell minors to prepare
-
-# Building Style Flags
-#	GERBuildStandard		= Standard Build when strategy is unknown
-#	GERBuildNavy			= Build Navy when preparing to attack the UK and USA
-#	GERBuildLand			= Build heavy on the land troops with no sea
-#	GERBuildMix				= Build mix of land and subs
-
-# Behavior Flags
-#	GERStandardFront		= Load standard front AI to save supplies etc....
-#	GERSubPatrol			= Sub Patrol AI loaded
-#	GERSubPatrol1			= East Atlantic Sub Patern
-#	GERSubPatrol2			= Central Atlantic and East Coast Patern
-#	GERSubPatrol3			= Carabean and Central Atlantic Patern
-
-# Air AI Flags
-#	GERAirAINaval			= Germany has there Air vs Naval AI loaded
-#	GERAirAIStrategic		= Germany has their Strategic bombing AI loaded
-#	GERAirAIGround			= Germany has their ground support AI loaded
-
-# Garrisoning Flags
-#	GERBalticGarrison		= Garrison the Baltic normally
-#	GERBalticGarrisonRussia	= Garrison the Baltic based on war with Russia
-
-################
-# Norway Invasion AI
-#############################################
-event = {
-	id = 20000
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = GERInvadeNorway }
-		NOT = {	lost_national = { country = GER value = 2 } }
-		OR = {
-			war = { country = NOR country = GER }
-			war = { country = SWE country = GER }
-			war = { country = FIN country = GER }
-		}
-		NOT = {
-			AND = { # LOW COUNTRIES
-				war = { country = GER country = HOL }
-				NOT = { control = { province = 47 data = GER } } # Amsterdamm
-			}
-			AND = {
-				war = { country = GER country = BEL }
-				NOT = { control = { province = 51 data = GER } } # Brussels
-			}
-			AND = {
-				war = { country = GER country = FRA }
-				NOT = { control = { province = 56 data = GER } } # Paris
-				OR = {
-					war = { country = GER country = HOL }
-					war = { country = GER country = BEL }
-				}
-			}
-			AND = {
-				war = { country = GER country = SOV }
-				NOT = { land_percentage = { country = SOV value = 0.8 } }
-				NOT = { lost_national = { country = SOV value = 10 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = GERInvadeNorway }
-		command = { type = local_clrflag which = GERSubPatrol }
-		command = { type = ai which = "switch/GER_Norway.ai" }
-	}
-}
-################
-# End of Norway Invasion AI
-#############################################
-event = {
-	id = 20001
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = GERInvadeNorway
-		OR = {
-			lost_national = { country = GER value = 2 }
-			NOT = {
-				war = { country = NOR country = GER }
-				war = { country = SWE country = GER }
-				war = { country = FIN country = GER }
-			}
-			AND = { # LOW COUNTRIES
-				war = { country = GER country = HOL }
-				NOT = { control = { province = 47 data = GER } } # Amsterdamm
-			}
-			AND = {
-				war = { country = GER country = BEL }
-				NOT = { control = { province = 51 data = GER } } # Brussels
-			}
-			AND = {
-				war = { country = GER country = FRA }
-				NOT = { control = { province = 56 data = GER } } # Paris
-				OR = {
-					war = { country = GER country = HOL }
-					war = { country = GER country = BEL }
-				}
-			}
-			AND = {
-				war = { country = GER country = SOV }
-				NOT = { land_percentage = { country = SOV value = 0.8 } }
-				NOT = { lost_national = { country = SOV value = 10 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = GERInvadeNorway }
-		command = { type = ai which = "switch/GER_Norway_END.ai" }
-	}
-}
-################
-# Poland Invasion AI
-#############################################
-event = {
-	id = 20002
-	random = no 
-	country = GER
-	
-	trigger = {
-		ai = yes
-		NOT = { ispuppet = GER }
-		OR = {
-			AND = {
-				local_flag = GERInvadePoland
-				month = 4 # May
-				NOT = { month = 9 } # October
-				AND = {
-					day = 1
-					NOT = { day = 2 }
-				}
-			}
-			event = 2027 #Danzig or War
-			event = 20012 # German standard War AI
-			AND = {	
-				war = { country = POL country = GER }
-				event = 2027 #Danzig or War
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = september year = 1939 }
-	offset = 1
-	deathdate = { day = 2 month = september year = 1939 }
-
-	action_a = {
-		command = { type = ai which = "switch/GER_Poland.ai" }
-		command = { type = war which = POL }
-		command = { type = local_clrflag which = GERInvadePoland }
-		command = { type = local_clrflag which = GERStandardFront }
-		command = { type = sleepevent which = 20023 } # Prepare for invasion of Poland event
-	}
-}
-################
-# Germany mass on low countries border
-#############################################
-event = {
-	id = 20003
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		OR = {
-			AND = {
-				day = 2
-				NOT = { day = 3 }
-			}
-		}
-		NOT = { local_flag = GERLowCountriesPrepare }
-		war = { country = FRA country = GER }
-		NOT = { war = { country = POL country = GER } }
-		NOT = { war = { country = SOV country = GER } }
-		NOT = { war = { country = BEL country = GER } }
-		NOT = { war = { country = AUS country = GER } }
-		NOT = { war = { country = CZE country = GER } }
-		NOT = { war = { country = HUN country = GER } }
-		AND = {
-			exists = SCH
-			NOT = { war = { country = SCH country = GER } }
-		}
-		AND = {
-			OR = {
-				NOT = { exists = AUS }
-				NOT = { war = { country = AUS country = GER } }
-			}
-			OR = {
-				NOT = { exists = CZE }
-				NOT = { war = { country = CZE country = GER } }
-			}
-			NOT = { war = { country = YUG country = GER } }
-		}
-		AND = {
-			OR = {
-				NOT = { exists = AUS }
-				NOT = { war = { country = AUS country = GER } }
-			}
-			NOT = { war = { country = ITA country = GER } }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 30 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/GER_Poland_After.ai" }
-		command = { type = local_setflag which = GERLowCountriesPrepare }
-		command = { type = local_clrflag which = GERBalticGarrison }
-		command = { type = local_clrflag which = GERBalticGarrisonRussia }
-	}
-}
-################
-# German Invasion AI Low Countries German Invasion if early war
-########################################
-event = {
-	id = 20004
-	random = no
-	country = GER
-
-	trigger = {
-		ai = yes
-		OR = {
-			alliance = { country = SPA country = GER }
-			alliance = { country = SPR country = GER }
-			AND = {
-				month = 4 # May
-				NOT = { month = 7 } # August
-			}
-		}
-		OR = {
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		local_flag = GERLowCountriesPrepare
-		government = fascist
-		OR = {
-			AND = {
-				war = { country = FRA country = GER }
-				NOT = {	war = { country = SOV country = GER } }
-				NOT = {	war = { country = POL country = GER } }
-				NOT = { event = 20002 }
-			}
-			AND = {
-				event = 20002
-				war = { country = FRA country = GER }
-				NOT = {	war = { country = SOV country = GER } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 30 month = december year = 1948 }
-
-	action_a = {
-		command = { type = sleepevent which = 20003 }
-		command = { type = war which = BEL }
-		command = { type = war which = HOL }
-		command = { type = war which = LUX }
-		command = { type = ai which = "switch/GER_France.ai" }
-		command = { type = local_clrflag which = GERLowCountriesPrepare }
-		command = { type = local_clrflag which = GERStandardFront }
-	}
-}
-################
-# Load Germany Standard Front AI
-#############################################
-event = {
-	id = 20005
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = GERStandardFront }
-		OR = {
-			AND = {
-				local_flag = GERInvadePoland
-				NOT = { war = { country = GER country = POL } }
-			}
-			AND = {
-				local_flag = GERInvadeYugoslavia
-				NOT = { war = { country = GER country = YUG } }
-			}
-			AND = {
-				local_flag = GERInvadeRussia
-				NOT = { war = { country = GER country = YUG } }
-			}
-			AND = {
-				OR = {
-					local_flag = GERInvadeSpain
-					local_flag = GERInvadeEngland
-				}
-				NOT = { war = { country = GER country = SPR } }
-				NOT = { war = { country = GER country = SPA } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 3
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/GER_Standard_Front.ai" }
-		command = { type = local_setflag which = GERStandardFront }
-	}
-}
-################
-# Baklan Campaign
-#############################################
-event = {
-	id = 20006
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		exists = YUG
-		NOT = { ispuppet = GER }
-		day = 2
-		NOT = { day = 3 }
-		NOT = { war= { country = YUG country = GER } }
-		NOT = { alliance= { country = YUG country = GER } }
-		NOT = { alliance= { country = YUG country = SOV } }
-		NOT = { puppet = { country = YUG country = GER } }
-		NOT = { local_flag = GERInvadePoland }
-		NOT = { local_flag = GERInvadeEngland }
-		NOT = { local_flag = GERInvadeSpain }
-		#Austria Provinces if not he must invade Austria
-		control = { province = 377 data = GER }
-		control = { province = 461 data = GER }
-		control = { province = 460 data = GER }
-		OR = {
-			local_flag = GERInvadeRussia
-			AND = {
-				alliance = { country = GER country = ITA }
-				NOT = {	lost_national = { country = GER value = 2 } }
-				control = { province = 56 data = GER } # Paris
-				NOT = { war= { country = GER country = SOV } }
-				NOT = { war= { country = GER country = SPA } }
-				NOT = { war= { country = GER country = SPR } }
-				OR = {
-					war= { country = ITA country = GRE }
-					war= { country = ITA country = YUG }
-					war= { country = ITA country = ALB }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/GER_Baklans.ai" }
-		command = { type = local_setflag which = GERInvadeYugoslavia }
-		command = { type = setflag which = InvYugoslavia }
-		command = { type = local_clrflag which = GERInvadeRussia }
-	}
-}
-################
-# Germany invades Russian
-#############################################
-event = {
-	id = 20007
-	random = no 
-	country = GER
-	
-	trigger = {
-		ai = yes
-		NOT = { ispuppet = GER }
-		OR = {
-			month = 6
-			AND = {
-				day = 21
-				NOT = { day = 22 }
-			}
-		}
-		AND = {
-			OR = {
-				AND = {
-					owned = { province = 488 data = GER }
-					control = { province = 488 data = GER } 
-					garrison = { country = GER province = 488  type = land size = 9 area = no }
-				}
-				AND = {
-					NOT = { owned = { province = 488 data = GER } }
-					NOT = { control = { province = 488 data = GER } }
-				}
-			}
-			OR = {
-				AND = {
-					owned = { province = 489 data = GER }
-					control = { province = 489 data = GER } 
-					garrison = { country = GER province = 489  type = land size = 9 area = no }
-				}
-				AND = {
-					NOT = { owned = { province = 489 data = GER } }
-					NOT = { control = { province = 489 data = GER } }
-				}
-			}
-			OR = {
-				AND = {
-					owned = { province = 487 data = GER }
-					control = { province = 487 data = GER } 
-					garrison = { country = GER province = 487  type = land size = 9 area = no }
-				}
-				AND = {
-					NOT = { owned = { province = 487 data = GER } }
-					NOT = { control = { province = 487 data = GER } }
-				}
-			}
-			OR = {
-				AND = {
-					owned = { province = 509 data = GER }
-					control = { province = 509 data = GER } 
-					garrison = { country = GER province = 509  type = land size = 9 area = no }
-				}
-				AND = {
-					NOT = { owned = { province = 509 data = GER } }
-					NOT = { control = { province = 509 data = GER } }
-				}
-			}
-			OR = {
-				AND = {
-					owned = { province = 510 data = GER }
-					control = { province = 510 data = GER } 
-					garrison = { country = GER province = 510  type = land size = 9 area = no }
-				}
-				AND = {
-					NOT = { owned = { province = 510 data = GER } }
-					NOT = { control = { province = 510 data = GER } }
-				}
-			}
-			OR = {
-				AND = {
-					owned = { province = 206 data = GER }
-					control = { province = 206 data = GER } 
-					garrison = { country = GER province = 206  type = land size = 9 area = no }
-				}
-				AND = {
-					NOT = { owned = { province = 206 data = GER } }
-					NOT = { control = { province = 206 data = GER } }
-				}
-			}
-		}
-		local_flag = GERInvadeRussia
-		NOT = { local_flag = GERInvadePoland }
-		NOT = { local_flag = GERInvadeYugoslavia }
-		NOT = {	lost_national = { country = GER value = 2 } }
-		control = { province = 56 data = GER } # Paris
-		NOT = { war = { country = GER country = SOV } }
-		NOT = { war = { country = GER country = SPA } }
-		NOT = { war = { country = GER country = SPR } }
-		NOT = { war = { country = GER country = YUG } }
-		OR = {
-			land_percentage = { country = SOV value = 0.8 }
-			AND = {
-				land_percentage = { country = SOV value = 0.7 }
-				alliance = { country = GER country = ROM }
-				alliance = { country = GER country = HUN }
-			}
-		}
-		OR = {
-			NOT = { war= { country = GER country = GRE } }
-			AND = {
-				war= { country = GER country = GRE }			
-				NOT = { control = { province = 401 data = GRE } } # Athens
-				NOT = { control = { province = 393 data = GRE } }
-				NOT = { control = { province = 395 data = GRE } }
-				NOT = { control = { province = 394 data = GRE } }
-				NOT = { control = { province = 402 data = GRE } }
-				NOT = { control = { province = 403 data = GRE } }
-				NOT = { control = { province = 392 data = GRE } }
-				NOT = { control = { province = 412 data = GRE } }
-				NOT = { control = { province = 411 data = GRE } }
-				NOT = { control = { province = 410 data = GRE } }
-			}
-		}
-		OR = {
-			alliance = { country = GER country = POL }
-			alliance = { country = SOV country = POL }
-			NOT = { exists = POL }
-		}
-		OR = {
-			AND = {
-				month = 3 # April
-				NOT = {	month = 4 } # May
-				random = 10
-			}
-			AND = {
-				month = 4 # May
-				NOT = {	month = 5 } # June
-				random = 20
-			}
-			AND = {
-				month = 5 # June
-				NOT = {	month = 6 } # July
-				random = 90
-			}
-			AND = {
-				month = 6 # July
-				NOT = {	month = 7 } # August
-				random = 80
-			}
-			AND = {
-				month = 7 # August
-				NOT = {	month = 8 } # September
-				random = 20
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1941 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = { #Russian Campaign
-		command = { type = war which = SOV }
-		command = { type = sleepevent which = 20013 }
-		command = { type = sleepevent which = 20010 }
-		command = { type = ai which = "switch/GER_Russia.ai" }
-		command = { type = local_clrflag which = GERInvadeRussia }
-		command = { type = local_clrflag which = GERStandardFront }
-	}
-}
-################
-# Germany builds paratroopers and transport plane 
-#############################################
-event = {
-	id = 20008
-	random = no
-	country = GER
-	persistent = yes
-	style = 0	
-
-	trigger = {
-		ai = yes
-		technology = 4250
-		NOT = { lost_national = { country = GER value = 2 } }
-		NOT = { transport_plane = { country = GER value = 2 } }
-	}
-
-	date = { day = 1 month = october year = 1938 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	name = "AI_EVENT"
-
-	action_a = {
-		command = { type = build_division which = transport_plane }
-	}
-}
-event = {
-	id = 20009
-	random = no
-	country = GER
-	persistent = yes
-	style = 0	
-
-	trigger = {
-		ai = yes
-		technology = 1070 # Airborne
-		NOT = { lost_national = { country = GER value = 2 } }
-		OR = {
-			AND = {
-				transport_plane = { country = GER value = 1 }
-				NOT = { transport_plane = { country = GER value = 1 } }
-				NOT = { paratrooper = { country = GER value = 1 } }
-			}
-			AND = {
-				transport_plane = { country = GER value = 2 }
-				NOT = { paratrooper = { country = GER value = 2 } }
-			}
-		}
-	}
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	name = "AI_EVENT"
-
-	action_a = {
-		command = { type = build_division which = paratrooper }
-	}
-}
-################
-# German vs. Russian war setup
-#############################################
-event = {
-	id = 20010
-	random = no 
-	country = GER
-	
-	trigger = {
-		ai = yes
-		war= { country = GER country = SOV }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = { #Russian Campaign
-		command = { type = ai which = "switch/GER_Russia.ai" }
-		command = { type = sleepevent which = 20007 }
-	}
-}
-################
-# Baklan Campaign Part 2
-#############################################
-event = {
-	id = 20011
-	random = no 
-	country = GER
-	
-	trigger = {
-		ai = yes
-		local_flag = GERInvadeYugoslavia
-		OR = {
-			NOT = { exists = YUG }
-			war = { country = GER country = YUG }
-			AND = {
-				atwar = YUG
-				NOT = { alliance = { country = YUG country = SOV } }
-			}
-			AND = {
-				exists = YUG
-				month = 2 # March
-				NOT = { month = 5 } # June
-				local_flag = GERInvadeYugoslavia
-				control = { province = 56 data = GER } # Paris
-				NOT = { war = { country = GER country = SOV } }
-				NOT = { war = { country = GER country = CZE } }
-				NOT = { war = { country = GER country = POL } }
-				AND = {
-					day = 1
-					NOT = { day = 2 }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/GER_Yugoslavia.ai" }
-		command = { type = war which = YUG }
-		command = { type = clrflag which = InvYugoslavia }
-		command = { type = local_clrflag which = GERInvadeYugoslavia }
-		command = { type = local_clrflag which = GERStandardFront }
-		command = { type = sleepevent which = 20006 }
-	}
-}
-################
-# German changes production values atwar
-#############################################
-event = {
-	id = 20012
-	random = no 
-	country = GER
-	
-	trigger = {
-		ai = yes
-		atwar = GER
-		NOT = { war = { country = SOV country = GER } }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/GER_atwar.ai" }
-	}
-}
-################
-# Germany masses on Russian border setup
-#############################################
-event = {
-	id = 20013
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { ispuppet = GER }
-		day = 22
-		NOT = { day = 23 }
-		event = 20014 # Decide Strategy
-		NOT = { local_flag = GERInvadeRussia }
-		NOT = { local_flag = GERInvadeYugoslavia }
-		NOT = { local_flag = GERInvadePoland }
-		NOT = { local_flag = GERInvadeSpain }
-		NOT = { local_flag = GERInvadeEngland }
-		NOT = { war= { country = GER country = SOV } }
-		NOT = { war= { country = GER country = SPA } }
-		NOT = { war= { country = GER country = SPR } }
-		NOT = { war= { country = GER country = YUG } }
-		NOT = { war= { country = GER country = POL } }
-		NOT = { war= { country = GER country = AUS } }
-		NOT = { war= { country = GER country = CZE } }
-		NOT = { war= { country = GER country = HUN } }
-		NOT = { war= { country = GER country = ROM } }
-		NOT = { war= { country = GER country = BUL } }
-		control = { province = 56 data = GER } # Paris
-		OR = {
-			NOT = { war= { country = GER country = GRE } }
-			AND = {
-				war= { country = GER country = GRE }		
-				NOT = { control = { province = 401 data = GRE } } # Athens
-				#NOT = { control = { province = 393 data = GRE } }
-				#NOT = { control = { province = 395 data = GRE } }
-				#NOT = { control = { province = 394 data = GRE } }
-				NOT = { control = { province = 402 data = GRE } }
-				NOT = { control = { province = 403 data = GRE } }
-				NOT = { control = { province = 392 data = GRE } }
-				NOT = { control = { province = 412 data = GRE } }
-				NOT = { control = { province = 411 data = GRE } }
-				NOT = { control = { province = 410 data = GRE } }
-			}
-		}
-		OR = {
-			flag = GC1939 # 1939 Grand Campaign
-			event = 2013  # Molotov Pact Historical
-			event = 2015  # Molotov Pact Alliance
-			event = 2016  # Molotov Pact Limited
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/GER_Russia_Buildup.ai" }
-		command = { type = local_setflag which = GERInvadeRussia }
-	}
-}
-################
-# German decides strategy after Paris falls
-#############################################
-event = {
-	id = 20014
-	random = no 
-	country = GER
-	
-	trigger = {
-		ai = yes
-		NOT = { ispuppet = GER }
-		NOT = {	lost_national = { country = GER value = 2 } }
-		control = { province = 56 data = GER } # Paris
-		NOT = { war= { country = GER country = SOV } }
-		NOT = { war= { country = GER country = SPA } }
-		NOT = { war= { country = GER country = SPR } }
-		NOT = { war= { country = GER country = YUG } }
-		NOT = { war= { country = GER country = POL } }
-		OR = {
-			lost_national = { country = FRA value = 90 }
-			exists = VIC
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = { #Russian Campaign
-		ai_chance = 80
-		command = { type = local_setflag which = GERInvadeRussia }
-	}
-	action_b = { #Launch Sea Lion
-		ai_chance = 20
-		command = { type = local_setflag which = GERInvadeSpain }
-	}
-}
-################
-# Early USA War entry before war with Russia (Cancels Russian Invasion Plan)
-#############################################
-#event = {
-#	id = 20015
-#	random = no 
-#	country = GER
-	
-#	trigger = {
-#		ai = yes
-#		NOT = { event = 20007 }
-#		NOT = {	lost_national = { country = GER value = 2 } }
-#		control = { province = 56 data = GER } # Paris
-#		war= { country = GER country = USA }
-#		war= { country = GER country = ENG }
-#		NOT = { war= { country = GER country = SOV } }
-#	}
-
-#	name = "AI_EVENT"
-#	style = 0	
-	
-#	date = { day = 1 month = january year = 1936 }
-#	offset = 4
-#	deathdate = { day = 29 month = december year = 1948 }
-
-#	action_a = { # Load Sea Lion and Hold of Russia
-#		command = { type = local_setflag which = GERInvadeSpain }
-#		command = { type = sleepevent which = 20007 }
-#		command = { type = sleepevent which = 20013 }
-#	}
-#}
-################
-# German Change Front to defensive when war with USA and SOV
-#############################################
-event = {
-	id = 20016
-	random = no 
-	country = GER
-	
-	trigger = {
-		ai = yes
-		random = 30
-		war= { country = GER country = USA }
-		war= { country = GER country = SOV }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 12
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/GER_War_SOV_USA.ai" }
-	}
-}
-################
-# Germany will no longer garrison beaches in the Baltic when Denmark is taken out
-#############################################
-event = {
-	id = 20017
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		control = { province = 90 data = GER } # Kiel
-		NOT = { local_flag = GERBalticGarrison }
-		NOT = { local_flag = GERBalticGarrisonRussia }
-		OR = {
-			alliance = { country = DEN country = GER }
-			control = { province = 294 data = GER } # Copenhagen
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 12
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = GERBalticGarrison }
-		command = { type = local_clrflag which = GERBalticGarrisonRussia }
-		command = { type = ai which = "switch/GER_Baltic.ai" }
-	}
-}
-################
-# Germany re-garrisons the Baltic
-#############################################
-event = {
-	id = 20018
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = GERBalticGarrison
-		OR = {
-			NOT = { control = { province = 90 data = GER } } # Kiel
-			AND = {
-				alliance = { country = DEN country = GER }
-				NOT = { control = { province = 294 data = DEN } } # Copenhagen
-			}
-			AND = {
-				NOT = { exists = DEN }
-				NOT = { control = { province = 294 data = GER } } # Copenhagen
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 12
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/GER_Baltic2.ai" }
-		command = { type = local_clrflag which = GERBalticGarrison }
-	}
-}
-################
-# Germany will no longer garrison beaches in the Baltic when Denmark is taken out and atwar with Russia
-#############################################
-event = {
-	id = 20019
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = GERBalticGarrison }
-		war = { country = SOV country = GER }
-		control = { province = 90 data = GER } # Kiel
-		OR = {
-			alliance = { country = DEN country = GER }
-			control = { province = 294 data = GER } # Copenhagen
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 12
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/GER_Baltic_Russia.ai" }
-		command = { type = local_setflag which = GERBalticGarrison }		
-		command = { type = local_setflag which = GERBalticGarrisonRussia }
-	}
-}
-################
-# Germany goes after England when Russian is gone
-#############################################
-event = {
-	id = 20020
-	random = no 
-	country = GER
-	
-	trigger = {
-		ai = yes
-		OR = {
-			event = 20007
-			event = 20010
-		}
-		NOT = { war = { country = GER country = SOV } }
-		control = { province = 56 data = GER } # Paris
-		war = { country = GER country = ENG }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = GERInvadeSpain }
-	}
-}
-################
-# Germany goes on the defensive in first Winter against Russia
-#############################################
-event = {
-	id = 20021
-	random = no 
-	country = GER
-	
-	trigger = {
-		ai = yes
-		event = 20007
-		NOT = {	lost_national = { country = GER value = 2 } }
-		war = { country = GER country = SOV }
-		control = { province = 56 data = GER } # Paris
-		OR = {
-			month = 10 # November
-			AND = {
-				month = 0 # January
-				NOT = { month = 2 } # March
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/GER_Winter.ai" }
-	}
-}
-################
-# Germany goes back on the offensive second year
-#############################################
-event = {
-	id = 20022
-	random = no 
-	country = GER
-	
-	trigger = {
-		ai = yes
-		event = 20021
-		war = { country = GER country = SOV }
-		NOT = { war = { country = GER country = USA } }
-		month = 3 # April
-		NOT = { month = 7 } # August
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/GER_Russia_Second_Year.ai" }
-	}
-}
-################
-# Germany prepares for war with Poland
-#############################################
-event = {
-	id = 20023
-	random = no 
-	country = GER
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		atwar = no
-		exists = POL
-		NOT = { local_flag = GERInvadePoland }
-		NOT = { alliance = { country = POL country = GER } }
-		NOT = { alliance = { country = POL country = SOV } }
-		NOT = { puppet = { country = POL country = GER } }
-		NOT = { war = { country = POL country = GER } }
-		NOT = { war = { country = AUS country = GER } }
-		NOT = { war = { country = CZE country = GER } }
-		NOT = { war = { country = SOV country = GER } }		
-		OR = {
-			AND = {
-				local_flag = GERInvadeRussia
-				OR = {
-					AND = {
-						day = 2
-						NOT = { day = 3 }
-					}
-				}
-			}
-			event = 2040 # Annexation of CZE
-			event = 2005 # CZE Refuses claim
-			event = 2004 # CZE joins Axis
-			AND = {
-				event = 2030 # Treaty of Munich
-				NOT = { event = 2200  } # CZE response to Treaty of Munich
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = GERInvadePoland }
-		command = { type = ai which = "switch/GER_Fall_CZE.ai" }
-	}
-}
-################
-# Germany declares war on Denmark cause allies are in the Baltic
-#############################################
-event = {
-	id = 20024
-	random = no 
-	country = GER
-	
-	trigger = {
-		ai = yes
-		NOT = { ispuppet = GER }
-		random = 25
-		exists = DEN
-		NOT = { war = { country = DEN country = GER } }
-		OR = {
-			AND = {
-				war = { country = FRA country = GER }
-				OR = {
-					# Baltic
-					garrison = { country = FRA province = 2476  type = naval size = 4 area = no }
-					garrison = { country = FRA province = 2477  type = naval size = 4 area = no }
-					garrison = { country = FRA province = 2478  type = naval size = 4 area = no }
-					garrison = { country = FRA province = 2479  type = naval size = 4 area = no }
-					garrison = { country = FRA province = 2480  type = naval size = 4 area = no }
-					garrison = { country = FRA province = 2481  type = naval size = 4 area = no }
-					garrison = { country = FRA province = 2482  type = naval size = 4 area = no }
-					garrison = { country = FRA province = 2483  type = naval size = 4 area = no }
-					garrison = { country = FRA province = 2484  type = naval size = 4 area = no }
-					garrison = { country = FRA province = 2489  type = naval size = 4 area = no }
-					garrison = { country = FRA province = 2491  type = naval size = 4 area = no }
-					garrison = { country = FRA province = 2492  type = naval size = 4 area = no }
-					garrison = { country = FRA province = 2493  type = naval size = 4 area = no }
-					garrison = { country = FRA province = 2494  type = naval size = 4 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = GER }
-				OR = {
-					# Baltic
-					garrison = { country = ENG province = 2476  type = naval size = 4 area = no }
-					garrison = { country = ENG province = 2477  type = naval size = 4 area = no }
-					garrison = { country = ENG province = 2478  type = naval size = 4 area = no }
-					garrison = { country = ENG province = 2479  type = naval size = 4 area = no }
-					garrison = { country = ENG province = 2480  type = naval size = 4 area = no }
-					garrison = { country = ENG province = 2481  type = naval size = 4 area = no }
-					garrison = { country = ENG province = 2482  type = naval size = 4 area = no }
-					garrison = { country = ENG province = 2483  type = naval size = 4 area = no }
-					garrison = { country = ENG province = 2484  type = naval size = 4 area = no }
-					garrison = { country = ENG province = 2489  type = naval size = 4 area = no }
-					garrison = { country = ENG province = 2491  type = naval size = 4 area = no }
-					garrison = { country = ENG province = 2492  type = naval size = 4 area = no }
-					garrison = { country = ENG province = 2493  type = naval size = 4 area = no }
-					garrison = { country = ENG province = 2494  type = naval size = 4 area = no }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = war which = DEN }
-	}
-}
-
-################
-# German Sub Patrols AI
-#############################################
-event = {
-	id = 20025
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		day = 1
-		NOT = { day = 2 }
-		NOT = { local_flag = GERInvadeNorway }
-		OR = {
-			NOT = { local_flag = GERInvadeEngland }
-			AND = {
-					local_flag = GERInvadeEngland
-					OR = {
-						war= { country = GER country = SOV }
-						war= { country = GER country = USA }
-					}
-			}
-		}
-		OR = {
-			NOT = { local_flag = GERSubPatrol }
-			AND = {
-				month = 0
-				NOT = { month = 1 }
-			}
-			AND = {
-				month = 2
-				NOT = { month = 3 }
-			}
-			AND = {
-				month = 4
-				NOT = { month = 5 }
-			}
-			AND = {
-				month = 6
-				NOT = { month = 7 }
-			}
-			AND = {
-				month = 8
-				NOT = { month = 9 }
-			}
-			AND = {
-				month = 10
-				NOT = { month = 11 }
-			}
-		}
-		OR = {
-			war = { country = ENG country = GER }
-			war = { country = FRA country = GER }
-			war = { country = USA country = GER }
-		}
-		OR = {
-			event = 20004
-			control = { province = 56 data = GER } # Paris
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {  # Sub Patrol North Atlantic
-		ai_chance = 35
-		command = { type = ai which = "switch/GER_Sub_Patrol1.ai" }
-		command = { type = local_setflag which = GERSubPatrol }
-		command = { type = local_setflag which = GERSubPatrol1 }
-		command = { type = local_clrflag which = GERSubPatrol2 }
-		command = { type = local_clrflag which = GERSubPatrol3 }
-	}
-	action_b = {  # Sub Patrol Central Atlantic
-		ai_chance = 35
-		command = { type = ai which = "switch/GER_Sub_Patrol2.ai" }
-		command = { type = local_setflag which = GERSubPatrol }
-		command = { type = local_setflag which = GERSubPatrol2 }
-		command = { type = local_clrflag which = GERSubPatrol1 }
-		command = { type = local_clrflag which = GERSubPatrol3 }
-	}
-	action_c = {  # Sub Patrol South Atlantic
-		ai_chance = 30
-		command = { type = ai which = "switch/GER_Sub_Patrol3.ai" }
-		command = { type = local_setflag which = GERSubPatrol }
-		command = { type = local_setflag which = GERSubPatrol3 }
-		command = { type = local_clrflag which = GERSubPatrol2 }
-		command = { type = local_clrflag which = GERSubPatrol1 }
-		
-	}
-}
-################
-# German Air AI Naval portion
-#############################################
-event = {
-	id = 20026
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = GERAirAINaval }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		# These statements must be false if not the land air AI has priority
-		NOT = {
-			lost_national = { country = GER value = 2 }
-			war = { country = GER country = POL } # Eastern Europe
-			war = { country = GER country = CZE }
-			war = { country = GER country = HUN }
-			war = { country = GER country = ROM }
-			war = { country = GER country = YUG }
-			war = { country = GER country = GRE }
-			war = { country = GER country = LIT }
-			war = { country = GER country = LAT }
-			war = { country = GER country = EST }
-			war = { country = GER country = BUL }
-			war = { country = GER country = SOV }
-			war = { country = GER country = AUS } # Central Europe
-			war = { country = GER country = ITA }
-			AND = { 								# LOW COUNTRIES
-				war = { country = GER country = HOL }
-				NOT = { control = { province = 47 data = GER } } # Amsterdamm
-			}
-			AND = {
-				war = { country = GER country = BEL }
-				NOT = { control = { province = 51 data = GER } } # Brussels
-			}
-			war = { country = GER country = LUX }
-			war = { country = GER country = SPR } # Western Europe
-			war = { country = GER country = SPA }
-			war = { country = GER country = POR }
-			war = { country = GER country = VIC }
-			AND = {
-				war = { country = GER country = FRA }
-				NOT = { control = { province = 56 data = GER } } # Paris
-				OR = {
-					war = { country = GER country = HOL }
-					war = { country = GER country = BEL }
-				}
-			}
-		}
-		# These statements have to be true for it to load naval AI
-		OR = {
-			local_flag = GERInvadeEngland
-			AND = {
-				war = { country = FRA country = GER }
-				OR = {
-					# Baltic
-					garrison = { country = FRA province = 2473  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2474  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2475  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 290   type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2476  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2477  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2478  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2479  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2480  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2481  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2482  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2483  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2484  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2489  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2491  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2492  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2493  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2494  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = GER }
-				OR = {
-					# Baltic
-					garrison = { country = ENG province = 2473  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2474  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2475  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 290   type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2476  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2477  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2478  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2479  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2480  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2481  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2482  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2483  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2484  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2489  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2491  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2492  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2493  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2494  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = USA country = GER }
-				OR = {
-					# Baltic
-					garrison = { country = USA province = 2473  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2474  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2475  type = naval size = 2 area = no }
-					garrison = { country = USA province = 290   type = naval size = 2 area = no }
-					garrison = { country = USA province = 2476  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2477  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2478  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2479  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2480  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2481  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2482  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2483  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2484  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2489  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2491  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2492  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2493  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2494  type = naval size = 2 area = no }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = GERAirAINaval }
-		command = { type = local_clrflag which = GERAirAIStrategic }
-		command = { type = local_clrflag which = GERAirAIGround }
-		command = { type = ai which = "switch/GER_Air_Naval.ai" }
-	}
-}
-################
-# German Air AI Ground portion
-#############################################
-event = {
-	id = 20027
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = GERAirAIGround }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		# These statements must be false if not the land air AI has priority
-		OR = {
-			lost_national = { country = GER value = 2 }
-			war = { country = GER country = POL } # Eastern Europe
-			war = { country = GER country = CZE }
-			war = { country = GER country = HUN }
-			war = { country = GER country = ROM }
-			war = { country = GER country = YUG }
-			war = { country = GER country = GRE }
-			war = { country = GER country = LIT }
-			war = { country = GER country = LAT }
-			war = { country = GER country = EST }
-			war = { country = GER country = BUL }
-			war = { country = GER country = SOV }
-			war = { country = GER country = AUS } # Central Europe
-			war = { country = GER country = ITA }
-			AND = { 								# LOW COUNTRIES
-				war = { country = GER country = HOL }
-				NOT = { control = { province = 47 data = GER } } # Amsterdamm
-			}
-			AND = {
-				war = { country = GER country = BEL }
-				NOT = { control = { province = 51 data = GER } } # Brussels
-			}
-			war = { country = GER country = LUX }
-			war = { country = GER country = SPR } # Western Europe
-			war = { country = GER country = SPA }
-			war = { country = GER country = POR }
-			war = { country = GER country = VIC }
-			AND = {
-				war = { country = GER country = FRA }
-				NOT = { control = { province = 56 data = GER } } # Paris
-				OR = {
-					war = { country = GER country = HOL }
-					war = { country = GER country = BEL }
-				}
-			}
-		}
-		# These statements have to be true for it to load naval AI
-		NOT = {
-			AND = {
-				war = { country = FRA country = GER }
-				OR = {
-					# Baltic
-					garrison = { country = FRA province = 2473  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2474  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2475  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 290   type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2476  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2477  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2478  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2479  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2480  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2481  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2482  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2483  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2484  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2489  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2491  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2492  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2493  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2494  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = GER }
-				OR = {
-					# Baltic
-					garrison = { country = ENG province = 2473  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2474  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2475  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 290   type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2476  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2477  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2478  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2479  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2480  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2481  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2482  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2483  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2484  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2489  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2491  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2492  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2493  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2494  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = USA country = GER }
-				OR = {
-					# Baltic
-					garrison = { country = USA province = 2473  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2474  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2475  type = naval size = 2 area = no }
-					garrison = { country = USA province = 290   type = naval size = 2 area = no }
-					garrison = { country = USA province = 2476  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2477  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2478  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2479  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2480  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2481  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2482  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2483  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2484  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2489  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2491  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2492  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2493  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2494  type = naval size = 2 area = no }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = GERAirAINaval }
-		command = { type = local_clrflag which = GERAirAIStrategic }
-		command = { type = local_setflag which = GERAirAIGround }
-		command = { type = ai which = "switch/GER_Air_Ground.ai" }
-	}
-}
-################
-# German Air AI Strategic portion
-#############################################
-event = {
-	id = 20028
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = GERAirAIStrategic }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		# These statements must be false if not the land air AI has priority
-		NOT = {
-			lost_national = { country = GER value = 2 }
-			war = { country = GER country = POL } # Eastern Europe
-			war = { country = GER country = CZE }
-			war = { country = GER country = HUN }
-			war = { country = GER country = ROM }
-			war = { country = GER country = YUG }
-			war = { country = GER country = GRE }
-			war = { country = GER country = LIT }
-			war = { country = GER country = LAT }
-			war = { country = GER country = EST }
-			war = { country = GER country = BUL }
-			war = { country = GER country = SOV }
-			war = { country = GER country = AUS } # Central Europe
-			war = { country = GER country = ITA }
-			AND = { 								# LOW COUNTRIES
-				war = { country = GER country = HOL }
-				NOT = { control = { province = 47 data = GER } } # Amsterdamm
-			}
-			AND = {
-				war = { country = GER country = BEL }
-				NOT = { control = { province = 51 data = GER } } # Brussels
-			}
-			war = { country = GER country = LUX }
-			war = { country = GER country = SPR } # Western Europe
-			war = { country = GER country = SPA }
-			war = { country = GER country = POR }
-			war = { country = GER country = VIC }
-			AND = {
-				war = { country = GER country = FRA }
-				NOT = { control = { province = 56 data = GER } } # Paris
-				OR = {
-					war = { country = GER country = HOL }
-					war = { country = GER country = BEL }
-				}
-			}
-		}
-		# These statements have to be true for it to load naval AI
-		NOT = {
-			local_flag = GERInvadeEngland
-			AND = {
-				war = { country = FRA country = GER }
-				OR = {
-					# Baltic
-					garrison = { country = FRA province = 2473  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2474  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2475  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 290   type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2476  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2477  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2478  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2479  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2480  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2481  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2482  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2483  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2484  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2489  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2491  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2492  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2493  type = naval size = 2 area = no }
-					garrison = { country = FRA province = 2494  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = ENG country = GER }
-				OR = {
-					# Baltic
-					garrison = { country = ENG province = 2473  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2474  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2475  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 290   type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2476  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2477  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2478  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2479  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2480  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2481  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2482  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2483  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2484  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2489  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2491  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2492  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2493  type = naval size = 2 area = no }
-					garrison = { country = ENG province = 2494  type = naval size = 2 area = no }
-				}
-			}
-			AND = {
-				war = { country = USA country = GER }
-				OR = {
-					# Baltic
-					garrison = { country = USA province = 2473  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2474  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2475  type = naval size = 2 area = no }
-					garrison = { country = USA province = 290   type = naval size = 2 area = no }
-					garrison = { country = USA province = 2476  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2477  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2478  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2479  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2480  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2481  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2482  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2483  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2484  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2489  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2491  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2492  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2493  type = naval size = 2 area = no }
-					garrison = { country = USA province = 2494  type = naval size = 2 area = no }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = GERAirAINaval }
-		command = { type = local_setflag which = GERAirAIStrategic }
-		command = { type = local_clrflag which = GERAirAIGround }
-		command = { type = ai which = "switch/GER_Air_Strategic.ai" }
-	}
-}
-################
-# Germany sends Italy help
-#############################################
-event = {
-	id = 20029
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = GERDefendItaly }
-		alliance = { country = ITA country = GER }
-		NOT = { lost_national = { country = GER value = 2 } }
-		OR = {
-			AND = { # Means they attacked Italy
-				lost_national = { country = ITA value = 2 }
-				control = { province = 534 data = ITA } # Sardinia
-			}
-			AND = { # Means they attacked Italy
-				lost_national = { country = ITA value = 10 }
-				NOT = { control = { province = 534 data = ITA } }# Sardinia
-			}
-			AND = { # Means they are preparing to attack Italy
-				# Libya
-				NOT = { control = { province = 932 data = ITA } }
-				NOT = { control = { province = 924 data = ITA } }
-				NOT = { control = { province = 919 data = ITA } }
-			}
-			
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = GERDefendItaly }
-		command = { type = ai which = "switch/GER_ITA_Defense.ai" }
-	}
-}
-################
-# Germany pulls its help from Italy help
-#############################################
-event = {
-	id = 20030
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = GERDefendItaly
-		alliance = { country = ITA country = GER }
-		OR = {
-			lost_national = { country = GER value = 2 }
-			NOT = {
-				AND = { # Means they attacked Italy
-					lost_national = { country = ITA value = 2 }
-					control = { province = 534 data = ITA } # Sardinia
-				}
-				AND = { # Means they attacked Italy
-					lost_national = { country = ITA value = 10 }
-					NOT = { control = { province = 534 data = ITA } }# Sardinia
-				}
-				AND = { # Means they are preparing to attack Italy
-					# Libya
-					NOT = { control = { province = 932 data = ITA } }
-					NOT = { control = { province = 924 data = ITA } }
-					NOT = { control = { province = 919 data = ITA } }
-				}
-				
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = GERDefendItaly }
-		command = { type = ai which = "switch/GER_ITA_Recall_Defense.ai" }
-	}
-}
-################
-# Germany cancels Sea Lion and goes after Russia
-#############################################
-event = {
-	id = 20031
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		exists = SOV
-		local_flag = GERInvadeEngland
-		control = { province = 56 data = GER } # Paris
-		NOT = { event = 2024 } # Bitter Peace
-		NOT = { lost_national = { country = GER value = 2 } }
-		NOT = { war = { country = SPR country = GER } }
-		NOT = { war = { country = SPA country = GER } }
-		NOT = { war = { country = YUG country = GER } }
-		NOT = { war = { country = USA country = GER } }
-		NOT = { war = { country = POL country = GER } }
-		NOT = { war = { country = HUN country = GER } }
-		NOT = { war = { country = ITA country = GER } }
-		NOT = { war = { country = ROM country = GER } }
-		OR = {
-			NOT = { transport = { country = GER value = 4 } } # >= 4 transport
-			AND = {
-				NOT = { control = { province = 5 data = ENG } }
-				NOT = { control = { province = 6 data = ENG } }
-				NOT = { control = { province = 3 data = ENG } }
-				NOT = { control = { province = 7 data = ENG } }
-				NOT = { control = { province = 8 data = ENG } }
-				NOT = { control = { province = 9 data = ENG } }
-				NOT = { control = { province = 10 data = ENG } }
-				NOT = { control = { province = 11 data = ENG } }
-				NOT = { control = { province = 12 data = ENG } }
-				NOT = { control = { province = 13 data = ENG } }
-				NOT = { control = { province = 14 data = ENG } }
-				NOT = { control = { province = 15 data = ENG } }
-				NOT = { control = { province = 16 data = ENG } }
-				NOT = { control = { province = 17 data = ENG } }
-				NOT = { control = { province = 19 data = ENG } }
-				NOT = { control = { province = 22 data = ENG } }
-				NOT = { control = { province = 20 data = ENG } }
-				NOT = { control = { province = 21 data = ENG } }
-				NOT = { control = { province = 23 data = ENG } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = GERInvadeRussia }
-		command = { type = local_clrflag which = GERInvadeSpain }
-		command = { type = local_clrflag which = GERInvadeEngland }		
-	}
-}
-################
-# Spanish invasion setup and Sea Lion
-#############################################
-event = {
-	id = 20032
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = GERInvadeEngland }
-		local_flag = GERInvadeSpain
-		OR = {
-			AND = {
-				NOT = { exists = SPR }
-				exists = SPA
-			}
-			AND = {
-				NOT = { exists = SPR }
-				NOT = { exists = SPA }
-			}
-			AND = {
-				war = { country = SPR country = SPA }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = GERInvadeEngland }
-		command = { type = local_clrflag which = GERInvadeSpain }
-		command = { type = ai which = "switch/GER_Sealion.ai" }
-	}
-}
-event = {
-	id = 20033
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		exists = SPR
-		NOT = { local_flag = GERInvadeEngland }
-		local_flag = GERInvadeSpain
-		day = 2
-		NOT = { day = 3 }
-		exists = VIC
-		NOT = { war = { country = SPR country = GER } }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = GERInvadeSpain }
-		command = { type = local_setflag which = GERInvadeEngland }
-		command = { type = ai which = "switch/GER_SPR_Buildup_VIC.ai" }
-	}
-}
-event = {
-	id = 20034
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		exists = SPR
-		NOT = { local_flag = GERInvadeEngland }
-		local_flag = GERInvadeSpain
-		day = 2
-		NOT = { day = 3 }
-		NOT = { exists = VIC }
-		NOT = { war = { country = SPR country = GER } }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = GERInvadeSpain }
-		command = { type = local_setflag which = GERInvadeEngland }
-		command = { type = ai which = "switch/GER_SPR_Buildup.ai" }
-	}
-}
-event = {
-	id = 20035
-	random = no 
-	country = GER
-	
-	trigger = {
-		ai = yes
-		exists = SPR
-		local_flag = GERInvadeEngland
-		local_flag = GERInvadeSpain
-		day = 1
-		NOT = { day = 2 }
-		OR = {
-			war = { country = SPR country = GER }
-			AND = {
-				month = 3 # March
-				NOT = {	month = 4 } # April
-				random = 10
-			}
-			AND = {
-				month = 3 # April
-				NOT = {	month = 4 } # May
-				random = 20
-			}
-			AND = {
-				month = 4 # May
-				NOT = {	month = 5 } # June
-				random = 40
-			}
-			AND = {
-				month = 5 # June
-				NOT = {	month = 6 } # July
-				random = 80
-			}
-			AND = {
-				month = 6 # July
-				NOT = {	month = 9 } # October
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = GERInvadeEngland }
-		command = { type = ai which = "switch/GER_SPR.ai" }
-		command = { type = sleepevent which = 20033 }
-		command = { type = sleepevent which = 20034 }
-		command = { type = war which = SPR }
-	}
-}
-
-
-################
-# German Military Building AI
-#############################################
-# Building Style Flags
-#	GERBuildStandard		= Standard Build when strategy is unknown
-#	GERBuildNavy			= Build Navy when preparing to attack the UK and USA
-#	GERBuildLand			= Build heavy on the land troops with no sea
-#	GERBuildMix				= Build mix of land and subs
-################
-# German Standard Building AI
-#############################################
-event = { 
-	id = 20036
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		OR = {
-			AND = {
-				atwar = no
-				year = 1940
-			}
-			AND = {
-				atwar = yes
-				NOT = { local_flag = GERInvadeRussia }
-				NOT = { war= { country = GER country = SOV } }
-				NOT = { local_flag = GERInvadeSpain }
-				NOT = { local_flag = GERInvadeEngland }
-				NOT = { war= { country = GER country = SPR } }
-				NOT = { war= { country = GER country = SPA } }
-				NOT = { local_flag = GERInvadeYugoslavia }
-				NOT = { war= { country = GER country = YUG } }
-				land_percentage = { country = SOV value = 0.8 }
-				land_percentage = { country = USA value = 1.2 }
-				land_percentage = { country = ENG value = 1.2 }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = GERBuildStandard }
-		command = { type = local_clrflag which = GERBuildMix }
-		command = { type = local_clrflag which = GERBuildLand }
-		command = { type = local_clrflag which = GERBuildNavy }
-		command = { type = ai which = "switch/GER_Build_Standard.ai" }
-	}
-}
-################
-# German Mix Building AI
-#############################################
-event = { 
-	id = 20037
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		land_percentage = { country = SOV value = 0.8 }
-		land_percentage = { country = USA value = 1.2 }
-		land_percentage = { country = ENG value = 1.2 }
-		OR = {
-			local_flag = GERInvadeRussia
-			local_flag = GERInvadeYugoslavia
-			war= { country = GER country = SOV }
-			war= { country = GER country = YUG }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = GERBuildStandard }
-		command = { type = local_setflag which = GERBuildMix }
-		command = { type = local_clrflag which = GERBuildLand }
-		command = { type = local_clrflag which = GERBuildNavy }
-		command = { type = ai which = "switch/GER_Build_Mix.ai" }
-	}
-}
-################
-# German Land Building AI
-#############################################
-event = { 
-	id = 20038
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			AND = {
-				local_flag = GERInvadeSpain
-				local_flag = GERInvadeEngland
-				OR = {
-					land_percentage = { country = SOV value = 0.6 }
-					land_percentage = { country = USA value = 1.0 }
-					land_percentage = { country = ENG value = 1.0 }
-				}
-			}
-			AND = {
-				NOT = { local_flag = GERInvadeSpain }
-				NOT = { local_flag = GERInvadeEngland }
-				OR = {
-					NOT = { land_percentage = { country = SOV value = 0.8 } }
-					NOT = { land_percentage = { country = USA value = 1.2 } }
-					NOT = { land_percentage = { country = ENG value = 1.2 } }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = GERBuildStandard }
-		command = { type = local_clrflag which = GERBuildMix }
-		command = { type = local_setflag which = GERBuildLand }
-		command = { type = local_clrflag which = GERBuildNavy }
-		command = { type = ai which = "switch/GER_Build_Land.ai" }
-	}
-}
-################
-# German Navy Building AI
-#############################################
-event = { 
-	id = 20039
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		land_percentage = { country = SOV value = 0.6 }
-		land_percentage = { country = USA value = 1.0 }
-		land_percentage = { country = ENG value = 1.0 }
-		OR = {
-			local_flag = GERInvadeSpain
-			local_flag = GERInvadeEngland
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = GERBuildStandard }
-		command = { type = local_clrflag which = GERBuildMix }
-		command = { type = local_clrflag which = GERBuildLand }
-		command = { type = local_setflag which = GERBuildNavy }
-		command = { type = ai which = "switch/GER_Build_Navy.ai" }
-	}
-}
-################
-# Germany builds submarines
-#############################################
-event = {
-	id = 20040
-	random = no
-	country = GER
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		NOT = { lost_national = { country = GER value = 1 } }
-		OR = {
-			AND = {
-				atwar = no
-				NOT = { submarine = { country = GER value = 10 } }
-			}
-			AND = {
-				atwar = yes
-				NOT = { submarine = { country = GER value = 20 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = build_division which = submarine }
-	}
-}
-################
-# Germany builds Fortifications on the French Border
-#############################################
-event = {
-	id = 20041
-	random = no
-	country = GER
-
-	trigger = {
-		ai = yes
-		atwar = no
-		technology = 5100
-		control = { province = 74 data = GER } # Saarbrucken
-		control = { province = 314 data = GER } # Stuttgart
-		control = { province = 315 data = GER } # Freiburg
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1939 }
-
-	action_a = {
-		command = { type = ai which = "switch/GER_Build_Fort.ai" }
-	}
-}
-################
-# Germany builds transports
-#############################################
-event = {
-	id = 20042
-	random = no
-	country = GER
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		atwar = yes
-		NOT = { transport = { country = GER value = 3 } }
-		NOT = { lost_national = { country = GER value = 2 } }
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = build_division which = transport }
-	}
-}
-################
-# German AI Slider manipulation
-#
-#	Free Market
-#############################################
-event = { # Free Market
-	id = 20043
-	random = no
-	country = GER
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = free_market value = 1}
-		government = democratic
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = free_market value = 1 }
-	}
-}
-event = { # Free Market
-	id = 20044
-	random = no
-	country = GER
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = free_market value = -1}
-		OR = {
-			government = fascist
-			government = communist
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = free_market value = -1 }
-	}
-}
-################
-#	Standing Army
-#############################################
-event = { # Standing Army
-	id = 20045
-	random = no
-	country = GER
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = professional_army value = 1}
-		AND = {
-			NOT = { domestic = { type = professional_army value = 9 } }
-			OR = {
-				technology = 6220 # Spearhead Doctrine
-				AND = {
-					technology = 6300 # Human Wave Doctrine
-					OR = {
-						ideology = nazi
-						ideology = fascist
-						ideology = leninist
-						ideology = stalinist
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = professional_army value = 1 }
-	}
-}
-event = { # Standing Army
-	id = 20046
-	random = no
-	country = GER
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = professional_army value = -1}
-		AND = {
-			domestic = { type = professional_army value = 0 }
-			OR = {
-				technology = 6020 # Superior Firepower Doctrine
-				technology = 6030 # Grand Battleplan Doctrine
-				AND = {
-					technology = 6300 # Human Wave Doctrine
-					NOT = {
-						ideology = nazi
-						ideology = fascist
-						ideology = leninist
-						ideology = stalinist
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = professional_army value = -1 }
-	}
-}
-################
-#	Open Society
-#############################################
-event = { # Open Society
-	id = 20047
-	random = no
-	country = GER
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = freedom value = -1}
-		AND = {
-			domestic = { type = freedom value = 0 }
-			OR = {
-				government = fascist
-				government = communist
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = freedom value = -1 }
-	}
-}
-event = { # Open Society
-	id = 20048
-	random = no
-	country = GER
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = freedom value = 1}
-		AND = {
-			NOT = { domestic = { type = freedom value = 9 } }
-			government = democratic
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = freedom value = 1 }
-	}
-}
-################
-#	Hawk Lobby
-#############################################
-event = { # Hawk Lobby
-	id = 20049
-	random = no
-	country = GER
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = defense_lobby value = 1}
-		AND = {
-			NOT = { domestic = { type = defense_lobby value = 9 } }
-			OR = {
-				ideology = nazi
-				ideology = fascist
-				ideology = leninist
-				ideology = stalinist
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = defense_lobby value = 1 }
-	}
-}
-event = { # Hawk Lobby
-	id = 20050
-	random = no
-	country = GER
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = defense_lobby value = -1}
-		AND = {
-			domestic = { type = defense_lobby value = 0 }
-			NOT = {
-				ideology = nazi
-				ideology = fascist
-				ideology = leninist
-				ideology = stalinist
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = defense_lobby value = -1 }
-	}
-}
-################
-#	Interventionism
-#############################################
-event = { # Interventionism
-	id = 20051
-	random = no
-	country = GER
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = interventionism value = 1}
-		OR = {
-			atwar = yes
-			AND = {
-				NOT = { domestic = { type = interventionism value = 9 } }
-				OR = {
-					ideology = nazi
-					ideology = fascist
-					ideology = leninist
-					ideology = stalinist
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = interventionism value = 1 }
-	}
-}
-
-
-
-
-
-####################################
-# Germany 20500 - 20599 = Minister Change Events
-####################################
-################
-# Minister of Security Section 20500 - 20509
-#############################################
-event = { # Franz Gürtner takes power
-	id = 20500
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 223 # Franz Gürtner
-		NOT = { InCabinet = 223 }
-		OR = {
-			NOT = { control = { province = 56 data = GER } } # Paris
-			AND = {
-				control = { province = 56 data = GER } # Paris
-				NOT = { minister = 108 } # Heinrich Himmler
-			}
-		}
-		OR = {
-			manpower = 200
-			AND = {
-				NOT = { manpower = 200 }
-				NOT = { minister = 226 } # Walter Buch
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 223 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Heinrich Himmler takes power
-	id = 20501
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 108 # Heinrich Himmler
-		NOT = { InCabinet = 108 }
-		manpower = 200
-		control = { province = 56 data = GER } # Paris
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 108 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Walter Buch takes power
-	id = 20502
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 226 # Walter Buch
-		NOT = { InCabinet = 226 }
-		NOT = { manpower = 200 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 226 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Staff Section 20510 - 20519 
-#############################################
-event = { # Erich Hoepner takes power
-	id = 20510
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 160 # Erich Hoepner
-		NOT = { InCabinet = 160 }
-		OR = {
-			AND = {
-				atwar = no
-				manpower = 200
-			}
-			AND = {
-				NOT = { minister = 7 } # Ludwig Beck
-				NOT = { minister = 168 } # Adolf Heusinger
-				NOT = { minister = 156 } # Alfred Jodl
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 160 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Adolf Heusinger takes power
-	id = 20511
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 168 # Adolf Heusinger
-		NOT = { InCabinet = 168 }
-		OR = {
-			NOT = { manpower = 200 }
-			AND = {
-				NOT = { minister = 7 } # Ludwig Beck
-				NOT = { minister = 160 } # Erich Hoepner
-				NOT = { minister = 156 } # Alfred Jodl
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 168 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Ludwig Beck takes power
-	id = 20512
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 7 # Ludwig Beck
-		NOT = { InCabinet = 7 }
-		OR = {
-			AND = {
-				atwar = yes
-				NOT = { war = { country = GER country = SOV } }
-				manpower = 200
-			}
-			AND = {
-				NOT = { minister = 168 } # Adolf Heusinger
-				NOT = { minister = 156 } # Alfred Jodl
-				NOT = { minister = 160 } # Erich Hoepner
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 7 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Alfred Jodl takes power
-	id = 20513
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 156 # Alfred Jodl
-		NOT = { InCabinet = 156 }
-		OR = {
-			AND = {
-				war = { country = GER country = SOV }
-				manpower = 200
-			}
-			AND = {
-				NOT = { minister = 7 } # Ludwig Beck
-				NOT = { minister = 168 } # Adolf Heusinger
-				NOT = { minister = 160 } # Erich Hoepner
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 156 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Head of Intelligence Section 20520 - 20529 
-#############################################
-event = { # Hans Oster takes power
-	id = 20520
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 146 # Hans Oster
-		NOT = { InCabinet = 146 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 146 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of the Army Section 20530 - 20539
-#############################################
-event = { # Fedor von Bock takes power
-	id = 20530
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 182 # Fedor von Bock
-		NOT = { InCabinet = 182 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 182 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Walter von Lüttwitz takes power
-	id = 20531
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 185 # Walter von Lüttwitz
-		NOT = { InCabinet = 185 }
-		NOT = { minister = 182 } # Fedor von Bock
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 185 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Armament Minister Section 20540 - 20549
-#############################################
-event = { # Hjalmar Schacht takes power
-	id = 20540
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 77 # Hjalmar Schacht
-		NOT = { InCabinet = 77 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 77 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Albert Speer takes power
-	id = 20541
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 86 # Albert Speer
-		NOT = { InCabinet = 86 }
-		NOT = { minister = 77 } # Hjalmar Schacht
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 86 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Johann Schwerin von Krosigk takes power
-	id = 20542
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 85 # Johann Schwerin von Krosigk
-		NOT = { InCabinet = 85 }
-		NOT = { minister = 86 } # Albert Speer
-		NOT = { minister = 77 } # Hjalmar Schacht
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 85 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Air Minister Section 20550 - 20559
-# Air AI Flags
-#	GERAirAINaval			= Germany has there Air vs Naval AI loaded
-#	GERAirAIStrategic		= Germany has their Strategic bombing AI loaded
-#	GERAirAIGround			= Germany has their ground support AI loaded
-#############################################
-event = { # Hermann Göring takes power
-	id = 20550
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = GERAirAIGround
-		minister = 10 # Hermann Göring
-		NOT = { InCabinet = 10 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 10 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Karl Koller takes power
-	id = 20551
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = GERAirAIGround
-		NOT = { minister = 10 }# Hermann Göring
-		minister = 205 # Karl Koller
-		NOT = { InCabinet = 205 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 205 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Carl Friedrich von Siemens takes power
-	id = 20552
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		OR = {
-			local_flag = GERAirAINaval
-			local_flag = GERAirAIStrategic			
-		}
-		minister = 208 # Carl Friedrich von Siemens
-		NOT = { InCabinet = 208 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 208 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Ulrich Grauert takes power
-	id = 20553
-	random = no 
-	country = GER
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		OR = {
-			local_flag = GERAirAINaval
-			local_flag = GERAirAIStrategic			
-		}
-		minister = 236 # Ulrich Grauert
-		NOT = { InCabinet = 236 }
-		NOT = { minister = 208 } # Carl Friedrich von Siemens
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 236 }
-		command = { type = dissent value = -1 }
-	}
-}
\ No newline at end of file
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/ai_jap.txt Doomsday Data Files/db/events/ai_jap.txt
--- Doomsday Data Files.old/db/events/ai_jap.txt	2008-03-28 10:46:23.000000000 +0100
+++ Doomsday Data Files/db/events/ai_jap.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,2998 +1 @@
-####################################
-# Japan 22000 - 22999 by Lothos
-#		22500 - 22599 = Minister Change Events
-####################################
-# Who to invade flags
-#	AttackChina		= Attack China
-#	AttackCGX		= Attack Guang Clique
-#	AttackCSX		= Attack Shanxie
-
-# Where to invade Flags
-#	ChinaCenter		= Invade the Chinese center beaches
-#	ChinaSouth		= Invade the South beaches
-#	ChinaNorth		= Invade the North beaches
-
-# Air AI Flags
-#	JAPAirAINaval	= Naval Priority for bombardment
-#	JAPAirAIGround	= Ground support is a priority
-
-# Misc. Flags
-#	ChinaBackoff	= Backoff from his attack on China
-#	ChinaBackoffSiam = Backoff from his attack on China
-
-# Pacific War Flags
-#	JAPStandardPacific	= Standard Pacific War AI
-#	JAPInvadePHI		= Invade the Phillipenese
-#	JAPInvadeNEPacific	= Invade the North East side of the Pacific
-#	JAPInvadeNEI		= Invade the Netherlands East Indies and Singapore
-#	JAPInvadeNewGuinea	= Invade New Guinea
-
-# Homeland Defense Flags
-#	JAPHomeland			= Homeland under attack
-
-# Unit building AI
-#	JAPBuildStandard	= Standard Building of units 
-#	JAPBuildLand		= Priority Building land units
-
-####################################
-################
-# Chinese Invasion AI
-#############################################
-event = {
-	id = 22000
-	random = no 
-	country = JAP
-	
-	trigger = {
-		ai = yes
-		war = { country = JAP country = CHI }
-		not = { war = { country = JAP country = USA } }
-		not = { war = { country = JAP country = SOV } }
-		not = { war = { country = JAP country = ENG } }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/JAP_China.ai" }
-	}
-}
-################
-# Backoff from China AI
-#############################################
-event = {
-	id = 22001
-	random = no 
-	country = JAP
-	
-	trigger = {
-		ai = yes
-		ai = CHI
-		war = { country = JAP country = CHI }
-		not = { war = { country = JAP country = USA } }
-		not = { war = { country = JAP country = SOV } }
-		not = { war = { country = JAP country = ENG } }
-		lost_national = { country = CHI value = 35 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/JAP_Backoff.ai" }
-	}
-}
-################
-# Pacific war
-#############################################
-event = {
-	id = 22002
-	random = no 
-	country = JAP
-	
-	trigger = {
-		ai = yes
-		NOT = { ispuppet = JAP }
-		NOT = { alliance = { country = JAP country = USA } }
-		NOT = { alliance = { country = JAP country = ENG } }
-		NOT = { alliance = { country = JAP country = HOL } }
-		OR = {
-			AND = {
-				year = 1941
-				NOT = { year = 1942 }
-				event = 3800 # Oil Embargo
-				OR = {
-					AND = {
-						month = 1
-						NOT = { month = 2 }
-						random = 2
-					}
-					AND = {
-						month = 10
-						random = 20
-					}
-				}
-			}
-			AND = {
-				year = 1942
-				event = 3800 # Oil Embargo
-				OR = {
-					AND = {
-						month = 1
-						NOT = { month = 2 }
-						random = 40
-					}
-					AND = {
-						month = 10
-						random = 50
-					}
-				}
-			}
-			AND = {
-				year = 1942
-				atwar = no
-				OR = {
-					AND = {
-						month = 1
-						NOT = { month = 2 }
-						random = 15
-					}
-					AND = {
-						month = 10
-						random = 20
-					}
-				}
-			}
-			war = { country = JAP country = USA }
-			war = { country = JAP country = ENG }
-			war = { country = JAP country = AST }
-			war = { country = JAP country = NZL }
-			war = { country = JAP country = PHI }
-			war = { country = JAP country = FRA }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = sleepevent which = 22000 }
-		command = { type = sleepevent which = 22001 }
-		command = { type = sleepevent which = 22003 }
-		command = { type = war which = USA }
-		command = { type = war which = ENG }
-		command = { type = war which = HOL }
-	}
-}
-################
-# Japan does not attack China AI
-#############################################
-event = {
-	id = 22003
-	random = no 
-	country = JAP
-	
-	trigger = {
-		ai = yes
-		event = 20
-		NOT = { war = { country = JAP country = CHI } }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-        date = { day = 0 month = june year = 1937 }
-        offset = 5
-	deathdate = { day = 15 month = september year = 1937 }
-
-	action_a = {
-		command = { type = ai which = "switch/JAP_Backoff.ai" }
-	}
-}
-################
-# Japan release troops for Indo China
-#############################################
-event = {
-	id = 22004
-	random = no 
-	country = JAP
-	
-	trigger = {
-		ai = yes
-		OR = {
-			event = 3804
-			event = 3894
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/JAP_Vichy_IndoChina.ai" }
-	}
-}
-################
-# Japan loads backoff2 AI
-#############################################
-event = {
-	id = 22005
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		ai = CHI
-		NOT = { local_flag = ChinaBackoff }
-		war = { country = CHI country = JAP }
-		OR = {
-			AND = {
-				year = 1937
-				NOT = { year = 1939 }
-				OR = {
-					AND = {
-						lost_national = { country = CHI value = 35 }
-						NOT = { control = { province = 1320 data = JAP } }
-						NOT = { control = { province = 1321 data = JAP } }
-					}
-					AND = {
-						lost_national = { country = CHI value = 40 }
-						OR = {
-							control = { province = 1320 data = JAP }
-							control = { province = 1321 data = JAP }
-						}
-					}
-				}
-			}
-			AND = {
-				year = 1939
-				NOT = { year = 1941 }
-				OR = {
-					AND = {
-						lost_national = { country = CHI value = 38 }
-						NOT = { control = { province = 1320 data = JAP } }
-						NOT = { control = { province = 1321 data = JAP } }
-					}
-					AND = {
-						lost_national = { country = CHI value = 43 }
-						OR = {
-							control = { province = 1320 data = JAP }
-							control = { province = 1321 data = JAP }
-						}
-					}
-				}
-			}
-			AND = {
-				year = 1941
-				OR = {
-					AND = {
-						lost_national = { country = CHI value = 40 }
-						NOT = { control = { province = 1320 data = JAP } }
-						NOT = { control = { province = 1321 data = JAP } }
-					}
-					AND = {
-						lost_national = { country = CHI value = 45 }
-						OR = {
-							control = { province = 1320 data = JAP }
-							control = { province = 1321 data = JAP }
-						}
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = ChinaBackoff }
-		command = { type = local_clrflag which = ChinaBackoffSiam }
-		command = { type = ai which = "switch/JAP_Backoff2.ai" }
-	}
-}
-################
-# Japan goes back on the attack in China
-#############################################
-event = {
-	id = 22006
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		ai = CHI
-		local_flag = ChinaBackoff
-		war = { country = CHI country = JAP }
-		NOT = {
-			AND = {
-				year = 1937
-				NOT = { year = 1939 }
-				OR = {
-					AND = {
-						lost_national = { country = CHI value = 35 }
-						NOT = { control = { province = 1320 data = JAP } }
-						NOT = { control = { province = 1321 data = JAP } }
-					}
-					AND = {
-						lost_national = { country = CHI value = 40 }
-						OR = {
-							control = { province = 1320 data = JAP }
-							control = { province = 1321 data = JAP }
-						}
-					}
-				}
-			}
-			AND = {
-				year = 1939
-				NOT = { year = 1941 }
-				OR = {
-					AND = {
-						lost_national = { country = CHI value = 38 }
-						NOT = { control = { province = 1320 data = JAP } }
-						NOT = { control = { province = 1321 data = JAP } }
-					}
-					AND = {
-						lost_national = { country = CHI value = 43 }
-						OR = {
-							control = { province = 1320 data = JAP }
-							control = { province = 1321 data = JAP }
-						}
-					}
-				}
-			}
-			AND = {
-				year = 1941
-				OR = {
-					AND = {
-						lost_national = { country = CHI value = 40 }
-						NOT = { control = { province = 1320 data = JAP } }
-						NOT = { control = { province = 1321 data = JAP } }
-					}
-					AND = {
-						lost_national = { country = CHI value = 45 }
-						OR = {
-							control = { province = 1320 data = JAP }
-							control = { province = 1321 data = JAP }
-						}
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ChinaBackoff }
-		command = { type = local_clrflag which = ChinaBackoffSiam }
-		command = { type = ai which = "switch/JAP_Backoff_Remove.ai" }
-	}
-}
-################
-# Japan invades China from the North
-#############################################
-event = {
-	id = 22007
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = ChinaNorth }
-		war = { country = CHI country = JAP }
-		NOT = { war = { country = USA country = JAP } }
-		NOT = { war = { country = ENG country = JAP } }
-		OR = {
-			control = { province = 1214 data = CHI }
-			control = { province = 1215 data = CHI }
-			control = { province = 1217 data = CHI }
-			control = { province = 1219 data = CHI }
-		}
-		NOT = { # Central Invasion
-			NOT = { ai = CHI }
-			AND = {
-				NOT = { control = { province = 1214 data = CHI } }
-				NOT = { control = { province = 1215 data = CHI } }
-				NOT = { control = { province = 1217 data = CHI } }
-				NOT = { control = { province = 1219 data = CHI } }
-				OR = {
-					control = { province = 1244 data = CHI }
-					control = { province = 1247 data = CHI }
-					control = { province = 1248 data = CHI }
-					control = { province = 1313 data = CHI }
-					control = { province = 1314 data = CHI }
-				}
-			}
-			AND = {
-				control = { province = 1244 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1244  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1244  type = land size = 2 area = no } }
-					}
-				}
-			}
-			AND = {
-				control = { province = 1247 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1247  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1247  type = land size = 3 area = no } }
-					}
-				}
-			}
-			AND = {
-				control = { province = 1248 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1248  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1248  type = land size = 3 area = no } }
-					}
-				}
-			}
-			AND = {
-				control = { province = 1313 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1313  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1313  type = land size = 3 area = no } }
-					}
-				}
-			}
-			AND = {
-				control = { province = 1314 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1314  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1314  type = land size = 3 area = no } }
-					}
-				}
-			}
-		}
-		NOT = { # Southern Invasion
-			NOT = { ai = CHI }
-			AND = {
-				control = { province = 1321 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1321  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1321  type = land size = 2 area = no } }
-					}
-				}
-			}
-			AND = {
-				war = { country = CGX country = JAP }
-				control = { province = 1321 data = CGX }
-				OR = {
-					NOT = { garrison = { country = CGX province = 1321  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CGX province = 1321  type = land size = 2 area = no } }
-					}
-				}
-			}
-			AND = {
-				control = { province = 1320 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1320  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1320  type = land size = 2 area = no } }
-					}
-				}
-			}
-			AND = {
-				war = { country = CGX country = JAP }
-				control = { province = 1320 data = CGX }
-				OR = {
-					NOT = { garrison = { country = CGX province = 1320  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CGX province = 1320  type = land size = 2 area = no } }
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ChinaCenter }
-		command = { type = local_clrflag which = ChinaSouth }
-		command = { type = local_setflag which = ChinaNorth }
-		command = { type = ai which = "switch/JAP_China_North.ai" }
-	}
-}
-
-################
-# Japan invades China from the center
-#############################################
-event = {
-	id = 22008
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { ai = CHI }
-		NOT = { local_flag = ChinaCenter }
-		war = { country = CHI country = JAP }
-		NOT = { war = { country = USA country = JAP } }
-		NOT = { war = { country = ENG country = JAP } }
-		NOT = {
-			AND = {
-				control = { province = 1321 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1321  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1321  type = land size = 2 area = no } }
-					}
-				}
-			}
-			AND = {
-				war = { country = CGX country = JAP }
-				control = { province = 1321 data = CGX }
-				OR = {
-					NOT = { garrison = { country = CGX province = 1321  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CGX province = 1321  type = land size = 2 area = no } }
-					}
-				}
-			}
-			AND = {
-				control = { province = 1320 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1320  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1320  type = land size = 2 area = no } }
-					}
-				}
-			}
-			AND = {
-				war = { country = CGX country = JAP }
-				control = { province = 1320 data = CGX }
-				OR = {
-					NOT = { garrison = { country = CGX province = 1320  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CGX province = 1320  type = land size = 2 area = no } }
-					}
-				}
-			}
-		}
-		OR = {
-			AND = {
-				NOT = { control = { province = 1214 data = CHI } }
-				NOT = { control = { province = 1215 data = CHI } }
-				NOT = { control = { province = 1217 data = CHI } }
-				NOT = { control = { province = 1219 data = CHI } }
-				OR = {
-					control = { province = 1244 data = CHI }
-					control = { province = 1247 data = CHI }
-					control = { province = 1248 data = CHI }
-					control = { province = 1313 data = CHI }
-					control = { province = 1314 data = CHI }
-				}
-			}
-			AND = {
-				control = { province = 1244 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1244  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1244  type = land size = 2 area = no } }
-					}
-				}
-			}
-			AND = {
-				control = { province = 1247 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1247  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1247  type = land size = 3 area = no } }
-					}
-				}
-			}
-			AND = {
-				control = { province = 1248 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1248  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1248  type = land size = 3 area = no } }
-					}
-				}
-			}
-			AND = {
-				control = { province = 1313 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1313  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1313  type = land size = 3 area = no } }
-					}
-				}
-			}
-			AND = {
-				control = { province = 1314 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1314  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1314  type = land size = 3 area = no } }
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = ChinaCenter }
-		command = { type = local_clrflag which = ChinaSouth }
-		command = { type = local_clrflag which = ChinaNorth }
-		command = { type = ai which = "switch/JAP_China_Center.ai" }
-	}
-}
-################
-# Japan invades China from the south
-#############################################
-event = {
-	id = 22009
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { ai = CHI }
-		NOT = { local_flag = ChinaSouth }
-		war = { country = CHI country = JAP }
-		NOT = { war = { country = USA country = JAP } }
-		NOT = { war = { country = ENG country = JAP } }
-		AND = {
-			NOT = { control = { province = 1214 data = CHI } }
-			NOT = { control = { province = 1215 data = CHI } }
-			NOT = { control = { province = 1217 data = CHI } }
-			NOT = { control = { province = 1219 data = CHI } }
-		}
-		OR = {
-			AND = {
-				NOT = { control = { province = 1244 data = CHI } }
-				NOT = { control = { province = 1247 data = CHI } }
-				NOT = { control = { province = 1248 data = CHI } }
-			}
-			AND = {
-				control = { province = 1321 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1321  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1321  type = land size = 2 area = no } }
-					}
-				}
-			}
-			AND = {
-				war = { country = CGX country = JAP }
-				control = { province = 1321 data = CGX }
-				OR = {
-					NOT = { garrison = { country = CGX province = 1321  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CGX province = 1321  type = land size = 2 area = no } }
-					}
-				}
-			}
-			AND = {
-				control = { province = 1320 data = CHI }
-				OR = {
-					NOT = { garrison = { country = CHI province = 1320  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CHI province = 1320  type = land size = 2 area = no } }
-					}
-				}
-			}
-			AND = {
-				war = { country = CGX country = JAP }
-				control = { province = 1320 data = CGX }
-				OR = {
-					NOT = { garrison = { country = CGX province = 1320  type = land size = 1 area = no } }
-					AND = {
-						NOT = { ai = CHI }
-						NOT = { garrison = { country = CGX province = 1320  type = land size = 2 area = no } }
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = ChinaCenter }
-		command = { type = local_setflag which = ChinaSouth }
-		command = { type = local_clrflag which = ChinaNorth }
-		command = { type = ai which = "switch/JAP_China_South.ai" }
-	}
-}
-################
-# Japanese Diplomacy section
-#
-# Japan watches China/Warlords Diplomacy
-#############################################
-event = {
-	id = 22010
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		OR = {
-			local_flag = AttackChina
-			war = { country = CHI country = JAP }
-		}
-		OR = {
-			local_flag = AttackCGX
-			war = { country = CGX country = JAP }
-		}
-		OR = {
-			local_flag = AttackCSX
-			war = { country = CSX country = JAP }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = AttackChina }
-		command = { type = local_clrflag which = AttackCGX }
-		command = { type = local_clrflag which = AttackCSX }
-	}
-}
-################
-# Japan watches China Diplomacy
-#############################################
-event = {
-	id = 22011
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = no
-		NOT = { local_flag = AttackChina }
-		land_percentage = { country = CHI value = 1.0 }
-		OR = {
-			AND = {
-				under_attack = CGX
-				war = { country = CGX country = CHI }
-				lost_national = { country = CGX value = 40 }
-			}
-			AND = {
-				flag = CHI_Aggresion_Asia 
-				OR = {
-					AND = {
-						war = { country = CGX country = CHI }
-						lost_national = { country = CGX value = 50 }
-					}
-					NOT = { exists = CGX }
-				}
-			}
-			AND = {
-				under_attack = CXB
-				war = { country = CXB country = CHI }
-				lost_national = { country = CXB value = 40 }
-			}
-			AND = {
-				under_attack = CSX
-				war = { country = CSX country = CHI }
-				lost_national = { country = CSX value = 40 }
-			}
-			AND = {
-				under_attack = CYN
-				war = { country = CYN country = CHI }
-				lost_national = { country = CYN value = 40 }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = AttackChina }
-		command = { type = ai_prepare_war which = CHI }
-	}
-}
-################
-# Japan watches Guangi Clique Diplomacy
-#############################################
-event = {
-	id = 22012
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = no
-		NOT = { local_flag = AttackCGX }
-		land_percentage = { country = CGX value = 1.0 }
-		OR = {
-			AND = {
-				under_attack = CHI
-				war = { country = CGX country = CHI }
-				lost_national = { country = CHI value = 50 }
-			}
-			AND = {
-				under_attack = CSX
-				war = { country = CSX country = CGX }
-				lost_national = { country = CSX value = 40 }
-			}
-			AND = {
-				under_attack = CYN
-				war = { country = CYN country = CGX }
-				lost_national = { country = CYN value = 40 }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = AttackCGX }
-		command = { type = ai_prepare_war which = CGX }
-	}
-}
-################
-# Japan watches Guangi Clique Diplomacy
-#############################################
-event = {
-	id = 22013
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = no
-		NOT = { local_flag = AttackCSX }
-		land_percentage = { country = CSX value = 1.0 }
-		OR = {
-			AND = {
-				under_attack = CHI
-				war = { country = CSX country = CHI }
-				lost_national = { country = CHI value = 50 }
-			}
-			AND = {
-				under_attack = CGX
-				war = { country = CGX country = CSX }
-				lost_national = { country = CGX value = 40 }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = AttackCSX }
-		command = { type = ai_prepare_war which = CSX }
-	}
-}
-
-
-################
-# Japan Air AI Naval portion
-#############################################
-event = {
-	id = 22014
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = JAPAirAINaval }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		# These statements must be false if not the land air AI has priority
-		NOT = { lost_national = { country = JAP value = 2 } }
-		OR = {
-			war = { country = USA country = JAP }
-			war = { country = PHI country = JAP }
-			war = { country = HOL country = JAP }
-			war = { country = ENG country = JAP }
-			war = { country = FRA country = JAP }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = JAPAirAINaval }
-		command = { type = local_clrflag which = JAPAirAIGround }
-		command = { type = ai which = "switch/JAP_Air_Naval.ai" }
-	}
-}
-################
-# Japanese Air AI Ground portion
-#############################################
-event = {
-	id = 22015
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			NOT = { local_flag = JAPAirAIGround }
-			AND = {
-				day = 1
-				NOT = { day = 2 }
-			}
-		}
-		# These statements must be false if not the land air AI has priority
-		OR = {
-			lost_national = { country = JAP value = 2 }
-			war = { country = CHI country = JAP }
-			war = { country = CGX country = JAP }
-			war = { country = CSX country = JAP }
-			war = { country = CHC country = JAP }
-			war = { country = CYN country = JAP }
-			war = { country = SOV country = JAP }
-		}
-		NOT = {
-			war = { country = USA country = JAP }
-			war = { country = PHI country = JAP }
-			war = { country = HOL country = JAP }
-			war = { country = ENG country = JAP }
-			war = { country = FRA country = JAP }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = JAPAirAINaval }
-		command = { type = local_setflag which = JAPAirAIGround }
-		command = { type = ai which = "switch/JAP_Air_Ground.ai" }
-	}
-}
-################
-# Event removed
-#############################################
-#event = {
-#	id = 22016
-
-################
-# Pacific War Flags
-#	JAPStandardPacific	= Standard Pacific War AI
-#	JAPInvadePHI		= Invade the Phillipenese
-#	JAPInvadeNEI		= Invade the Netherlands East Indies and Singapore
-#	JAPInvadeNEPacific	= Invade the North East side of the Pacific
-#	JAPInvadeNewGuinea	= Invade New Guinea
-################
-# Japanese Pacific War AIs JAPInvadePHI
-#############################################
-event = {
-	id = 22017
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = JAPInvadePHI }
-		NOT = { local_flag = JAPHomeland }
-		NOT = { garrison = { country = PHI province = 1750  type = land size = 20 area = yes } } # Davao
-		NOT = { garrison = { country = USA province = 1750  type = land size = 20 area = yes } } # Davao
-		OR = {
-			# Philippines
-			AND = {
-				war = { country = PHI country = JAP }
-				NOT = { lost_national = { country = PHI value = 60 } }
-			}
-			AND = {
-				owned = { province = 1735 data = JAP } # Palawan
-				NOT = { control = { province = 1735 data = JAP } } # Palawan
-			}
-			AND = {
-				owned = { province = 1736 data = JAP } # Mindoro
-				NOT = { control = { province = 1736 data = JAP } } # Mindoro
-			}
-			AND = {
-				owned = { province = 1744 data = JAP } # Samar
-				NOT = { control = { province = 1744 data = JAP } } # Samar
-			}
-			AND = {
-				owned = { province = 1745 data = JAP } # Palawan
-				NOT = { control = { province = 1745 data = JAP } } # Leyte
-			}
-			AND = {
-				owned = { province = 1749 data = JAP } # Cagayan
-				NOT = { control = { province = 1749 data = JAP } } # Cagayan
-			}
-			AND = {
-				owned = { province = 1747 data = JAP } # Negros
-				NOT = { control = { province = 1747 data = JAP } } # Negros
-			}
-			AND = {
-				owned = { province = 1750 data = JAP } # Davos
-				NOT = { control = { province = 1750 data = JAP } } # Davos
-			}
-			AND = {
-				owned = { province = 1746 data = JAP } # Panay
-				NOT = { control = { province = 1746 data = JAP } } # Panay
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = JAPInvadePHI }
-		command = { type = local_clrflag which = JAPInvadeNEI }
-		command = { type = local_clrflag which = JAPInvadeNEPacific }
-		command = { type = local_clrflag which = JAPInvadeNewGuinea }
-		command = { type = local_clrflag which = JAPStandardPacific }
-		command = { type = ai which = "switch/JAP_Naval_PHI.ai" }
-	}
-}
-################
-# Japanese Pacific War AIs JAPInvadeNEI
-#############################################
-event = {
-	id = 22018
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = JAPInvadeNEI }
-		NOT = { local_flag = JAPHomeland }
-		OR = {
-			garrison = { country = USA province = 1750  type = land size = 20 area = yes } # Davao
-			garrison = { country = PHI province = 1750  type = land size = 20 area = yes } # Davao
-			NOT = {
-				# Philippines
-				AND = {
-					war = { country = PHI country = JAP }
-					NOT = { lost_national = { country = PHI value = 60 } }
-				}
-				AND = {
-					owned = { province = 1735 data = JAP } # Palawan
-					NOT = { control = { province = 1735 data = JAP } } # Palawan
-				}
-				AND = {
-					owned = { province = 1736 data = JAP } # Mindoro
-					NOT = { control = { province = 1736 data = JAP } } # Mindoro
-				}
-				AND = {
-					owned = { province = 1744 data = JAP } # Samar
-					NOT = { control = { province = 1744 data = JAP } } # Samar
-				}
-				AND = {
-					owned = { province = 1745 data = JAP } # Palawan
-					NOT = { control = { province = 1745 data = JAP } } # Leyte
-				}
-				AND = {
-					owned = { province = 1749 data = JAP } # Cagayan
-					NOT = { control = { province = 1749 data = JAP } } # Cagayan
-				}
-				AND = {
-					owned = { province = 1747 data = JAP } # Negros
-					NOT = { control = { province = 1747 data = JAP } } # Negros
-				}
-				AND = {
-					owned = { province = 1750 data = JAP } # Davos
-					NOT = { control = { province = 1750 data = JAP } } # Davos
-				}
-				AND = {
-					owned = { province = 1746 data = JAP } # Panay
-					NOT = { control = { province = 1746 data = JAP } } # Panay
-				}
-			}
-		}
-		OR = {
-			AND = {
-				war = { country = HOL country = JAP }
-				NOT = { control = { province = 1628 data = JAP } }
-				NOT = { control = { province = 1641 data = JAP } }
-				NOT = { control = { province = 1359 data = JAP } }
-				NOT = { garrison = { country = HOL province = 1628  type = land size = 10 area = yes } }
-				NOT = { garrison = { country = HOL province = 1641  type = land size = 10 area = yes } }
-				NOT = { garrison = { country = HOL province = 1359  type = land size = 10 area = yes } }
-			}
-			AND = {
-				war = { country = ENG country = JAP }
-				NOT = { control = { province = 1353 data = JAP } }
-				NOT = { garrison = { country = ENG province = 1353  type = land size = 10 area = yes } } # Singapore
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = JAPInvadePHI }
-		command = { type = local_setflag which = JAPInvadeNEI }
-		command = { type = local_clrflag which = JAPInvadeNEPacific }
-		command = { type = local_clrflag which = JAPInvadeNewGuinea }
-		command = { type = local_clrflag which = JAPStandardPacific }
-		command = { type = ai which = "switch/JAP_Naval_NEI.ai" }
-	}
-}
-################
-# Japanese Pacific War AIs JAPInvadeNEPacific
-#############################################
-event = {
-	id = 22019
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = JAPInvadeNEPacific }
-		NOT = { local_flag = JAPHomeland }
-		OR = {
-			garrison = { country = USA province = 1750  type = land size = 20 area = yes } # Davao
-			garrison = { country = PHI province = 1750  type = land size = 20 area = yes } # Davao
-			NOT = {
-				# Philippines
-				AND = {
-					war = { country = PHI country = JAP }
-					NOT = { lost_national = { country = PHI value = 60 } }
-				}
-				AND = {
-					owned = { province = 1735 data = JAP } # Palawan
-					NOT = { control = { province = 1735 data = JAP } } # Palawan
-				}
-				AND = {
-					owned = { province = 1736 data = JAP } # Mindoro
-					NOT = { control = { province = 1736 data = JAP } } # Mindoro
-				}
-				AND = {
-					owned = { province = 1744 data = JAP } # Samar
-					NOT = { control = { province = 1744 data = JAP } } # Samar
-				}
-				AND = {
-					owned = { province = 1745 data = JAP } # Palawan
-					NOT = { control = { province = 1745 data = JAP } } # Leyte
-				}
-				AND = {
-					owned = { province = 1749 data = JAP } # Cagayan
-					NOT = { control = { province = 1749 data = JAP } } # Cagayan
-				}
-				AND = {
-					owned = { province = 1747 data = JAP } # Negros
-					NOT = { control = { province = 1747 data = JAP } } # Negros
-				}
-				AND = {
-					owned = { province = 1750 data = JAP } # Davos
-					NOT = { control = { province = 1750 data = JAP } } # Davos
-				}
-				AND = {
-					owned = { province = 1746 data = JAP } # Panay
-					NOT = { control = { province = 1746 data = JAP } } # Panay
-				}
-			}
-		}
-		NOT = {
-			AND = {
-				war = { country = HOL country = JAP }
-				NOT = { control = { province = 1628 data = JAP } }
-				NOT = { control = { province = 1641 data = JAP } }
-				NOT = { control = { province = 1359 data = JAP } }
-				NOT = { garrison = { country = HOL province = 1628  type = land size = 10 area = yes } }
-				NOT = { garrison = { country = HOL province = 1641  type = land size = 10 area = yes } }
-				NOT = { garrison = { country = HOL province = 1359  type = land size = 10 area = yes } }
-			}
-			AND = {
-				war = { country = ENG country = JAP }
-				NOT = { control = { province = 1353 data = JAP } }
-				NOT = { garrison = { country = ENG province = 1353  type = land size = 10 area = yes } } # Singapore
-			}
-		}
-		OR = {
-			#Outer Japanese Islands
-			NOT = { control = { province = 1627 data = JAP } } # Saipan
-			NOT = { control = { province = 1626 data = JAP } } # Tinian
-			NOT = { control = { province = 1625 data = JAP } } # Rota
-			NOT = { control = { province = 1621 data = JAP } } # Palau
-			NOT = { control = { province = 1785 data = JAP } } # Marcus Island
-	
-			#Far Outer Rim Japanese Islands
-			NOT = { control = { province = 1601 data = JAP } } # Eniwetok
-			NOT = { control = { province = 1600 data = JAP } } # Bikini
-			NOT = { control = { province = 1602 data = JAP } } # Wotje
-			NOT = { control = { province = 1608 data = JAP } } # Kwajalein
-			NOT = { control = { province = 1603 data = JAP } } # Maloelap
-			NOT = { control = { province = 1605 data = JAP } } # Majuro
-			NOT = { control = { province = 1607 data = JAP } } # Jaluit
-			NOT = { control = { province = 1606 data = JAP } } # Mili
-			NOT = { control = { province = 1610 data = JAP } } # Ponape
-			NOT = { control = { province = 1609 data = JAP } } # Kosrae
-			NOT = { control = { province = 1620 data = JAP } } # Ngulu
-			NOT = { control = { province = 1619 data = JAP } } # Yap
-			NOT = { control = { province = 1618 data = JAP } } # Ulithi
-			NOT = { control = { province = 1604 data = JAP } } # Wolelai
-			NOT = { control = { province = 1615 data = JAP } } # Ulul
-			NOT = { control = { province = 1617 data = JAP } } # Woleai
-			NOT = { control = { province = 1616 data = JAP } } # Pulusok
-			NOT = { control = { province = 1613 data = JAP } } # Truk
-			NOT = { control = { province = 1612 data = JAP } } # Satawan
-			AND = {
-				war = { country = USA country = JAP }
-				NOT = { control = { province = 1786 data = JAP } } # Wake Island
-			}
-			AND = {
-				war = { country = USA country = JAP }
-				NOT = { control = { province = 1624 data = JAP } } # Guam
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = JAPInvadePHI }
-		command = { type = local_clrflag which = JAPInvadeNEI }
-		command = { type = local_setflag which = JAPInvadeNEPacific }
-		command = { type = local_clrflag which = JAPInvadeNewGuinea }
-		command = { type = local_clrflag which = JAPStandardPacific }
-		command = { type = ai which = "switch/JAP_Naval_NEPacific.ai" }
-	}
-}
-################
-# Japanese Pacific War AIs JAPInvadeNewGuinea
-#############################################
-event = {
-	id = 22020
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = JAPInvadeNewGuinea }
-		NOT = { local_flag = JAPHomeland }
-		OR = {
-			garrison = { country = USA province = 1750  type = land size = 20 area = yes } # Davao
-			garrison = { country = PHI province = 1750  type = land size = 20 area = yes } # Davao
-			NOT = {
-				# Philippines
-				AND = {
-					war = { country = PHI country = JAP }
-					NOT = { lost_national = { country = PHI value = 60 } }
-				}
-				AND = {
-					owned = { province = 1735 data = JAP } # Palawan
-					NOT = { control = { province = 1735 data = JAP } } # Palawan
-				}
-				AND = {
-					owned = { province = 1736 data = JAP } # Mindoro
-					NOT = { control = { province = 1736 data = JAP } } # Mindoro
-				}
-				AND = {
-					owned = { province = 1744 data = JAP } # Samar
-					NOT = { control = { province = 1744 data = JAP } } # Samar
-				}
-				AND = {
-					owned = { province = 1745 data = JAP } # Palawan
-					NOT = { control = { province = 1745 data = JAP } } # Leyte
-				}
-				AND = {
-					owned = { province = 1749 data = JAP } # Cagayan
-					NOT = { control = { province = 1749 data = JAP } } # Cagayan
-				}
-				AND = {
-					owned = { province = 1747 data = JAP } # Negros
-					NOT = { control = { province = 1747 data = JAP } } # Negros
-				}
-				AND = {
-					owned = { province = 1750 data = JAP } # Davos
-					NOT = { control = { province = 1750 data = JAP } } # Davos
-				}
-				AND = {
-					owned = { province = 1746 data = JAP } # Panay
-					NOT = { control = { province = 1746 data = JAP } } # Panay
-				}
-			}
-		}
-		NOT = {
-			AND = {
-				war = { country = HOL country = JAP }
-				NOT = { control = { province = 1628 data = JAP } }
-				NOT = { control = { province = 1641 data = JAP } }
-				NOT = { control = { province = 1359 data = JAP } }
-				NOT = { garrison = { country = HOL province = 1628  type = land size = 10 area = yes } }
-				NOT = { garrison = { country = HOL province = 1641  type = land size = 10 area = yes } }
-				NOT = { garrison = { country = HOL province = 1359  type = land size = 10 area = yes } }
-			}
-			AND = {
-				war = { country = ENG country = JAP }
-				NOT = { control = { province = 1353 data = JAP } }
-				NOT = { garrison = { country = ENG province = 1353  type = land size = 10 area = yes } } # Singapore
-			}
-		}
-		NOT = {
-			#Outer Japanese Islands
-			NOT = { control = { province = 1627 data = JAP } } # Saipan
-			NOT = { control = { province = 1626 data = JAP } } # Tinian
-			NOT = { control = { province = 1625 data = JAP } } # Rota
-			NOT = { control = { province = 1621 data = JAP } } # Palau
-			NOT = { control = { province = 1785 data = JAP } } # Marcus Island
-	
-			#Far Outer Rim Japanese Islands
-			NOT = { control = { province = 1601 data = JAP } } # Eniwetok
-			NOT = { control = { province = 1600 data = JAP } } # Bikini
-			NOT = { control = { province = 1602 data = JAP } } # Wotje
-			NOT = { control = { province = 1608 data = JAP } } # Kwajalein
-			NOT = { control = { province = 1603 data = JAP } } # Maloelap
-			NOT = { control = { province = 1605 data = JAP } } # Majuro
-			NOT = { control = { province = 1607 data = JAP } } # Jaluit
-			NOT = { control = { province = 1606 data = JAP } } # Mili
-			NOT = { control = { province = 1610 data = JAP } } # Ponape
-			NOT = { control = { province = 1609 data = JAP } } # Kosrae
-			NOT = { control = { province = 1620 data = JAP } } # Ngulu
-			NOT = { control = { province = 1619 data = JAP } } # Yap
-			NOT = { control = { province = 1618 data = JAP } } # Ulithi
-			NOT = { control = { province = 1604 data = JAP } } # Wolelai
-			NOT = { control = { province = 1615 data = JAP } } # Ulul
-			NOT = { control = { province = 1617 data = JAP } } # Woleai
-			NOT = { control = { province = 1616 data = JAP } } # Pulusok
-			NOT = { control = { province = 1613 data = JAP } } # Truk
-			NOT = { control = { province = 1612 data = JAP } } # Satawan
-			AND = {
-				war = { country = USA country = JAP }
-				NOT = { control = { province = 1786 data = JAP } } # Wake Island
-			}
-			AND = {
-				war = { country = USA country = JAP }
-				NOT = { control = { province = 1624 data = JAP } } # Guam
-			}
-		}
-		war = { country = AUS country = JAP }
-		war = { country = ENG country = JAP }
-		OR = {
-			#North New Guinea
-			NOT = { control = { province = 1659 data = JAP } } # Sorong
-			NOT = { control = { province = 1661 data = JAP } } # Biak Island
-			NOT = { control = { province = 1660 data = JAP } } # Babo
-			NOT = { control = { province = 1663 data = JAP } } # Arare
-			NOT = { control = { province = 1664 data = JAP } } # Sarmi
-			NOT = { control = { province = 1665 data = JAP } } # Hollandia
-			NOT = { control = { province = 1666 data = JAP } } # Aitape
-			NOT = { control = { province = 1667 data = JAP } } # Wewak
-			NOT = { control = { province = 1672 data = JAP } } # Lae
-
-			#North Solomon Islands
-			NOT = { control = { province = 1668 data = JAP } } # Admirality Islands
-			NOT = { control = { province = 1669 data = JAP } } # New Ireland
-			NOT = { control = { province = 1681 data = JAP } } # Buka Island
-			NOT = { control = { province = 1682 data = JAP } } # Bougainville
-
-			#New Britain
-			NOT = { control = { province = 1670 data = JAP } } # Rabaul
-			NOT = { control = { province = 1671 data = JAP } } # Gasmata
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = JAPInvadePHI }
-		command = { type = local_clrflag which = JAPInvadeNEI }
-		command = { type = local_clrflag which = JAPInvadeNEPacific }
-		command = { type = local_setflag which = JAPInvadeNewGuinea }
-		command = { type = local_clrflag which = JAPStandardPacific }
-		command = { type = ai which = "switch/JAP_Naval_NewGuinea.ai" }
-	}
-}
-################
-# Japanese Pacific War AIs JAPStandardPacific
-#############################################
-event = {
-	id = 22021
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = JAPStandardPacific }
-		NOT = { local_flag = JAPHomeland }
-		OR = {
-			war = { country = AUS country = JAP }
-			war = { country = ENG country = JAP }
-			war = { country = FRA country = JAP }
-			war = { country = NZL country = JAP }
-			war = { country = PHI country = JAP }
-			war = { country = USA country = JAP }
-			war = { country = HOL country = JAP }
-		}
-		OR = {
-			garrison = { country = USA province = 1750  type = land size = 20 area = yes } # Davao
-			garrison = { country = PHI province = 1750  type = land size = 20 area = yes } # Davao
-			NOT = {
-				# Philippines
-				AND = {
-					war = { country = PHI country = JAP }
-					NOT = { lost_national = { country = PHI value = 60 } }
-				}
-				AND = {
-					owned = { province = 1735 data = JAP } # Palawan
-					NOT = { control = { province = 1735 data = JAP } } # Palawan
-				}
-				AND = {
-					owned = { province = 1736 data = JAP } # Mindoro
-					NOT = { control = { province = 1736 data = JAP } } # Mindoro
-				}
-				AND = {
-					owned = { province = 1744 data = JAP } # Samar
-					NOT = { control = { province = 1744 data = JAP } } # Samar
-				}
-				AND = {
-					owned = { province = 1745 data = JAP } # Palawan
-					NOT = { control = { province = 1745 data = JAP } } # Leyte
-				}
-				AND = {
-					owned = { province = 1749 data = JAP } # Cagayan
-					NOT = { control = { province = 1749 data = JAP } } # Cagayan
-				}
-				AND = {
-					owned = { province = 1747 data = JAP } # Negros
-					NOT = { control = { province = 1747 data = JAP } } # Negros
-				}
-				AND = {
-					owned = { province = 1750 data = JAP } # Davos
-					NOT = { control = { province = 1750 data = JAP } } # Davos
-				}
-				AND = {
-					owned = { province = 1746 data = JAP } # Panay
-					NOT = { control = { province = 1746 data = JAP } } # Panay
-				}
-			}
-		}
-		NOT = {
-			AND = {
-				war = { country = HOL country = JAP }
-				NOT = { control = { province = 1628 data = JAP } }
-				NOT = { control = { province = 1641 data = JAP } }
-				NOT = { control = { province = 1359 data = JAP } }
-				NOT = { garrison = { country = HOL province = 1628  type = land size = 10 area = yes } }
-				NOT = { garrison = { country = HOL province = 1641  type = land size = 10 area = yes } }
-				NOT = { garrison = { country = HOL province = 1359  type = land size = 10 area = yes } }
-			}
-			AND = {
-				war = { country = ENG country = JAP }
-				NOT = { control = { province = 1353 data = JAP } }
-				NOT = { garrison = { country = ENG province = 1353  type = land size = 10 area = yes } } # Singapore
-			}
-		}
-		NOT = {
-			#Outer Japanese Islands
-			NOT = { control = { province = 1627 data = JAP } } # Saipan
-			NOT = { control = { province = 1626 data = JAP } } # Tinian
-			NOT = { control = { province = 1625 data = JAP } } # Rota
-			NOT = { control = { province = 1621 data = JAP } } # Palau
-			NOT = { control = { province = 1785 data = JAP } } # Marcus Island
-	
-			#Far Outer Rim Japanese Islands
-			NOT = { control = { province = 1601 data = JAP } } # Eniwetok
-			NOT = { control = { province = 1600 data = JAP } } # Bikini
-			NOT = { control = { province = 1602 data = JAP } } # Wotje
-			NOT = { control = { province = 1608 data = JAP } } # Kwajalein
-			NOT = { control = { province = 1603 data = JAP } } # Maloelap
-			NOT = { control = { province = 1605 data = JAP } } # Majuro
-			NOT = { control = { province = 1607 data = JAP } } # Jaluit
-			NOT = { control = { province = 1606 data = JAP } } # Mili
-			NOT = { control = { province = 1610 data = JAP } } # Ponape
-			NOT = { control = { province = 1609 data = JAP } } # Kosrae
-			NOT = { control = { province = 1620 data = JAP } } # Ngulu
-			NOT = { control = { province = 1619 data = JAP } } # Yap
-			NOT = { control = { province = 1618 data = JAP } } # Ulithi
-			NOT = { control = { province = 1604 data = JAP } } # Wolelai
-			NOT = { control = { province = 1615 data = JAP } } # Ulul
-			NOT = { control = { province = 1617 data = JAP } } # Woleai
-			NOT = { control = { province = 1616 data = JAP } } # Pulusok
-			NOT = { control = { province = 1613 data = JAP } } # Truk
-			NOT = { control = { province = 1612 data = JAP } } # Satawan
-			AND = {
-				war = { country = USA country = JAP }
-				NOT = { control = { province = 1786 data = JAP } } # Wake Island
-			}
-			AND = {
-				war = { country = USA country = JAP }
-				NOT = { control = { province = 1624 data = JAP } } # Guam
-			}
-		}
-		NOT = {
-			#North New Guinea
-			NOT = { control = { province = 1659 data = JAP } } # Sorong
-			NOT = { control = { province = 1661 data = JAP } } # Biak Island
-			NOT = { control = { province = 1660 data = JAP } } # Babo
-			NOT = { control = { province = 1663 data = JAP } } # Arare
-			NOT = { control = { province = 1664 data = JAP } } # Sarmi
-			NOT = { control = { province = 1665 data = JAP } } # Hollandia
-			NOT = { control = { province = 1666 data = JAP } } # Aitape
-			NOT = { control = { province = 1667 data = JAP } } # Wewak
-			NOT = { control = { province = 1672 data = JAP } } # Lae
-
-			#North Solomon Islands
-			NOT = { control = { province = 1668 data = JAP } } # Admirality Islands
-			NOT = { control = { province = 1669 data = JAP } } # New Ireland
-			NOT = { control = { province = 1681 data = JAP } } # Buka Island
-			NOT = { control = { province = 1682 data = JAP } } # Bougainville
-
-			#New Britain
-			NOT = { control = { province = 1670 data = JAP } } # Rabaul
-			NOT = { control = { province = 1671 data = JAP } } # Gasmata
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = JAPInvadePHI }
-		command = { type = local_clrflag which = JAPInvadeNEI }
-		command = { type = local_clrflag which = JAPInvadeNEPacific }
-		command = { type = local_clrflag which = JAPInvadeNewGuinea }
-		command = { type = local_setflag which = JAPStandardPacific }
-		command = { type = ai which = "switch/JAP_Naval_Pacific.ai" }
-	}
-}
-################
-# Japan loads Standard builds AI
-#############################################
-event = {
-	id = 22022
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		OR = {
-			atwar = yes
-			event = 20 # Marco Polo
-		}
-		NOT = { local_flag = JAPBuildStandard }
-		NOT = {
-			AND = {
-				war = { country = CHI country = JAP }
-				NOT = { land_percentage = { country = CHI value = 1.2 } }
-			}
-			AND = {
-				war = { country = USA country = JAP }
-				NOT = { land_percentage = { country = USA value = 0.5 } }
-			}
-			AND = {
-				war = { country = AUS country = JAP }
-				NOT = { land_percentage = { country = AUS value = 1.0 } }
-			}
-			AND = {
-				war = { country = ENG country = JAP }
-				NOT = { land_percentage = { country = ENG value = 1.0 } }
-			}
-			AND = {
-				war = { country = SOV country = JAP }
-				NOT = { land_percentage = { country = SOV value = 0.4 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = JAPBuildStandard }
-		command = { type = local_clrflag which = JAPBuildLand }
-		command = { type = ai which = "switch/JAP_Build_Standard.ai" }
-	}
-}
-################
-# Japan loads Land builds AI
-#############################################
-event = {
-	id = 22023
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		OR = {
-			atwar = yes
-			event = 20 # Marco Polo
-		}
-		NOT = { local_flag = JAPBuildLand }
-		OR = {
-			AND = {
-				war = { country = CHI country = JAP }
-				NOT = { land_percentage = { country = CHI value = 1.2 } }
-			}
-			AND = {
-				war = { country = USA country = JAP }
-				NOT = { land_percentage = { country = USA value = 0.5 } }
-			}
-			AND = {
-				war = { country = AUS country = JAP }
-				NOT = { land_percentage = { country = AUS value = 1.0 } }
-			}
-			AND = {
-				war = { country = ENG country = JAP }
-				NOT = { land_percentage = { country = ENG value = 1.0 } }
-			}
-			AND = {
-				war = { country = SOV country = JAP }
-				NOT = { land_percentage = { country = SOV value = 0.4 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = JAPBuildStandard }
-		command = { type = local_setflag which = JAPBuildLand }
-		command = { type = ai which = "switch/JAP_Build_Land.ai" }
-	}
-}
-################
-# Homeland Defense Flags
-#	JAPHomeland			= Homeland under attack
-################
-# Japan Homeland defense AI
-#############################################
-event = {
-	id = 22024
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		OR = {
-			atwar = yes
-			event = 20 # Marco Polo
-		}
-		NOT = { local_flag = JAPHomeland }
-		OR = {
-			# Japan
-			AND = {
-				owned = { province = 1188 data = JAP } # Hiroshima
-				NOT = { control = { province = 1188 data = JAP } } # Hiroshima
-			}
-			AND = {
-				owned = { province = 1187 data = JAP } # Osaka
-				NOT = { control = { province = 1187 data = JAP } } # Osaka
-			}
-			AND = {
-				owned = { province = 1186 data = JAP } # Kanazawa
-				NOT = { control = { province = 1186 data = JAP } } # Kanazawa
-			}
-			AND = {
-				owned = { province = 1185 data = JAP } # Nagoya
-				NOT = { control = { province = 1185 data = JAP } } # Nagoya
-			}
-			AND = {
-				owned = { province = 1184 data = JAP } # Tokyo
-				NOT = { control = { province = 1184 data = JAP } } # Tokyo
-			}
-			AND = {
-				owned = { province = 1183 data = JAP } # Niigata
-				NOT = { control = { province = 1183 data = JAP } } # Niigata
-			}
-			AND = {
-				owned = { province = 1182 data = JAP } # Fukushima
-				NOT = { control = { province = 1182 data = JAP } } # Fukushima
-			}
-			AND = {
-				owned = { province = 1181 data = JAP } # Akita
-				NOT = { control = { province = 1181 data = JAP } } # Akita
-			}
-			AND = {
-				owned = { province = 1180 data = JAP } # Sendai
-				NOT = { control = { province = 1180 data = JAP } } # Sendai
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = JAPHomeland }
-		command = { type = local_clrflag which = JAPBuildStandard }
-		command = { type = local_clrflag which = JAPBuildLand }
-		command = { type = local_clrflag which = JAPInvadePHI }
-		command = { type = local_clrflag which = JAPInvadeNEI }
-		command = { type = local_clrflag which = JAPInvadeNEPacific }
-		command = { type = local_clrflag which = JAPInvadeNewGuinea }
-		command = { type = local_clrflag which = JAPStandardPacific }
-		command = { type = ai which = "switch/JAP_Homeland.ai" }
-	}
-}
-################
-# Japan Rescinds Homelands defense AI
-#############################################
-event = {
-	id = 22025
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		OR = {
-			atwar = yes
-			event = 20 # Marco Polo
-		}
-		local_flag = JAPHomeland
-		NOT = {
-			# Japan
-			AND = {
-				owned = { province = 1188 data = JAP } # Hiroshima
-				NOT = { control = { province = 1188 data = JAP } } # Hiroshima
-			}
-			AND = {
-				owned = { province = 1187 data = JAP } # Osaka
-				NOT = { control = { province = 1187 data = JAP } } # Osaka
-			}
-			AND = {
-				owned = { province = 1186 data = JAP } # Kanazawa
-				NOT = { control = { province = 1186 data = JAP } } # Kanazawa
-			}
-			AND = {
-				owned = { province = 1185 data = JAP } # Nagoya
-				NOT = { control = { province = 1185 data = JAP } } # Nagoya
-			}
-			AND = {
-				owned = { province = 1184 data = JAP } # Tokyo
-				NOT = { control = { province = 1184 data = JAP } } # Tokyo
-			}
-			AND = {
-				owned = { province = 1183 data = JAP } # Niigata
-				NOT = { control = { province = 1183 data = JAP } } # Niigata
-			}
-			AND = {
-				owned = { province = 1182 data = JAP } # Fukushima
-				NOT = { control = { province = 1182 data = JAP } } # Fukushima
-			}
-			AND = {
-				owned = { province = 1181 data = JAP } # Akita
-				NOT = { control = { province = 1181 data = JAP } } # Akita
-			}
-			AND = {
-				owned = { province = 1180 data = JAP } # Sendai
-				NOT = { control = { province = 1180 data = JAP } } # Sendai
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = JAPHomeland }
-		command = { type = ai which = "switch/JAP_Homeland_Rescind.ai" }
-	}
-}
-################
-# Japan builds transports
-#############################################
-event = {
-	id = 22026
-	random = no
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		atwar = yes
-		NOT = { transport = { country = JAP value = 10 } }
-		NOT = {
-			# Japan
-			AND = {
-				owned = { province = 1188 data = JAP } # Hiroshima
-				NOT = { control = { province = 1188 data = JAP } } # Hiroshima
-			}
-			AND = {
-				owned = { province = 1187 data = JAP } # Osaka
-				NOT = { control = { province = 1187 data = JAP } } # Osaka
-			}
-			AND = {
-				owned = { province = 1186 data = JAP } # Kanazawa
-				NOT = { control = { province = 1186 data = JAP } } # Kanazawa
-			}
-			AND = {
-				owned = { province = 1185 data = JAP } # Nagoya
-				NOT = { control = { province = 1185 data = JAP } } # Nagoya
-			}
-			AND = {
-				owned = { province = 1184 data = JAP } # Tokyo
-				NOT = { control = { province = 1184 data = JAP } } # Tokyo
-			}
-			AND = {
-				owned = { province = 1183 data = JAP } # Niigata
-				NOT = { control = { province = 1183 data = JAP } } # Niigata
-			}
-			AND = {
-				owned = { province = 1182 data = JAP } # Fukushima
-				NOT = { control = { province = 1182 data = JAP } } # Fukushima
-			}
-			AND = {
-				owned = { province = 1181 data = JAP } # Akita
-				NOT = { control = { province = 1181 data = JAP } } # Akita
-			}
-			AND = {
-				owned = { province = 1180 data = JAP } # Sendai
-				NOT = { control = { province = 1180 data = JAP } } # Sendai
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = build_division which = transport }
-	}
-}
-################
-# Japan loads backoff2 AI
-#############################################
-event = {
-	id = 22027
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		ai = CHI
-		local_flag = ChinaBackoff
-		NOT = { local_flag = ChinaBackoffSiam }
-		OR = {
-			alliance = { country = JAP country = SIA }
-			AND = {
-				owned = { province = 1326 data = JAP }
-				control = { province = 1326 data = JAP }
-			}
-			AND = {
-				owned = { province = 1306 data = JAP }
-				control = { province = 1306 data = JAP }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = ChinaBackoffSiam }
-		command = { type = ai which = "switch/JAP_Backoff2_Siam.ai" }
-	}
-}
-################
-# Japan goes back on the attack in China
-#############################################
-event = {
-	id = 22028
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		ai = CHI
-		NOT = { local_flag = ChinaBackoff }
-		NOT = { local_flag = ChinaBackoffSiam }
-		OR = {
-			alliance = { country = JAP country = SIA }
-			AND = {
-				owned = { province = 1326 data = JAP }
-				control = { province = 1326 data = JAP }
-			}
-			AND = {
-				owned = { province = 1306 data = JAP }
-				control = { province = 1306 data = JAP }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = ChinaBackoffSiam }
-		command = { type = ai which = "switch/JAP_Backoff_Remove_Siam.ai" }
-	}
-}
-################
-# Japan builds Fortifications
-#############################################
-event = {
-	id = 22029
-	random = no
-	country = JAP
-
-	trigger = {
-		ai = yes
-		technology = 5100
-		control = { province = 1613 data = JAP } # Truk
-		control = { province = 1599 data = JAP } # Iwo Jima
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1939 }
-
-	action_a = {
-		command = { type = ai which = "switch/JAP_Build_Fort.ai" }
-	}
-}
-################
-# Japan retools production
-#############################################
-event = {
-	id = 22030
-	random = no
-	country = JAP
-
-	trigger = {
-		ai = yes
-		OR = {
-			war = { country = JAP country = USA }
-			war = { country = JAP country = SOV }
-			war = { country = JAP country = PHI }
-			war = { country = JAP country = ENG }
-			war = { country = JAP country = FRA }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1939 }
-
-	action_a = {
-		command = { type = ai which = "switch/JAP_Build_Fort_Stop.ai" }
-		command = { type = sleepevent which = 22029 }
-	}
-}
-################
-# Japan builds carriers
-#############################################
-event = {
-	id = 22031
-	random = no
-	country = JAP
-
-	trigger = {
-		ai = yes
-		NOT = { local_flag = JAPHomeland }
-		NOT = { carrier = { country = JAP value = 10 } }
-		OR = {
-			atwar = yes
-			year = 1939
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = build_division which = carrier value = cag }
-	}
-}
-################
-# Japan builds Submarines
-#############################################
-event = {
-	id = 22032
-	random = no
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		NOT = { local_flag = JAPHomeland }
-		NOT = { submarine = { country = JAP value = 6 } }
-		OR = {
-			atwar = yes
-			year = 1939
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = build_division which = submarine }
-	}
-}
-################
-# Japan AI Slider manipulation
-#
-#	Free Market
-#############################################
-event = { # Free Market
-	id = 22033
-	random = no
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = free_market value = 1}
-		government = democratic
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = free_market value = 1 }
-	}
-}
-event = { # Free Market
-	id = 22034
-	random = no
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = free_market value = -1}
-		OR = {
-			government = fascist
-			government = communist
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = free_market value = -1 }
-	}
-}
-################
-#	Open Society
-#############################################
-event = { # Open Society
-	id = 22035
-	random = no
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = freedom value = -1}
-		AND = {
-			domestic = { type = freedom value = 0 }
-			OR = {
-				government = fascist
-				government = communist
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = freedom value = -1 }
-	}
-}
-event = { # Open Society
-	id = 22036
-	random = no
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = freedom value = 1}
-		AND = {
-			NOT = { domestic = { type = freedom value = 9 } }
-			government = democratic
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = freedom value = 1 }
-	}
-}
-################
-#	Standing Army
-#############################################
-event = { # Standing Army
-	id = 22037
-	random = no
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = professional_army value = 1}
-		AND = {
-			NOT = { domestic = { type = professional_army value = 9 } }
-			OR = {
-				government = fascist
-				government = communist
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = professional_army value = 1 }
-	}
-}
-event = { # Standing Army
-	id = 22038
-	random = no
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = professional_army value = -1}
-		AND = {
-			domestic = { type = professional_army value = 0 }
-			government = democratic
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = professional_army value = -1 }
-	}
-}
-################
-#	Hawk Lobby
-#############################################
-event = { # Hawk Lobby
-	id = 22039
-	random = no
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = defense_lobby value = 1}
-		AND = {
-			NOT = { domestic = { type = defense_lobby value = 9 } }
-			OR = {
-				government = fascist
-				government = communist
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = defense_lobby value = 1 }
-	}
-}
-event = { # Hawk Lobby
-	id = 22040
-	random = no
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = defense_lobby value = -1}
-		AND = {
-			domestic = { type = defense_lobby value = 0 }
-			government = democratic
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = defense_lobby value = -1 }
-	}
-}
-################
-#	Interventionism
-#############################################
-event = { # Interventionism
-	id = 22041
-	random = no
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = interventionism value = 1}
-		NOT = { domestic = { type = interventionism value = 9 } }
-		OR = {
-			atwar = yes
-			government = fascist
-			government = communist
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = interventionism value = 1 }
-	}
-}
-
-
-
-
-
-
-
-
-
-####################################
-# Japan 22500 - 22599 = Minister Change Events
-####################################
-################
-# Minister of Security Section 22500 - 22509
-#############################################
-event = { # Ushio Shigenosuke takes power
-	id = 22500
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 5105 # Ushio Shigenosuke
-		NOT = { InCabinet = 5105 }
-		OR = {
-			NOT = { war = { country = JAP country = CHI } }
-			NOT = {
-				war = { country = JAP country = CHI }
-				OR = {
-						minister = 5115 # Fujie Keisuke
-						minister = 5123 # Tojo Hideki
-				}
-				OR = {
-					lost_national = { country = CHI value = 10 }
-					control = { province = 125 data = JAP } # Nanjing
-				}
-			}
-		}
-		OR = {
-			manpower = 200
-			NOT = { minister = 5099 } # Kawarada Kakichi
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 5105 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Goto Fumio takes power
-	id = 22501
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { minister = 5105 } # Ushio Shigenosuke
-		minister = 5005 # Goto Fumio
-		NOT = { InCabinet = 5005 }
-		OR = {
-			NOT = { war = { country = JAP country = CHI } }
-			NOT = {
-				war = { country = JAP country = CHI }
-				OR = {
-						minister = 5115 # Fujie Keisuke
-						minister = 5123 # Tojo Hideki
-				}
-				OR = {
-					lost_national = { country = CHI value = 10 }
-					control = { province = 125 data = JAP } # Nanjing
-				}
-			}
-		}
-		OR = {
-			manpower = 200
-			NOT = { minister = 5099 } # Kawarada Kakichi
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 5005 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Kawarada Kakichi takes power
-	id = 22502
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { manpower = 200 }
-		minister = 5099 # Kawarada Kakichi
-		NOT = { InCabinet = 5099 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 5099 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Tojo Hideki takes power
-	id = 22503
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 5123 # Tojo Hideki
-		NOT = { InCabinet = 5123 }
-		war = { country = JAP country = CHI }
-		OR = {
-			lost_national = { country = CHI value = 10 }
-			control = { province = 125 data = JAP } # Nanjing
-		}
-		OR = {
-			manpower = 200
-			NOT = { minister = 5099 } # Kawarada Kakichi
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 5123 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Fujie Keisuke takes power
-	id = 22504
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 5115 # Fujie Keisuke
-		NOT = { InCabinet = 5115 }
-		NOT = { minister = 5123 } # Tojo Hideki
-		war = { country = JAP country = CHI }
-		OR = {
-			lost_national = { country = CHI value = 10 }
-			control = { province = 125 data = JAP } # Nanjing
-		}
-		OR = {
-			manpower = 200
-			NOT = { minister = 5099 } # Kawarada Kakichi
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 5115 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Staff Section 22510 - 22519
-#############################################
-event = { # Kanichiro Tashiro takes power
-	id = 22510
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		minister = 5150 # Kanichiro Tashiro
-		NOT = { InCabinet = 5150 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 5150 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Sugiyama Hajime takes power
-	id = 22511
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		NOT = { minister = 5150 } # Kanin Kotohito
-		minister = 5155 # Sugiyama Hajime
-		NOT = { InCabinet = 5155 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 5155 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Hirotsugu Hayashida takes power
-	id = 22512
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = no
-		minister = 5149 # Hirotsugu Hayashida
-		NOT = { InCabinet = 5149 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 5149 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Head of Intelligence Section 22520 - 22529
-#############################################
-event = { # Takasu Shiro takes power
-	id = 22520
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 5134 # Takasu Shiro
-		NOT = { InCabinet = 5134 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 5134 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of the Army Section 22530 - 22539
-#############################################
-event = { # Sugiyama Hajime takes power
-	id = 22530
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		minister = 5165 # Sugiyama Hajime
-		NOT = { InCabinet = 5165 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 5165 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Inanba Satoru takes power
-	id = 22531
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = no
-		minister = 5160 # Inanba Satoru
-		NOT = { InCabinet = 5160 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 5160 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Armament Minister Section 22540 - 22549
-#############################################
-event = { # Fujiwara Ginjiro takes power
-	id = 22540
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 5084 # Fujiwara Ginjiro
-		NOT = { InCabinet = 5084 }
-		OR = {
-			war = { country = JAP country = USA }
-			war = { country = JAP country = ENG }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 5084 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Hatta Yoshiaki takes power
-	id = 22541
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 5082 # Hatta Yoshiaki
-		NOT = { InCabinet = 5082 }
-		OR = {
-			NOT = { minister = 5084 } # Fujiwara Ginjiro
-			AND = {
-				minister = 5084 # Fujiwara Ginjiro
-				NOT = { war = { country = JAP country = USA } }
-				NOT = { war = { country = JAP country = ENG } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 5082 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Shoda Kazue takes power
-	id = 22542
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 5090 # Shoda Kazue
-		NOT = { InCabinet = 5090 }
-		OR = {
-			AND = {
-				NOT = { minister = 5082 } # Hatta Yoshiaki
-				NOT = { minister = 5084 } # Fujiwara Ginjiro
-			}
-			AND = {
-				NOT = { minister = 5082 } # Hatta Yoshiaki
-				minister = 5084 # Fujiwara Ginjiro
-				NOT = { war = { country = JAP country = USA } }
-				NOT = { war = { country = JAP country = ENG } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 5090 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Air Minister Section 22550 - 22559
-# Air AI Flags
-#	JAPAirAINaval	= Naval Priority for bombardment
-#	JAPAirAIGround	= Ground support is a priority
-#############################################
-event = { # Yamamoto Isoroku takes power
-	id = 22550
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = JAPAirAINaval
-		minister = 5010 # Yamamoto Isoroku
-		NOT = { InCabinet = 5010 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 5010 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Inoue Shigeyoshi takes power
-	id = 22551
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = JAPAirAINaval
-		minister = 5180 # Inoue Shigeyoshi
-		NOT = { InCabinet = 5180 }
-		NOT = { minister = 5010 } # Yamamoto Isoroku
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 5180 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Tojo Hideki takes power
-	id = 22552
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = JAPAirAIGround
-		minister = 5191 # Tojo Hideki
-		NOT = { InCabinet = 5191 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 5191 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Tsukahara Nishizou takes power
-	id = 22553
-	random = no 
-	country = JAP
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = JAPAirAIGround
-		minister = 5181 # Tsukahara Nishizou
-		NOT = { InCabinet = 5181 }
-		NOT = { minister = 5191 } # Tojo Hideki
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 5181 }
-		command = { type = dissent value = -1 }
-	}
-}
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/ai_sov.txt Doomsday Data Files/db/events/ai_sov.txt
--- Doomsday Data Files.old/db/events/ai_sov.txt	2008-03-28 10:46:23.000000000 +0100
+++ Doomsday Data Files/db/events/ai_sov.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,1909 +1 @@
-####################################
-# Soviet Union 25000 - 25999 by Lothos
-####################################
-# Invasion Flags
-#	SOVInvadeGER			= Prepare to Invade Germany
-#	SOVInvadePOL			= Soviets prepare to invade Poland
-#	SOVInvadeBaltic			= Soviets invade Baltic States
-#	SOVInvadeFIN			= Soviets invade Finland
-#	SOVDefendFIN			= Attack the fins if they go to far while atwar with Germany
-
-# Defensive Flags
-#	SOVDefensePrepareGER	= Prepare defenses against Germany
-#	SOVHandicapGER			= Handicap File has been loaded against Germany
-
-# Unit building AI
-#	SOVBuildStandard		= Standard Building of units 
-#	SOVBuildLand			= Priority Building land units
-#	SOVBuildLandPanic		= Priority Building land units
-#	SOVUpgrading			= Soviets are concentrating on upgrading
-
-################
-# Soviets remove their Finland prep war AI
-#############################################
-event = {
-	id = 25000
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		local_flag = SOVInvadeFIN
-		OR = {
-			war = { country = FIN country = SOV }
-			event = 2622
-			event = 2628
-			AND = {
-				owned = { province = 145 data = SOV }
-				owned = { province = 146 data = SOV }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 29 month = september year = 1939 }
-	offset = 1
-	deathdate = { day = 29 month = january year = 1940 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_Finland_Release.ai" }
-		command = { type = local_clrflag which = SOVInvadeFIN }
-	}
-}
-################
-# Soviets Winter War AI
-#############################################
-event = {
-	id = 25001
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		NOT = { war = { country = GER country = SOV } }
-		OR = {
-			flag = MolotovPact  # 1939 Grand Campaign
-			event = 2013  # Molotov Pact Historical
-			event = 2015  # Molotov Pact Alliance
-			event = 2016  # Molotov Pact Limited
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 25 month = august year = 1939 }
-	offset = 1
-	deathdate = { day = 29 month = january year = 1940 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_Finland.ai" }
-		command = { type = ai which = "Air_Ground.ai" }
-		command = { type = local_setflag which = SOVInvadeFIN }
-		command = { type = local_clrflag which = SOVDefensePrepareGER }
-	}
-}
-################
-# Soviet declare war on Germany AI
-#############################################
-event = {
-	id = 25002
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		NOT = { non_aggression = { country = GER country = SOV } }
-		OR = {
-			local_flag = SOVInvadeGER
-			war = { country = GER country = SOV }
-			AND = {
-				random = 5
-				NOT = { war = { country = GER country = SOV } }
-				year = 1942
-				atwar = GER
-			}
-			AND = {
-				random = 15
-				NOT = { flag = MolotovPact }
-				NOT = { event = 2013 } # Molotov Pact Historical
-				NOT = { event = 2015 } # Molotov Pact Alliance
-				NOT = { event = 2016 } # Molotov Pact Limited
-				OR = {
-					control = { province = 485 data = GER } # Warsaw
-					war = { country = GER country = POL }
-					war = { country = GER country = FRA }
-					war = { country = GER country = ENG }
-					puppet = { country = POL country = GER }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936}
-	offset = 12
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_Germany.ai" }
-		command = { type = ai which = "Air_Ground.ai" }
-		command = { type = sleepevent which = 25001 }
-		command = { type = sleepevent which = 25003 }
-		command = { type = local_setflag which = SOVInvadeGER }
-		command = { type = local_clrflag which = SOVInvadeFIN }
-	}
-}
-################
-# Soviet Load German war AI
-#############################################
-event = {
-	id = 25003
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		war = { country = GER country = SOV }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936}
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_Germany.ai" }
-		command = { type = ai which = "switch/SOV_Ger_FIN_Defend.ai" }
-		command = { type = local_clrflag which = SOVDefendFIN }
-		command = { type = ai which = "Air_Ground.ai" }
-		command = { type = sleepevent which = 25001 }
-		command = { type = sleepevent which = 25002 }
-	}
-}
-################
-# Soviet declare war on Japan AI
-#############################################
-event = {
-	id = 25004
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		random = 5
-		NOT = { non_aggression = { country = JAP country = SOV } }
-		OR = {
-			NOT = { control = { province = 300 data = GER } } # Berlin
-			ispuppet = GER
-		}
-		NOT = { war = { country = GER country = SOV } }
-		OR = {
-			war = { country = JAP country = USA }
-			war = { country = JAP country = CHC }
-			war = { country = JAP country = CHI }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1942}
-	offset = 12
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_Japan.ai" }
-		command = { type = ai which = "Air_GRound.ai" }
-		command = { type = ai_prepare_war which = JAP }
-	}
-}
-################
-# Soviet increase troop production AI
-#############################################
-event = {
-	id = 25005
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		OR = {
-			atwar = yes
-			atwar = GER
-			year = 1938
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 12
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_GER_atwar.ai" }
-	}
-}
-################
-# Soviet Union stops hounding Finland for border lands
-#############################################
-event = {
-	id = 25006
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		NOT = { war = { country = FIN country = SOV } }
-		OR = {
-			event = 2622
-			event = 2628
-			AND = {
-				owned = { province = 145 data = SOV }
-				owned = { province = 146 data = SOV }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1939 }
-	offset = 12
-	deathdate = { day = 29 month = december year = 1940 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_Fin_Demands.ai" }
-	}
-}
-################
-# Soviet Winter War against Germany
-#############################################
-event = {
-	id = 25007
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		war = { country = GER country = SOV }
-		OR = {
-			month = 11 # December
-			AND = {
-				month = 0 # January
-				NOT = { month = 2 } # March
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_Winter.ai" }
-		command = { type = ai which = "Air_Ground.ai" }
-	}
-}
-################
-# Soviets go back on defense
-#############################################
-event = {
-	id = 25008
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		event = 25007
-		war = { country = GER country = SOV }
-		month = 3 # April
-		NOT = { month = 7 } # August
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_Germany_Second_Year.ai" }
-		command = { type = ai which = "Air_Ground.ai" }
-	}
-}
-################
-# Soviets go on the atack permanately
-#############################################
-event = {
-	id = 25009
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		event = 25008
-		war = { country = GER country = SOV }
-		OR = {
-			month = 11 # December
-			AND = {
-				month = 0 # January
-				NOT = { month = 2 } # March
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_Winter.ai" }
-		command = { type = ai which = "Air_Ground.ai" }
-	}
-}
-################
-# Soviets Bitter Peace AI
-#############################################
-event = {
-	id = 25010
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		event = 2024 # Bitter Peace
-		NOT = { war = { country = GER country = SOV } }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 4
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_Bitter_Peace.ai" }
-		command = { type = ai which = "Air_Ground.ai" }
-		command = { type = sleepevent which = 25002 }  # Soviet DOW of Germany AI event
-	}
-}
-################
-# Soviets Monitor Baltic States
-#############################################
-event = {
-	id = 25011
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		OR = {
-			AND = {
-				under_attack = EST
-				war = { country = GER country = EST }
-			}
-			AND = {
-				under_attack = LAT
-				war = { country = GER country = LAT }
-			}
-			AND = {
-				under_attack = LIT
-				war = { country = GER country = LIT }
-			}
-			AND = {
-				under_attack = TUR
-				war = { country = GER country = TUR }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = SOVInvadeGER }
-	}
-}
-
-################
-# Soviets match German border buildup
-#############################################
-event = {
-	id = 25012
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { war = { country = GER country = SOV } }
-		NOT = { war = { country = FIN country = SOV } }
-		NOT = {	lost_national = { country = SOV value = 2 } }
-		NOT = { local_flag = SOVDefensePrepareGER }
-		NOT = { local_flag = SOVInvadeFIN }
-		OR = {
-			flag = MolotovPact # 1939 Grand Campaign
-			event = 2018 #Eastern Poland given to the Soviets
-		}
-		OR = {
-			garrison = { country = GER province = 488  type = land size = 8 area = no } # Zamosc
-			garrison = { country = GER province = 489  type = land size = 8 area = no } # Przemyst
-			garrison = { country = GER province = 487  type = land size = 8 area = no } # Lubin
-			garrison = { country = GER province = 509  type = land size = 8 area = no } # Suwalki
-			garrison = { country = GER province = 510  type = land size = 8 area = no } # Konigsberg
-			garrison = { country = GER province = 206  type = land size = 8 area = no } # Memel
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = SOVDefensePrepareGER }
-		command = { type = ai which = "switch/SOV_Defense_GER_Border.ai" }
-	}
-}
-################
-# Soviets back down from German border buildup
-#############################################
-event = {
-	id = 25013
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { war = { country = GER country = SOV } }
-		NOT = { war = { country = FIN country = SOV } }
-		NOT = {	lost_national = { country = SOV value = 2 } }
-		local_flag = SOVDefensePrepareGER
-		NOT = { local_flag = SOVInvadeFIN }
-
-		NOT = {
-			OR = {
-				flag = MolotovPact # 1939 Grand Campaign
-				event = 2018 #Eastern Poland given to the Soviets
-			}
-			OR = {
-				garrison = { country = GER province = 488  type = land size = 8 area = no } # Zamosc
-				garrison = { country = GER province = 489  type = land size = 8 area = no } # Przemyst
-				garrison = { country = GER province = 487  type = land size = 8 area = no } # Lubin
-				garrison = { country = GER province = 509  type = land size = 8 area = no } # Suwalki
-				garrison = { country = GER province = 510  type = land size = 8 area = no } # Konigsberg
-				garrison = { country = GER province = 206  type = land size = 8 area = no } # Memel
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = SOVDefensePrepareGER }
-		command = { type = ai which = "switch/SOV_Defense_Standard.ai" }
-	}
-}
-
-################
-# Unit building AI
-#	SOVBuildStandard		= Standard Building of units 
-#	SOVBuildLand			= Priority Building land units
-#	SOVBuildLandPanic		= Priority Building land units
-################
-# Soviets loads Standard builds AI
-#############################################
-event = {
-	id = 25014
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = SOVBuildStandard }
-		NOT = {
-			NOT = { land_percentage = { country = JAP value = 1.5 } }
-			OR = {
-				AND = {
-					ai = GER
-					NOT = { land_percentage = { country = GER value = 2.0 } }
-				}
-				AND = {
-					NOT = { ai = GER }
-					NOT = { land_percentage = { country = GER value = 3.0 } }
-				}
-			}
-			AND = {
-				war = { country = ENG country = SOV }
-				NOT = { land_percentage = { country = ENG value = 2.0 } }
-			}
-			AND = {
-				war = { country = USA country = SOV }
-				NOT = { land_percentage = { country = USA value = 1.3 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = SOVBuildStandard }
-		command = { type = local_clrflag which = SOVBuildLand }
-		command = { type = local_clrflag which = SOVBuildLandPanic }
-		command = { type = ai which = "switch/SOV_Build_Standard.ai" }
-	}
-}
-################
-# Soviets loads Land builds AI
-#############################################
-event = {
-	id = 25015
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = SOVBuildLand }
-		land_percentage = { country = GER value = 0.9 }
-		land_percentage = { country = JAP value = 0.9 }
-		OR = {
-			AND = {
-				OR = {
-					AND = {
-						ai = GER
-						NOT = { land_percentage = { country = GER value = 2.0 } }
-					}
-					AND = {
-						NOT = { ai = GER }
-						NOT = { land_percentage = { country = GER value = 3.0 } }
-					}
-				}
-			}
-			NOT = { land_percentage = { country = JAP value = 1.5 } }
-			AND = {
-				war = { country = ENG country = SOV }
-				NOT = { land_percentage = { country = ENG value = 2.0 } }
-			}
-			AND = {
-				war = { country = USA country = SOV }
-				NOT = { land_percentage = { country = USA value = 1.3 } }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = SOVBuildStandard }
-		command = { type = local_setflag which = SOVBuildLand }
-		command = { type = local_clrflag which = SOVBuildLandPanic }
-		command = { type = ai which = "switch/SOV_Build_Land.ai" }
-	}
-}
-################
-# Soviets loads Panic builds AI
-#############################################
-event = {
-	id = 25016
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = SOVBuildLandPanic }
-		OR = {
-			NOT = { land_percentage = { country = GER value = 0.9 } }
-			NOT = { land_percentage = { country = JAP value = 0.9 } }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = SOVBuildStandard }
-		command = { type = local_clrflag which = SOVBuildLand }
-		command = { type = local_setflag which = SOVBuildLandPanic }
-		command = { type = ai which = "switch/SOV_Build_Panic.ai" }
-	}
-}
-################
-# Soviets move against Germany
-#	SOVInvadeGER			= Prepare to Invade Germany
-#	SOVInvadePOL			= Soviets prepare to invade Poland
-#	SOVInvadeBaltic			= Soviets invade Baltic States
-#############################################
-event = {
-	id = 25017
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		day = 3
-		NOT = { day = 4 }
-		local_flag = SOVInvadeGER
-		NOT = { non_aggression = { country = EST country = SOV } }
-		NOT = { non_aggression = { country = LIT country = SOV } }
-		NOT = { non_aggression = { country = LAT country = SOV } }
-		OR = {
-			exists = EST
-			exists = LIT
-			exists = LAT
-		}
-		OR = {
-			AND = {
-				local_flag = SOVInvadePOL
-				NOT = { exists = POL }
-				NOT = {
-					alliance = { country = ENG country = EST }
-					alliance = { country = ENG country = LIT }
-					alliance = { country = ENG country = LAT }
-				}
-			}
-			NOT = {
-				alliance = { country = GER country = EST }
-				alliance = { country = GER country = LIT }
-				alliance = { country = GER country = LAT }
-				alliance = { country = ENG country = EST }
-				alliance = { country = ENG country = LIT }
-				alliance = { country = ENG country = LAT }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936}
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai_prepare_war which = EST }
-		command = { type = ai_prepare_war which = LIT }
-		command = { type = ai_prepare_war which = LAT }
-		command = { type = local_setflag which = SOVInvadeBaltic }
-	}
-}
-event = {
-	id = 25018
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		day = 5
-		NOT = { day = 6 }
-		local_flag = SOVInvadeGER
-		NOT = { non_aggression = { country = POL country = SOV } }
-		NOT = { alliance = { country = ENG country = POL } }
-		OR = {
-			NOT = { local_flag = SOVInvadeBaltic }
-			AND = {
-				local_flag = SOVInvadeBaltic
-				NOT = {	exists = EST }
-				NOT = {	exists = LIT }
-				NOT = {	exists = LAT }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936}
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai_prepare_war which = POL }
-		command = { type = local_setflag which = SOVInvadePOL }
-	}
-}
-event = {
-	id = 25019
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		day = 7
-		NOT = { day = 8 }
-		local_flag = SOVInvadeGER
-		land_percentage = { country = GER value = 1.3 }
-		NOT = { non_aggression = { country = GER country = SOV } }
-		OR = {
-			NOT = { local_flag = SOVInvadeBaltic }
-			AND = {
-				local_flag = SOVInvadeBaltic
-				NOT = {	exists = EST }
-				NOT = {	exists = LIT }
-				NOT = {	exists = LAT }
-			}
-		}
-		OR = {
-			AND = {
-				NOT = { local_flag = SOVInvadePOL }
-				NOT = { alliance = { country = ENG country = POL } }
-			}
-			AND = {
-				local_flag = SOVInvadePOL
-				NOT = {	exists = POL }
-			}
-			AND = {
-				local_flag = SOVInvadePOL
-				local_flag = SOVInvadeBaltic
-				NOT = {	exists = EST }
-				NOT = {	exists = LIT }
-				NOT = {	exists = LAT }
-				NOT = {	exists = POL }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936}
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai_prepare_war which = GER }
-	}
-}
-################
-# Soviet upgrading and reinforcing of units
-#	SOVUpgrading	= Soviets are concentrating on upgrading
-#############################################
-event = {
-	id = 25020
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = SOVUpgrading }
-		atwar = no
-		OR = {
-			atwar = GER
-			year = 1939
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936}
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_setflag which = SOVUpgrading }
-		command = { type = ai which = "switch/SOV_Upg_Peace.ai" }
-	}
-}
-event = {
-	id = 25021
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = SOVUpgrading
-		atwar = yes
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936}
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = local_clrflag which = SOVUpgrading }
-		command = { type = ai which = "switch/SOV_Upg_War.ai" }
-	}
-}
-################
-# Soviets prep against Baltic States
-#############################################
-event = { #  (Lithuania)
-	id = 25022
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		random = 30
-		event = 2018 #Eastern Poland given to the Soviets
-		exists = LIT
-		NOT = { non_aggression = { country = LIT country = SOV } }
-		NOT = { alliance= { country = LIT country = GER } }
-		NOT = { alliance= { country = LIT country = ENG } }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 29 month = may year = 1940 }
-	offset = 4
-	deathdate = { day = 29 month = august year = 1940 }
-
-	action_a = {
-		command = { type = ai_prepare_war which = LIT }
-		command = { type = ai which = "Air_Ground.ai" }
-	}
-}
-event = { #  (Latvia)
-	id = 25023
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		random = 30
-		event = 2018 #Eastern Poland given to the Soviets
-		exists = LAT
-		NOT = { non_aggression = { country = LAT country = SOV } }
-		NOT = { alliance= { country = LAT country = GER } }
-		NOT = { alliance= { country = LAT country = ENG } }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 29 month = may year = 1940 }
-	offset = 4
-	deathdate = { day = 29 month = august year = 1940 }
-
-	action_a = {
-		command = { type = ai_prepare_war which = LAT }
-		command = { type = ai which = "Air_Ground.ai" }
-	}
-}
-event = { #  (Estonia)
-	id = 25024
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		random = 30
-		event = 2018 #Eastern Poland given to the Soviets
-		exists = EST
-		NOT = { non_aggression = { country = EST country = SOV } }
-		NOT = { alliance= { country = EST country = GER } }
-		NOT = { alliance= { country = EST country = ENG } }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 29 month = may year = 1940 }
-	offset = 4
-	deathdate = { day = 29 month = august year = 1940 }
-
-	action_a = {
-		command = { type = ai_prepare_war which = EST }
-		command = { type = ai which = "Air_Ground.ai" }
-	}
-}
-################
-# Soviets react to Finland advancements AI
-#############################################
-event = {
-	id = 25025
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { local_flag = SOVDefendFIN }
-		war = { country = FIN country = SOV }
-		OR = {
-			NOT = { war = { country = GER country = SOV } }
-			AND = {
-				OR = {
-					AND = {
-						war = { country = GER country = SOV }
-						lost_national = { country = GER value = 1 }
-					}
-					AND = {
-						war = { country = GER country = SOV }
-						OR = {
-							control = { province = 133 data = FIN }
-							control = { province = 135 data = FIN }
-							control = { province = 134 data = FIN }
-							control = { province = 150 data = FIN }
-							control = { province = 152 data = FIN }
-							control = { province = 151 data = FIN }
-							control = { province = 187 data = FIN }
-						}
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_Ger_FIN_Attack.ai" }
-		command = { type = local_setflag which = SOVDefendFIN }
-	}
-}
-event = {
-	id = 25026
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		local_flag = SOVDefendFIN
-		war = { country = FIN country = SOV }
-		OR = {
-			NOT = { war = { country = FIN country = SOV } }
-			AND = {
-				war = { country = FIN country = SOV }
-				NOT = {
-					NOT = { war = { country = GER country = SOV } }
-					AND = {
-						OR = {
-							AND = {
-								war = { country = GER country = SOV }
-								lost_national = { country = GER value = 1 }
-							}
-							AND = {
-								war = { country = GER country = SOV }
-								OR = {
-									control = { province = 133 data = FIN }
-									control = { province = 135 data = FIN }
-									control = { province = 134 data = FIN }
-									control = { province = 150 data = FIN }
-									control = { province = 152 data = FIN }
-									control = { province = 151 data = FIN }
-									control = { province = 187 data = FIN }
-								}
-							}
-						}
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_Ger_FIN_Defend.ai" }
-		command = { type = local_clrflag which = SOVDefendFIN }
-	}
-}
-################
-# Soviets Handicap againt Germany AI
-#############################################
-event = {
-	id = 25027
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		ai = GER
-		event = 20007 # German AI DOWing of SOV
-		NOT = { local_flag = SOVHandicapGER }
-		war = { country = GER country = SOV }
-		NOT = { war = { country = JAP country = SOV } }
-		NOT = { war = { country = CHI country = SOV } }
-		OR = {
-			NOT = { war = { country = TUR country = SOV } }
-			AND = {
-				ai = TUR
-				war = { country = TUR country = SOV }
-			}
-		}
-		month = 4
-		NOT = { month = 8 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_GER_Handicap.ai" }
-		command = { type = local_setflag which = SOVHandicapGER }
-	}
-}
-event = {
-	id = 25028
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		local_flag = SOVHandicapGER
-		OR = {
-			month = 11
-			lost_national = { country = SOV value = 25 }
-			war = { country = JAP country = SOV }
-			war = { country = CHI country = SOV }
-			AND = {
-				NOT = { ai = TUR }
-				war = { country = TUR country = SOV }
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_GER_Handicap_Remove.ai" }
-		command = { type = local_clrflag which = SOVHandicapGER }
-	}
-}
-################
-# Soviets fortify their country
-#############################################
-event = {
-	id = 25029
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		event = 25005
-		atwar = no
-		technology = 5100
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936 }
-	offset = 12
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ai which = "switch/SOV_Build_Fort.ai" }
-	}
-}
-################################################################
-###Soviets Move Capital
-################################################################
-event = {
-	id = 25030
-	random = no
-	country = SOV
-
-	trigger = {
-		ai = yes
-		atwar = yes
-		control = { province = 168 data = SOV } # Gorki
-		OR = { 
-			NOT  = { control = { province = 175 data = SOV } }		
-			NOT  = { control = { province = 288 data = SOV } }
-			NOT  = { control = { province = 182 data = SOV } }
-			NOT  = { control = { province = 94 data = SOV } }
-			NOT  = { control = { province = 176 data = SOV } }
-			NOT  = { control = { province = 174 data = SOV } }
-		}
-	}
-
-	name = "AI_EVENT"
-	desc = "AI_EVENT"
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 30 month = december year = 1947 }
-
-	action_a = { 
-		command = { type = capital which = 168 }
-	}
-}
-event = {
-	id = 25031
-	random = no
-	country = SOV
-
-	trigger = {
-		ai = yes
-		atwar = yes
-		event = 25030
-		control = { province = 1827 data = SOV } # Naberez
-		OR = { 
-			NOT  = { control = { province = 167 data = SOV } }
-			NOT  = { control = { province = 168 data = SOV } }
-			NOT  = { control = { province = 169 data = SOV } }
-			NOT  = { control = { province = 1777 data = SOV } }
-			NOT  = { control = { province = 1776 data = SOV } }
-			NOT  = { control = { province = 166 data = SOV } }
-		}
-	}
-
-	name = "AI_EVENT"
-	desc = "AI_EVENT"
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 30 month = december year = 1947 }
-
-	action_a = { 
-		command = { type = capital which = 1827 }
-		command = { type = sleepevent which = 25030 }		
-	}
-}
-event = {
-	id = 25032
-	random = no
-	country = SOV
-
-	trigger = {
-		ai = yes
-		atwar = yes
-		OR = {
-			event = 25030
-			event = 25031
-		}
-		control = { province = 167 data = SOV }
-		control = { province = 168 data = SOV }
-		control = { province = 169 data = SOV }
-		control = { province = 1777 data = SOV }
-		control = { province = 1776 data = SOV }
-		control = { province = 166 data = SOV }
-		control = { province = 175 data = SOV }
-		control = { province = 288 data = SOV }
-		control = { province = 182 data = SOV }
-		control = { province = 94 data = SOV }
-		control = { province = 176 data = SOV }
-		control = { province = 174 data = SOV }
-	}
-
-	name = "AI_EVENT"
-	desc = "AI_EVENT"
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 30 month = december year = 1947 }
-
-	action_a = { 
-		command = { type = capital which = 175 }
-	}
-}
-################
-# Soviet cancel non-aggression pact with Germany AI
-#############################################
-event = {
-	id = 25033
-	random = no 
-	country = SOV
-	
-	trigger = {
-		ai = yes
-		non_aggression = { country = GER country = SOV }
-		NOT = { war = { country = GER country = SOV } }
-		OR = {
-			local_flag = SOVInvadeGER
-			war = { country = GER country = SOV }
-			AND = {
-				NOT = { war = { country = GER country = SOV } }
-				year = 1942
-				atwar = GER
-			}
-			AND = {
-				NOT = { flag = MolotovPact }
-				NOT = { event = 2013 } # Molotov Pact Historical
-				NOT = { event = 2015 } # Molotov Pact Alliance
-				NOT = { event = 2016 } # Molotov Pact Limited
-				OR = {
-					control = { province = 485 data = GER } # Warsaw
-					war = { country = GER country = POL }
-					war = { country = GER country = FRA }
-					war = { country = GER country = ENG }
-					puppet = { country = POL country = GER }
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 0 month = january year = 1936}
-	offset = 12
-	deathdate = { day = 29 month = december year = 1939 }
-
-	action_a = {
-		command = { type = end_non_aggression which = SOV where = GER }
-	}
-}
-################
-# Soviet AI Slider manipulation
-#
-#	Free Market
-#############################################
-event = { # Free Market
-	id = 25034
-	random = no
-	country = SOV
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = free_market value = 1}
-		government = democratic
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = free_market value = 1 }
-	}
-}
-event = { # Free Market
-	id = 25035
-	random = no
-	country = SOV
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = free_market value = -1}
-		OR = {
-			government = fascist
-			government = communist
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = free_market value = -1 }
-	}
-}
-################
-#	Standing Army
-#############################################
-event = { # Standing Army
-	id = 25036
-	random = no
-	country = SOV
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = professional_army value = 1}
-		AND = {
-			NOT = { domestic = { type = professional_army value = 9 } }
-			OR = {
-				technology = 6220 # Spearhead Doctrine
-				AND = {
-					technology = 6300 # Human Wave Doctrine
-					OR = {
-						ideology = nazi
-						ideology = fascist
-						ideology = leninist
-						ideology = stalinist
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = professional_army value = 1 }
-	}
-}
-event = { # Standing Army
-	id = 25037
-	random = no
-	country = SOV
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = professional_army value = -1}
-		AND = {
-			domestic = { type = professional_army value = 0 }
-			OR = {
-				technology = 6020 # Superior Firepower Doctrine
-				technology = 6030 # Grand Battleplan Doctrine
-				AND = {
-					technology = 6300 # Human Wave Doctrine
-					NOT = {
-						ideology = nazi
-						ideology = fascist
-						ideology = leninist
-						ideology = stalinist
-					}
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = professional_army value = -1 }
-	}
-}
-################
-#	Hawk Lobby
-#############################################
-event = { # Hawk Lobby
-	id = 25038
-	random = no
-	country = SOV
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = defense_lobby value = 1}
-		AND = {
-			NOT = { domestic = { type = defense_lobby value = 9 } }
-			OR = {
-				ideology = nazi
-				ideology = fascist
-				ideology = leninist
-				ideology = stalinist
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = defense_lobby value = 1 }
-	}
-}
-event = { # Hawk Lobby
-	id = 25039
-	random = no
-	country = SOV
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = defense_lobby value = -1}
-		AND = {
-			domestic = { type = defense_lobby value = 0 }
-			NOT = {
-				ideology = nazi
-				ideology = fascist
-				ideology = leninist
-				ideology = stalinist
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = defense_lobby value = -1 }
-	}
-}
-################
-#	Interventionism
-#############################################
-event = { # Interventionism
-	id = 25040
-	random = no
-	country = SOV
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		can_change_policy = {type = interventionism value = 1}
-		OR = {
-			atwar = yes
-			AND = {
-				NOT = { domestic = { type = interventionism value = 9 } }
-				OR = {
-					ideology = nazi
-					ideology = fascist
-					ideology = leninist
-					ideology = stalinist
-				}
-			}
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0
-
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = change_policy which = interventionism value = 1 }
-	}
-}
-################
-# Soviets turn DOWing off
-#############################################
-event = { 
-	id = 25041
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		lost_national = { country = SOV value = 1 }
-		NOT = { local_flag = SOV_DOW }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = local_setflag which = SOV_DOW }
-		command = { type = ai which = "switch/SOV_DOW_OFF.ai" }
-	}
-}
-event = { 
-	id = 25042
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		NOT = { lost_national = { country = SOV value = 1 } }
-		local_flag = SOV_DOW
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1955 }
-
-	action_a = {
-		command = { type = local_clrflag which = SOV_DOW }
-		command = { type = ai which = "switch/SOV_DOW_ON.ai" }
-	}
-}
-
-
-
-
-####################################
-# Soviet 25500 - 25599 = Minister Change Events
-####################################
-################
-# Minister of Security Section 25500 - 25509
-#############################################
-event = { # Sergej Uritskiy takes power
-	id = 25500
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 4040 # Sergej Uritskiy
-		NOT = { InCabinet = 4040 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 4040 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Nikolai Yezhov takes power
-	id = 25501
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 4039 # Nikolai Yezhov
-		NOT = { InCabinet = 4039 }
-		NOT = { minister = 4040 } # Sergej Uritskiy
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofsecurity which = 4039 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of Staff Section 25510 - 25519
-#############################################
-event = { # Boris M. Shaposhnikov takes power
-	id = 25510
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 4051 # Boris M. Shaposhnikov
-		NOT = { InCabinet = 4051 }
-		OR = {
-			atwar = no
-			NOT = { manpower = 200 }
-			NOT = { minister = 4052 } # Kirill A. Meretskov
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 4051 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Kirill A. Meretskov takes power
-	id = 25511
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 4052 # Kirill A. Meretskov
-		NOT = { InCabinet = 4052 }
-		OR = {
-			AND = {
-				atwar = yes
-				manpower = 200
-			}
-			NOT = { minister = 4051 } # Boris M. Shaposhnikov
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofstaff which = 4052 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Head of Intelligence Section 25520 - 25529
-#############################################
-event = { # Igor I. Ilichev takes power
-	id = 25520
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 4049 # Igor I. Ilichev
-		NOT = { InCabinet = 4049 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = ministerofintelligence which = 4049 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Chief of the Army Section 25530 - 25539
-#############################################
-event = { # Iosif V. Stalin takes power
-	id = 25530
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = no
-		minister = 4059 # Iosif V. Stalin
-		NOT = { InCabinet = 4059 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 4059 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Semen K. Timoshenko takes power
-	id = 25531
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		minister = 4058 # Semen K. Timoshenko
-		NOT = { InCabinet = 4058 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofarmy which = 4058 }
-		command = { type = dissent value = -1 }
-	}
-}
-################
-# Armament Minister Section 25540 - 25549
-#############################################
-event = { # Lazer Kaganovich takes power
-	id = 25540
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = no
-		minister = 4004 # Lazer Kaganovich
-		NOT = { InCabinet = 4004 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 4004 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Nikolaj Bulganin takes power
-	id = 25541
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = no
-		minister = 4071 # Nikolaj Bulganin
-		NOT = { InCabinet = 4071 }
-		NOT = { minister = 4004 } # Lazer Kaganovich
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 1
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 4071 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Iosif V. Stalin takes power
-	id = 25542
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		atwar = yes
-		minister = 4073 # Iosif V. Stalin
-		NOT = { InCabinet = 4073 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = armamentminister which = 4073 }
-		command = { type = dissent value = -1 }
-	}
-}
-
-################
-# Chief of Air Minister Section 25550 - 25559
-#############################################
-event = { # Yakov I. Alksnis takes power
-	id = 25550
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 4010 # Yakov I. Alksnis
-		NOT = { InCabinet = 4010 }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 4010 }
-		command = { type = dissent value = -1 }
-	}
-}
-event = { # Aleksandr D. Loktionov takes power
-	id = 25551
-	random = no 
-	country = SOV
-	persistent = yes
-	
-	trigger = {
-		ai = yes
-		minister = 4064 # Aleksandr D. Loktionov
-		NOT = { InCabinet = 4064 }
-		NOT = { minister = 4010 } # Yakov I. Alksnis
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1948 }
-
-	action_a = {
-		command = { type = chiefofair which = 4064 }
-		command = { type = dissent value = -1 }
-	}
-}
+# removed AI events - replaced by DAIM events
\ No newline at end of file
diff -Naur Doomsday Data Files.old/db/events/ai_switches_CHI.txt Doomsday Data Files/db/events/ai_switches_CHI.txt
--- Doomsday Data Files.old/db/events/ai_switches_CHI.txt	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/db/events/ai_switches_CHI.txt	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,617 @@
+# DAIM AI switch events for Nationalist China by G'Kar

+# reuse is welcome as long as file origin is correctly stated

+#

+####################################

+# NatChina 126500 - 126599

+####################################

+####################################

+# Sleeps standard AI switch events

+####################################

+event = {

+	id = 126500

+	random = no 

+	country = CHI

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "DAIM installed"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 1

+	deathdate = { day = 30 month = december year = 1940 }

+

+	action_a = {

+		command = { type = sleepevent which = 11019 }

+		command = { type = sleepevent which = 27000 }

+		command = { type = sleepevent which = 27001 }

+		command = { type = sleepevent which = 27010 }

+		command = { type = sleepevent which = 27011 }

+		command = { type = sleepevent which = 27012 }

+		command = { type = sleepevent which = 27013 }

+		command = { type = sleepevent which = 27016 }

+		command = { type = sleepevent which = 27017 }

+		command = { type = sleepevent which = 27018 }

+		command = { type = sleepevent which = 27019 }

+		command = { type = sleepevent which = 27020 }

+		command = { type = sleepevent which = 27021 }

+		command = { type = sleepevent which = 27022 }

+		command = { type = sleepevent which = 27023 }

+		command = { type = sleepevent which = 27024 }

+		command = { type = sleepevent which = 27025 }

+		command = { type = sleepevent which = 27026 }

+		command = { type = sleepevent which = 27027 }

+		command = { type = sleepevent which = 27028 }

+		command = { type = sleepevent which = 27029 }

+	}

+}

+

+####################################

+# United front against Japan

+####################################

+event = {

+	id = 126501

+	random = no 

+	country = CGX

+

+	persistent = yes

+	

+	trigger = {

+		ai = yes

+		alliance = { country = CGX country = CHI }

+		war = { country = JAP country = CHI }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = switch/exp_china.ai }

+	}

+}

+

+####################################

+# United front against Japan

+####################################

+event = {

+	id = 126502

+	random = no 

+	country = CHC

+

+	persistent = yes

+	

+	trigger = {

+		ai = yes

+		alliance = { country = CHC country = CHI }

+		war = { country = JAP country = CHI }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = switch/exp_china.ai }

+	}

+}

+

+####################################

+# United front against Japan

+####################################

+event = {

+	id = 126503

+	random = no 

+	country = CSX

+

+	persistent = yes

+	

+	trigger = {

+		ai = yes

+		alliance = { country = CSX country = CHI }

+		war = { country = JAP country = CHI }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = switch/exp_china.ai }

+	}

+}

+

+####################################

+# United front against Japan

+####################################

+event = {

+	id = 126504

+	random = no 

+	country = CXB

+

+	persistent = yes

+	

+	trigger = {

+		ai = yes

+		alliance = { country = CXB country = CHI }

+		war = { country = JAP country = CHI }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = switch/exp_china.ai }

+	}

+}

+

+####################################

+# United front against Japan

+####################################

+event = {

+	id = 126505

+	random = no 

+	country = CYN

+

+	persistent = yes

+	

+	trigger = {

+		ai = yes

+		alliance = { country = CYN country = CHI }

+		war = { country = JAP country = CHI }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = switch/exp_china.ai }

+	}

+}

+

+####################################

+# United front against Japan

+####################################

+event = {

+	id = 126506

+	random = no 

+	country = CHI

+

+	persistent = yes

+	

+	trigger = {

+		ai = yes

+		puppet = { country = CHI country = JAP }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 97

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = switch/chi_puppets.ai }

+	}

+}

+

+####################################

+# United front against Japan

+####################################

+event = {

+	id = 126507

+	random = no 

+	country = CGX

+

+	persistent = yes

+	

+	trigger = {

+		ai = yes

+		puppet = { country = CGX country = JAP }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 97

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = switch/chi_puppets.ai }

+	}

+}

+

+####################################

+# United front against Japan

+####################################

+event = {

+	id = 126508

+	random = no 

+	country = CHC

+

+	persistent = yes

+	

+	trigger = {

+		ai = yes

+		puppet = { country = CHC country = JAP }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 97

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = switch/chi_puppets.ai }

+	}

+}

+

+####################################

+# United front against Japan

+####################################

+event = {

+	id = 126509

+	random = no 

+	country = CSX

+

+	persistent = yes

+	

+	trigger = {

+		ai = yes

+		puppet = { country = CSX country = JAP }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 97

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = switch/chi_puppets.ai }

+	}

+}

+

+####################################

+# United front against Japan

+####################################

+event = {

+	id = 126510

+	random = no 

+	country = CXB

+

+	persistent = yes

+	

+	trigger = {

+		ai = yes

+		puppet = { country = CXB country = JAP }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 97

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = switch/chi_puppets.ai }

+	}

+}

+

+####################################

+# United front against Japan

+####################################

+event = {

+	id = 126511

+	random = no 

+	country = CYN

+

+	persistent = yes

+	

+	trigger = {

+		ai = yes

+		puppet = { country = CYN country = JAP }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 97

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = switch/chi_puppets.ai }

+	}

+}

+

+####################################

+# All research fields enabled

+####################################

+event = {

+	id = 126549

+	random = no 

+	country = CHI

+	

+	persistent = yes

+
+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1946 }

+	offset = 101

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/all_research.ai" }

+	}

+}

+
+####################################

+# Slider movement

+####################################

+event = {

+	id = 126550

+	random = no 

+	country = CHI

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1936 }

+

+	action_a = {

+		command = { type = domestic which = defense_lobby value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 126551

+	random = no 

+	country = CHI

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1937 }

+

+	action_a = {

+		command = { type = domestic which = interventionism value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 126552

+	random = no 

+	country = CHI

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1938 }

+

+	action_a = {

+		command = { type = domestic which = interventionism value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 126553

+	random = no 

+	country = CHI

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1939 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 126554

+	random = no 

+	country = CHI

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1940 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 126555

+	random = no 

+	country = CHI

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1941 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 126556

+	random = no 

+	country = CHI

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1942 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 126557

+	random = no 

+	country = CHI

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1943 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 126558

+	random = no 

+	country = CHI

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1944 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 126559

+	random = no 

+	country = CHI

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1945 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 126560

+	random = no 

+	country = CHI

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1946 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 126561

+	random = no 

+	country = CHI

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1947 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

diff -Naur Doomsday Data Files.old/db/events/ai_switches_ENG.txt Doomsday Data Files/db/events/ai_switches_ENG.txt
--- Doomsday Data Files.old/db/events/ai_switches_ENG.txt	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/db/events/ai_switches_ENG.txt	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,963 @@
+# DAIM AI switch events for United Kingdom by Spocky

+# reuse is welcome as long as file origin is correctly stated

+#

+####################################

+# United Kingdom 125500 - 125599

+####################################

+# ENG 125500

+# AST 125530

+# CAN 125540

+# Ministers 125550

+# Sliders 125570

+# 

+#

+####################################

+# Sleeps standard AI switch events

+####################################

+event = {

+	id = 125500

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "DAIM installed"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 1

+	deathdate = { day = 30 month = december year = 1940 }

+

+	action_a = {

+		command = { type = sleepevent which = 12013 }

+		command = { type = sleepevent which = 12014 }

+		command = { type = sleepevent which = 12015 }

+		command = { type = sleepevent which = 12016 }

+		command = { type = sleepevent which = 12017 }

+		command = { type = sleepevent which = 12018 }

+		command = { type = sleepevent which = 24000 }

+		command = { type = sleepevent which = 24001 }

+		command = { type = sleepevent which = 24004 }

+		command = { type = sleepevent which = 24005 }

+		command = { type = sleepevent which = 24006 }

+		command = { type = sleepevent which = 24008 }

+		command = { type = sleepevent which = 24009 }

+		command = { type = sleepevent which = 24010 }

+		command = { type = sleepevent which = 24011 }

+		command = { type = sleepevent which = 24013 }

+		command = { type = sleepevent which = 24014 }

+		command = { type = sleepevent which = 24015 }

+		command = { type = sleepevent which = 24016 }

+		command = { type = sleepevent which = 24017 }

+		command = { type = sleepevent which = 24018 }

+		command = { type = sleepevent which = 24019 }

+		command = { type = sleepevent which = 24020 }

+		command = { type = sleepevent which = 24021 }

+		command = { type = sleepevent which = 24022 }

+		command = { type = sleepevent which = 24023 }

+		command = { type = sleepevent which = 24024 }

+		command = { type = sleepevent which = 24025 }

+		command = { type = sleepevent which = 24026 }

+		command = { type = sleepevent which = 24027 }

+		command = { type = sleepevent which = 24028 }

+		command = { type = sleepevent which = 24029 }

+		command = { type = sleepevent which = 24030 }

+		command = { type = sleepevent which = 24031 }

+		command = { type = sleepevent which = 24032 }

+		command = { type = sleepevent which = 24033 }

+		command = { type = sleepevent which = 24034 }

+		command = { type = sleepevent which = 24035 }

+		command = { type = sleepevent which = 24036 }

+		command = { type = sleepevent which = 24037 }

+		command = { type = sleepevent which = 24038 }

+		command = { type = sleepevent which = 200001 }

+		command = { type = sleepevent which = 200002 }

+		command = { type = sleepevent which = 200003 }

+		command = { type = sleepevent which = 200004 }

+		command = { type = sleepevent which = 200005 }

+		command = { type = sleepevent which = 200006 }

+		command = { type = sleepevent which = 200007 }

+		command = { type = sleepevent which = 200008 }

+		command = { type = sleepevent which = 200009 }

+		command = { type = sleepevent which = 200010 }

+		command = { type = sleepevent which = 200011 }

+		command = { type = sleepevent which = 200012 }

+		command = { type = sleepevent which = 200013 }

+		command = { type = sleepevent which = 200014 }

+		command = { type = sleepevent which = 200015 }

+		command = { type = sleepevent which = 200016 }

+

+	}

+}

+

+####################################

+# Debug

+####################################

+#	id = 125501

+

+####################################

+# Time for Payback

+####################################

+event = {

+	id = 125502

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+

+		event = 124506

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/eng_predday.ai" }

+		command = { type = build_division which = paratrooper value = artillery }

+		command = { type = build_division which = paratrooper value = artillery }

+		command = { type = build_division which = transport_plane }

+		command = { type = build_division which = transport_plane }

+

+	}

+}

+

+event = {

+	id = 125503

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+		event = 125502	

+		event = 124506

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 29 month = january year = 1943 }

+	offset = 135

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/eng_dday.ai" }

+

+	}

+}

+

+

+####################################

+# Buildup in the war 1937

+####################################

+event = {

+	id = 125504

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+

+	date = { day = 1 month = january year = 1937 }

+	offset = 7

+	deathdate = { day = 30 month = may year = 1937 }

+

+	action_a = {

+		command = { type = ai which = "eng_1937.ai" }

+	}

+}

+

+####################################

+# Buildup in the war 1939

+####################################

+

+event = {

+	id = 125505

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+

+	date = { day = 1 month = january year = 1939 }

+	offset = 7

+	deathdate = { day = 30 month = may year = 1939 }

+

+	action_a = {

+		command = { type = ai which = "eng_1939.ai" }

+	}

+}

+####################################

+# Buildup in the war 1941

+####################################

+

+event = {

+	id = 125506

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+

+	date = { day = 1 month = january year = 1941 }

+	offset = 7

+	deathdate = { day = 30 month = may year = 1941 }

+

+	action_a = {

+		command = { type = ai which = "eng_1941.ai" }

+	}

+}

+####################################

+# Buildup in the war 1943

+####################################

+

+event = {

+	id = 125507

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+		technology = 1260 #mechs

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+

+	date = { day = 1 month = january year = 1943 }

+	offset = 7

+	deathdate = { day = 30 month = may year = 1943 }

+

+	action_a = {

+		command = { type = ai which = "eng_1943.ai" }

+	}

+}

+

+####################################

+# we need paras

+####################################

+

+

+event = {

+	id = 125508

+	random = no

+	country = ENG

+	persistent = yes

+	style = 0	

+

+	trigger = {

+		ai = yes

+		technology = 1070 # Airborne

+		manpower = 100

+		event = 125502

+		OR = {

+			AND = {

+				transport_plane = { country = ENG value = 1 }

+				NOT = { paratrooper = { country = ENG value = 1 } }

+			}

+			AND = {

+				transport_plane = { country = ENG value = 2 }

+				NOT = { paratrooper = { country = ENG value = 2 } }

+			}

+		}

+	}	

+

+

+	date = { day = 1 month = january year = 1936 }

+	offset = 4

+	deathdate = { day = 30 month = december year = 1953 }

+

+	name = "AI_EVENT"

+

+	action_a = {

+		command = { type = build_division which = paratrooper value = artillery }

+

+	}

+}

+

+####################################

+# Emergency AI for low manpower I

+####################################

+event = {

+	id = 125509

+	random = no

+	country = ENG

+

+	persistent = yes

+

+	trigger = {

+		ai = yes

+		year = 1940

+		NOT = { manpower = 150 }

+		NOT = { local_flag = ENG_Manpower }

+	}

+

+	name = "AI_EVENT"

+	style = 0

+

+	date = { day = 1 month = january year = 1940 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/eng_manpower.ai" }

+		command = { type = local_setflag which = ENG_Manpower }

+	}

+}

+

+####################################

+# Emergency AI for low manpower II

+####################################

+event = {

+	id = 125510

+	random = no

+	country = ENG

+

+	persistent = yes

+

+	trigger = {

+		ai = yes

+		local_flag = ENG_Manpower

+		manpower = 500

+	}

+

+	name = "AI_EVENT"

+	style = 0

+

+	date = { day = 1 month = january year = 1941 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = local_clrflag which = ENG_Manpower }

+	}

+}

+event = {

+	id = 125511

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+		NOT = { control = { province = 19 data = ENG } }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = may year = 1947 }

+

+	action_a = {

+		command = { type = ai which = "switch/eng_recapture.ai" }

+	}

+}

+

+

+####################################

+# Beagle or Husky

+####################################

+event = {

+	id = 125512

+	random = no 

+	country = ENG

+

+	trigger = {

+		ai = yes

+		NOT = { control = { province = 919 data = ITA } }

+		NOT = { control = { province = 924 data = ITA } }

+		NOT = { control = { province = 932 data = ITA } }

+		NOT = { control = { province = 929 data = ITA } }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+

+	date = { day = 1 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1947 }

+

+	action_a = {

+		name = "Operation Husky"

+		command = { type = ai which = "switch/eng_husky.ai" }

+	}

+

+	action_b = {

+		name = "Operation Beagle"

+		command = { type = ai which = "switch/eng_beagle.ai" }

+	}

+}

+####################################

+# Australian files 125530-125539

+####################################

+####################################

+# switch to selfdefence

+####################################

+event = {

+	id = 125530

+	random = no 

+	country = AST

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1941 }

+	offset = 7

+	deathdate = { day = 30 month = may year = 1941 }

+

+	action_a = {

+		command = { type = ai which = "ast_1941.ai" }

+	}

+}

+####################################

+# start invasions

+####################################

+

+event = {

+	id = 125531

+	random = no 

+	country = AST

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1943 }

+	offset = 7

+	deathdate = { day = 30 month = may year = 1943 }

+

+	action_a = {

+		command = { type = ai which = "ast_1943.ai" }

+	}

+}

+event = {

+	id = 125532

+	random = no 

+	country = AST

+	

+	trigger = {

+		ai = yes

+		NOT = { control = { province = 19 data = ENG } }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = may year = 1947 }

+

+	action_a = {

+		command = { type = ai which = "switch/eng_recapture.ai" }

+	}

+}

+####################################

+# Canadian files 125540-125548

+####################################

+####################################

+# start invasions

+####################################

+# 125540 debug

+event = {

+	id = 125541

+	random = no 

+	country = CAN

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1943 }

+	offset = 7

+	deathdate = { day = 30 month = may year = 1943 }

+

+	action_a = {

+		command = { type = ai which = "can_1943.ai" }

+	}

+}

+event = {

+	id = 125542

+	random = no 

+	country = CAN

+	

+	trigger = {

+		ai = yes

+		NOT = { control = { province = 19 data = ENG } }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = may year = 1947 }

+

+	action_a = {

+		command = { type = ai which = "switch/eng_recapture.ai" }

+	}

+}

+

+####################################

+# All research fields enabled

+####################################

+event = {

+	id = 125549

+	random = no 

+	country = ENG

+	

+	persistent = yes

+
+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1946 }

+	offset = 101

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/all_research.ai" }

+	}

+}

+

+#####################################################################################

+####################################

+# Minister change

+####################################

+event = {

+	id = 125550

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 10 month = january year = 1937 }

+

+	action_a = {

+		command = { type = armamentminister which = 1060 }

+		command = { type = ministerofintelligence which = 1102 }

+		command = { type = chiefofstaff which = 1117 }

+		command = { type = ministerofsecurity which = 1081 }

+		command = { type = chiefofarmy which = 1127 }

+	}

+}

+####################################

+# Minister change

+####################################

+event = {

+	id = 125551

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1937 }

+

+	action_a = {

+		command = { type = ministerofsecurity which = 1088 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 125552

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1939 }

+

+	action_a = {

+		command = { type = armamentminister which = 1060 }

+		command = { type = ministerofintelligence which = 1102 }

+		command = { type = chiefofstaff which = 1117 }

+		command = { type = chiefofarmy which = 1127 }

+		command = { type = ministerofsecurity which = 1088 }

+	}

+}

+####################################

+# Minister change

+####################################

+event = {

+	id = 125553

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1940 }

+

+	action_a = {

+		command = { type = armamentminister which = 1063 }

+		command = { type = ministerofintelligence which = 1102 }

+		command = { type = chiefofstaff which = 1120 }

+		command = { type = chiefofarmy which = 1127 }

+		command = { type = ministerofsecurity which = 1088 }

+	}

+}

+####################################

+# Minister change AST

+####################################

+event = {

+	id = 125554

+	random = no 

+	country = AST

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1937 }

+

+	action_a = {

+		command = { type = armamentminister which = 56058 }

+	}

+}

+####################################

+# Minister change AST

+####################################

+event = {

+	id = 125555

+	random = no 

+	country = AST

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1940 }

+

+	action_a = {

+		command = { type = armamentminister which = 56057 }

+		command = { type = ministerofintelligence which = 56096 }

+		command = { type = chiefofstaff which = 56104 }

+		command = { type = chiefofarmy which = 56111 }

+	}

+}

+

+####################################

+# Minister change CAN

+####################################

+event = {

+	id = 125556

+	random = no 

+	country = CAN

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1936 }

+

+	action_a = {

+		command = { type = chiefofstaff which = 45101 }

+	}

+}

+####################################

+# Minister change CAN

+####################################

+event = {

+	id = 125557

+	random = no 

+	country = CAN

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1940 }

+

+	action_a = {

+		command = { type = chiefofstaff which = 45101 }

+	}

+}

+####################################

+# Slider movement

+####################################

+event = {

+	id = 125570

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1936 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 125571

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1937 }

+

+	action_a = {

+		command = { type = domestic which = free_market value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 125572

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1938 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 125573

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1939 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 125574

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1940 }

+

+	action_a = {

+		command = { type = domestic which = free_market value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 125575

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1941 }

+

+	action_a = {

+		command = { type = domestic which = interventionism value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 125576

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1942 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 125577

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1943 }

+

+	action_a = {

+		command = { type = domestic which = interventionism value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 125578

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1944 }

+

+	action_a = {

+		command = { type = domestic which = defense_lobby value = 1  }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 125579

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1945 }

+

+	action_a = {

+		command = { type = domestic which = defense_lobby value = 1  }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 125580

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1946 }

+

+	action_a = {

+		command = { type = domestic which = defense_lobby value = 1  }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 125581

+	random = no 

+	country = ENG

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1947 }

+

+	action_a = {

+		command = { type = domestic which = defense_lobby value = 1  }

+	}

+}

diff -Naur Doomsday Data Files.old/db/events/ai_switches_GER.txt Doomsday Data Files/db/events/ai_switches_GER.txt
--- Doomsday Data Files.old/db/events/ai_switches_GER.txt	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/db/events/ai_switches_GER.txt	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,1165 @@
+# DAIM AI switch events for Germany by G'Kar

+# reuse is welcome as long as file origin is correctly stated

+#

+####################################

+# Germany 120500 - 120599

+####################################

+####################################

+# Sleeps standard AI switch events

+####################################

+event = {

+	id = 120500

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "DAIM installed"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 1

+	deathdate = { day = 30 month = december year = 1940 }

+

+	action_a = {

+		# command = { type = sleepevent which = 29 }

+		command = { type = sleepevent which = 10000 }

+		command = { type = sleepevent which = 11004 }

+		command = { type = sleepevent which = 12024 }

+		command = { type = sleepevent which = 12025 }

+		command = { type = sleepevent which = 12026 }

+		command = { type = sleepevent which = 12027 }

+		command = { type = sleepevent which = 12028 }

+		command = { type = sleepevent which = 12029 }

+		command = { type = sleepevent which = 12030 }

+		command = { type = sleepevent which = 12050 }

+		command = { type = sleepevent which = 20000 }

+		command = { type = sleepevent which = 20001 }

+		command = { type = sleepevent which = 20002 }

+		command = { type = sleepevent which = 20003 }

+		command = { type = sleepevent which = 20004 }

+		command = { type = sleepevent which = 20005 }

+		command = { type = sleepevent which = 20006 }

+		command = { type = sleepevent which = 20007 }

+		command = { type = sleepevent which = 20008 }

+		command = { type = sleepevent which = 20009 }

+		command = { type = sleepevent which = 20010 }

+		command = { type = sleepevent which = 20011 }

+		command = { type = sleepevent which = 20012 }

+		command = { type = sleepevent which = 20013 }

+		command = { type = sleepevent which = 20014 }

+		command = { type = sleepevent which = 20016 }

+		command = { type = sleepevent which = 20017 }

+		command = { type = sleepevent which = 20018 }

+		command = { type = sleepevent which = 20019 }

+		command = { type = sleepevent which = 20020 }

+		command = { type = sleepevent which = 20021 }	

+		command = { type = sleepevent which = 20022 }	

+		command = { type = sleepevent which = 20023 }	

+		command = { type = sleepevent which = 20024 }

+		command = { type = sleepevent which = 20025 }

+		command = { type = sleepevent which = 20026 }

+		command = { type = sleepevent which = 20027 }

+		command = { type = sleepevent which = 20028 }

+		command = { type = sleepevent which = 20029 }

+		command = { type = sleepevent which = 20030 }

+		command = { type = sleepevent which = 20031 }

+		command = { type = sleepevent which = 20032 }

+		command = { type = sleepevent which = 20033 }

+		command = { type = sleepevent which = 20034 }

+		command = { type = sleepevent which = 20035 }

+		command = { type = sleepevent which = 20036 }

+		command = { type = sleepevent which = 20037 }

+		command = { type = sleepevent which = 20038 }

+		command = { type = sleepevent which = 20039 }

+		command = { type = sleepevent which = 20040 }

+		command = { type = sleepevent which = 32264 }

+	}

+}

+

+####################################

+# End industry expansion in 1937

+####################################

+event = {

+	id = 120501

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = october year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = october year = 1936 }

+

+	action_a = {

+		command = { type = ai which = "ger_1938.ai" }

+	}

+}

+

+####################################

+# War preparations in 1939

+####################################

+event = {

+	id = 120502

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1939 }

+	offset = 7

+	deathdate = { day = 30 month = september year = 1939 }

+

+	action_a = {

+		command = { type = ai which = "ger_1939.ai" }

+		command = { type = sleepevent which = 20002 }

+	}

+}

+

+####################################

+# Increase of aggressiveness

+####################################

+event = {

+	id = 120503

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		event = 120502

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = september year = 1939 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1939 }

+

+	action_a = {

+		command = { type = ai which = "switch/ger_aggressive.ai" }

+	}

+}

+

+####################################

+# Invade the Low Countries I

+####################################

+event = {

+	id = 120504

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		event = 120503

+		NOT = { war = { country = GER country = POL } }

+		NOT = { war = { country = GER country = BEL } }

+		NOT = { war = { country = GER country = SOV } }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = october year = 1939 }

+	offset = 31

+	deathdate = { day = 30 month = july year = 1940 }

+

+	action_a = {

+		command = { type = ai which = "switch/ger_benelux.ai" }

+	}

+}

+

+####################################

+# Invade the Low Countries II

+####################################

+event = {

+	id = 120505

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		event = 120504

+		NOT = { war = { country = GER country = POL } }

+		NOT = { war = { country = GER country = BEL } }

+		NOT = { war = { country = GER country = SOV } }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = april year = 1940 }

+	offset = 29

+	deathdate = { day = 30 month = july year = 1940 }

+

+	action_a = {

+		command = { type = ai_prepare_war which = BEL }

+		command = { type = ai_prepare_war which = LUX }

+		command = { type = ai_prepare_war which = HOL }

+	}

+}

+

+####################################

+# Invade the Low Countries III

+####################################

+event = {

+	id = 120506

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		OR = {

+			war = { country = GER country = BEL }

+			war = { country = GER country = HOL }

+			war = { country = GER country = LUX }

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = april year = 1940 }

+	offset = 3

+	deathdate = { day = 30 month = august year = 1940 }

+

+	action_a = {

+		command = { type = ai which = "switch/ger_benelux2.ai" }

+	}

+}

+

+####################################

+# Invade Yugoslavia and Greece I (+ Denmark, Norway)

+####################################

+event = {

+	id = 120507

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		event = 2021

+		NOT = { control = { province = 32 data = FRA } }

+		NOT = { control = { province = 56 data = FRA } }

+		NOT = { control = { province = 325 data = FRA } }

+		NOT = { control = { province = 365 data = FRA } }

+		NOT = { war = { country = GER country = SOV } }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1939 }

+	offset = 29

+	deathdate = { day = 30 month = december year = 1940 }

+

+	action_a = {

+		command = { type = ai which = "switch/ger_balkan.ai" }

+		command = { type = ai_prepare_war which = DEN }

+		command = { type = ai_prepare_war which = NOR }

+	}

+}

+

+####################################

+# Invade Yugoslavia and Greece II

+####################################

+event = {

+	id = 120508

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		event = 2021

+		NOT = { control = { province = 32 data = FRA } }

+		NOT = { control = { province = 56 data = FRA } }

+		NOT = { control = { province = 325 data = FRA } }

+		NOT = { control = { province = 365 data = FRA } }

+		NOT = { war = { country = GER country = SOV } }

+		alliance = { country = GER country = ITA }

+		war = { country = ITA country = GRE }

+		event = 120507

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1939 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1940 }

+

+	action_a = {

+		command = { type = ai_prepare_war which = YUG }

+	}

+}

+

+####################################

+# Barbarossa Buildup

+####################################

+event = {

+	id = 120509

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		OR = {

+			year = 1941

+			war = { country = GER country = SOV }

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1941 }

+

+	action_a = {

+		command = { type = ai which = "ger_1941.ai" }

+	}

+}

+

+####################################

+# Preparations for Barbarossa I

+####################################

+event = {

+	id = 120510

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		random = 20

+		OR = {

+			AND = {

+				event = 2021

+				NOT = { control = { province = 32 data = FRA } }

+				NOT = { control = { province = 56 data = FRA } }

+				NOT = { control = { province = 325 data = FRA } }

+				NOT = { control = { province = 365 data = FRA } }

+			}

+			atwar = no

+		}

+		OR = {

+			NOT = { exists = POL }

+			alliance = { country = GER country = POL }

+			alliance = { country = SOV country = POL }

+		}

+		NOT = { war = { country = GER country = SOV } }

+		NOT = { alliance = { country = GER country = SOV } }

+		NOT = { event = 2624 }

+		NOT = { event = 2645 }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = may year = 1941 }

+	offset = 7

+	deathdate = { day = 30 month = june year = 1941 }

+

+	action_a = {

+		command = { type = ai_prepare_war which = SOV }

+		command = { type = sleepevent which = 120511 }

+		command = { type = sleepevent which = 120514 }

+		command = { type = sleepevent which = 120515 }

+	}

+}

+

+####################################

+# Preparations for Barbarossa II

+####################################

+event = {

+	id = 120511

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		OR = {

+			AND = {

+				event = 2021

+				NOT = { control = { province = 32 data = FRA } }

+				NOT = { control = { province = 56 data = FRA } }

+				NOT = { control = { province = 325 data = FRA } }

+				NOT = { control = { province = 365 data = FRA } }

+			}

+			atwar = no

+		}

+		OR = {

+			NOT = { exists = POL }

+			alliance = { country = GER country = POL }

+			alliance = { country = SOV country = POL }

+		}

+		NOT = { war = { country = GER country = SOV } }

+		NOT = { alliance = { country = GER country = SOV } }

+		NOT = { event = 2624 }

+		NOT = { event = 2645 }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = july year = 1941 }

+	offset = 7

+	deathdate = { day = 30 month = july year = 1941 }

+

+	action_a = {

+		command = { type = ai_prepare_war which = SOV }

+		command = { type = sleepevent which = 120514 }

+		command = { type = sleepevent which = 120515 }

+	}

+}

+

+####################################

+# Build mechs when available

+####################################

+event = {

+	id = 120512

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		technology = 1260

+		event = 120509

+		NOT = { event = 120513 }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1941 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/ger_mechs.ai" }

+	}

+}

+

+####################################

+# Soviet Union defeated - attack UK

+####################################

+event = {

+	id = 120513

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		OR = {

+			alliance = { country = GER country = SOV }

+			AND = {

+				NOT = { control = { province = 238 data = SOV } }

+				OR = {

+					AND = {

+						NOT = { control = { province = 163 data = SOV } }

+						NOT = { control = { province = 175 data = SOV } }

+					}

+					AND = {

+						NOT = { control = { province = 163 data = SOV } }

+						NOT = { control = { province = 187 data = SOV } }

+					}

+					AND = {

+						NOT = { control = { province = 175 data = SOV } }

+						NOT = { control = { province = 187 data = SOV } }

+					}

+				}

+			}

+		}

+		technology = 1150

+		technology = 1260

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1939 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/ger_sealion.ai" }

+		command = { type = build_division which = carrier value = cag }

+		command = { type = build_division which = carrier value = cag }

+		command = { type = build_division which = carrier value = cag }

+		command = { type = sleepevent which = 120519 }

+		command = { type = sleepevent which = 120520 }

+	}

+}

+

+####################################

+# Barbarossa in 1942 I

+####################################

+event = {

+	id = 120514

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		random = 20

+		OR = {

+			AND = {

+				event = 2021

+				NOT = { control = { province = 32 data = FRA } }

+				NOT = { control = { province = 56 data = FRA } }

+				NOT = { control = { province = 325 data = FRA } }

+				NOT = { control = { province = 365 data = FRA } }

+			}

+			atwar = no

+		}

+		OR = {

+			NOT = { exists = POL }

+			alliance = { country = GER country = POL }

+			alliance = { country = SOV country = POL }

+		}

+		NOT = { war = { country = GER country = SOV } }

+		NOT = { alliance = { country = GER country = SOV } }

+		NOT = { event = 2624 }

+		NOT = { event = 2645 }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = may year = 1942 }

+	offset = 7

+	deathdate = { day = 30 month = june year = 1942 }

+

+	action_a = {

+		command = { type = ai_prepare_war which = SOV }

+		command = { type = sleepevent which = 120515 }

+	}

+}

+

+####################################

+# Barbarossa in 1942 II

+####################################

+event = {

+	id = 120515

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		OR = {

+			AND = {

+				event = 2021

+				NOT = { control = { province = 32 data = FRA } }

+				NOT = { control = { province = 56 data = FRA } }

+				NOT = { control = { province = 325 data = FRA } }

+				NOT = { control = { province = 365 data = FRA } }

+			}

+			atwar = no

+		}

+		OR = {

+			NOT = { exists = POL }

+			alliance = { country = GER country = POL }

+			alliance = { country = SOV country = POL }

+		}

+		NOT = { war = { country = GER country = SOV } }

+		NOT = { alliance = { country = GER country = SOV } }

+		NOT = { event = 2624 }

+		NOT = { event = 2645 }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = july year = 1942 }

+	offset = 7

+	deathdate = { day = 30 month = july year = 1942 }

+

+	action_a = {

+		command = { type = ai_prepare_war which = SOV }

+	}

+}

+

+####################################

+# DoW on Russia

+####################################

+event = {

+	id = 120516

+	random = no

+	country = GER

+

+	trigger = {
+		ai = yes

+		OR = {

+			event = 120510
+			event = 120511
+			event = 120514
+			event = 120515
+		}
+		NOT = { war = { country = GER country = SOV } }

+	}

+

+	name = "AI_EVENT"

+	style = 0

+

+	date = { day = 1 month = january year = 1941 }

+	offset = 17

+	deathdate = { day = 30 month = december year = 1942 }

+

+	action_a = {

+		command = { type = war which = SOV }

+	}

+}

+

+####################################

+# Build paratroopers

+####################################

+event = {

+	id = 120517

+	random = no

+	country = GER

+

+	persistent = yes

+

+	trigger = {

+		ai = yes

+		event = 120513

+		technology = 1070

+		technology = 4250

+		manpower = 200

+		NOT = { paratrooper = { country = GER value = 1 } }

+	}

+

+	name = "AI_EVENT"

+	style = 0

+

+	date = { day = 1 month = january year = 1941 }

+	offset = 17

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = build_division which = paratrooper value = artillery }

+	}

+}

+

+####################################

+# Build transport planes

+####################################

+event = {

+	id = 120518

+	random = no

+	country = GER

+

+	persistent = yes

+

+	trigger = {

+		ai = yes

+		event = 120513

+		technology = 1070

+		technology = 4250

+		manpower = 200

+		NOT = { transport_plane = { country = GER value = 1 } }

+	}

+

+	name = "AI_EVENT"

+	style = 0

+

+	date = { day = 1 month = january year = 1941 }

+	offset = 17

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = build_division which = transport_plane }

+	}

+}

+

+####################################

+# Emergency AI for low manpower I

+####################################

+event = {

+	id = 120519

+	random = no

+	country = GER

+

+	persistent = yes

+

+	trigger = {

+		ai = yes

+		event = 120512

+		NOT = { manpower = 300 }

+		NOT = { local_flag = GER_Manpower }

+	}

+

+	name = "AI_EVENT"

+	style = 0

+

+	date = { day = 1 month = january year = 1941 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/ger_manpower.ai" }

+		command = { type = local_setflag which = GER_Manpower }

+	}

+}

+

+####################################

+# Emergency AI for low manpower II

+####################################

+event = {

+	id = 120520

+	random = no

+	country = GER

+

+	persistent = yes

+

+	trigger = {

+		ai = yes

+		local_flag = GER_Manpower

+		manpower = 600

+	}

+

+	name = "AI_EVENT"

+	style = 0

+

+	date = { day = 1 month = january year = 1941 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/ger_mechs.ai" }

+		command = { type = local_clrflag which = GER_Manpower }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 120540

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1936 }

+

+	action_a = {

+		command = { type = armamentminister which = 77 }

+		command = { type = ministerofsecurity which = 223 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 120541

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1937 }

+

+	action_a = {

+		command = { type = foreignminister which = 55 }

+		command = { type = ministerofsecurity which = 226 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 120542

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1939 }

+

+	action_a = {

+		command = { type = ministerofintelligence which = 146 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 120543

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1940 }

+

+	action_a = {

+		command = { type = ministerofintelligence which = 147 }

+		command = { type = ministerofsecurity which = 108 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 120544

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1942 }

+

+	action_a = {

+		command = { type = armamentminister which = 86 }

+		command = { type = chiefofnavy which = 192 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 120545

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		war = { country = GER country = SOV }

+		control = { province = 238 data = SOV }

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1942 }

+

+	action_a = {

+		command = { type = chiefofstaff which = 163 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 120546

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+		OR = {

+			event = 2625

+			event = 2646

+			alliance = { country = GER country = SOV }

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1942 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1947 }

+

+	action_a = {

+		command = { type = ministerofsecurity which = 110 }

+	}

+}

+

+####################################

+# All research fields enabled

+####################################

+event = {

+	id = 120549

+	random = no 

+	country = GER

+	

+	persistent = yes

+
+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1946 }

+	offset = 101

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/all_research.ai" }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 120550

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1936 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 120551

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1937 }

+

+	action_a = {

+		command = { type = domestic which = free_market value = -1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 120552

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1938 }

+

+	action_a = {

+		command = { type = domestic which = free_market value = -1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 120553

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1939 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 120554

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1940 }

+

+	action_a = {

+		command = { type = domestic which = free_market value = -1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 120555

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1941 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 120556

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1942 }

+

+	action_a = {

+		command = { type = domestic which = free_market value = -1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 120557

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1943 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 120558

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1944 }

+

+	action_a = {

+		command = { type = domestic which = free_market value = -1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 120559

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1945 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 120560

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1946 }

+

+	action_a = {

+		command = { type = domestic which = free_market value = -1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 120561

+	random = no 

+	country = GER

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1947 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

diff -Naur Doomsday Data Files.old/db/events/ai_switches_ITA.txt Doomsday Data Files/db/events/ai_switches_ITA.txt
--- Doomsday Data Files.old/db/events/ai_switches_ITA.txt	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/db/events/ai_switches_ITA.txt	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,546 @@
+# DAIM AI switch events for Italy by Spocky

+# reuse is welcome as long as file origin is correctly stated

+#

+####################################

+# Italy 123500 - 123599

+####################################

+####################################

+# Sleeps standard AI switch events

+####################################

+event = {

+	id = 123500

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "DAIM installed"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 1

+	deathdate = { day = 30 month = december year = 1940 }

+

+	action_a = {

+		command = { type = sleepevent which = 12031 }

+		command = { type = sleepevent which = 12032 }

+		command = { type = sleepevent which = 12033 }

+		command = { type = sleepevent which = 12034 }

+		command = { type = sleepevent which = 12035 }

+		command = { type = sleepevent which = 12036 }

+		command = { type = sleepevent which = 26000 }

+		command = { type = sleepevent which = 26001 }

+		command = { type = sleepevent which = 26002 }

+		command = { type = sleepevent which = 26003 }

+		command = { type = sleepevent which = 26004 }

+		command = { type = sleepevent which = 26005 }

+		command = { type = sleepevent which = 26006 }

+		command = { type = sleepevent which = 26007 }

+		command = { type = sleepevent which = 26008 }

+		command = { type = sleepevent which = 26009 }

+		command = { type = sleepevent which = 26010 }

+		command = { type = sleepevent which = 26011 }

+		command = { type = sleepevent which = 26012 }

+		command = { type = sleepevent which = 26013 }

+		command = { type = sleepevent which = 26014 }

+		command = { type = sleepevent which = 26015 }

+		command = { type = sleepevent which = 26016 }

+		command = { type = sleepevent which = 26017 }

+		command = { type = sleepevent which = 26018 }

+		command = { type = sleepevent which = 200022 }

+	}

+}

+

+####################################

+# Italy ready to join Axis

+####################################

+event = {

+	id = 123501

+	random = no 

+	country = ITA

+

+	trigger = {

+		ai = yes

+		OR = {

+			control = { province = 56 data = GER }

+			year = 1940

+			

+		}

+		

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = march year = 1936 }

+	offset = 11

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "ita_1940.ai" }

+	}

+}

+

+####################################

+# Italy attacks Greece

+####################################

+event = {

+	id = 123502

+	random = no 

+	country = ITA

+

+	trigger = {

+		ai = yes

+		exists = GRE

+		NOT = { war = { country = ITA country = GRE } }

+		alliance = { country = GER country = ITA }

+		control = { province = 390 data = ITA }

+		control = { province = 391 data = ITA }

+		control = { province = 56 data = GER }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 13

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai_prepare_war which = GRE }

+	}

+}

+

+####################################

+# Italy defence

+####################################

+event = {

+	id = 123503

+	random = no 

+	country = ITA

+

+	trigger = {

+		ai = yes

+		NOT = { control = { province = 919 data = ITA } }

+		NOT = { control = { province = 924 data = ITA } }

+		NOT = { control = { province = 932 data = ITA } }

+		NOT = { control = { province = 929 data = ITA } }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/ita_defence.ai" }

+	}

+}

+

+

+event = {

+	id = 123504

+	random = no 

+	country = ITA

+

+	trigger = {

+		ai = yes

+		year = 1939

+			

+		

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = december year = 1936 }

+	offset = 11

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "ita_1939.ai" }

+	}

+}

+

+

+event = {

+	id = 123505

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+		OR = {

+			NOT = { exists = GRE }

+			year = 1941

+			

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = september year = 1939 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1939 }

+

+	action_a = {

+		command = { type = ai which = "ita_1941.ai" }

+	}

+}

+###############################################

+#    Surprise				#

+###############################################

+

+event = {

+	id = 123506

+	random = no

+	country = ITA	

+	

+	style = 0	

+

+	trigger = {

+		ai = yes

+		technology = 3330 # carrier

+	}

+

+	date = { day = 1 month = january year = 1939 }

+	offset = 11

+	deathdate = { day = 30 month = december year = 1953 }

+

+	name = "AI_EVENT"

+	action_a = {

+		ai_chance = 30

+		command = { }

+	}

+	action_b = {

+		ai_chance = 60

+		command = { type = build_division which = carrier value = cag }

+	}

+	action_c = {

+		ai_chance = 10

+		command = { type = build_division which = carrier value = cag }

+		command = { type = build_division which = carrier value = cag }

+	}

+}

+#########################################

+#	1938				#

+#########################################

+

+event = {

+	id = 123507

+	random = no 

+	country = ITA

+

+	trigger = {

+		ai = yes

+		year = 1938

+		month = 10

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = december year = 1936 }

+	offset = 11

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "ita_1938.ai" }

+	}

+}

+

+

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 123540

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = october year = 1939 }

+

+	action_a = {

+		command = { type = armamentminister which = 3004 }

+		command = { type = ministerofintelligence which = 3006 }

+		command = { type = chiefofstaff which = 3007 }

+		command = { type = chiefofarmy which = 3008 }

+	}

+}

+

+####################################

+# All research fields enabled

+####################################

+event = {

+	id = 123549

+	random = no 

+	country = ITA

+	

+	persistent = yes

+
+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1946 }

+	offset = 101

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/all_research.ai" }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 123550

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1936 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 123551

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1937 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 123552

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1938 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 123553

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1939 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 123554

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1940 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 123555

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1941 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 123556

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1942 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 123557

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1943 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 123558

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1944 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 123559

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1945 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 123560

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1946 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 123561

+	random = no 

+	country = ITA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1947 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

diff -Naur Doomsday Data Files.old/db/events/ai_switches_JAP.txt Doomsday Data Files/db/events/ai_switches_JAP.txt
--- Doomsday Data Files.old/db/events/ai_switches_JAP.txt	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/db/events/ai_switches_JAP.txt	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,1020 @@
+# DAIM AI switch events for Japan by Spocky

+# reuse is welcome as long as file origin is correctly stated

+#

+####################################

+# Japan 121500 - 121599

+####################################

+####################################

+# Sleeps standard AI switch events

+####################################

+event = {

+	id = 121500

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "DAIM installed"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 1

+	deathdate = { day = 30 month = december year = 1940 }

+

+	action_a = {

+		command = { type = sleepevent which = 10009 }

+		command = { type = sleepevent which = 12038 }

+		command = { type = sleepevent which = 12039 }

+		command = { type = sleepevent which = 12040 }

+		command = { type = sleepevent which = 12041 }

+		command = { type = sleepevent which = 12042 }

+		command = { type = sleepevent which = 12043 }

+		command = { type = sleepevent which = 22000 }

+		command = { type = sleepevent which = 22001 }

+		command = { type = sleepevent which = 22002 }

+		command = { type = sleepevent which = 22003 }

+		command = { type = sleepevent which = 22004 }

+		command = { type = sleepevent which = 22005 }

+		command = { type = sleepevent which = 22006 }

+		command = { type = sleepevent which = 22007 }

+		command = { type = sleepevent which = 22008 }

+		command = { type = sleepevent which = 22009 }

+		command = { type = sleepevent which = 22010 }

+		command = { type = sleepevent which = 22011 }

+		command = { type = sleepevent which = 22012 }

+		command = { type = sleepevent which = 22013 }

+		command = { type = sleepevent which = 22014 }

+		command = { type = sleepevent which = 22015 }

+		command = { type = sleepevent which = 22017 }

+		command = { type = sleepevent which = 22018 }

+		command = { type = sleepevent which = 22019 }

+		command = { type = sleepevent which = 22020 }

+		command = { type = sleepevent which = 22021 }

+		command = { type = sleepevent which = 22022 }

+		command = { type = sleepevent which = 22023 }

+		command = { type = sleepevent which = 22024 }

+		command = { type = sleepevent which = 22025 }

+		command = { type = sleepevent which = 22027 }

+		command = { type = sleepevent which = 22028 }

+		command = { type = sleepevent which = 30186 }

+		command = { type = sleepevent which = 30185 }

+		command = { type = sleepevent which = 30184 }

+		command = { type = sleepevent which = 200017 }

+		command = { type = sleepevent which = 200018 }

+		command = { type = sleepevent which = 200019 }

+	}

+}

+

+####################################

+# 1937

+####################################

+event = {

+	id = 121501

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = september year = 1936 }

+	offset = 7

+	deathdate = { day = 29 month = december year = 1937 }

+

+	action_a = {

+		command = { type = ai which = "jap_1937.ai" }

+		

+	}

+}

+

+####################################

+# Chinese Invasion AI

+####################################

+event = {

+	id = 121502

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+		war = { country = JAP country = CHI }

+		NOT = { war = { country = JAP country = USA } }

+		NOT = { war = { country = JAP country = SOV } }

+		NOT = { war = { country = JAP country = ENG } }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/jap_china.ai" }

+		

+	}

+}

+

+####################################

+# Backoff from China AI

+####################################

+event = {

+	id = 121503

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+		OR = {

+			NOT = { war = { country = JAP country = CHI } }

+			AND = {

+				year = 1939

+				month = 5

+			}

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1938 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/jap_backoff.ai" }

+	}

+}

+

+####################################

+# Pacific war I

+####################################

+event = {

+	id = 121504

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+		random = 10

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = october year = 1941 }

+	offset = 7

+	deathdate = { day = 30 month = january year = 1942 }

+

+	action_a = {

+		command = { type = ai which = "switch/jap_pacific1.ai" }

+		command = { type = sleepevent which = 121502 }

+		command = { type = sleepevent which = 121503 }

+		command = { type = sleepevent which = 121505 }

+		command = { type = ai_prepare_war which = USA }

+		command = { type = ai_prepare_war which = PHI }

+		command = { type = ai_prepare_war which = HOL }

+	}

+}

+

+####################################

+# Pacific war II

+####################################

+event = {

+	id = 121505

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = february year = 1942 }

+	offset = 7

+	deathdate = { day = 30 month = february year = 1942 }

+

+	action_a = {

+		command = { type = ai which = "switch/jap_pacific1.ai" }

+		command = { type = sleepevent which = 121502 }

+		command = { type = sleepevent which = 121503 }

+		command = { type = ai_prepare_war which = USA }

+		command = { type = ai_prepare_war which = PHI }

+		command = { type = ai_prepare_war which = HOL }

+	}

+}

+

+####################################

+# Philippines annexed

+####################################

+event = {

+	id = 121506

+	random = no

+	country = JAP

+

+	trigger = {

+		ai = yes

+		OR = {

+              		NOT = { exists = PHI }

+			AND = {

+				year = 1942

+				month = 5

+			}

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+

+        date = { day = 0 month = march year = 1939 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/jap_pacific2.ai" }

+		command = { type = ai_prepare_war which = HOL }

+	}

+

+}

+

+####################################

+# Japan defence 1

+####################################

+event = {

+	id = 121507

+	random = no 

+	country = JAP

+

+	trigger = {

+		ai = yes

+		OR = {

+			AND = { 

+				NOT = { control = { province = 1601 data = JAP } }

+				NOT = { control = { province = 1608 data = JAP } }

+				NOT = { control = { province = 1610 data = JAP } }

+				NOT = { control = { province = 1605 data = JAP } }

+			}

+			AND = { 

+				NOT = { control = { province = 1613 data = JAP } }

+				NOT = { control = { province = 1621 data = JAP } }

+			}

+			AND = { 

+				NOT = { control = { province = 1627 data = JAP } }

+				NOT = { control = { province = 1599 data = JAP } }

+				NOT = { control = { province = 1784 data = JAP } }

+				NOT = { control = { province = 1625 data = JAP } }

+			}

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0

+

+	date = { day = 1 month = january year = 1943 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/jap_defence1.ai" }

+	}

+}

+

+event = {

+	id = 121508

+	random = no

+	country = JAP

+

+	trigger = {

+		ai = yes

+		OR = {

+              		NOT = { exists = HOL }

+			AND = {

+				year = 1942

+				month = 11

+			}

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+

+        date = { day = 0 month = march year = 1939 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1943 }

+

+	action_a = {

+		command = { type = ai which = "switch/jap_pacific3.ai" }

+	}

+}

+

+event = {

+	id = 121509

+	random = no 

+	country = JAP

+

+	trigger = {

+		ai = yes

+		OR = {

+			NOT = { control = { province = 1176 data = JAP } }

+			NOT = { control = { province = 1177 data = JAP } }

+			NOT = { control = { province = 1178 data = JAP } }

+			NOT = { control = { province = 1179 data = JAP } }

+			NOT = { control = { province = 1180 data = JAP } }

+			NOT = { control = { province = 1181 data = JAP } }

+			NOT = { control = { province = 1182 data = JAP } }

+			NOT = { control = { province = 1183 data = JAP } }

+			NOT = { control = { province = 1184 data = JAP } }

+			NOT = { control = { province = 1185 data = JAP } }

+			NOT = { control = { province = 1186 data = JAP } }

+			NOT = { control = { province = 1187 data = JAP } }

+			NOT = { control = { province = 1188 data = JAP } }

+			NOT = { control = { province = 1189 data = JAP } }

+			NOT = { control = { province = 1190 data = JAP } }

+			NOT = { control = { province = 1191 data = JAP } }

+			NOT = { control = { province = 1192 data = JAP } }

+			NOT = { control = { province = 1193 data = JAP } }

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0

+

+	date = { day = 1 month = january year = 1943 }

+	offset = 5

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/jap_defence2.ai" }

+	}

+}

+

+####################################

+# Events to reset the trades

+####################################

+event = {

+	id = 121580

+	random = no

+	country = JAP

+

+	name = "AI_EVENT"

+	style = 0

+

+	trigger = {

+		ai = yes

+	}

+

+        date = { day = 19 month = january year = 1938 }

+

+	action_a = {

+		command = { type = ai which = "switch/trades_off.ai" }

+	}

+}

+

+event = {

+	id = 121581

+	random = no

+	country = JAP

+

+	name = "AI_EVENT"

+	style = 0

+

+	trigger = {

+		ai = yes

+	}

+

+        date = { day = 24 month = january year = 1938 }

+

+	action_a = {

+		command = { type = ai which = "switch/trades_on.ai" }

+	}

+}

+

+event = {

+	id = 121582

+	random = no

+	country = JAP

+

+	name = "AI_EVENT"

+	style = 0

+

+	trigger = {

+		ai = yes

+	}

+

+        date = { day = 19 month = january year = 1940 }

+

+	action_a = {

+		command = { type = ai which = "switch/trades_off.ai" }

+	}

+}

+

+event = {

+	id = 121583

+	random = no

+	country = JAP

+

+	name = "AI_EVENT"

+	style = 0

+

+	trigger = {

+		ai = yes

+	}

+

+        date = { day = 24 month = january year = 1940 }

+

+	action_a = {

+		command = { type = ai which = "switch/trades_on.ai" }

+	}

+}

+

+event = {

+	id = 121584

+	random = no

+	country = JAP

+

+	name = "AI_EVENT"

+	style = 0

+

+	trigger = {

+		ai = yes

+	}

+

+        date = { day = 19 month = january year = 1942 }

+

+	action_a = {

+		command = { type = ai which = "switch/trades_off.ai" }

+	}

+}

+

+event = {

+	id = 121585

+	random = no

+	country = JAP

+

+	name = "AI_EVENT"

+	style = 0

+

+	trigger = {

+		ai = yes

+	}

+

+        date = { day = 24 month = january year = 1942 }

+

+	action_a = {

+		command = { type = ai which = "switch/trades_on.ai" }

+	}

+}

+

+event = {

+	id = 121586

+	random = no

+	country = JAP

+

+	name = "AI_EVENT"

+	style = 0

+

+	trigger = {

+		ai = yes

+	}

+

+        date = { day = 19 month = january year = 1944 }

+

+	action_a = {

+		command = { type = ai which = "switch/trades_off.ai" }

+	}

+}

+

+event = {

+	id = 121587

+	random = no

+	country = JAP

+

+	name = "AI_EVENT"

+	style = 0

+

+	trigger = {

+		ai = yes

+	}

+

+        date = { day = 24 month = january year = 1944 }

+

+	action_a = {

+		command = { type = ai which = "switch/trades_on.ai" }

+	}

+}

+

+event = {

+	id = 121588

+	random = no

+	country = JAP

+

+	name = "AI_EVENT"

+	style = 0

+

+	trigger = {

+		ai = yes

+	}

+

+        date = { day = 19 month = january year = 1946 }

+

+	action_a = {

+		command = { type = ai which = "switch/trades_off.ai" }

+	}

+}

+

+event = {

+	id = 121589

+	random = no

+	country = JAP

+

+	name = "AI_EVENT"

+	style = 0

+

+	trigger = {

+		ai = yes

+	}

+

+        date = { day = 24 month = january year = 1946 }

+

+	action_a = {

+		command = { type = ai which = "switch/trades_on.ai" }

+	}

+}

+

+################# Minister AI

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 121540

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1936 }

+

+	action_a = {

+		command = { type = ministerofsecurity which = 5115 }

+		command = { type = chiefofarmy which = 5160 }

+		command = { type = ministerofintelligence which = 5134 }

+		command = { type = armamentminister which = 5090 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 121541

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1937 }

+

+	action_a = {

+		command = { type = ministerofsecurity which = 5115 }

+		command = { type = chiefofarmy which = 5160 }

+		command = { type = ministerofintelligence which = 5134 }

+		command = { type = armamentminister which = 5090 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 121542

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1938 }

+

+	action_a = {

+		command = { type = ministerofsecurity which = 5115 }

+		command = { type = chiefofarmy which = 5160 }

+		command = { type = ministerofintelligence which = 5134 }

+		command = { type = armamentminister which = 5090 }

+

+	}

+}

+

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 121543

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1939 }

+

+	action_a = {

+		command = { type = ministerofsecurity which = 5115 }

+		command = { type = chiefofarmy which = 5160 }

+		command = { type = ministerofintelligence which = 5134 }

+		command = { type = armamentminister which = 5090 }

+

+	}

+}

+

+

+

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 121544

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1940 }

+

+	action_a = {

+		command = { type = chiefofarmy which = 5160 }

+		command = { type = chiefofair which = 5010 }

+		command = { type = ministerofintelligence which = 5134 }

+		command = { type = ministerofsecurity which = 5115 }

+		command = { type = armamentminister which = 5090 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 121545

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1941 }

+

+	action_a = {

+		command = { type = armamentminister which = 5084 }

+		command = { type = chiefofnavy which = 5173 }

+		command = { type = chiefofarmy which = 5160 }

+		command = { type = chiefofair which = 5010 }

+		command = { type = ministerofintelligence which = 5134 }

+		command = { type = ministerofsecurity which = 5115 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 121546

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1942 }

+

+	action_a = {

+		command = { type = armamentminister which = 5084 }

+		command = { type = chiefofnavy which = 5173 }

+		command = { type = chiefofarmy which = 5160 }

+		command = { type = chiefofair which = 5010 }

+		command = { type = ministerofintelligence which = 5134 }

+		command = { type = ministerofsecurity which = 5115 }

+	}

+}

+

+

+

+

+####################################

+# MAN Minister change

+####################################

+event = {

+	id = 121547

+	random = no

+	country = MAN

+	style = 0

+

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+

+	date = { day = 1 month = january year = 1939 }

+	offset = 7

+	deathdate = { day = 2 month = january year = 1940 }

+

+	action_a = {

+		command = { type = chiefofstaff which = 58050 }

+	}

+}

+

+

+

+####################################

+# All research fields enabled

+####################################

+event = {

+	id = 121549

+	random = no 

+	country = JAP

+	

+	persistent = yes

+
+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1946 }

+	offset = 101

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/all_research.ai" }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 121550

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1936 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 121551

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1937 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 121552

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1938 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 121553

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1939 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 121554

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1940 }

+

+	action_a = {

+		command = { type = domestic which = free_market value = -1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 121555

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1941 }

+

+	action_a = {

+		command = { type = domestic which = free_market value = -1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 121556

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1942 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 121557

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1943 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 121558

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1944 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 121559

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1945 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 121560

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1946 }

+

+	action_a = {

+		command = { type = domestic which = defense_lobby value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 121561

+	random = no 

+	country = JAP

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1947 }

+

+	action_a = {

+		command = { type = domestic which = defense_lobby value = 1 }

+	}

+}

diff -Naur Doomsday Data Files.old/db/events/ai_switches_SOV.txt Doomsday Data Files/db/events/ai_switches_SOV.txt
--- Doomsday Data Files.old/db/events/ai_switches_SOV.txt	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/db/events/ai_switches_SOV.txt	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,812 @@
+# DAIM AI switch events for Soviet Union by G'Kar

+# reuse is welcome as long as file origin is correctly stated

+#

+####################################

+# Soviet Union 122500 - 122599

+####################################

+####################################

+# Sleeps standard AI switch events

+####################################

+event = {

+	id = 122500

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "DAIM installed"

+	style = 0	

+	

+	date = { day = 0 month = january year = 1936 }

+	offset = 1

+	deathdate = { day = 30 month = december year = 1940 }

+

+	action_a = {

+		command = { type = sleepevent which = 12019 }

+		command = { type = sleepevent which = 12020 }

+		command = { type = sleepevent which = 25000 }

+		command = { type = sleepevent which = 25001 }

+		command = { type = sleepevent which = 25002 }

+		command = { type = sleepevent which = 25003 }

+		command = { type = sleepevent which = 25004 }

+		command = { type = sleepevent which = 25005 }

+		command = { type = sleepevent which = 25006 }

+		command = { type = sleepevent which = 25007 }

+		command = { type = sleepevent which = 25008 }

+		command = { type = sleepevent which = 25009 }

+		command = { type = sleepevent which = 25010 }

+		command = { type = sleepevent which = 25011 }

+		command = { type = sleepevent which = 25012 }

+		command = { type = sleepevent which = 25013 }

+		command = { type = sleepevent which = 25014 }

+		command = { type = sleepevent which = 25015 }

+		command = { type = sleepevent which = 25016 }

+		command = { type = sleepevent which = 25017 }

+		command = { type = sleepevent which = 25018 }

+		command = { type = sleepevent which = 25019 }

+		command = { type = sleepevent which = 25020 }

+		command = { type = sleepevent which = 25021 }

+		command = { type = sleepevent which = 25022 }

+		command = { type = sleepevent which = 25023 }

+		command = { type = sleepevent which = 25024 }

+		command = { type = sleepevent which = 25025 }

+		command = { type = sleepevent which = 25026 }

+		command = { type = sleepevent which = 25027 }

+		command = { type = sleepevent which = 25028 }

+	}

+}

+

+####################################

+# End industry expansion in 1937

+####################################

+event = {

+	id = 122501

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = october year = 1937 }

+	offset = 7

+	deathdate = { day = 30 month = october year = 1937 }

+

+	action_a = {

+		command = { type = ai which = "sov_1938.ai" }

+	}

+}

+

+####################################

+# Switch to 1939 AI

+####################################

+event = {

+	id = 122502

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+		event = 122501

+		technology = 2070

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1939 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1939 }

+

+	action_a = {

+		command = { type = ai which = "sov_1939.ai" }

+	}

+}

+

+####################################

+# Soviets more aggressive against Baltic states and Finland

+####################################

+event = {

+	id = 122503

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+		event = 122502

+		OR = {

+			event = 101

+			event = 2018

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = august year = 1939 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1941 }

+

+	action_a = {

+		command = { type = ai which = "switch/sov_baltic.ai" }

+	}

+}

+

+####################################

+# Anticipation of the Great Patriotic War

+####################################

+event = {

+	id = 122504

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+		OR = {

+			war = { country = GER country = SOV }

+			AND = {

+				owned = { province = 145 data = SOV }

+				owned = { province = 194 data = SOV }

+				owned = { province = 197 data = SOV }

+				owned = { province = 207 data = SOV }

+			}

+			year = 1941

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1941 }

+

+	action_a = {

+		command = { type = ai which = "sov_1941.ai" }

+		command = { type = sleepevent which = 122502 }

+	}

+}

+

+####################################

+# The Great Patriotic War - retaliation

+####################################

+event = {

+	id = 122505

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+		war = { country = GER country = SOV }

+		OR = {

+			NOT = { control = { province = 94 data = SOV } }

+			NOT = { control = { province = 160 data = SOV } }

+			NOT = { control = { province = 162 data = SOV } }

+			NOT = { control = { province = 182 data = SOV } }

+			NOT = { control = { province = 186 data = SOV } }

+			NOT = { control = { province = 188 data = SOV } }

+			NOT = { control = { province = 189 data = SOV } }

+			NOT = { control = { province = 255 data = SOV } }

+			NOT = { control = { province = 256 data = SOV } }

+			NOT = { control = { province = 257 data = SOV } }

+			NOT = { control = { province = 263 data = SOV } }

+			NOT = { control = { province = 264 data = SOV } }

+			NOT = { control = { province = 270 data = SOV } }

+			NOT = { control = { province = 271 data = SOV } }

+			NOT = { control = { province = 279 data = SOV } }

+			NOT = { control = { province = 281 data = SOV } }

+			NOT = { control = { province = 283 data = SOV } }

+			NOT = { control = { province = 288 data = SOV } }

+			NOT = { control = { province = 289 data = SOV } }

+			year = 1943

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1944 }

+

+	action_a = {

+		command = { type = ai which = "switch/sov_retaliate.ai" }

+		command = { type = sleepevent which = 122502 }

+	}

+}

+

+####################################

+# DoWs on Germany

+####################################

+event = {

+	id = 122506

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+		atwar = no

+		NOT = { event = 2024 } # Bitter Peace

+		NOT = { event = 2046 }

+		NOT = { alliance = { country = GER country = SOV } }

+		OR = {

+			NOT = { exists = POL }

+			alliance = { country = GER country = POL }

+			alliance = { country = SOV country = POL }

+		}

+		OR = {

+			AND = {

+				year = 1942

+				war = { country = GER country = ENG }

+				war = { country = GER country = USA }

+				random = 15

+			}

+			AND = {

+				NOT = { event = 2600 } # Mol-Rib Pact

+				NOT = { event = 2601 }

+				war = { country = GER country = ENG }

+				war = { country = GER country = BEL }

+			}

+			war = { country = GER country = TUR }

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/sov_retaliate.ai" }

+		command = { type = ai_prepare_war which = GER }

+		command = { type = sleepevent which = 122502 }

+		command = { type = sleepevent which = 122505 }

+	}

+}

+

+####################################

+# DoWs on Japan

+####################################

+event = {

+	id = 122507

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+		atwar = no

+		NOT = { alliance = { country = SOV country = JAP } }

+		OR = {

+			AND = {

+				NOT = { exists = GER }

+				random = 15

+			}

+			AND = {

+				NOT = { ai = JAP }

+				OR = {

+					control = { province = 1433 data = JAP }

+					alliance = { country = JAP country = SIK }

+				}

+			}

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "sov_1941.ai" }

+		command = { type = ai_prepare_war which = JAP }

+		command = { type = sleepevent which = 122502 }

+	}

+}

+

+####################################

+# Upgrade settings when 1941 Inf available

+####################################

+event = {

+	id = 122508

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+		technology = 1040

+		OR = {

+			event = 122504

+			event = 122507

+		}

+		NOT = { event = 122505 }

+		NOT = { event = 122506 }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1943 }

+

+	action_a = {

+		command = { type = ai which = "switch/sov_upgrades.ai" }

+	}

+}

+

+####################################

+# War.ai

+####################################

+event = {

+	id = 122509

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+		war = { country = GER country = SOV }

+		OR = {

+			event = 122504

+			event = 122507

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/sov_war.ai" }

+	}

+}

+

+####################################

+# Moves capital when in danger

+####################################

+event = {

+	id = 122510

+	random = no 

+	country = SOV

+	

+	persistent = yes

+

+	trigger = {

+		ai = yes

+		OR = {

+			NOT = { control = { province = 94 data = SOV } }

+			NOT = { control = { province = 174 data = SOV } }

+			NOT = { control = { province = 175 data = SOV } }

+			NOT = { control = { province = 176 data = SOV } }

+			NOT = { control = { province = 182 data = SOV } }

+			NOT = { control = { province = 288 data = SOV } }

+		}

+		control = { province = 1572 data = SOV }

+		NOT = { local_flag = SOV_Capital }

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 3

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = capital which = 1572 }

+		command = { type = local_setflag which = SOV_Capital }

+	}

+}

+

+####################################

+# Moves capital back when save

+####################################

+event = {

+	id = 122511

+	random = no 

+	country = SOV

+	

+	persistent = yes

+

+	trigger = {

+		ai = yes

+		event = 122510

+		control = { province = 94 data = SOV }

+		control = { province = 174 data = SOV }

+		control = { province = 175 data = SOV }

+		control = { province = 176 data = SOV }

+		control = { province = 182 data = SOV }

+		control = { province = 288 data = SOV } 

+		local_flag = SOV_Capital

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = capital which = 175 }

+		command = { type = local_clrflag which = SOV_Capital }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 122540

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1937 }

+

+	action_a = {

+		command = { type = ministerofsecurity which = 4040 }

+		command = { type = chiefofstaff which = 4051 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 122541

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1938 }

+

+	action_a = {

+		command = { type = foreignminister which = 4034 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 122542

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1939 }

+

+	action_a = {

+		command = { type = chiefofnavy which = 4062 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 122543

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1940 }

+

+	action_a = {

+		command = { type = armamentminister which = 4073 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 122544

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1942 }

+

+	action_a = {

+		command = { type = ministerofintelligence which = 4049 }

+	}

+}

+

+####################################

+# All research fields enabled

+####################################

+event = {

+	id = 122549

+	random = no 

+	country = SOV

+	

+	persistent = yes

+
+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1946 }

+	offset = 101

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/all_research.ai" }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 122550

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1936 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 122551

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1937 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 122552

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1938 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 122553

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1939 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 122554

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1940 }

+

+	action_a = {

+		command = { type = domestic which = defense_lobby value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 122555

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1941 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 122556

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1942 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 122557

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1943 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 122558

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1944 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 122559

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1945 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 122560

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1946 }

+

+	action_a = {

+		command = { type = domestic which = defense_lobby value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 122561

+	random = no 

+	country = SOV

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1947 }

+

+	action_a = {

+		command = { type = domestic which = defense_lobby value = 1 }

+	}

+}

diff -Naur Doomsday Data Files.old/db/events/ai_switches_USA.txt Doomsday Data Files/db/events/ai_switches_USA.txt
--- Doomsday Data Files.old/db/events/ai_switches_USA.txt	1970-01-01 01:00:00.000000000 +0100
+++ Doomsday Data Files/db/events/ai_switches_USA.txt	2008-12-01 21:31:17.000000000 +0100
@@ -0,0 +1,1134 @@
+# DAIM AI switch events for USA by G'Kar

+# reuse is welcome as long as file origin is correctly stated

+#

+####################################

+# USA 124500 - 124599

+####################################

+####################################

+# Sleeps standard AI switch events

+####################################

+event = {

+	id = 124500

+	random = no 

+	country = USA

+

+	trigger = {

+		ai = yes

+	}

+

+	name = "DAIM installed"

+	style = 0	

+

+	date = { day = 0 month = january year = 1936 }

+	offset = 1

+	deathdate = { day = 30 month = december year = 1940 }

+

+	action_a = {

+		command = { type = sleepevent which = 12000 }

+		command = { type = sleepevent which = 12002 }

+		command = { type = sleepevent which = 12004 }

+		command = { type = sleepevent which = 12006 }

+		command = { type = sleepevent which = 12008 }

+		command = { type = sleepevent which = 12010 }

+		command = { type = sleepevent which = 12011 }

+		command = { type = sleepevent which = 12012 }

+		command = { type = sleepevent which = 12300 }

+		command = { type = sleepevent which = 12301 }

+		command = { type = sleepevent which = 12302 }

+		command = { type = sleepevent which = 12303 }

+		command = { type = sleepevent which = 12304 }

+		command = { type = sleepevent which = 12305 }

+		command = { type = sleepevent which = 12306 }

+		command = { type = sleepevent which = 12307 }

+		command = { type = sleepevent which = 12308 }

+		command = { type = sleepevent which = 28001 }

+		command = { type = sleepevent which = 28002 }

+		command = { type = sleepevent which = 28003 }

+		command = { type = sleepevent which = 28004 }

+		command = { type = sleepevent which = 28005 }

+		command = { type = sleepevent which = 28006 }

+		command = { type = sleepevent which = 28007 }

+		command = { type = sleepevent which = 28008 }

+		command = { type = sleepevent which = 28009 }

+		command = { type = sleepevent which = 28010 }

+		command = { type = sleepevent which = 28011 }

+		command = { type = sleepevent which = 28012 }

+		command = { type = sleepevent which = 28013 }

+		command = { type = sleepevent which = 28014 }

+		command = { type = sleepevent which = 28015 }

+		command = { type = sleepevent which = 28016 }

+		command = { type = sleepevent which = 28017 }

+		command = { type = sleepevent which = 28018 }

+		command = { type = sleepevent which = 28019 }

+		command = { type = sleepevent which = 28020 }

+		command = { type = sleepevent which = 28021 }

+		command = { type = sleepevent which = 28022 }

+		command = { type = sleepevent which = 28023 }

+	}

+}

+

+####################################

+# End industry expansion in 1937

+####################################

+event = {

+	id = 124501

+	random = no 

+	country = USA

+

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+

+	date = { day = 1 month = october year = 1937 }

+	offset = 7

+	deathdate = { day = 30 month = october year = 1937 }

+

+	action_a = {

+		command = { type = ai which = "usa_1938.ai" }

+	}

+}

+

+####################################

+# Switch to 1939 AI

+####################################

+event = {

+	id = 124502

+	random = no 

+	country = USA

+

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+

+	date = { day = 1 month = january year = 1939 }

+	offset = 7

+	deathdate = { day = 30 month = january year = 1939 }

+

+	action_a = {

+		command = { type = ai which = "usa_1939.ai" }

+	}

+}

+

+####################################

+# Switch to 1941 AI

+####################################

+event = {

+	id = 124503

+	random = no 

+	country = USA

+

+	trigger = {

+		ai = yes

+		OR = {

+			year = 1941

+			atwar = yes

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1942 }

+

+	action_a = {

+		command = { type = ai which = "usa_1941.ai" }

+		command = { type = sleepevent which = 124501 }

+		command = { type = sleepevent which = 124502 }

+	}

+}

+

+####################################

+# Build mechs when available

+####################################

+event = {

+	id = 124504

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		technology = 1260

+		event = 124503

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1941 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/usa_mechs.ai" }

+	}

+}

+

+####################################

+# Basic invasion settings

+####################################

+event = {

+	id = 124505

+	random = no 

+	country = USA

+

+	trigger = {

+		ai = yes

+		OR = {

+			war = { country = USA country = VIC }

+			war = { country = ITA country = USA }

+			war = { country = JAP country = USA }

+		}

+		event = 124503

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/usa_invasions1.ai" }

+	}

+}

+

+####################################

+# Phase 2 in Europe

+####################################

+event = {

+	id = 124506

+	random = no 

+	country = USA

+

+	trigger = {

+		ai = yes

+		OR = {

+			AND = {

+				war = { country = ITA country = USA }

+				NOT = { control = { province = 515 data = ITA } } # Rome area

+				NOT = { control = { province = 516 data = ITA } }

+				NOT = { control = { province = 517 data = ITA } }

+			}

+			AND = {

+				war = { country = GER country = SOV }

+				war = { country = GER country = USA }

+				OR = {

+					NOT = { war = { country = ITA country = USA } }

+					NOT = { control = { province = 163 data = SOV } } # Stalingrad

+					NOT = { control = { province = 175 data = SOV } } # Moscow

+					NOT = { control = { province = 19 data = ENG } } # London

+				}

+			}

+			AND = {

+				war = { country = GER country = USA }

+				year = 1943

+			}

+		}

+		event = 124505

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/usa_invasions2.ai" }

+	}

+}

+

+####################################

+# Phase 2 in Pacific

+####################################

+event = {

+	id = 124507

+	random = no 

+	country = USA

+

+	trigger = {

+		ai = yes

+		war = { country = JAP country = USA }

+		OR = {

+			AND = {

+				NOT = { control = { province = 658 data = JAP } }

+				NOT = { control = { province = 662 data = JAP } }

+				NOT = { control = { province = 1599 data = JAP } }

+				OR = {

+					NOT = { control = { province = 1601 data = JAP } }

+					NOT = { control = { province = 1605 data = JAP } }

+				}

+				NOT = { control = { province = 1624 data = JAP } }

+				NOT = { control = { province = 1627 data = JAP } }

+				NOT = { control = { province = 1766 data = JAP } }

+				NOT = { control = { province = 1785 data = JAP } }

+				NOT = { control = { province = 1786 data = JAP } }

+			}

+			year = 1944

+			NOT = { exists = GER }

+		}

+		event = 124505

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/usa_invasions3.ai" }

+		command = { type = sleepevent which = 124506 }

+	}

+}

+

+####################################

+# Build paratroopers

+####################################

+event = {

+	id = 124508

+	random = no

+	country = USA

+

+	persistent = yes

+

+	trigger = {

+		ai = yes

+		event = 124504

+		technology = 1070

+		technology = 4250

+		manpower = 100

+		NOT = { paratrooper = { country = USA value = 1 } }

+	}

+

+	name = "AI_EVENT"

+	style = 0

+

+	date = { day = 1 month = january year = 1941 }

+	offset = 17

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = build_division which = paratrooper value = artillery }

+	}

+}

+

+####################################

+# Build transport planes

+####################################

+event = {

+	id = 124509

+	random = no

+	country = USA

+

+	persistent = yes

+

+	trigger = {

+		ai = yes

+		event = 124504

+		technology = 1070

+		technology = 4250

+		manpower = 100

+		NOT = { transport_plane = { country = USA value = 1 } }

+	}

+

+	name = "AI_EVENT"

+	style = 0

+

+	date = { day = 1 month = january year = 1941 }

+	offset = 17

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = build_division which = transport_plane }

+	}

+}

+

+####################################

+# Defence settings

+####################################

+event = {

+	id = 124510

+	random = no

+	country = USA

+

+	trigger = {

+		event = 124503

+		atwar = yes

+		OR = {

+			lost_national = { country = USA value = 5 }

+			AND = {

+				alliance = { country = USA country = CAN }

+				lost_national = { country = CAN value = 5 }

+			}

+			AND = {

+				alliance = { country = USA country = MEX }

+				lost_national = { country = MEX value = 5 }

+			}

+			AND = {

+				NOT = { ai = GER }

+				OR = {

+					NOT = { control = { province = 16 data = ENG } }

+					NOT = { control = { province = 19 data = ENG } }

+				}

+				OR = {

+					event = 2624

+					event = 2645

+					alliance = { country = GER country = SOV }

+				}

+			}

+			AND = {

+				NOT = { ai = JAP }

+				control = { province = 663 data = JAP } # Pearl Harbour

+				OR = {

+					control = { province = 662 data = JAP } # Midway

+					control = { province = 1786 data = JAP } # Wake

+				}

+				OR = {

+					control = { province = 1624 data = JAP } # Guam

+					NOT = { exists = PHI }

+				}

+			}

+		}

+	}

+

+	name = "AI_EVENT"

+	style = 0

+

+	date = { day = 1 month = january year = 1936 }

+	offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/usa_defence.ai" }

+		command = { type = sleepevent which = 124505 }

+		command = { type = sleepevent which = 124506 }

+		command = { type = sleepevent which = 124507 }

+		command = { type = sleepevent which = 124508 }

+		command = { type = sleepevent which = 124509 }

+	}

+}

+

+####################################

+# Join Allies to merge wars

+####################################

+event = {

+	id = 124511

+	random = no

+	country = USA

+

+	trigger = {

+		war = { country = GER country = ENG }

+		war = { country = GER country = USA }

+		war = { country = JAP country = ENG }

+		war = { country = JAP country = USA }

+		NOT = { alliance = { country = ENG country = USA } }

+		NOT = { war = { country = ENG country = USA } }

+	}

+

+	name = "AI_EVENT"

+	style = 0

+

+	date = { day = 1 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = alliance which = ENG }

+	}

+}

+

+####################################

+# Reactor Building

+####################################

+event = {

+	id = 124521

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		technology = 5500

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/reactor1.ai" }

+	}

+}

+

+####################################

+# Reactor Building

+####################################

+event = {

+	id = 124522

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		technology = 5510

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/reactor2.ai" }

+	}

+}

+

+####################################

+# Reactor Building

+####################################

+event = {

+	id = 124523

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		technology = 5520

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/reactor3.ai" }

+	}

+}

+

+####################################

+# Reactor Building

+####################################

+event = {

+	id = 124524

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		technology = 5530

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/reactor4.ai" }

+	}

+}

+

+####################################

+# Reactor Building

+####################################

+event = {

+	id = 124525

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		technology = 5540

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/reactor5.ai" }

+	}

+}

+

+####################################

+# Reactor Building

+####################################

+event = {

+	id = 124526

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		technology = 7170

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/reactor6.ai" }

+	}

+}

+

+####################################

+# Reactor Building

+####################################

+event = {

+	id = 124527

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		technology = 7180

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/reactor7.ai" }

+	}

+}

+

+####################################

+# Reactor Building

+####################################

+event = {

+	id = 124528

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		technology = 7190

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/reactor8.ai" }

+	}

+}

+

+####################################

+# Reactor Building

+####################################

+event = {

+	id = 124529

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		technology = 16010

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1936 }

+	offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/reactor9.ai" }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 124540

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		government = democratic

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1936 }

+

+	action_a = {

+		command = { type = armamentminister which = 6077 }

+		command = { type = ministerofintelligence which = 6120 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 124541

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		government = democratic

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1937 }

+

+	action_a = {

+		command = { type = foreignminister which = 6003 }

+		command = { type = armamentminister which = 6077 }

+		command = { type = ministerofsecurity which = 6005 }

+		command = { type = ministerofintelligence which = 6120 }

+		command = { type = chiefofstaff which = 6007 }

+		command = { type = chiefofarmy which = 6008 }

+		command = { type = chiefofnavy which = 6009 }

+		command = { type = chiefofair which = 6010 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 124542

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		government = democratic

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1938 }

+

+	action_a = {

+		command = { type = chiefofair which = 6167 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 124543

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		government = democratic

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1939 }

+

+	action_a = {

+		command = { type = chiefofstaff which = 6136 }

+		command = { type = chiefofarmy which = 6144 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 124544

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		government = democratic

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1941 }

+

+	action_a = {

+		command = { type = foreignminister which = 6003 }

+		command = { type = armamentminister which = 6077 }

+		command = { type = ministerofsecurity which = 6005 }

+		command = { type = ministerofintelligence which = 6120 }

+		command = { type = chiefofstaff which = 6136 }

+		command = { type = chiefofarmy which = 6144 }

+		command = { type = chiefofnavy which = 6156 }

+		command = { type = chiefofair which = 6167 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 124545

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		government = democratic

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1942 }

+

+	action_a = {

+		command = { type = ministerofintelligence which = 6130 }

+		command = { type = chiefofstaff which = 6137 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 124546

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		government = democratic

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1944 }

+

+	action_a = {

+		command = { type = armamentminister which = 6082 }

+		command = { type = chiefofarmy which = 6145 }

+	}

+}

+

+####################################

+# Minister change

+####################################

+event = {

+	id = 124547

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+		government = democratic

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1945 }

+

+	action_a = {

+		command = { type = foreignminister which = 6063 }

+		command = { type = armamentminister which = 6082 }

+		command = { type = ministerofsecurity which = 6005 }

+		command = { type = ministerofintelligence which = 6130 }

+		command = { type = chiefofstaff which = 6137 }

+		command = { type = chiefofarmy which = 6145 }

+		command = { type = chiefofnavy which = 6156 }

+		command = { type = chiefofair which = 6167 }

+	}

+}

+

+####################################

+# All research fields enabled

+####################################

+event = {

+	id = 124549

+	random = no 

+	country = USA

+	

+	persistent = yes

+
+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	style = 0	

+	

+	date = { day = 1 month = january year = 1946 }

+	offset = 101

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		command = { type = ai which = "switch/all_research.ai" }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 124550

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1936 }

+

+	action_a = {

+		command = { type = domestic which = defense_lobby value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 124551

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1937 }

+

+	action_a = {

+		command = { type = domestic which = interventionism value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 124552

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1938 }

+

+	action_a = {

+		command = { type = domestic which = defense_lobby value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 124553

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1939 }

+

+	action_a = {

+		command = { type = domestic which = interventionism value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 124554

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1940 }

+

+	action_a = {

+		command = { type = domestic which = defense_lobby value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 124555

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1941 }

+

+	action_a = {

+		command = { type = domestic which = interventionism value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 124556

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1942 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 124557

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1943 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 124558

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1944 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 124559

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1945 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 124560

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1946 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

+

+####################################

+# Slider movement

+####################################

+event = {

+	id = 124561

+	random = no 

+	country = USA

+	

+	trigger = {

+		ai = yes

+	}

+

+	name = "AI_EVENT"

+	date = { day = 1 month = january year = 1947 }

+

+	action_a = {

+		command = { type = domestic which = professional_army value = 1 }

+	}

+}

diff -Naur Doomsday Data Files.old/db/events/japan.txt Doomsday Data Files/db/events/japan.txt
--- Doomsday Data Files.old/db/events/japan.txt	2008-11-15 09:43:19.000000000 +0100
+++ Doomsday Data Files/db/events/japan.txt	2008-12-01 21:31:17.000000000 +0100
@@ -77,7 +77,7 @@
 	
 	date = { day = 2 month = january year = 1936 }
 	offset = 7
-	deathdate = { day = 30 month = december year = 1963 }
+	deathdate = { day = 30 month = december year = 1947 }
 	
 	action_a = {
 		name = "ACTIONNAME3802A" # That will hurt us more than them!
@@ -128,7 +128,6 @@
 
 		NOT = {
 			war = { country = FRA country = JAP }
-			event = 3826
 		      }
 	}
 	
@@ -329,7 +328,7 @@
 	
 	date = { day = 1 month = january year = 1936 }
 	offset = 30
-	deathdate = { day = 30 month = december year = 1963 }
+	deathdate = { day = 30 month = december year = 1947 }
 	
 	name = "EVT_3806_NAME"
 	desc = "EVT_3806_DESC"
@@ -382,7 +381,7 @@
 	
 	date = { day = 1 month = january year = 1936 }
 	offset = 30
-	deathdate = { day = 30 month = december year = 1963 }
+	deathdate = { day = 30 month = december year = 1947 }
 	
 	action_a = {
 		name = "ACTIONNAME3807A" # Lean on Siam
@@ -414,7 +413,7 @@
 
 	date = { day = 1 month = january year = 1936 }
 	offset = 2
-	deathdate = { day = 30 month = december year = 1963 }
+	deathdate = { day = 30 month = december year = 1947 }
 	
 	name = "EVT_3808_NAME"
 	desc = "EVT_3808_DESC"
@@ -550,6 +549,14 @@
 	random = no
 	country = JAP
 
+	trigger = {
+		event = 3898
+	}
+
+	date = { day = 0 month = january year = 1936 }
+	offset = 11
+	deathdate = { day = 30 month = december year = 1953 }
+
 	name = "EVT_3816_NAME"
 	desc = "EVT_3816_DESC"
 	style = 0
@@ -568,6 +575,14 @@
 	random = no
 	country = JAP
 
+	trigger = {
+		event = 3899
+	}
+
+	date = { day = 0 month = january year = 1936 }
+	offset = 11
+	deathdate = { day = 30 month = december year = 1953 }
+
 	name = "EVT_3817_NAME"
 	desc = "EVT_3817_DESC"
 	style = 0
@@ -623,7 +638,8 @@
 	action_a = {
 		ai_chance = 100
 		name = "OK" #
-		command = { type = trigger which = 3816 }
+		# command = { type = trigger which = 3816 }
+		command = { type = trigger which = 3898 }
 	}
 }
 event = {
@@ -639,7 +655,8 @@
 	action_a = {
 		ai_chance = 100
 		name = "OK" #
-		command = { type = trigger which = 3817 }
+		# command = { type = trigger which = 3817 }
+		command = { type = trigger which = 3899 }
 	}
 }
 
@@ -823,7 +840,7 @@
 
 	date = { day = 1 month = january year = 1936 }
 	offset = 1
-	deathdate = { day = 3 month = january year = 1963 }
+	deathdate = { day = 3 month = january year = 1948 }
 
 	name = "EVT_3831_NAME"
 	desc = "EVT_3831_DESC"
@@ -1004,4 +1021,35 @@
 
 	}
 
+#######################
+# Extra events by DAIM
+#######################
+event = { 
+	id = 3898
+	random = no
+	country = JAP
+
+	name = "Please save and reload now if you want that the puppeted China has leaders! (DAIM) "
+	desc = "If you save and reload right now, the soon to be released Japanese puppet Nationalist China will have leaders (no joke!)"
+	style = 0
+
+	action_a = {
+		name = "Yes, I'll save and reload right after clicking this button"
+		command = { }
+	}
+}
+
+event = { 
+	id = 3899
+	random = no
+	country = JAP
+	
+	name = "Please save and reload now if you want that the puppeted China has leaders! (DAIM) "
+	desc = "If you save and reload right now, the soon to be released Japanese puppet Nationalist China will have leaders (no joke!)"
+	style = 0
 
+	action_a = {
+		name = "Yes, I'll save and reload right after clicking this button"
+		command = {  }
+	}
+}
diff -Naur Doomsday Data Files.old/db/events/japanmanpower.txt Doomsday Data Files/db/events/japanmanpower.txt
--- Doomsday Data Files.old/db/events/japanmanpower.txt	2008-08-24 22:12:58.000000000 +0200
+++ Doomsday Data Files/db/events/japanmanpower.txt	2008-12-01 21:31:17.000000000 +0100
@@ -1,510 +1,103 @@
-################
-# Japan Receives MP from North Korea
-#############################################
-event = {
-	id = 15200
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		NOT = { local_flag = JAPManpowerNorthKorea }
-		# North Korea
-		control = { province = 1200 data = JAP }
-		control = { province = 1201 data = JAP }
-		control = { province = 1393 data = JAP }
-		control = { province = 1391 data = JAP }
-		control = { province = 1392 data = JAP }
-		control = { province = 1376 data = JAP }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_setflag which = JAPManpowerNorthKorea }
-		command = { type = free_manpower value = 0.16 }
-	}
-}
-event = {
-	id = 15201
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		# North Korea
-		local_flag = JAPManpowerNorthKorea
-		NOT = {
-			control = { province = 1200 data = JAP }
-			control = { province = 1201 data = JAP }
-			control = { province = 1393 data = JAP }
-			control = { province = 1391 data = JAP }
-			control = { province = 1392 data = JAP }
-			control = { province = 1376 data = JAP }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_clrflag which = JAPManpowerNorthKorea }
-		command = { type = free_manpower value = -0.16 }
-	}
-}
-################
-# Japan Receives MP from South Korea
-#############################################
-event = {
-	id = 15202
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		# South Korea
-		NOT = { local_flag = JAPManpowerSouthKorea }
-		control = { province = 1194 data = JAP }
-		control = { province = 1195 data = JAP }
-		control = { province = 1196 data = JAP }
-		control = { province = 1197 data = JAP }
-		control = { province = 1198 data = JAP }
-		control = { province = 1199 data = JAP }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_setflag which = JAPManpowerSouthKorea }
-		command = { type = free_manpower value = 0.36 }
-	}
-}
-event = {
-	id = 15203
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		#  South Korea
-		local_flag = JAPManpowerSouthKorea
-		NOT = {
-			control = { province = 1194 data = JAP }
-			control = { province = 1195 data = JAP }
-			control = { province = 1196 data = JAP }
-			control = { province = 1197 data = JAP }
-			control = { province = 1198 data = JAP }
-			control = { province = 1199 data = JAP }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_clrflag which = JAPManpowerSouthKorea }
-		command = { type = free_manpower value = -0.36 }
-	}
-}
-################
-# Japan Receives MP from Hebei
-#############################################
-event = {
-	id = 15204
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		# Hebei
-		NOT = { local_flag = JAPManpowerHebei }
-		control = { province = 1203 data = JAP }
-		control = { province = 1204 data = JAP }
-		control = { province = 1205 data = JAP }
-		control = { province = 1206 data = JAP }
-		control = { province = 1210 data = JAP }
-		control = { province = 1211 data = JAP }
-		control = { province = 1212 data = JAP }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_setflag which = JAPManpowerHebei }
-		command = { type = free_manpower value = 0.4 }
-	}
-}
-event = {
-	id = 15205
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		#  Hebei
-		local_flag = JAPManpowerHebei
-		NOT = {
-			control = { province = 1203 data = JAP }
-			control = { province = 1204 data = JAP }
-			control = { province = 1205 data = JAP }
-			control = { province = 1206 data = JAP }
-			control = { province = 1210 data = JAP }
-			control = { province = 1211 data = JAP }
-			control = { province = 1212 data = JAP }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_clrflag which = JAPManpowerHebei }
-		command = { type = free_manpower value = -0.4 }
-	}
-}
-################
-# Japan Receives MP from Shanxi
-#############################################
-event = {
-	id = 15206
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		# Shanxi
-		NOT = { local_flag = JAPManpowerShanxi }
-		control = { province = 1209 data = JAP }
-		control = { province = 1225 data = JAP }
-		control = { province = 1226 data = JAP }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_setflag which = JAPManpowerShanxi }
-		command = { type = free_manpower value = 0.3 }
-	}
-}
-event = {
-	id = 15207
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		#  Shanxi
-		local_flag = JAPManpowerShanxi
-		NOT = {
-			control = { province = 1209 data = JAP }
-			control = { province = 1225 data = JAP }
-			control = { province = 1226 data = JAP }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_clrflag which = JAPManpowerShanxi }
-		command = { type = free_manpower value = -0.3 }
-	}
-}
-################
-# Japan Receives MP from Shandong
-#############################################
-event = {
-	id = 15208
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		# Shandong
-		NOT = { local_flag = JAPManpowerShandong }
-		control = { province = 1214 data = JAP }
-		control = { province = 1213 data = JAP }
-		control = { province = 1216 data = JAP }
-		control = { province = 1215 data = JAP }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_setflag which = JAPManpowerShandong }
-		command = { type = free_manpower value = 0.5 }
-	}
-}
-event = {
-	id = 15209
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		#  Shandong
-		local_flag = JAPManpowerShandong
-		NOT = {
-			control = { province = 1214 data = JAP }
-			control = { province = 1213 data = JAP }
-			control = { province = 1216 data = JAP }
-			control = { province = 1215 data = JAP }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_clrflag which = JAPManpowerShandong }
-		command = { type = free_manpower value = -0.5 }
-	}
-}
-################
-# Japan Receives MP from Henan
-#############################################
-event = {
-	id = 15210
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		# Henan
-		NOT = { local_flag = JAPManpowerHenan }
-		control = { province = 1224 data = JAP }
-		control = { province = 1227 data = JAP }
-		control = { province = 1228 data = JAP }
-		control = { province = 1223 data = JAP }
-		control = { province = 1222 data = JAP }
-		control = { province = 1230 data = JAP }
-		control = { province = 1229 data = JAP }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_setflag which = JAPManpowerHenan }
-		command = { type = free_manpower value = 0.4 }
-	}
-}
-event = {
-	id = 15211
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		#  Henan
-		local_flag = JAPManpowerHenan
-		NOT = {
-			control = { province = 1224 data = JAP }
-			control = { province = 1227 data = JAP }
-			control = { province = 1228 data = JAP }
-			control = { province = 1223 data = JAP }
-			control = { province = 1222 data = JAP }
-			control = { province = 1230 data = JAP }
-			control = { province = 1229 data = JAP }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_clrflag which = JAPManpowerHenan }
-		command = { type = free_manpower value = -0.4  }
-	}
-}
-################
-# Japan Receives MP from Jiangsu
-#############################################
-event = {
-	id = 15212
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		# Jiangsu
-		NOT = { local_flag = JAPManpowerJiangsu }
-		control = { province = 1219 data = JAP }
-		control = { province = 1217 data = JAP }
-		control = { province = 1220 data = JAP }
-		control = { province = 1235 data = JAP }
-		control = { province = 1236 data = JAP }
-		control = { province = 1237 data = JAP }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_setflag which = JAPManpowerJiangsu }
-		command = { type = free_manpower value = 0.7 }
-	}
-}
-event = {
-	id = 15213
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		#  Jiangsu
-		local_flag = JAPManpowerJiangsu
-		NOT = {
-			control = { province = 1219 data = JAP }
-			control = { province = 1217 data = JAP }
-			control = { province = 1220 data = JAP }
-			control = { province = 1235 data = JAP }
-			control = { province = 1236 data = JAP }
-			control = { province = 1237 data = JAP }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_clrflag which = JAPManpowerJiangsu }
-		command = { type = free_manpower value = -0.7 }
-	}
-}
-################
-# Japan Receives MP from Anhui
-#############################################
-event = {
-	id = 15214
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		# Anhui
-		NOT = { local_flag = JAPManpowerAnhui }
-		control = { province = 1218 data = JAP }
-		control = { province = 1221 data = JAP }
-		control = { province = 1234 data = JAP }
-		control = { province = 1233 data = JAP }
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
-
-	action_a = {
-		command = { type = local_setflag which = JAPManpowerAnhui }
-		command = { type = free_manpower value = 0.3 }
-	}
-}
-event = {
-	id = 15215
-	random = no 
-	country = JAP
-	persistent = yes
-
-	trigger = {
-		ai = yes
-		#  Jiangsu
-		local_flag = JAPManpowerAnhui
-		NOT = {
-			control = { province = 1218 data = JAP }
-			control = { province = 1221 data = JAP }
-			control = { province = 1234 data = JAP }
-			control = { province = 1233 data = JAP }
-		}
-	}
-
-	name = "AI_EVENT"
-	style = 0	
-	
-	date = { day = 1 month = january year = 1936 }
-	offset = 7
-	deathdate = { day = 29 month = december year = 1963 }
+# original events removed by DAIM

+# file used to introduce extra events

+####################################

+# Mers-el-Kebir: GB attacks Vichy France

+####################################

+event = {

+	id = 125499

+	random = no

+	country = ENG

+

+	name = "Mers-El-Kebir: Operation Catapult"

+	desc = "In 1940 it was feared that French capital ships might fight for the Axis. An ultimatum was brought forward, but the French forces didn't agree to stay neutral on British terms and chose to fight."

+	style = 0

+

+	trigger = {

+		exists = VIC

+		random = 50

+	}

+

+        date = { day = 0 month = january year = 1936 }

+        offset = 31

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		ai_chance = 95

+		name = "Attack Vichy France"

+		command = { type = domestic which = interventionism value = 1 }

+		command = { type = war which = VIC }

+		command = { type = dissent value = -12 } # compensation

+	}

+	action_b = {

+		ai_chance = 5

+		name = "Leave them be"

+		command = { type = domestic which = interventionism value = -1 }

+	}

+}

+

+####################################

+# Slider Reminder Event

+####################################

+event = {

+	id = 126570

+	random = no

+

+	persistent = yes

+

+	name = "Slider Reminder Event"

+	desc = "You can move one of your domestic sliders now"

+	style = 0

+

+	trigger = {

+		ai = no

+		OR = {

+			can_change_policy = { type = democratic value = 1 }

+			can_change_policy = { type = democratic value = -1 }

+			can_change_policy = { type = political_left value = 1 }

+			can_change_policy = { type = political_left value = -1 }

+			can_change_policy = { type = freedom value = 1 }

+			can_change_policy = { type = freedom value = -1 }

+			can_change_policy = { type = free_market value = 1 }

+			can_change_policy = { type = free_market value = -1 }

+			can_change_policy = { type = professional_army value = 1 }

+			can_change_policy = { type = professional_army value = -1 }

+			can_change_policy = { type = defense_lobby value = 1 }

+			can_change_policy = { type = defense_lobby value = -1 }

+			can_change_policy = { type = interventionism value = 1 }

+			can_change_policy = { type = interventionism value = -1 }

+		}

+	}

+

+        date = { day = 0 month = january year = 1936 }

+        offset = 7

+	deathdate = { day = 30 month = december year = 1953 }

+

+	action_a = {

+		name = "Thanks for the information"

+		command = { }

+	}

+	action_b = {

+		name = "Thanks, but don't remind me again"

+		command = { type = sleepevent which = 126570 }

+	}

+}

+
+########################################
+# Event to trigger the "don't send me expeditionary forces!" AI file
+# by G'Kar
+########################################
+event = {
+	id = 345678
+	random = no
+	country = USA
+
+	persistent = yes
+
+	name = "No_Exps.ai"
+	style = 0
+	desc = " "
 
 	action_a = {
-		command = { type = local_clrflag which = JAPManpowerAnhui }
-		command = { type = free_manpower value = -0.3 }
+		command = { type = ai which = switch/no_exps.ai }
 	}
 }
diff -Naur Doomsday Data Files.old/db/events/nationalist_china.txt Doomsday Data Files/db/events/nationalist_china.txt
--- Doomsday Data Files.old/db/events/nationalist_china.txt	2008-08-24 22:12:58.000000000 +0200
+++ Doomsday Data Files/db/events/nationalist_china.txt	2008-12-01 21:31:17.000000000 +0100
@@ -138,7 +138,7 @@
 
 	date = { day = 1 month = january year = 1936 }
 	offset = 14
-	deathdate = { day = 30 month = december year = 1963 }
+	deathdate = { day = 30 month = december year = 1948 }
 
 	action_a = {
 		name = "YES"
@@ -200,7 +200,7 @@
 
 	date = { day = 1 month = january year = 1936 }
 	offset = 7
-	deathdate = { day = 30 month = december year = 1963 }
+	deathdate = { day = 30 month = december year = 1948 }
 
 	action_a = {
 		name = "EVT_27008_A"
@@ -281,7 +281,7 @@
 
         date = { day = 0 month = january year = 1936 }
         offset = 10
-	deathdate = { day = 29 month = december year = 1963 }
+	deathdate = { day = 29 month = december year = 1947 }
 
 	action_a = {
 		ai_chance = 100
@@ -347,42 +347,52 @@
 		command = { type = sleepminister which = 52022 }
 		command = { type = sleepteam which = 1006 } 
 
-		command = { type = secedeprovince which = JAP value = 1282 } # 
-
-		command = { type = secedeprovince which = JAP value = 1313 } # 
-		command = { type = secedeprovince which = JAP value = 1314 } # 
-		command = { type = secedeprovince which = JAP value = 1315 } # 
-		command = { type = secedeprovince which = JAP value = 1316 } # 
-
-		command = { type = secedeprovince which = JAP value = 1321 } # 
-		command = { type = secedeprovince which = JAP value = 1439 } # 
-		command = { type = secedeprovince which = JAP value = 1322 } # 
-		command = { type = secedeprovince which = JAP value = 1323 } # 
-		command = { type = secedeprovince which = JAP value = 1324 } # 
-
 		command = { type = secedeprovince which = JAP value = 1213 } # 
 		command = { type = secedeprovince which = JAP value = 1214 } # 
 		command = { type = secedeprovince which = JAP value = 1215 } # 
 		command = { type = secedeprovince which = JAP value = 1216 } # 
 		command = { type = secedeprovince which = JAP value = 1217 } # 
-
-
 		command = { type = secedeprovince which = JAP value = 1237 } # 
+		command = { type = secedeprovince which = JAP value = 1282 } # 
 		command = { type = secedeprovince which = JAP value = 1293 } # 
 		command = { type = secedeprovince which = JAP value = 1294 } # 
 		command = { type = secedeprovince which = JAP value = 1305 } # 
+		command = { type = secedeprovince which = JAP value = 1313 } # 
+		command = { type = secedeprovince which = JAP value = 1314 } # 
+		command = { type = secedeprovince which = JAP value = 1315 } # 
+		command = { type = secedeprovince which = JAP value = 1316 } # 
+		command = { type = secedeprovince which = JAP value = 1321 } # 
+		command = { type = secedeprovince which = JAP value = 1322 } # 
+		command = { type = secedeprovince which = JAP value = 1323 } # 
+		command = { type = secedeprovince which = JAP value = 1324 } # 
+		command = { type = secedeprovince which = JAP value = 1439 } # 
 		command = { type = secedeprovince which = JAP value = 1444 } # 
 
-		command = { type = secedeprovince which = JAP value = 1307 } # 
-		command = { type = secedeprovince which = JAP value = 1308 } # 
-		command = { type = secedeprovince which = JAP value = 1327 } # 
-		command = { type = secedeprovince which = JAP value = 1309 } # 
-		command = { type = secedeprovince which = JAP value = 1319 } # 
-
-		command = { type = secedeprovince which = JAP value = 1325 } # 
-		command = { type = secedeprovince which = JAP value = 1320 } # 
-		command = { type = secedeprovince which = JAP value = 1318 } # 
-		command = { type = secedeprovince which = JAP value = 1317 } # 
+		# added by DAIM to prevent convoy problems
+		command = { type = secedeprovince which = JAP value = 1203 }
+		command = { type = secedeprovince which = JAP value = 1204 }
+		command = { type = secedeprovince which = JAP value = 1219 }
+		command = { type = secedeprovince which = JAP value = 1220 }
+		command = { type = secedeprovince which = JAP value = 1236 }
+		command = { type = secedeprovince which = JAP value = 1238 }
+		command = { type = secedeprovince which = JAP value = 1239 }
+		command = { type = secedeprovince which = JAP value = 1240 }
+		command = { type = secedeprovince which = JAP value = 1241 }
+		command = { type = secedeprovince which = JAP value = 1243 }
+		command = { type = secedeprovince which = JAP value = 1244 }
+		command = { type = secedeprovince which = JAP value = 1245 }
+		command = { type = secedeprovince which = JAP value = 1246 }
+		command = { type = secedeprovince which = JAP value = 1247 }
+		command = { type = secedeprovince which = JAP value = 1248 }
+		command = { type = secedeprovince which = JAP value = 1249 }
+		command = { type = secedeprovince which = JAP value = 1307 }
+		command = { type = secedeprovince which = JAP value = 1309 }
+		command = { type = secedeprovince which = JAP value = 1317 }
+		command = { type = secedeprovince which = JAP value = 1318 }
+		command = { type = secedeprovince which = JAP value = 1319 }
+		command = { type = secedeprovince which = JAP value = 1320 }
+		command = { type = secedeprovince which = JAP value = 1325 }
+		command = { type = secedeprovince which = JAP value = 1327 }
 
 		command = { type = sleepevent which = 7005 }
 
@@ -443,7 +453,7 @@
 
         date = { day = 0 month = january year = 1936 }
         offset = 10
-	deathdate = { day = 29 month = december year = 1963 }
+	deathdate = { day = 29 month = december year = 1947 }
 
 	action_a = {
 		ai_chance = 100
@@ -509,7 +519,7 @@
 
         date = { day = 0 month = january year = 1936 }
         offset = 5
-	  deathdate = { day = 29 month = december year = 1963 }
+	  deathdate = { day = 29 month = december year = 1947 }
 
 	action_a = {
 		ai_chance = 100
@@ -585,7 +595,7 @@
 
 	date = { day = 0 month = january year = 1936 }
 	offset = 10
-	deathdate = { day = 29 month = december year = 1963 }
+	deathdate = { day = 29 month = december year = 1953 }
 
 	action_a = {
 		ai_chance = 90
@@ -623,7 +633,7 @@
 
 	date = { day = 0 month = january year = 1936 }
 	offset = 10
-	deathdate = { day = 29 month = december year = 1963 }
+	deathdate = { day = 29 month = december year = 1953 }
 
 	action_a = {
 		name = EVT_86_ACTA
@@ -658,7 +668,7 @@
 
 	date = { day = 0 month = january year = 1936 }
 	offset = 10
-	deathdate = { day = 29 month = december year = 1963 }
+	deathdate = { day = 29 month = december year = 1953 }
 
 	action_a = {
 		name = EVT_86_ACTA
@@ -699,7 +709,7 @@
 
 	date = { day = 0 month = january year = 1936 }
 	offset = 10
-	deathdate = { day = 29 month = december year = 1963 }
+	deathdate = { day = 29 month = december year = 1953 }
 
 	action_a = {
 		name = EVT_86_ACTA
@@ -737,7 +747,7 @@
 
 	date = { day = 0 month = january year = 1936 }
 	offset = 10
-	deathdate = { day = 29 month = december year = 1963 }
+	deathdate = { day = 29 month = december year = 1953 }
 
 	action_a = {
 		name = EVT_86_ACTA
@@ -774,7 +784,7 @@
 
 	date = { day = 0 month = january year = 1936 }
 	offset = 10
-	deathdate = { day = 29 month = december year = 1963 }
+	deathdate = { day = 29 month = december year = 1953 }
 
 	action_a = {
 		name = EVT_86_ACTA
diff -Naur Doomsday Data Files.old/scenarios/1936.eug Doomsday Data Files/scenarios/1936.eug
--- Doomsday Data Files.old/scenarios/1936.eug	2008-08-25 23:43:38.000000000 +0200
+++ Doomsday Data Files/scenarios/1936.eug	2008-12-01 21:31:17.000000000 +0100
@@ -1059,3 +1059,12 @@
 include = "scenarios\1936\venezuela.inc"
 include = "scenarios\1936\yem.inc"
 include = "scenarios\1936\yugoslavia.inc"
+
+# DAIM AI switch events
+event = "db\events\AI_switches_CHI.txt"
+event = "db\events\AI_switches_ENG.txt"
+event = "db\events\AI_switches_GER.txt"
+event = "db\events\AI_switches_ITA.txt"
+event = "db\events\AI_switches_JAP.txt"
+event = "db\events\AI_switches_SOV.txt"
+event = "db\events\AI_switches_USA.txt"
diff -Naur Doomsday Data Files.old/scenarios/1938.eug Doomsday Data Files/scenarios/1938.eug
--- Doomsday Data Files.old/scenarios/1938.eug	2008-08-25 23:43:38.000000000 +0200
+++ Doomsday Data Files/scenarios/1938.eug	2008-12-01 21:31:17.000000000 +0100
@@ -1298,3 +1298,12 @@
 event = "db\events\AI_USA.txt"
 event = "db\events\AI_VEN.txt"
 event = "db\events\AI_YUG.txt"
+
+# DAIM AI switch events
+event = "db\events\AI_switches_CHI.txt"
+event = "db\events\AI_switches_ENG.txt"
+event = "db\events\AI_switches_GER.txt"
+event = "db\events\AI_switches_ITA.txt"
+event = "db\events\AI_switches_JAP.txt"
+event = "db\events\AI_switches_SOV.txt"
+event = "db\events\AI_switches_USA.txt"
diff -Naur Doomsday Data Files.old/scenarios/1939.eug Doomsday Data Files/scenarios/1939.eug
--- Doomsday Data Files.old/scenarios/1939.eug	2008-08-25 23:43:38.000000000 +0200
+++ Doomsday Data Files/scenarios/1939.eug	2008-12-01 21:31:17.000000000 +0100
@@ -929,3 +929,12 @@
 
 # Data for provinces, currently not owned by any nation
 include = "scenarios\1939\provinces.inc"
+
+# DAIM AI switch events
+event = "db\events\AI_switches_CHI.txt"
+event = "db\events\AI_switches_ENG.txt"
+event = "db\events\AI_switches_GER.txt"
+event = "db\events\AI_switches_ITA.txt"
+event = "db\events\AI_switches_JAP.txt"
+event = "db\events\AI_switches_SOV.txt"
+event = "db\events\AI_switches_USA.txt"
