-- Readme
-- Author: Typhlomence
-- DateCreated: 3/26/2014 9:58:02 PM
--------------------------------------------------------------

Welcome to my first new civilization for Civ V.

Adds the Walmington-on-Sea civilization, with Captain George Mainwaring as its leader based upon the British TV show "Dad's Army". Like Venice, you won't be able to make your own settlers, so you'll have to defend well against any aggressive and larger civilizations. Your unique ability and cheap defensive unique units in the later parts of the game should help you stand against the invading foreign hordes as you try to make Walmington-on-Sea a cultural powerhouse - just like how the original television show is an icon of British television.

This mod requries Brave New World. It also includes compatibility with:
	- Ethnic Units (English units)
	- Ryoga's Unique Cultural Influence
	- JFD's Cultural Diversity (Western) 
	- JFD's Piety and Sovreignty
	- Bingles' Civ IV Leader Traits (Mercantile, Protective)
	- Hazel's Map Labels
	- JFD's Exploration Continued Expanded
	- Vicevirtuoso's Wish for the World
	- YnAEMP v23-25 (located in the south of Kent)
	- Sukritact's Modular City Info Stack
	- JFD's Mercenaries
Compatibility with Events and Decisions will come later.

UA: The Man and the Hour - Cannot build Settlers. Gain an additional two slots for Great Works for every National Wonder. Every Great Work in a City increases HP by 20.

UU1 - Home Guard - Replaces the Marine. Available earlier, is cheaper and less powerful, and can only be built when you're at war. Gains a combat strength boost near cities you owned at the start of your current wars breaking out, but loses combat strength in foreign land or near other cities, as well as when you are at peace.

UU2 - Smith Gun - Replaces the Anti-Tank Gun. Available earlier, and acts as a cheaper and less powerful Artillery while keeping a bonus against Armoured units. Gains points towards a cultural Great Person on being promoted, and gains a combat bonus against Melee or Gunpowder units while adjacent to a Luxury or Bonus resource.

Peace Theme: Dad's Army title theme
War Theme: Devil's Galop

Includes unique diplomacy responses for the following leaders:
	- Adolf Hitler of Germany (JFD)
	- Various civilizations that have ruled the land of England:
		- Elizabeth (Firaxis)
		- Churchill (JFD)
		- Victoria (JFD)
		- Henry VIII (JFD)
		- William I of Normandy (JFD)
		- Alfred of the Anglo-Saxons (JFD)
		- Offa of Mercia (Greater Europe/More Civilizations)
		- Elizabeth II (Firebug)
		- Oliver Cromwell (ryanjames)
		- Henry V (JFD)
		- Richard I (JFD)
		- Elizabeth II (JFD)
		- Edward I (TranquilSilence)
		- Fate Saber (Vice Virtuoso)
		- Clement Attlee (Chrisy)
		- Pitt the Younger (Chrisy)

Change notes:
6 (6)	(27/06/2024)
	- Redone all of the uniques for this civilization, to make it a bit more interesting.
	- New unit models for the new uniques, including a custom-made Smith Gun model by yours truly.
	- Updated icons, including a new icon for the civilization itself (though the original one is available as a mod option in Walmington_Options.sql).
	- Peace music is the full cut of the Dad's Army theme with lyrics not used in the TV show.
	- Now uses Lua based on VV's code for the unique diplomacy responses.
	- SQL for the game data rather than XML.

5 (1.4) (07/10/2015)
    - Mod support SQL updated, based on JFD's Master Support file
	- Added support for JFD's Mercenaries
	- UniqueDiplomacyUtils updated to version 3

4 (1.3) (05/07/2015)
	- Added support for Sukritact's Modular City Info Stack, JFD's Exploration Continued Expanded, Vicevirtuoso's Wish for the World and YnAEMP v23
	- Now uses my UniqueDiplomacyUtils.lua and includes unique diplomacy responses

3 (1.2) (11/02/2015) - again, should be compatible with previous versions but backup the original version just in case it breaks a savegame.
	- Added compatibility for Cultural Diversity, Piety and Prestige, Civ IV Leader Traits and Map Labels.
	
2 (1.1) (20/12/2014) - should be compatible with previous versions but backup the original version just in case it breaks a savegame.
	- Includes KyteM's Dynamic Cultural Overview.
	- Some slight tweaks in the diplomacy text, including compatibility for Ryoga's Unique Cultural Influence mod.
	- Some optimisations to the Lua code - Mainwaring's trait handler should only activate if he's actually in a game now.
	- Promotions for Home Guard Infantry are handled a bit differently - HGI units start with a "informative" promotion that is always present and the "ignore terrain cost" promotion is applied to the unit based upon the former's existence. This should allow both the unit to keep the "ignore terrain cost in friendly territory" promotion when it is upgraded (which will be implemented in a later update) and allow compatibility with mods that check for a UU's special promotions (I was thinking of Homura's special ability in Vice Virtuoso's PMMM pack specifically here).
	- Compatibility with Ethnic Units (will use the same units as England).

1 (15/06/2014)
	- Initial version

Known issues:
- The ignore terrain bonus for the Home Guard Infantry does not activate/deactivate if the tile it is on changes during a turn. While I can hook to cities being founded or conquered, I couldn't find an event for when a tile changes owners by other means, such as buying, culture expansion, or by the construction of an improvement such as the Citadel. Therefore, the bonus only updates when the unit moves to a new tile by any means or at the start of its owner's turn. For the same reason, the UI will not reflect the addition/removal of the promotion when the unit is being given move orders.

Thanks to:
- Civilization Fanatics Forums and Modiki, which were a great help in figuring out how to do several things in my mod; an additional thanks to Rob (R8EXT) and whoward69;
- whoward69 again for his XML Data Files for Standard Civilizations and for Unit Art Defines, which were very useful in getting my XML started;
- SamBC and J_mie6 for their Icon Atlas templates;
- bernie14 for his Great War Infantry pack (the English infantry was used for the Home Guard Infantry);
- KyteM's Dynamic Cultural Overview, which allows additional Great Works buildings to display in the Culture Overview screen (previously used Leugi's modified CultureOverview.lua);
- Huitzul for his Touhou civilizations (specially, Eientei), from which I used the diplomacy XML as a template, and cicero225 from whose Hidamari civilization I used as an additional reference;
- Tomatekh, whose Garamantes civilization I used as a reference for the invisible trait building;
- Vice Virtuoso, whose Vocaloid civilization I studied to determine how making "trait" buildings would work; and, finally,
- All the people involved in making Dad's Army - without whom we would be missing that great show and I wouldn't have made this. :)

Development notes:
- This includes a modified CultureOverview.lua and CultureOverview.xml in order to show the extra Great Works slots in the Culture Overview screen. While KyteM has said it is compatible with some other mods that modify the Culture Overview panel, I can't guarantee it works with all of them so just bear this in mind.
- I was considering making a complete new soundtrack since there is a compilation of Dad's Army music available, but since you have to buy it, I don't feel right with including that music. I have included some music for diplomacy, however: at peace, the title theme for Dad's Army, and at war, the tune "Devil's Galop", used in Dad's Army and other BBC shows on occasion. For the latter, I did try to use a different tune from the show which I liked better, but I couldn't put together a recording from the show that lacked any speech or the laugh track or any other superfluous noise...
- As this is my first mod and I'm not an expert at this game yet, I'm not sure how balanced this civilization will be. Hopefully it is bug-free, though!
- I've included a comprehensive diplomacy text for Mainwaring. I recorded a lot of his lines for reference, but it was a bit hard to find uses for some good ones due to the different context. Hopefully, though, I've captured the essence of his character in his dialogue, and included a few things that Dad's Army fans will recognise from the show.
- Letting Mainwaring have only one city, like Venice, was one characteristic I debated on but initially I decided against it. Discussion on CivFanatics convinced me to actually try it out. To compensate I increased the gold yield of Swallow's Bank (Mainwaring will need the money to give to city-states, as he can't buy them like Venice!). This is also why he gets extra tourism and Great Work slots, as he'll need all the help he can get in order to win a culture victory! Also, allowing him to purchase in puppetted cities was not intentional - it is a side effect of restricting him to one city.