JackRainy
66ac364045
Center the research screen ( #1887 )
...
* Correct list of the researchable techs
* Center on the researchable technology
2020-02-09 20:16:34 +02:00
JackRainy
3f27bdb19e
Diplomacy screen: Secondary relationships line is added ( #1880 )
2020-02-08 21:58:03 +02:00
Yair Morgenstern
e2c435d36f
Fixed bug where air units in transports couldn't upgrade
2020-02-08 21:13:03 +02:00
lyrjie
096e1c2beb
Tied the unit upkeep scaling to game speed ( #1870 )
...
* Tied the unit upkeep scaling to game speed
* Refactor: Modifier and TurnLimit are now fields
* Turn limit will be derived from the GameSpeed.modifier and base game duration
2020-02-08 20:51:45 +02:00
Federico Luongo
edf0294dfd
Mongolia ( #1855 )
...
* Mongolia
* Translation & Atlas
* Remove debug option
* Remove erroneous import
* Promotions.addXP
* Khan heals 15 HP
* XP bonus fix
* Added 'Mongol Terror' which is the term used for the mongolian combat bonus
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
2020-02-08 20:51:21 +02:00
JackRainy
33de01961d
Improvements to the Diplomacy screen ( #1851 )
...
* Diplomacy overview window: Using full screen
* Different shades of friendship
* Show/hide the relations for the picked civilization
* Minor refactoring
* Optimized handling of lines visibility
2020-02-08 20:46:42 +02:00
Yair Morgenstern
f8f44320ae
Resolved #1859 - skip defeated players' turns in multiplayer
2020-02-06 22:51:26 +02:00
Yair Morgenstern
3d18a2aa0a
Automated workers now build unique improvements
2020-02-06 22:21:58 +02:00
Yair Morgenstern
20a7ff7c76
Organized 'explore' actions
2020-02-05 23:30:37 +02:00
Federico Luongo
6fc3b2fd0e
Bugfix: Request rendering on New Game creation and Game Save ( #1857 )
...
* Request rendering on New Game creation and Game Save
* setWorldScreen issues a rendering request
2020-02-05 23:04:52 +02:00
Yair Morgenstern
193ebe0ccd
Resolved #1852 - buildings requiring an improved resource now accept resources with great improvements
2020-02-05 22:21:57 +02:00
Yair Morgenstern
cb6ca058f3
Solved the 'infinite warmongering penalty' bug
2020-02-05 20:40:05 +02:00
Yair Morgenstern
c4a2a3055e
Resolved #1844 - improved worker automation
2020-02-05 00:01:53 +02:00
Yair Morgenstern
1a2e69f4ae
Resolved #1847 - Civs defeated by a nuke are now properly destroyed
2020-02-04 23:47:02 +02:00
Federico Luongo
d43afe38e6
Rectangular maps, maps generator, bugfixes (part 1) ( #1843 )
...
* TileMap Rectangular constructor
* HexMath utilities
* Perlin gradients changed & utility function to combine octaves
* NewGame & MapParameters UI
* MapParameters & MapGenerator refactor
* Advanced Map Parameters UI
* Fix Hide advanced settings
2020-02-04 23:30:35 +02:00
Yair Morgenstern
eb1ce0f6cb
Resolved #1457 - no AI trades are 'automatically accepted', they all require an active decision of the proposed side and will only happen on their turn
2020-02-04 16:13:37 +02:00
Yair Morgenstern
f6b8afc952
When disbanding carriers, transported air units move to nearby tiles if they can. If thy can't then they're disbanded.
2020-02-04 09:23:36 +02:00
Yair Morgenstern
7ac515ad6e
If you're at war with someone, then 'please don't settle cities near us' is irrelevant
2020-02-04 09:20:45 +02:00
Yair Morgenstern
748168398e
Resolved #1839 - Civs no longer declare war and offer things in the same turn
2020-02-04 09:10:17 +02:00
Yair Morgenstern
df68ff75f8
Resolved #1827 - can no longer see other (current) player's city production in multiplayer
2020-02-04 09:06:41 +02:00
Yair Morgenstern
0ace2e1c7a
forgot this little thing
2020-02-03 16:48:32 +02:00
Yair Morgenstern
848637c78c
Better top-down trickling of information instead of relying on UncivGame.Current info
2020-02-03 16:41:42 +02:00
Yair Morgenstern
0f26671bcf
Resolved #1835 - game no longer crashes when losing alliance with a city-state due to it being captured
2020-02-03 16:24:10 +02:00
Yair Morgenstern
24c3bdc564
Fixed crashes caused by 'healing on friendly tile' checks to unmet civs for barbarians
2020-02-03 16:13:32 +02:00
Yair Morgenstern
ef19775545
More translation related stuff that I forgot =/
2020-02-02 18:00:08 +02:00
JackRainy
6df11f0a7f
Fix: Capturing the cities must not improve relations ( #1828 )
2020-02-02 16:07:15 +02:00
JackRainy
db5cc82ec7
"Sleep until healed" functionality ( #1821 )
...
* "Sleep until healed" functionality
* Unit test for actions translations is added
* "Fortify until healed" functionality
* Refactoring
2020-02-02 09:55:10 +02:00
ltrcao
0914750489
Show name when icon is tapped in resource overview in a label above the icon. ( #1817 )
2020-02-01 20:31:12 +02:00
Yair Morgenstern
261c3d6ced
Resolved #1820 - Fixed a crashing bug with the AI trying to ally with defeated city states, as well as many other minor bugs
...
All caused by the fact that getKnownCivs didn't filter out defeated civs
Also some minor code cleanup
2020-02-01 20:26:27 +02:00
Yair Morgenstern
d7310aa90a
typo fix withing -> within
2020-01-31 14:17:38 +02:00
lyrjie
58fa5d6dd5
Debug option: simulate game until certain turn ( #1812 )
2020-01-31 14:10:32 +02:00
JackRainy
7577655264
Nuclear missile is able to target any tile within the range ( #1801 )
...
* Minor refactoring
* Refactoring: special function Battle.nuke() for missiles
* Special BattleTable.simulateNuke() function for missiles
* Refactoring: BugReport popup moved into a separate function
* Refactoring: call defaults().pad once in the init()
* Refactoring: not using "syntax sugar"
2020-01-31 14:09:55 +02:00
lyrjie
0888e0a24d
Rewritten the MapUnit.rankTileForHealing() ( #1811 )
2020-01-31 14:04:44 +02:00
lyrjie
3362c2128c
Fix: notification when city-states advance to a new era ( #1813 )
...
* Fix: notification when city-states advance to a new era
* Replaced forEach with for, according with code standards
2020-01-31 14:03:21 +02:00
JackRainy
a728da6a2a
Fix: do not trim the text in the statistics screen ( #1810 )
2020-01-31 07:50:51 +02:00
Yair Morgenstern
3214bfbbfa
Translations update ( #1809 )
...
* Update Turkish.properties (#1799 )
* Update German.properties (#1807 )
* Improved translations for Ukrainian and russian languages (#1802 )
* Chinese translation update. delete some old code about "Scientific Revolution" because its effort has changed. (#1805 )
Co-authored-by: lyrjie <lyrjie@gmail.com>
Co-authored-by: rayray61 <54810477+rayray61@users.noreply.github.com>
Co-authored-by: ozolotl <ozolotl@users.noreply.github.com>
Co-authored-by: JackRainy <JackRainy@users.noreply.github.com>
Co-authored-by: lishaoxia1985 <49801619+lishaoxia1985@users.noreply.github.com>
Co-authored-by: lyrjie <lyrjie@gmail.com>
2020-01-30 20:33:19 +02:00
Yair Morgenstern
1119968f59
Resolved #1808 - Disabled declaration of friendship
2020-01-30 20:16:05 +02:00
Yair Morgenstern
c2eac14b3a
Solved ANR when waiting for the list of maps
2020-01-30 19:40:01 +02:00
Yair Morgenstern
375c39c61e
Fixed crash in city-state influence notification
2020-01-30 19:17:12 +02:00
Yair Morgenstern
b29813b389
Improved queue functionality readability
2020-01-29 22:25:21 +02:00
lyrjie
5e264a7e62
City state influence lower limit ( #1798 )
2020-01-28 13:01:11 +02:00
Federico Luongo
ea29f91519
Fix buy current construction ( #1794 )
2020-01-27 23:59:40 +02:00
Teague Lander
ac8a1f144b
Add specialist slot tooltip for buildings that provide them ( #1776 )
...
* Add specialist slot tooltip for buildings that provide them
- #1762
* Remove duplicate translations
2020-01-27 08:33:10 +02:00
Timo T
d3d8933bbf
Fix popups ( #1784 )
...
* Fix community popup not opening
Fixes a regression in b95844d2f4
. This commit refactored popups and it was thought that the "screen has popup -> don't show popup" was correct for all popups. That assumption was incorrect, the community popup was not opening anymore as well as the game menu popups (editor and normal game) could not be opened over other popups anymore.
This commit fixes that by introducing a queue for popups. When you try to open a popup and one is already open, the popup you tried to open only gets shown when the popup that was already open is closed. This can be manually overridden with a calling the `open` method with a `(force = true)` argument.
Also, all popups are now and should be opened and closed only with their `open()` and `close()` methods to ensure this behavior works.
* Refactor: Remove all open() methods from popup constructors
While it may be a little less to type, it should be up to the caller to decide to open a popup over other popups (via the `force = true` parameter) or not. This is not possible if a popup is opened automatically within its constructor, which is why that is the wrong place to open the popup-
2020-01-27 08:32:16 +02:00
Yair Morgenstern
de1be0f6ee
Forgot to test run =/ welp
2020-01-27 00:19:52 +02:00
Yair Morgenstern
cc764426e5
Added Marathon speed per user request
2020-01-27 00:11:28 +02:00
Yair Morgenstern
f1fb8aea18
Added Marathon speed per user request
2020-01-27 00:11:01 +02:00
Yair Morgenstern
daa3c8fcec
Resolved #1782 - air units are no longer sent to join non-transporting units exiting the city
...
Transportation logic cleanup
2020-01-27 00:04:45 +02:00
ltrcao
563e1f2527
Added quick access to diplomacy screen with other civilizations by tapping on their city buttons. ( #1774 )
...
Implemented with @Azzurite's suggestions to match the button's behavior with the player's own city buttons:
* First tap slides the city button down so that the underlying tile is visible.
* Second tap on the button presents the diplomacy screen focused on the city's owner civ.
2020-01-26 21:40:38 +02:00
Yair Morgenstern
7339c43c0d
CivilizationInfo.getUnits is now a sequence, for better performance throughout
2020-01-26 21:22:58 +02:00
Federico Luongo
66b5263509
Fix Latitude ( #1781 )
...
* Fix Latitude
* Code de-duplication
2020-01-26 21:00:39 +02:00
Yair Morgenstern
67bc2231b9
Fixed anti air units intercept range
2020-01-26 20:59:16 +02:00
Teague Lander
30a50a8c6b
Add missing Forge and Seaport production bonus uniques ( #1773 )
...
* Add missing Forge and Seaport production bonus uniques
Parital fix for #1762
- Forge gets "+15% production of land units"
- Seaport gets "+15% production of naval units"
* Adds missing translation "+15% production of land units"
2020-01-26 20:17:26 +02:00
Yair Morgenstern
5a6b5e5db3
Simplified research agreement logic
2020-01-25 21:21:06 +02:00
Federico Luongo
925f3267ad
Discrete rendering ( #1768 )
...
* Re-introduced Discrete Rendering as an opt-in feature
* Persistent settings change
2020-01-25 20:56:48 +02:00
Federico Luongo
59e815c30e
Fix turns to construction ( #1767 )
...
Fix #1759 : the stored production is used only for the first construction of its kind in the construction queue
2020-01-25 19:50:43 +02:00
Marerjh
8469956f91
Update Ukrainian.properties ( #1761 )
...
* Update Ukrainian.properties
* Update template.properties
* Update Ukrainian.properties
* Update ConstructionsTable.kt
* Update CityInfoTable.kt
* Update Ukrainian.properties
* Update Ukrainian.properties
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
2020-01-25 19:47:38 +02:00
JackRainy
e0a00eb9a5
Implemented aircraft carrier "Flight Deck" and "Armor Plating" promotions ( #1754 )
...
* Implemented aircraft carrier "Flight Deck" and "Armor Plating" promotions
* Template for the translation strings
* New icons are added
Co-authored-by: ltrcao <ltrcao@users.noreply.github.com>
2020-01-25 19:43:53 +02:00
lyrjie
b21fdc6c37
Fix: being able to acquire another player's tiles in multiplayer ( #1766 )
2020-01-25 19:40:47 +02:00
Yair Morgenstern
e9a6fd86f9
Added 'mountain within 2 tiles' restriction to Machu Picchu as per #1762
2020-01-23 23:44:25 +02:00
rayray61
5889cfd182
sorry for not informing you enough ( #1764 )
...
I didn't think you would add them from discord they were just example (I forgot letter Ğ ğ )
2020-01-23 22:15:32 +02:00
Yair Morgenstern
c29ccadc60
Exploring units no longer auto-enter city states
2020-01-23 20:50:53 +02:00
Yair Morgenstern
e419443eb6
Added missing Turkish letters
2020-01-23 20:36:56 +02:00
lishaoxia1985
42e16ec80a
Now we and AI can sign research agreement. ( #1671 )
2020-01-23 20:12:24 +02:00
Yair Morgenstern
ce50828cdb
3.5.5-patch1
2020-01-22 19:09:16 +02:00
Federico Luongo
32e3cb2112
Hotfix Legalism on foundation ( #1747 )
2020-01-22 19:06:45 +02:00
lyrjie
9e0ed36bba
Map editor menu ( #1739 )
...
* Refactor: map size is enum
* Feature: map editor menu
* Cleanup
* Added "Empty" map generation type for the map editor
2020-01-22 13:10:39 +02:00
JackRainy
617eea92cf
Refactoring of isTransported
flag for air units ( #1742 )
...
* Refactoring of `isTransported` flag for air units
* Minor refactoring: canAirUnitMoveTo as a separate function
* Redundant check is removed
2020-01-22 13:09:36 +02:00
Yair Morgenstern
4accfb594f
Better specialist allocation table placement
2020-01-21 23:27:56 +02:00
Yair Morgenstern
1633394164
Resolved #1696
...
Specialist allocation
- Is now in a separate class
- Is immediately viewable on the City screen
2020-01-21 23:16:44 +02:00
Yair Morgenstern
7ea6fc2551
Added 4-way tile images (base,feature,improvement,resource) by The Bucketeer
...
Fixed some issues with existing tile images
2020-01-21 21:02:11 +02:00
lyrjie
73fc55eb0c
Fix: Oligarchy ( #1740 )
...
* Fix: Oligarchy applying to civilian, water and air units
* Fix: moving unit into/out of city doesn't trigger income refresh
2020-01-21 19:48:52 +02:00
JackRainy
1441dd49f5
Aircraft carrier is added ( #1731 )
...
* Implemented aircraft carrier by @ltrcao in PR #1723
* New icon for the Carrier unit
2020-01-20 22:53:59 +02:00
Timo T
b95844d2f4
Refactor: Streamline popups ( #1735 )
...
First, `PopupTable` and all extending classes had the `Table` at the end removed. Second, the popup base classes `Popup(Table)` and `YesNoPopup(Table)` were moved from the worldscreen to the util package.
Third: The popups were inconsistent. In CameraStageBaseScreen, there was a check with 3 parts, one if any tutorial was showing, second if any child is a TradePopup, and third if the boolean field "hasPopupOpen" is true.
However, all of these checks were, in the end, `Popup(Table)`s on the screen. So, this check has simply been changed to check if any child is a `Popup(Table)`. All the other checks and their relating code could simply be removed.
2020-01-20 19:13:21 +02:00
Federico Luongo
0a5aefcdd9
Fix Legalism Policy ( #1724 )
...
Closes #1712
2020-01-19 18:43:52 +02:00
Federico Luongo
fd765fc442
Hotfix empty entry in construction queue ( #1725 )
2020-01-19 18:41:25 +02:00
lyrjie
762af74b61
Barbarians don't move/attack on the turn of their spawning ( #1719 )
...
* Barbarians don't move/attack on the turn of their spawning
* Revert "Barbarians don't move/attack on the turn of their spawning"
This reverts commit b088fb8c
* Better implementation
Co-authored-by: dumichno <57294813+dumichno@users.noreply.github.com>
2020-01-19 18:40:44 +02:00
lyrjie
7805f90dab
Fix: ships being teleported into landlocked cities ( #1718 )
...
* Fix: ships being teleported into landlocked cities
* Proposal: extend the city teleport to all owned tiles
* Utilizing the existing method
Co-authored-by: dumichno <57294813+dumichno@users.noreply.github.com>
2020-01-18 22:14:29 +02:00
Yair Morgenstern
014220c480
Merge tag '3.5.3-patch1'
2020-01-18 21:58:09 +02:00
lyrjie
8efe21ea57
Fix: barbarians pillaging ancient ruins ( #1720 )
...
Co-authored-by: dumichno <57294813+dumichno@users.noreply.github.com>
2020-01-18 21:56:22 +02:00
Yair Morgenstern
66637637f4
findFurthestTile no longer crashes when the unit has no tiles it can move to
2020-01-18 21:20:28 +02:00
Yair Morgenstern
02def2ffa9
Resource+Improvement is go!
...
Added resource-specific plantations by The Bucketeer
2020-01-17 15:07:47 +02:00
lyrjie
d3e88906d6
Fix: starting units being able to spawn on Ancient Ruins/Barbarian encampments ( #1691 )
...
* Fix: starting units being able to spawn on Ancient Ruins/Barbarian encampments
* Added doc and commentary
2020-01-16 12:06:43 +02:00
Yair Morgenstern
c1c6f93f6d
Ancient ruins are no longer save-scummable
2020-01-15 22:21:00 +02:00
Yair Morgenstern
b73e7100c0
Resolved #1700 - As per original civ, you no longer start with a scout.
2020-01-15 22:11:05 +02:00
lyrjie
ad1a57dd02
Map reveal after singleplayer defeat ( #1681 )
...
* Added map reveal when the player is defeated in singleplayer
* Added victory (actually defeat) screen when the player is defeated
* Moved the victory screen navigation to an appropriate place
* Moved the map reveal logic to WorldMapHolder
* Tutorials and Diplomacy button are hidden after the defeat
2020-01-15 19:56:01 +02:00
lyrjie
0a12062c70
Fix: "Pick construction" tutorial never completes ( #1693 )
2020-01-14 15:28:18 +02:00
lyrjie
81258297d5
Fix: ability to buy the same building multiple times ( #1692 )
2020-01-14 15:21:12 +02:00
lyrjie
2d0aec5a26
Fix: idle units not being properly selected after settling a city ( #1685 )
...
Closes #1682
2020-01-13 13:29:38 +02:00
Duan Tao
72df6869a3
Make sure all building be built before producting science. ( #1678 )
2020-01-13 12:06:19 +02:00
Yair Morgenstern
9a426318ba
Proper destruction notification for city states
...
Added Fur resource image
2020-01-13 00:09:09 +02:00
Federico Luongo
5e003cfd64
Fix Map Editor Lag ( #1670 )
...
In painting mode, only the last drawn tiles are updated.
2020-01-12 23:29:26 +02:00
JackRainy
de7a369131
Fix of the Regex expression to heal after the battle ( #1676 )
2020-01-12 23:24:00 +02:00
Yair Morgenstern
08218b954e
healUnit and tryPillageImprovement in BarbarianAutomation use their counterparts from UnitAutomation, because they're basically exactly the same
2020-01-12 23:21:34 +02:00
JackRainy
8a327fa7be
Fix for the "Back button can't end Unciv ( #1513 )" ( #1661 )
...
* Callback to exit the game by 'Back' button
* Prompt dialog for the game exit
* Additional strings for translations are generated
* Do not show exit prompt dialog twice
2020-01-12 23:05:49 +02:00
Yair Morgenstern
ca59dc4e1f
Removed redundant "else"s for less indentation and 'happy pathing'
2020-01-12 20:52:23 +02:00
Vladimir Tanakov
725edc2a31
Better barbarian automation ( #1560 )
2020-01-12 20:48:34 +02:00
JackRainy
109b60db2c
Disable France culture boost after Steam Power research ( #1663 )
2020-01-11 22:59:45 +02:00
r3versi
51ecb0e99d
Legalism grants Culture Buildings asap ( #1658 )
...
* Legalism grants Culture Buildings asap
* Buildings granted by Legalism cost no maintenance
2020-01-11 22:52:58 +02:00
r3versi
a1b03849ec
Fix city screen ( #1657 )
...
* Last CityScreen fix
* Atlas & Translations
2020-01-11 22:46:17 +02:00