Commit Graph

2934 Commits

Author SHA1 Message Date
86c6624f8e Resolved #3326 - Settling a city removes the improvement in progress 2020-11-09 21:26:26 +02:00
5e116867e6 Resolved #3323 - improvement uniques are no longer added twice 2020-11-08 23:40:10 +02:00
e3fc967216 3.11.10-patch1 2020-11-08 23:39:05 +02:00
965b865422 Changed the tileGroup improvement image conparison from strings to lists, to save both time and (more importantly) string concating 2020-11-06 11:45:05 +02:00
4f344b65f8 We now remove resources and improvements that are not in the ruleset from the map when loading the game 2020-11-06 11:43:49 +02:00
1f1a2fe7bc Mod repositories where the main branch is not "master" are not shown in the UI, since we can't download them 2020-11-05 21:46:04 +02:00
4e0c88cc20 AI no longer tries to construct work boats that can't reach their intended destination 2020-11-05 20:02:02 +02:00
d0dce25590 Fixed SetUserID (#3319)
SetUserID couldn't be used in main menu
2020-11-04 21:59:31 +02:00
ff8221de2d Diplomatic penalty of stealing lands decreases by time. (#3318) 2020-11-04 10:25:55 +02:00
65524cb7dd Removed exitEvent from the UncivGameParameters, since Gdx.app.exit() does the same thing :) 2020-11-04 00:09:11 +02:00
315a55f972 Resolved #3317 - mod management screen displays properly again
3.11.9-patch2
2020-11-03 23:23:02 +02:00
b5c9fb79bf FIx bug Carrier-based aircraft not healing (#3316)
With reference to issue #3307

I think that aircraft on aircraft carriers were being treated at land units at sea.

I have added the check to test whether they are being transported so that they should now heal whilst on aircraft carriers.
2020-11-03 20:10:54 +02:00
d240c12292 Merge branch 'master' of https://github.com/yairm210/Unciv 2020-11-03 19:17:34 +02:00
a92d35eba1 3.11.9-patch1
Fixed silly crash from test code that shouldn't have been there...
2020-11-03 19:16:51 +02:00
23cab0d50c Polynesia's unique "+[10]% Strength if within [2] tiles of a [Moai]" was not working correctly. The matchesUniqueFilter function didn't check for improvement on the tile. This was corrected and now Polynesia's unique works correctly. Any other improvement besides Moai will also work. (#3315) 2020-11-03 19:12:34 +02:00
f957dee357 Can no longer see other players' IDs in a multiplayer game through the new game screen
Moved the building mod check to all mods, not only ruleset mods
2020-11-02 23:00:45 +02:00
fb3048442c Added mod check for upgrading to a unit with no required tech 2020-11-02 22:21:54 +02:00
cea8bdf12c Added mod check for unit promotions 2020-11-02 22:02:22 +02:00
b495398c0e Tile editor can handle resources that don't naturally appear on any terrain 2020-11-02 21:49:42 +02:00
1568ce90da Updated to latest LibGDX 2020-11-02 21:48:43 +02:00
87b0af6c1c AI can no longer raze capital cities 2020-11-02 20:21:44 +02:00
da5935e5c8 Stats unique can no longer crash badly defined mods 2020-11-01 19:37:29 +02:00
88ac6330dc -"Unable to capture cities" unique prevents the unit from conquering/capturing a city. (#3309)
-Units with "All tiles costs 1" unique now spend all movement points when embarking.

Technically, in CIV 5, helicopters do not embark or spend all movement units when moving to water, if embarkation (Optics) isn't researched.

IMO, though, it is so unlikely that someone will have helicopters researched but not embarkation, that I don't think it is worth editing the code for this fringe case.
2020-10-30 10:01:27 +02:00
247350d6a1 Revert "-Terracotta Army, Alhambra, Hanse, Leaning Tower of Pisa, Neuschwanstein, and Hubble Space Telescope are no longer buildable or displayed in the pedia since they are not part of vanilla Civ 5. (#3300)" (#3301)
This reverts commit 49cdf09b44.
2020-10-27 00:22:02 +02:00
49cdf09b44 -Terracotta Army, Alhambra, Hanse, Leaning Tower of Pisa, Neuschwanstein, and Hubble Space Telescope are no longer buildable or displayed in the pedia since they are not part of vanilla Civ 5. (#3300)
Their entries were kept in the json files so as to not break pre-existing save files.

-Units and buildings that are unbuildable are not shown in the pedia or tech picker as being unlockable by tech
2020-10-27 00:20:48 +02:00
b2c6cc59b7 All stat-based uniques are parsed EXACTLY once, for performance reasons and to avoid ANRs 2020-10-26 23:38:29 +02:00
a3bed178d0 Avoided another rare crash 2020-10-26 23:37:44 +02:00
250d7debb5 Avoided more badly-defined-mod crashes 2020-10-26 23:20:16 +02:00
64fc57e6d2 Helicopter Gunship uniques (#3294)
* Preparation for Helicopter unit

-"All tiles costs 1" unique makes every tile cost 1. Used by Helicopter in CIV 5.

-"Can pass through impassable tiles" unique allows unit to pass through any tile. Used by Helicopter in CIV 5. Does not let units cross ocean if they couldn't already, just terrain that is considered "impassable"

-Mountains now do 50 damage to units that end turn on it. In civ 5 and its expansion this is what happens to any unit that is able to pass mountains.
This is "hard coded" for now. Also added the notification text to template.properties

* mountains do not give sight bonus when on them

* Revert "mountains do not give sight bonus when on them"

This reverts commit 83ad3df5d4.
2020-10-26 20:28:44 +02:00
3713923caf Added mods to crash report, many crashes are caused by incorrectly defined mods 2020-10-24 23:16:16 +03:00
895ed528af Resolved #3285 - added a notification when cities are no longer in resistance 2020-10-24 22:43:04 +03:00
93aa06bc99 terrain.occursOn is now an arrayList - helps with definition checking and generally simplifies things 2020-10-24 22:38:44 +03:00
c85b51474c Can no longer start a new game with an incorrectly defined mod! :) 2020-10-24 22:38:19 +03:00
2a82482d05 Fixed some more silly bugs caused by badly configured mods 2020-10-24 22:21:09 +03:00
02d2e29700 More tile configurations are enabled (e.g. "baseTile+resource+improvement") 2020-10-24 22:10:23 +03:00
a9660bba44 Player is informed if Unstable mods are added to a game - and it no longer crashes 2020-10-24 22:04:06 +03:00
b867e829a4 ResposePopup -> ToastPopup rename 2020-10-24 22:03:25 +03:00
8dde23aa38 3.11.6 2020-10-21 19:01:07 +03:00
c7e0b57a5d Changed all prebuilt font characters to single-char characters - this is in the vague hope that it will solve the Mystery of the Disappearing C's 2020-10-20 19:41:36 +03:00
940fe07a0a Added culture and science colors to resources 2020-10-20 19:26:37 +03:00
c7b1121fe4 Resolved another crash caused by incorrect ruleset mod definitions 2020-10-19 23:24:53 +03:00
bd810d3d0c Split civilopedia "buildings" category into "buildings" and "wonders" 2020-10-19 23:21:35 +03:00
4d3f16c64e Added "locate mod errors" button in the options menu for discovering broken links in base ruleset mods 2020-10-19 23:07:01 +03:00
3ada446df4 Resolved #3274 - empty maps start with ocean tiles 2020-10-19 22:37:18 +03:00
d75541e5b4 Consolidated unit kill bonus uniques (#3267)
* -Consolidated unit kill bonus uniques.
Syntax is "Earn []% of [] opponent's [] as [] for kills" for both units and nations.

Ex.
"Earn [10]% of [military] opponent's [Cost] as [Gold] for kills"
or
"Earn [100]% of [Barbarians] opponent's [Strength] as [Culture] for kills"

Only Culture and Gold are supported as rewards now, but it can be expanded later. The pictish warrior unit in G&K gets 50% of opponent's strength as faith, so we can have the function edited to allow for faith when we get to that point.
Only Strength or Cost is supported as what the reward amount is based on.

-Policies.json and Nations.json were changed to fit the new syntax. The old syntax still works for mods for now.

-matchesCategory MapUnit function can now check if the unit is a barbarian

* -Compatibility for depecrated unit kill bonus uniques done more efficiently and counted only once (since prior to this PR, it was also counted only once)

* -Changed it to "Barbarian" instead of "Barbarians", added "Barbarian" to template.properties

* space after translation template
2020-10-18 18:10:26 +03:00
8ad35df0f7 Merge branch 'master' of https://github.com/yairm210/Unciv 2020-10-17 22:16:14 +03:00
7c8aab1ff0 Mod management screen is not generally available :) 2020-10-17 22:15:49 +03:00
a24335abea Diplomacy Screen right table is scrollable (#3260)
* Diplomacy Screen right table is scrollable

* Scrollable city-state table

* Resized to fit lower resolution

* Fix right table width
2020-10-17 22:07:48 +03:00
a6642cb536 Resolved #3265 - added keyboard shortcuts to tile improvements 2020-10-17 22:06:50 +03:00
8c5e0d1889 Fix for barbarian quest (#3271)
* Coordinates equality is checked between integers, instead of floats
2020-10-17 21:34:01 +03:00