Commit Graph

3436 Commits

Author SHA1 Message Date
168f984a65 Added Shrine, option for enabling religion (#4291)
* Added option in-game to enable faith (highly discouraged)

* Added shrine for generating Faith

* Made Shrine hidden in games without religion
2021-06-28 14:25:34 +03:00
4add686bcd Fixed bug where on quick game speed, educated elite would yield a great person every turn (#4289) 2021-06-27 22:17:05 +03:00
20db11e73f Added a test to ensure that translations don't crash 2021-06-27 22:16:15 +03:00
ca58cf1694 Translation template fixes (#4287)
* Translation template fixes

* Translation template fixes - patch

* Translation template fixes - another
2021-06-27 21:22:47 +03:00
f7a1d0cdee Suppress policy branch unlock notification when incompatible (#4288) 2021-06-27 21:20:29 +03:00
0f0abad5ea Added Stealth tech and Stealth Bombers (#4271)
* Changed some interception-related uniques

- "Can not be intercepted" -> "Cannot be intercepted"
  This really irked me, and the new version is also how it is written
  in the wiki.
- "Reduces damage taken from interception by 50%" ->
  "Damage taken from interception reduced by [50]%"

* Added "Cannot be carried by [unitFilter] units" unique

* Added an icon for Stealth

* Added Stealth technology and the Stealth Bomber

* Possibly fixed incorrect rounding for interception damage bonus

* Various code style changes

* Made Stealth Bomber interceptable, but with 100% damage reduction
2021-06-27 08:57:11 +03:00
401c10c132 Nicer distribution of policy picker branches (#4285)
* Nicer distribution of policy picker branches

* Nicer distribution of policy picker branches - patch1
2021-06-27 06:37:14 +03:00
784092c56c Added Drama and Poetry tech and replaced Temples with Amphitheaters (#4254)
* Added Drama and Poetry tech

* Moved not-in-ruleset check to building replacement function

* Updated a version number
2021-06-26 23:36:39 +03:00
b628c4238d Fix "National Wonder is being built elsewhere" not displayed (#4284) 2021-06-26 23:35:23 +03:00
91f6b3ba2d Resolved #4283 - clear old legalismState after converting to new format 2021-06-26 23:28:22 +03:00
1c079bcef3 Added Nuclear Submarines & Missile Cruisers, capable of transporting missiles (#4260)
* Implemented Nuclear Submarine and Missile Cruiser units

* Information Era -> Atomic Era; Future Era -> Information Era, conform G&K

* Fixed deprecated uniques still working

* Implemented requested changes
2021-06-26 22:47:27 +03:00
30ac1dae1c Fixed crash when selecting worker (#4273)
When making the changes in workers in #4252, I accidentally overlooked that Constants.workerUnique doesn't have params, and this should be the right way to write it.
2021-06-26 22:44:32 +03:00
8549931360 Fixed main menu crash (#4270)
Fixed a critical bug where the game would crash when any option was
picked in the main menu.

The bug was introduced by 823e6ffc2a.
2021-06-26 22:43:50 +03:00
823e6ffc2a Faster 'false' results for isStats, as proposed by @SomeTroglodyte in #4259 2021-06-25 18:33:45 +03:00
e6850b857a Generalized building of improvements (#4252)
* Generalized building of improvements

* Readded support for the deprecated unique "Can build improvements on tiles"

* Small code quality changes

* Implemented requested chagnes
2021-06-25 16:35:15 +03:00
06b2e7da2f Promotion picker keeps vertical scroll pos on promote or resize (#4247)
* Promotion picker keeps vertical scroll pos on promote or resize

* Promotion picker keeps vertical scroll - without parameter
2021-06-24 21:37:50 +03:00
af0cd0c9df Implements the Telecommunications tech (v2) (#4249)
* Added the addPopulation() and setPopulation() functions to add population to cities and automatically reassign them

* Added the Telecommunications tech

* Added the CN tower

* Implemented Bomb Shelter

* Added icons for new buildings

* Implemented requsted changes
2021-06-24 19:07:33 +03:00
111d11b9b2 Added Advanced Ballistics Tech, Atomic Bomb Unit, Updated how nukes work (#4211)
* Improved nukes

* Fixed build error (probably)

* Implemented reocmmended changes, fixed some other stuff, the usual

* Implemented requested changes

* Fixed Tech connections

* Fixed nuclear missiles and guided missiles being interceptable

* Missiles are no longer air units. This is, as they cannot be stationed on carriers and cannot be intercepted.
2021-06-24 16:03:59 +03:00
1c42e1e730 Fixes bug where in some cases building improvements would increase the base yield of the tile (#4217)
* Fixes bug where in some cases building improvements would increase the base yield of the tile

* Removed unncessary test

* Implemented requested changes

* Implemented requested changes

* Fixed build errors
2021-06-24 15:55:41 +03:00
b43257cea8 Fixes #4232 (#4245) 2021-06-24 15:54:25 +03:00
208ad1aa27 Resolves #3800 in a more generic way 2021-06-23 18:20:56 +03:00
fc6eda364e Resolved #4200 - Cities in resistance cannot bombard 2021-06-23 10:45:49 +03:00
74e3b67afe 3.15.4 2021-06-23 10:29:51 +03:00
ba505dcfdb Deprecated 'download map' - map sharing should be done via Mods 2021-06-23 10:13:11 +03:00
e10c52efc1 Fixed open terrain bonus working in rough terrain (#4219)
* Fixed open terrain bonus working in rough terrain

Fixed #4139 - The open terrain combat bonus no longer works in rough
terrain.

Deprecated "Open terrain" and "Rough terrain" uniques and undeprecated
"rough" property of terrains.

* Minor simplification

* Replaced "rough" with "Rough terrain" unique

* Empty commit to re-run the build checks
2021-06-23 09:41:55 +03:00
300eb6f726 Fixed captured units not tp-ing out of liberated cities (#4239) 2021-06-23 09:40:55 +03:00
cf9e00c589 Fixed naval units not tp-ing out of razed cities (#4238) 2021-06-23 09:40:32 +03:00
7f88844d82 Created Patronage policy branch (#4186)
* Created Patronage policy branch -- draft

* Patronage branch is now functional

* Added images for the policies

* Temporarily bandaged backwards compatability, added incompatabilities

* Implemented recommended changes

* Fixed acquirement of 'patronage complete' not being saved

* Reverted change I was unhappy with

* Implemented requested changes

* Fixed build errors

* Implemented recommended changes

* City States can now give any great person, including unique ones, conform Ravignirs tests
2021-06-22 17:25:29 +03:00
a025660fe0 Split off all individual OverviewScreen panes (#4184)
* Spliff off all individual OverviewScreen panes

* Spliff off all individual OverviewScreen panes - remove comment

* Spliff off all individual OverviewScreen panes - consistent file endings
2021-06-21 18:54:48 +03:00
4586e44ba6 Fixed a bug where excess food would not be converted to production for settlers (#4221) 2021-06-21 11:00:47 +03:00
837d78db21 3.15.3 2021-06-20 22:00:59 +03:00
990074e9b0 Resolved #4209 - AI city-founding no longer plays music 2021-06-20 21:51:22 +03:00
3d1836a081 Created Order branch with G&K policies (#4158)
* Created Order branch with G&K policies

* Implemented requested changes
2021-06-20 21:39:14 +03:00
bd850683e1 Fixes bug where coastal buildings cannot be built even if the city is coastal (#4197) 2021-06-19 21:46:20 +03:00
05e6609b25 Change improvement picker key indicators to tooltip (#4174) 2021-06-19 21:43:04 +03:00
8f26a77b2d Fixed an issue where mods with either the 'patronage' or 'entrepreneurschip' policy would crash upon taking it (#4192) 2021-06-19 21:41:52 +03:00
3686366156 Fixed Great Improvement bonus not working (#4193) 2021-06-19 21:41:25 +03:00
9eb2d1fffb Stop AI from pillaging their own tiles. Fixes #4203 (#4204) 2021-06-19 21:40:46 +03:00
45a7b5da9c Fixed autocracy complete bonus not continuing after updating to 3.15.2 (#4195)
* Fixed autocracy complete bonus not continuing after updating to 3.15.2

* Forgot a line
2021-06-19 21:40:06 +03:00
772531a35f Translation no longer breaks on multiple uses of the same parameter in a unique 2021-06-18 16:54:09 +03:00
655923f4cf Great improvement bonus provided properly 2021-06-18 14:34:15 +03:00
6e7e05248d Fixed crash caused by #4142 2021-06-18 10:40:54 +03:00
d1c10c6d47 Updated Autocracy branch to G&K (#4149)
* Updated Autocracy branch to G&K

* Fxied a typo

* Implemented potentially requested changes

* Implemented requested changes

Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
2021-06-18 09:46:30 +03:00
1d18c418e7 Updated Freedom branch to G&K (#4142)
* Updated Freedom branch to G&K

* Hotfix for autocracy policy that I accidentally added already

* Implemented recommended changes (mostly)

* Implemented recommended changes

* Implemented recommended changes better
2021-06-18 09:42:48 +03:00
87810b8ce8 Wake up units when enemy sighted or displaced or attacked (#4145)
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
2021-06-18 09:40:07 +03:00
fc7e07aa7f Resolved #4170 - updated deprecated Polynesian unique 2021-06-17 19:57:52 +03:00
67820e8870 Unitfilter now accepts multiple filters (see wiki/uniques for details) 2021-06-17 19:49:20 +03:00
591fd9c138 Fixed honor policy not adding bonus vs barbarians (#4160)
* Fixed honor policy not adding bonus vs barbarians

* Implemented requested changes
2021-06-16 18:49:27 +03:00
4fc2364cb0 Allow sight bonus to specifically target land military unit (#4163) 2021-06-16 11:13:21 +03:00
6a713deeea Fixed units not teleporting out of sold city tiles (#4161)
Fixed a bug where units were not immediately teleported out of the
territory of a city when the owner of the city accepted a trade to sell
it in their turn.

This bug also used to crash the game if one of the units that were not
teleported out was selected and they were able to reach a tile with a
same-type unit of their own civ that could also reach them, since the
unit swapping eligibility checking code would try to remove the unit and
then place them back on an illegal tile.
2021-06-16 11:12:52 +03:00