//Updated with new areas
// Frozen area rules, max 5 rules per area

// <area>,FR_Owned by,<player>
// <area>,FR_Not hostile to,<nation>,<player>
// <area>,FR_Year less than,<year>
// <area>,FR_Not at war,<nation>
// <area>,FR_Nation is,<nation>,<area>
// <area>,FR_Player owns,<player>,<area>
// <area>,FR_Group,<group>
// <area>,FR_Garrison,<player>,<area>,<troops>,<area>,<troops>
// <area>,FR_Strat,<if area not frozen>
// <area or 0==all of player>,FR_Player_Dead,<player to unfreeze>,<if this player dead>

// East Europe
// Unfreeze All of soviets
FROZEN,0,FR_Player_Dead,PLAYER_SOV,PLAYER_GER

// West Russia
// {93,94,95,102,103, 104,105,106,108,109,110,111,112,113, 114,117,307,354,359,360,363};
FROZEN,93,FR_Not hostile to,Russia,PLAYER_GER

//FROZEN,94,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,95,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,102,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,103,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,104,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,105,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,106,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,108,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,109,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,110,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,111,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,112,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,113,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,114,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,117,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,307,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,354,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,359,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,360,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,363,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,115,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,116,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,361,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,362,FR_Not hostile to,Russia,PLAYER_GER

FROZEN,370,FR_Not hostile to,Russia,PLAYER_GER //added Eastern Black Sea 12/06/06 JAB


// Turkey 86,87


// Northern Persia and Afganistan connected to turkey will unfreeze Soviets when taken




// Central Russia
// {115,116,119,120,121,122,123,124,125,162,163,361,362,368};
//FROZEN,115,FR_Not hostile to,Russia,PLAYER_GER
//FROZEN,115,FR_Not hostile to,Russia,PLAYER_JAP

//FROZEN,116,FR_Not hostile to,Russia,PLAYER_GER
//FROZEN,116,FR_Not hostile to,Russia,PLAYER_JAP

FROZEN,119,FR_Not hostile to,Russia,PLAYER_GER
FROZEN,119,FR_Not hostile to,Russia,PLAYER_JAP

FROZEN,120,FR_Not hostile to,Russia,PLAYER_GER
FROZEN,120,FR_Not hostile to,Russia,PLAYER_JAP

FROZEN,121,FR_Not hostile to,Russia,PLAYER_GER
FROZEN,121,FR_Not hostile to,Russia,PLAYER_JAP

FROZEN,122,FR_Not hostile to,Russia,PLAYER_GER
FROZEN,122,FR_Not hostile to,Russia,PLAYER_JAP

FROZEN,123,FR_Not hostile to,Russia,PLAYER_GER
FROZEN,123,FR_Not hostile to,Russia,PLAYER_JAP

FROZEN,124,FR_Not hostile to,Russia,PLAYER_GER
FROZEN,124,FR_Not hostile to,Russia,PLAYER_JAP

//FROZEN,125,FR_Not hostile to,Russia,PLAYER_GER
//FROZEN,125,FR_Not hostile to,Russia,PLAYER_JAP

//FROZEN,162,FR_Not hostile to,Russia,PLAYER_GER
//FROZEN,162,FR_Not hostile to,Russia,PLAYER_JAP

FROZEN,163,FR_Not hostile to,Russia,PLAYER_GER
FROZEN,163,FR_Not hostile to,Russia,PLAYER_JAP

//FROZEN,361,FR_Not hostile to,Russia,PLAYER_GER
//FROZEN,361,FR_Not hostile to,Russia,PLAYER_JAP

//FROZEN,362,FR_Not hostile to,Russia,PLAYER_GER
//FROZEN,362,FR_Not hostile to,Russia,PLAYER_JAP

FROZEN,368,FR_Not hostile to,Russia,PLAYER_GER
FROZEN,368,FR_Not hostile to,Russia,PLAYER_JAP

//East Russia
// {164,165,166,201,203,365,366,367};
FROZEN,164,FR_Not hostile to,Russia,PLAYER_JAP
FROZEN,164,FR_Garrison,PLAYER_JAP,200,3
FROZEN,165,FR_Not hostile to,Russia,PLAYER_JAP
FROZEN,165,FR_Garrison,PLAYER_JAP,200,3
FROZEN,166,FR_Not hostile to,Russia,PLAYER_JAP
FROZEN,166,FR_Garrison,PLAYER_JAP,200,3
FROZEN,201,FR_Not hostile to,Russia,PLAYER_JAP
FROZEN,201,FR_Garrison,PLAYER_JAP,200,3
FROZEN,203,FR_Not hostile to,Russia,PLAYER_JAP
FROZEN,203,FR_Garrison,PLAYER_JAP,200,3
FROZEN,365,FR_Not hostile to,Russia,PLAYER_JAP
FROZEN,365,FR_Garrison,PLAYER_JAP,200,3
FROZEN,366,FR_Not hostile to,Russia,PLAYER_JAP
FROZEN,366,FR_Garrison,PLAYER_JAP,200,3
FROZEN,367,FR_Not hostile to,Russia,PLAYER_JAP
FROZEN,367,FR_Garrison,PLAYER_JAP,200,3
FROZEN,162,FR_Not hostile to,Russia,PLAYER_JAP
FROZEN,162,FR_Garrison,PLAYER_JAP,200,3
FROZEN,125,FR_Not hostile to,Russia,PLAYER_JAP
FROZEN,125,FR_Garrison,PLAYER_JAP,200,3


// EastUN
// {170,171,172,174,175, 190,219,222,232,233, 253,260,266,268,277,279,339,340,176,185,186,188,220

FROZEN,170,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,171,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,172,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,174,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,175,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,187,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,189,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,190,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,219,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,221,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,222,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,232,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,233,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,253,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,260,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,266,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,268,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,277,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,279,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,283,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,339,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,340,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,176,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,185,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,186,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,188,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,220,FR_Not hostile to,United States,PLAYER_JAP

// 284,285,287,288,289, 290,293,294,295,296,
FROZEN,284,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,285,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,287,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,288,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,289,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,290,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,293,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,294,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,295,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,296,FR_Not hostile to,United States,PLAYER_JAP

// 298,300,311,312,313, 314,316,317,318,320, 323,325,332,346,352};
FROZEN,298,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,300,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,311,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,312,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,313,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,314,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,316,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,317,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,318,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,320,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,323,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,325,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,346,FR_Not hostile to,United States,PLAYER_JAP
FROZEN,352,FR_Not hostile to,United States,PLAYER_JAP

// EastUN
// {170,171,172,174,175, 190,219,222,232,233, 253,260,266,268,277,279,339,340,176,185,186,188,220

FROZEN,170,FR_Not hostile to,United States,PLAYER_GER
FROZEN,171,FR_Not hostile to,United States,PLAYER_GER
FROZEN,172,FR_Not hostile to,United States,PLAYER_GER
FROZEN,174,FR_Not hostile to,United States,PLAYER_GER
FROZEN,175,FR_Not hostile to,United States,PLAYER_GER
FROZEN,187,FR_Not hostile to,United States,PLAYER_GER
FROZEN,189,FR_Not hostile to,United States,PLAYER_GER
FROZEN,190,FR_Not hostile to,United States,PLAYER_GER
FROZEN,219,FR_Not hostile to,United States,PLAYER_GER
FROZEN,221,FR_Not hostile to,United States,PLAYER_GER
FROZEN,222,FR_Not hostile to,United States,PLAYER_GER
FROZEN,232,FR_Not hostile to,United States,PLAYER_GER
FROZEN,233,FR_Not hostile to,United States,PLAYER_GER
FROZEN,253,FR_Not hostile to,United States,PLAYER_GER
FROZEN,260,FR_Not hostile to,United States,PLAYER_GER
FROZEN,266,FR_Not hostile to,United States,PLAYER_GER
FROZEN,268,FR_Not hostile to,United States,PLAYER_GER
FROZEN,277,FR_Not hostile to,United States,PLAYER_GER
FROZEN,279,FR_Not hostile to,United States,PLAYER_GER
FROZEN,283,FR_Not hostile to,United States,PLAYER_GER
FROZEN,339,FR_Not hostile to,United States,PLAYER_GER
FROZEN,340,FR_Not hostile to,United States,PLAYER_GER
FROZEN,176,FR_Not hostile to,United States,PLAYER_GER
FROZEN,185,FR_Not hostile to,United States,PLAYER_GER
FROZEN,186,FR_Not hostile to,United States,PLAYER_GER
FROZEN,188,FR_Not hostile to,United States,PLAYER_GER
FROZEN,220,FR_Not hostile to,United States,PLAYER_GER

// 284,285,287,288,289, 290,293,294,295,296,
FROZEN,284,FR_Not hostile to,United States,PLAYER_GER
FROZEN,285,FR_Not hostile to,United States,PLAYER_GER
FROZEN,287,FR_Not hostile to,United States,PLAYER_GER
FROZEN,288,FR_Not hostile to,United States,PLAYER_GER
FROZEN,289,FR_Not hostile to,United States,PLAYER_GER
FROZEN,290,FR_Not hostile to,United States,PLAYER_GER
FROZEN,293,FR_Not hostile to,United States,PLAYER_GER
FROZEN,294,FR_Not hostile to,United States,PLAYER_GER
FROZEN,295,FR_Not hostile to,United States,PLAYER_GER
FROZEN,296,FR_Not hostile to,United States,PLAYER_GER

// 298,300,311,312,313, 314,316,317,318,320, 323,325,332,346,352};
FROZEN,298,FR_Not hostile to,United States,PLAYER_GER
FROZEN,300,FR_Not hostile to,United States,PLAYER_GER
FROZEN,311,FR_Not hostile to,United States,PLAYER_GER
FROZEN,312,FR_Not hostile to,United States,PLAYER_GER
FROZEN,313,FR_Not hostile to,United States,PLAYER_GER
FROZEN,314,FR_Not hostile to,United States,PLAYER_GER
FROZEN,316,FR_Not hostile to,United States,PLAYER_GER
FROZEN,317,FR_Not hostile to,United States,PLAYER_GER
FROZEN,318,FR_Not hostile to,United States,PLAYER_GER
FROZEN,320,FR_Not hostile to,United States,PLAYER_GER
FROZEN,323,FR_Not hostile to,United States,PLAYER_GER
FROZEN,325,FR_Not hostile to,United States,PLAYER_GER
FROZEN,346,FR_Not hostile to,United States,PLAYER_GER
FROZEN,352,FR_Not hostile to,United States,PLAYER_GER


// KDB 05-02-2006 unfreeze all of US if jap attacks netherlands
// made a change, only freezes (adds this rule) areas that are already frozen
FROZEN,0,FR_Player_Hostile,PLAYER_UN,Netherlands,PLAYER_JAP,



// vichy
//{50,51,53,60,62};
//FROZEN,50,FR_Nation is,Vichy,50
//FROZEN,51,FR_Nation is,Vichy,51
//FROZEN,53,FR_Nation is,Vichy,53
//FROZEN,60,FR_Nation is,Vichy,60
//FROZEN,62,FR_Nation is,Vichy,62

//FROZEN,50,FR_Group,50
//FROZEN,51,FR_Group,50
//FROZEN,53,FR_Group,50
//FROZEN,60,FR_Group,50
//FROZEN,62,FR_Group,50

//{50,51,53,60,62};
//FROZEN,50,FR_Not hostile to,Italy,PLAYER_UN
//FROZEN,51,FR_Not hostile to,Italy,PLAYER_UN
//FROZEN,53,FR_Not hostile to,Italy,PLAYER_UN
//FROZEN,60,FR_Not hostile to,Italy,PLAYER_UN
//FROZEN,62,FR_Not hostile to,Italy,PLAYER_UN

// French/Vichy areas, unfreeze if any Mediterranean country is at war
FROZEN,50,FR_Not at war,Italy
FROZEN,51,FR_Not at war,Italy
FROZEN,53,FR_Not at war,Italy
FROZEN,60,FR_Not at war,Italy
FROZEN,62,FR_Not at war,Italy

FROZEN,50,FR_Not at war,Yugoslavia
FROZEN,51,FR_Not at war,Yugoslavia
FROZEN,53,FR_Not at war,Yugoslavia
FROZEN,60,FR_Not at war,Yugoslavia
FROZEN,62,FR_Not at war,Yugoslavia

FROZEN,50,FR_Not at war,Greece
FROZEN,51,FR_Not at war,Greece
FROZEN,53,FR_Not at war,Greece
FROZEN,60,FR_Not at war,Greece
FROZEN,62,FR_Not at war,Greece

FROZEN,50,FR_Not at war,Spain
FROZEN,51,FR_Not at war,Spain
FROZEN,53,FR_Not at war,Spain
FROZEN,60,FR_Not at war,Spain
FROZEN,62,FR_Not at war,Spain

FROZEN,50,FR_Not at war,Turkey
FROZEN,51,FR_Not at war,Turkey
FROZEN,53,FR_Not at war,Turkey
FROZEN,60,FR_Not at war,Turkey
FROZEN,62,FR_Not at war,Turkey




//
// Hostile KDB 12-30-2004
//
// WAR,<this player>,<become hostile to player>,<if second player is at war with this player 0=regardless>,<if >=year>,<if >=month>,<area is owned by second player>...<area>
//
// max 4 of these, each with a max of 8 areas
//



// Resource gifts
// GIFT,<from player>,<to player>,<to area>,<amount>,<less than this year>,<less than this month>,<Rules>...

GIFT,PLAYER_UN,PLAYER_JAP,209,5,1941,7,Gift_Hostile,United States,Gift_Hostile,Russia,Gift_no Own,161,167,169,195,197,344,350,173
GIFT,PLAYER_SOV,PLAYER_GER,67,3,1942,1,Gift_Hostile,Russia


// WR influencing garrison requirements 
//WR_GARRISON,<gar_region>,<constr_player>,<wr_player>,<ref_area_unit_class>,<excl_mil>,<base_garr>,<turn_cnt_scale{%)>,<ref_unit_scale(%)>,<wr_scale(%)>,<ref_area(1)>, <ref_area(2)>, ...
//             gar_region            region that must be garrisoned
//             constr_player         player constrained by (must maintain) the garrison 
//             wr_player             player that gains WR if garrison insufficient
//             ref_area_unit_class   unit class of the *reference* region (generally controlled by wr_player): 
//                                     0:regular garrison (inf/para/mil/armor)
//                                     1:any land unit
//                                     2: any land or air unit
//             excl_mil              if true (1) then exclude militia from ref_area_unit_class
//             base_garr             base number of required garrison units (to which units found in ref_area is added to get required unit count)
//             turn_cnt_scale        (%) scale of turn count (since Su39) to get garrison requirement
//             ref_unit_scale(%)     (%) multiplier of the reference region unit count before subtracting the garrison
//             wr_scale(%)           (%) multiplier of the shortfall to get the WR bump
//             ref_area(1)           1st reference area (takes min over reference area)
//             ref_area(2)           2nd reference area (optional)
//             ...                   can have up to 8 ref_area regions
// garrison requirement is
//        base_garr + (turn number - Su'1939)*turn_cnt_scale/100 + (minimum over ref areas of unit count)*ref_unit_scale/100
// WR penalty is 
//        (garrison shortage) * wr_scale/100
// even if the reference area is not used, one is required for a frozen check (if not frozen, cancel the garrison)

// W Poland garrison:
WR_GARRISON,68,PLAYER_GER,PLAYER_SOV,0,0,0,100,0,200,114,end // 114=Moscow (must be frozen)

