Commit Graph

2964 Commits

Author SHA1 Message Date
101fa9903e Fixed unit icons not getting deleted when unit exits tile 2020-11-23 19:20:23 +02:00
eb7a064019 Resolved #3335 - Removed all unecessary spaces and colons 2020-11-22 22:48:38 +02:00
3d1e1d7936 Removed some confusing and pointless ": " at the end of translations - #3335 2020-11-22 22:41:12 +02:00
6d7d698dad Prepacked flag, unit and building images in altas files, so they'll be readable from the jar files 2020-11-22 21:47:46 +02:00
038ac1e48b Units/buildings with "Will not be displayed in Civilopedia" now will not show in tech tree (#3359)
* adds unique "Will not be displayed in Tech Tree"

* Changed "Will not be displayed in Tech Tree" to "Will not be displayed in Civilopedia", avoiding bloat
2020-11-22 20:52:50 +02:00
072226ff9a Added "All [] Cities get a free []" unique. (#3352)
* Added "All [] Cities get a free []" unique.

The first parameter is for city type. Currently "new" and "coastal" are supported.
"new" matches every city and "coastal" matches cities on a coastal tile.
"new" and "coastal" were added to template.properties for translation.

Upon city founding, the second parameter building is added to the city.

In civ 5 G&K, Carthage gets a free harbor for every coastal city.

* -Syntax changed to "Get a free [] []"
First paramater is the building and second is the city filter.
Supports "in every city" and "in every coastal city"

-new and coastal was removed from template.properties
-in every coastal city was added to template.properties

* Changed syntax to "Gain a free [] []"
2020-11-22 11:55:34 +02:00
2d2117936e Whoops wrong field 2020-11-20 13:45:45 +02:00
f40c0ad8b3 AI settlers can no longer settle after movement with no movement points 2020-11-20 11:52:14 +02:00
6158802bb3 3.11.4 2020-11-19 23:53:34 +02:00
c338afc7f3 Hide hotkeys on devices without keyboard (#3350)
* Hide hotkeys on devices without keyboard

* Test for peripheral keyboard
2020-11-19 23:43:29 +02:00
378c8ab511 Separated the unit image rendering from the background rendering to avoid texture swapping when rendering unit + background 2020-11-19 23:34:03 +02:00
223da7f531 More framerate improvement tricks - this was more than enough to offset the harm of the building and unit images, and went the other way!
The framerate started out before the image games as ~17-18 on the tested game, dropped to ~14-15 with the image changes, and is now at ~20-21~
2020-11-19 23:04:09 +02:00
2e668ddeb5 Made sure that labels are rendered after each other in the city button, so save on texture switches between the font and the image textures 2020-11-19 22:29:50 +02:00
35554f3ec6 Resolved #3330 - Texture is back to 2048*2048, by taking flags buldings and units out of the main image.
The cost is that there are texture swaps, and so framerate is hurt.
2020-11-19 21:44:09 +02:00
3176cd147a We now check compatibility of newly selected mods to the existing mod ruleset 2020-11-16 21:18:17 +02:00
03193e4f61 Resolved #3071 - Disabled annoying camera momentum on Desktop 2020-11-16 20:42:24 +02:00
952e4cb958 Resolved #3341 - City-state diplomacy screen is shown properly when entering from a city button 2020-11-15 21:58:16 +02:00
f7a1633c33 Probably solved the Mysterious Disappearing C's this time for realz! #3327 2020-11-15 20:38:52 +02:00
9b2c1b2ace We now try to load the last tturn-autosave whn loading the regular autosaves failed (e.g. when the save file is corrupt) 2020-11-14 22:58:05 +02:00
89751ca6ec 3.11.12 2020-11-14 22:55:19 +02:00
bf4216578a 3.11.12 2020-11-14 22:35:12 +02:00
fa887cf206 Spectator can handle free-policy-giving techs 2020-11-14 22:14:54 +02:00
96269c5c29 AI no longer nukes single units
Nuking is considered a declaration of war from the attacker, not the defender
2020-11-13 00:04:23 +02:00
62c42851ed Can right-click to attack when a unit is selected 2020-11-12 21:13:24 +02:00
961579fd3d City states can now conquer cities, as per Civ V 2020-11-12 19:41:48 +02:00
82fb9ee9fc Mods can now remove promotions between versions without breaking existing saves 2020-11-12 19:35:52 +02:00
d3aabfb669 Fixed archaeological dig being built by workers in Civ V expansion mod 2020-11-11 23:48:07 +02:00
582cbeb932 Fixed key shortcuts in improvement picker screen 2020-11-11 21:52:48 +02:00
e8e9c97c92 AI won't declare war if it doesn't know the location of any enemy city 2020-11-11 21:22:15 +02:00
9693bf0dd6 Resolved #3324 - Great Person units no longer require a military unit to accompany them if they're close enough to the destination 2020-11-09 21:45:58 +02:00
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