Yair Morgenstern
b4708b05b3
Unified regular unit and great person unit additions
...
First playaround with nation uniques!
2020-08-01 23:04:33 +03:00
Yair Morgenstern
f88e2f2bb7
Merge remote-tracking branch 'origin/master'
2020-08-01 21:46:27 +03:00
lishaoxia1985
acdc6cee69
AS update to 4.0.1, Edit Diplomacy UI in Overview ( #2885 )
2020-08-01 21:44:32 +03:00
Yair Morgenstern
fbf4312973
All policies converted!
2020-07-31 19:09:56 +03:00
Yair Morgenstern
28f51a2050
Map editor should no longer crash in scenarios
2020-07-31 15:33:27 +03:00
Yair Morgenstern
2d3daa8c3b
Scouts ignore river movement penalties
2020-07-31 11:40:02 +03:00
Alexander Korolyov
86f500b266
Fog of war implementation ( #2887 )
...
* Initial implementation fog of war for spectators
* Corrected fog of war for main map
* Fix borders seen in unexplored tiles during spectating
* Small refactor
* Fixes after code review
* Fixes after code review
* wierd bug fix, android studio "eats" spaces
2020-07-31 11:32:44 +03:00
Yair Morgenstern
275348c70e
Pillage action now has a confirmation popup
2020-07-31 11:14:06 +03:00
Yair Morgenstern
bf4f952485
Spaceship parts not shown to user until Apollo Program is built
2020-07-31 10:42:59 +03:00
Yair Morgenstern
f686b0c6d1
Units can pass through cities of other friendly civs
2020-07-31 10:35:42 +03:00
Yair Morgenstern
0be86a6cb2
Merge branch '3.9.16-1'
2020-07-31 10:34:42 +03:00
Yair Morgenstern
9bfc0485e1
3.9.16-patch1
2020-07-31 00:28:48 +03:00
Yair Morgenstern
0f727e1929
Moar policies! Policy stat changes can now happen from wonders as well!
2020-07-31 00:25:48 +03:00
Yair Morgenstern
8fec837e64
Modernized translations yay
2020-07-30 22:40:50 +03:00
Yair Morgenstern
c0a9690d2a
Finished Rationalism tree!
2020-07-30 22:39:52 +03:00
Yair Morgenstern
0eaad31ce1
Getting used to multi-param placeholders ;)
2020-07-30 22:26:15 +03:00
Yair Morgenstern
362ca7c1e3
More policy conversions, only 3 trees left!
2020-07-30 22:07:05 +03:00
Yair Morgenstern
0444a28657
Policy transformation
2020-07-30 19:56:43 +03:00
Yair Morgenstern
654a355666
Resolved #2907 - University unique registers properly
2020-07-30 19:15:11 +03:00
Yair Morgenstern
8dfc147bb1
Added civ-wide per-building stat bonus
2020-07-30 19:05:07 +03:00
Yair Morgenstern
ca58bb22ac
3.9.16
2020-07-30 13:37:28 +03:00
Yair Morgenstern
406959c771
Resolved #3901 - nuclear weapon setting remains between games
2020-07-29 23:33:30 +03:00
Yair Morgenstern
97def95817
Can now handle multiple civ-wide uniques of the same type!
2020-07-28 19:56:57 +03:00
Yair Morgenstern
f583c04d38
Game can now handle modded unique buildings that don't replace anything existing
2020-07-28 19:37:30 +03:00
Yair Morgenstern
5fbfa637f2
All improvement placing units are automated in the same way - this allows for the AI to control modded units that place other improvements!
2020-07-28 19:26:02 +03:00
Yair Morgenstern
9d2cc90ccd
Railroad connection propagates correctly over harbor connections
2020-07-28 09:27:37 +03:00
Yair Morgenstern
b816d1036d
Resolved #2894 - Map editor button only opens popup once
2020-07-27 19:53:50 +03:00
Yair Morgenstern
f18f6d4a29
3.9.15
2020-07-26 22:07:50 +03:00
Alexander Korolyov
94c4b27838
Fix bug when city states gets all techs from spectators ( #2881 )
2020-07-25 23:08:19 +03:00
Yair Morgenstern
5a97a9be3b
Removed confusin extra lines in the diplomacy overview
2020-07-25 23:07:50 +03:00
Yair Morgenstern
4758beffa6
More policy conversions
2020-07-25 23:03:21 +03:00
Yair Morgenstern
627283b10b
Converted policies up to Collective Rule
2020-07-25 22:36:15 +03:00
Yair Morgenstern
a5f7aee1ea
Upgradable units show the final unit they're upgrading to in the Overview screen
2020-07-25 22:03:45 +03:00
Yair Morgenstern
e7639c93c4
Step 2 - started POC breakdown of policy effects to constituent uniques
...
This will allow mix&matching of policy effects, AND allow them to be used as building uniques as well!
2020-07-24 18:18:17 +03:00
Yair Morgenstern
937a832b2c
Step 1 of merging unique powers - civInfo.hasUnique treats building and policy uniques equally
2020-07-24 18:03:53 +03:00
Yair Morgenstern
bf874fe749
[stat] from [terrain] tiles applied to all existing buildings
2020-07-24 17:56:59 +03:00
Yair Morgenstern
066dd615b4
Created stat parameter parsing and translation!
...
Genericified "[stats] from [terrain] tile" building unique
2020-07-24 17:47:55 +03:00
Yair Morgenstern
56052884f1
Resolved #2838 - cities in resistance can no longer be traded
2020-07-24 11:55:10 +03:00
Yair Morgenstern
d7bac9ed3e
Genericified 'free [unit] appears]
2020-07-24 00:34:39 +03:00
Yair Morgenstern
548e107504
Generic "must be next to []" unique for buildings
2020-07-24 00:23:42 +03:00
Yair Morgenstern
2e024c67e0
Greatly improved performance of worker's automated city connecting
2020-07-24 00:08:05 +03:00
Yair Morgenstern
c50c490a63
Resolved #2853 - Sped up loading of all saved games
2020-07-23 14:38:36 +03:00
Alexander Korolyov
0f70726c10
Spectator can view other civ stats: Tech, Trades, Cities, Units, Gold ( #2877 )
...
* Select units/cities in spectator mode
* Can enter EmpireOverviewScreen in spectator mode
* keep selectedCiv after nextTurn
* Add current civilization Label and Icon
* Clickable Civilization label
* Victory screen and next turn update
2020-07-23 14:27:39 +03:00
Yair Morgenstern
b5a4591955
Resovled #2852 - can no longer make peace with a city state while at war with its ally
2020-07-23 14:24:50 +03:00
Yair Morgenstern
3f44e1c519
Resolved #2864 - Locks on tiles are removed when the tile is no longer under your control
2020-07-23 14:17:41 +03:00
Yair Morgenstern
1a558a70d2
Buildings that are missing resources are still displayed in city constructions
2020-07-23 12:54:26 +03:00
Alexander Korolyov
7d360e5fa1
Skip spectator turn in multiplayer games ( #2873 )
2020-07-22 10:43:03 +03:00
Alexander Korolyov
1c613ac274
Remove unnecessary try catch block. ( #2869 )
2020-07-22 06:29:12 +03:00
Yair Morgenstern
aa2f9726ac
Unit 'unbuildable' parameter converted to unique
2020-07-20 23:36:54 +03:00
Yair Morgenstern
22e5f30b64
3.9.13
2020-07-20 23:25:12 +03:00
Yair Morgenstern
d8b84db3a6
Removed extraneous (for now) G&K files
2020-07-20 23:03:00 +03:00
Yair Morgenstern
e0dcf25e23
More placeholder regex replacements
2020-07-20 00:21:17 +03:00
Yair Morgenstern
ceb456acab
Simplified translation file writing by treating all placeholders with a single number in the same way
2020-07-20 00:16:51 +03:00
Yair Morgenstern
95e1e8279d
Created parameter-extracting functions for placeholder texts!
2020-07-20 00:04:21 +03:00
Alexander Korolyov
00983dd00e
Spectators can enter and view other player cities ( #2856 )
...
* Spectators can enter and view other player cities
* Spectators not shown on diplomacy screen
* master merge fix
* Spectators can enter and view other player cities
* Spectators not shown on diplomacy screen
* Fix barbarians spawn in spectator mode
* small post fixes
* remove excessive spectator check
* Remove spectators from diplomacy screen
* Spectators cannot reallocate specialists in cities
* Refactor using canChangeState value for CityScreen and WorldScreen.
* Continue refactor using canChangeState value
2020-07-19 13:35:38 +03:00
Alexander Korolyov
bd422fdb16
Fix map editor gameparameters layout ( #2860 )
2020-07-19 00:00:04 +03:00
Yair Morgenstern
77d741040d
Worker unique is now moddable to other units
2020-07-17 15:47:49 +03:00
Yair Morgenstern
c402d63a68
3.9.12
2020-07-16 23:15:23 +03:00
lishaoxia1985
59f6e10511
some bug fix ( #2817 )
...
* Scout won't be built when research "Scientific Theory". Fix the word "Can only build water units in coastal cities".
* Fix the bugs when you delete all maps close button disappears and you can't go to main menu.
* Basictests don't check that Scout can't upgrade.
* If the unit is obsolete it will remove from construction queue.
2020-07-16 22:22:47 +03:00
Alexander Korolyov
e74f7608d1
transfer simulateUntilWin from UncivGame to GameInfo class. ( #2849 )
...
* transfer simulateUntilWin from UncivGame to GameInfo class.
* update tests
* Update description comments
2020-07-16 13:52:39 +03:00
Yair Morgenstern
6309bc2fba
Main menu buttons no longer require scrolling
2020-07-15 21:52:42 +03:00
Alexander Korolyov
a0daa6be4c
Add mod compatibility for extended map editor ( #2840 )
...
* Add mod compatibility for extended map editor
* fix crashes when loading scenario with mods enabled
* update imagegetter ruleset when loading scenario
* reload ruleset on new scenrio
* Fixed crash when units/improvements from the missing mods present in the map editor.
* removeMissingModReferences - better name
2020-07-14 18:17:37 +03:00
Yair Morgenstern
e179f1a472
Added Water Mill building
2020-07-13 22:42:30 +03:00
Yair Morgenstern
f57533bc48
3.9.11
2020-07-13 21:45:52 +03:00
Alexander Korolyov
494e8eacc0
Fixed two empty mods checkbox in game options ( #2837 )
2020-07-12 16:10:52 +03:00
Alexander Korolyov
c51879cc5f
OptionsPopup with two experimental switches: Spectator mode, Extended Map editor. ( #2834 )
2020-07-12 12:59:32 +03:00
Alexander Korolyov
438a4dbaff
No improvement/unit editing for Spectator and Random players ( #2836 )
2020-07-12 12:56:55 +03:00
Duan Tao
e03763766b
Do not generate fallout on impasssible terran. ( #2830 )
2020-07-11 23:29:15 +03:00
Yair Morgenstern
6d34612035
Empty Faith indicator no longer displayed in city stats
2020-07-10 16:47:33 +03:00
Yair Morgenstern
bc6ce6e54d
Better civilopedia icons for buildings and units
2020-07-10 16:40:20 +03:00
Yair Morgenstern
1020dd217e
Resolved #2822 - normalized the amount of strategic resources, so they're roughly on par with the amount of luxury/bonus resources
...
Also, 'spectators' can now see all resources, even ones which require advanced techs
2020-07-10 13:15:07 +03:00
Yair Morgenstern
04f0ba945e
Resolved #2819 - units no longer gain XP from attacking already defeated cities
2020-07-10 13:00:40 +03:00
Yair Morgenstern
e848d0b8b8
Resolved #2820 - ressurected civs are at peace with everyone
2020-07-10 09:55:48 +03:00
Duan Tao
13a26fa434
Fix AI nuke radius. ( #2826 )
2020-07-10 09:36:39 +03:00
Yair Morgenstern
04939feb3c
3.9.10
2020-07-08 19:39:16 +03:00
Yair Morgenstern
ddf12b743c
Resource toggle button is consistent with population toggle - by @lishaoxia1985
...
#2809
2020-07-08 19:31:32 +03:00
Yair Morgenstern
1fe8d704a0
Unremovable terrain features e.g. Flood plains are no longer removed by great improvements
2020-07-08 19:10:31 +03:00
Yair Morgenstern
cb9687a1c9
Added Faith to stats
2020-07-07 23:26:24 +03:00
Yair Morgenstern
210011fb15
Resolved #2640 - Difficulty level shown in victory status screen
2020-07-07 23:05:27 +03:00
Yair Morgenstern
a06a4531be
Great improvements are no longer hardcoded, so new great improvements can be modded in =)
2020-07-07 22:49:36 +03:00
Yair Morgenstern
ad5cf3a1ec
Resolved #2811 - Offering the same resource to 2 civs when you only have 2 left no longer causes 'trade no longer valid' for the second one
2020-07-07 22:39:56 +03:00
Yair Morgenstern
19bb1cdb94
Translation writer now takes from all base ruleset, and doesn't add duplicate keys - we're ready to start actual work on G&K!
2020-07-07 00:18:02 +03:00
Yair Morgenstern
0516810571
Dispose main menu screen when exiting to save space
2020-07-06 23:25:11 +03:00
uncivbot[bot]
d58b73313e
Translations update ( #2804 )
...
* Update Indonesian.properties (#2792 )
* add some simplified chinese translation (#2797 )
Co-authored-by: gsm988aa@gmail.com <sim.gao@lab.sra.uni-hannover.de>
* German translation update - German.properties (#2799 )
* Update German.properties
* Update German.properties
* Update German.properties
- english: resource -> german: Ressource
- several Additions
* Update German.properties
* Update German.properties
* Update German.properties
* Update Chinese translation. (#2803 )
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
Co-authored-by: Kensvin <63847755+Kensvin28@users.noreply.github.com>
Co-authored-by: gsm988aa <gsm988aa@gmail.com>
Co-authored-by: gsm988aa@gmail.com <sim.gao@lab.sra.uni-hannover.de>
Co-authored-by: scaphander <67830047+scaphander@users.noreply.github.com>
Co-authored-by: lishaoxia1985 <49801619+lishaoxia1985@users.noreply.github.com>
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
2020-07-05 23:13:47 +03:00
Yair Morgenstern
1b7b9bfcd5
Civ is properly destroyed when liberating the last city of the civ
2020-07-05 23:03:28 +03:00
Yair Morgenstern
75c6ab8acb
Replaced units are not shown in tech button even when replacing unique unit is in a different tech
2020-07-05 19:21:16 +03:00
Alexander Korolyov
ad89286476
Change "try .. catch" statement to "if(consoleMode)" statement for mods folder loading. ( #2802 )
2020-07-05 06:27:41 +03:00
Yair Morgenstern
84a06b7fcb
Reset ruleset when entering main menu screen, so that all map elements for the background will be available after returning from a modded game that removed some of them
2020-07-05 00:22:17 +03:00
Yair Morgenstern
c94079c0a7
Fixed tests which broke due to console checking being dependant on UncivGame.Current
2020-07-04 23:57:45 +03:00
Yair Morgenstern
d7cc0868fb
Added a NewGameScreen option to choose the base ruleset - it works, which means G&K and Vanilla games can coexist well!
...
We're ready to start making changes! =D
2020-07-04 23:53:46 +03:00
Yair Morgenstern
81f88087fe
Merge branch 'master' of https://github.com/yairm210/Unciv
2020-07-04 23:33:49 +03:00
Yair Morgenstern
46c6e3b464
Vanilla and G&K rulesets now coexist - this is a big step towards multiple base rulesets!
2020-07-04 23:33:25 +03:00
Alexander Korolyov
eef5cdb584
Basic spectator functionality. ( #2765 )
...
* Basic spectator functionality.
Added as a separate nation with full visibility.
* Robots not allowed to spectate :(
* Allow multiple human spectators
* Multiple spectators allowed.
Fix crash when max players in map editor.
* At least one active (not spectator) human player needed
* - Invisible tiles vision for spectators.
- Minimum 1 active player (Human or AI) to start the game.
- temporary only 1 spectator in game
* Revert "At least one active (not spectator) human player needed"
This reverts commit d843bebe
* Add all tech to spectators for resource view
* Spectators couldn't be rolled out from "Random" civ
* Spectator is not a MajorCiv.
corrected random pick
* Small refactor
* No diplomacy button for Specators
* Add fixes from yair210 review.
2020-07-04 23:29:20 +03:00
Yair Morgenstern
c2f0ee94fc
Taking simulateUntilWin from the UncivGame.Current was causing problems when downloading multiplayer games - @alkorolyov
2020-07-04 22:51:43 +03:00
Alexander Korolyov
4bcae5f664
Console mode for multiple game automation ( #2777 )
...
* Remove ruleset from GameSetupInfo class
* Remove dependency from Gdx for file IO:
- load Ruleset
- save/init in GameSettings
- get settings in GameSaver
* Remove simulation logging from GameInfo class
* MapGenerator: add switch for RNG seed verbose
* PlayerPickerTable small refactor
* Basic console mode
* Add multithreading to console mode and refactoring.
* Merge branch 'master' into console
* Small refactor
2020-07-04 21:47:52 +03:00
Yair Morgenstern
0271fdead2
Resolved #2794 - Save games and maps cannot have slashes/backslashes, to avoid foldername/filename confusion
2020-07-03 16:01:09 +03:00
Duan Tao
a12b9b5e6f
AI destroys empty barbarian encampment. ( #2793 )
2020-07-03 15:48:28 +03:00
Duan Tao
48350fc6a3
Mark red for air unit attack range. ( #2786 )
...
Ya know what, sure why not
2020-07-02 20:04:34 +03:00
Yair Morgenstern
4357d2513a
Resolved #2787 - AIs MUCH more likely to build the Apollo Program and win a scientific victory
2020-07-02 19:56:59 +03:00
Yair Morgenstern
e1aaa88e3d
Resolved #2789 - losing a resource no longer cancells all trades with that resource, only as many as is necessary to reach equilibrium
2020-07-02 19:43:01 +03:00
Yair Morgenstern
665404db4d
Removed tech exchange, as per Civ V - some of the logic is still there, to allow a gradual phase-out for games that have existing tech trades
2020-06-29 22:22:28 +03:00
Yair Morgenstern
df18d5f8a9
Resolved #2749 - show current improvement and remaining time to build in improvement picker screen
2020-06-29 21:59:45 +03:00
Yair Morgenstern
29e25747a8
Resolved #2112 - Show current resource amounts on incoming trade requests
2020-06-29 21:45:00 +03:00
Alexander Korolyov
5356e63249
Refactor UncivGame initialization - add UncivGameParameters. ( #2779 )
2020-06-29 20:05:58 +03:00
Yair Morgenstern
79ff8c2ecf
Fixed broken tests due to 'impassible' changes
2020-06-28 20:48:51 +03:00
Yair Morgenstern
1bb26c579d
All UI changes in MultiplayerScreen now use postRunnable to run on the main thread
2020-06-27 23:51:05 +03:00
Yair Morgenstern
cba9995f99
Fixed natural wonders not being considered 'impassible' for certain things (e.g. ancient ruins spawn)
2020-06-27 23:40:40 +03:00
Alexander Korolyov
4c7970f5d7
Slightly change mechanics of simulateUntilWin ( #2772 )
...
* Slightly change mechanics of simulateUntilWin
* Forgot to turn off some debugging switch
2020-06-25 22:32:00 +03:00
Alexander Korolyov
aa677042dd
New icon for "Load Scenario" ( #2768 )
...
* New icon for "Load Scenario"
* Javadoc comments
2020-06-25 22:30:39 +03:00
Daniel Bälz
5753115c30
Fix not translated notifications ( #2715 )
...
* Translate notification strings before they are shown. Fixes #2703
* Respect translations from active mods for placeholder translations
* Revert translation call to avoid issues in multiplayer. Still works without it.
2020-06-24 23:58:16 +03:00
Alexander Korolyov
de03a727f6
Scenarios editor first part of changes ( #2764 )
...
* Unnecessary line.
* First part of changes
* All features required for basic functionality were implemented.
Additional features:
- Sync between player adding/deleting and it's unit on map editor
- Sync between player's nation change and all it's units
Final prototype ready for beta-test.
* Second part of commits
* Small fix of TileMap.stripAllUnits
* Small post fixes.
Bring back deleting rivers, accidentally removed during merging.
* Fixes by your comments
* reverse if statement for "Random" chosenCiv
* tileEditorOptions take updated this.gameParameters from constructors
* updated unit placement.
Check validity by unit.canMoveTo()
Correct airunit placement in carriers.
* tileMap.stripAllUnits() refactor
2020-06-24 23:47:34 +03:00
Yair Morgenstern
a23d9ff291
Resolved #2761 - Tutorial titles are auto-added to the translation files
2020-06-24 23:44:17 +03:00
soggerr
213f71def3
Improve performance of multiplayer load poll ( #2758 )
...
* Switch to schedule instead of schedulefixedrate to prevent floodgate of requests after long delays
* Move everything possible off of main thread so user can have smoother interaction with game during poll
2020-06-24 23:13:04 +03:00
lyrjie
e18bfa0053
Replaced the List with MutableList to avoid creating new ones on adding/removing values ( #2746 )
2020-06-20 23:10:02 +03:00
lyrjie
835c0832e2
Fixed strategic resources generation ( #2745 )
...
* Fixed strategic resources generation
* Removed the already PR'd part
2020-06-20 23:09:15 +03:00
alkorolyov
f6b738a04a
Now clearCurrentMapButton and TerrainsAndResources clears rivers.
2020-06-20 23:07:22 +03:00
Yair Morgenstern
b49fba6955
Fixed coast tiles around nat wonders spawning land-type tings, hopefully
2020-06-20 23:04:53 +03:00
Duan Tao
b2d0a10f0e
Fix oil generation in sea.
2020-06-20 23:04:06 +03:00
Duan Tao
3150c1783c
Fix forest display in Default tileset.
2020-06-20 22:57:10 +03:00
Yair Morgenstern
1b73aab856
Opening the New Game screen from within a game saves the previous game parameters, map generation parameters work again
...
@alkorolyov
2020-06-17 19:56:20 +03:00
Yair Morgenstern
604a41ca6c
Merge branch 'master' of https://github.com/yairm210/Unciv
2020-06-16 20:35:47 +03:00
Yair Morgenstern
4e0d819d01
Resolved #2662 - left side of the screen no longer becomes unresponsive to player input after changing from a selected unit to a selected city
2020-06-16 20:35:29 +03:00
Alexander Korolyov
62b7138580
Fix error during saving scenario when empty name. ( #2732 )
...
* Fix error during saving scenario when empty name.
Safe saving and check for empty name.
* New Screen instead of popup for Game Parameters, during editing/creating scenario.
* Now game parameters information is correctly loaded with scenario.
2020-06-16 20:26:03 +03:00
Yair Morgenstern
6900e28671
Resolved #2735 - Diplomatic "Friends with friend/enemy" modifiers are recalculated every turn
2020-06-16 20:24:11 +03:00
Alexander Korolyov
9547b82054
Continue work on Scenario functionality ( #2726 )
...
* Hide all scenarios functionality behind switch in Unciv class.
* Refactoring:
1) abstract class changed to interface
2) rulset added to GameSetupInfo class
Fixed screen bug during map editing
* Added Load/Edit/Delete buttons for scenario functionality.
* Hide recently added scenario buttons behind debugSwitch.
2020-06-15 20:12:29 +03:00
Yair Morgenstern
46dd66d343
3.9.3
2020-06-14 23:53:11 +03:00
Yair Morgenstern
9b37f0a907
Resolved #2723 - resource-specific improvement bonuses are *in addition to* the regular improvement bonuses, and not instead.
2020-06-14 20:52:00 +03:00
Alexander Korolyov
c3da044c43
Adding units on map editor. ( #2667 )
...
* Adding units to map editor.
* loadScenario checkbox Prototype added to MapOptions table.
* adds switch for Scenario and Unit editor debug
* New Scenario class
* Background step1:
1. Create a new class Scenario, containing TileMap, GameParameters and string name (doesn't really matter where, we can move it around later)
2. Create SaveScenario and LoadScenario functions in MapSaver (save to/ load from scenario name)
* Prototype of Save/Load scenario implementation.
* Add update method to NewGameOptionsTable
* First working Save/Load scenario prototype
* First working prototype of Load/Save scenario
* Added test conditions for the new debug modes
* Resolve merge conflict
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
2020-06-13 22:53:04 +03:00
Yair Morgenstern
1961aa7245
Code for era-based city images is go, the current era city images hide the rivers behind them so it's temporarily disabled
2020-06-10 22:00:32 +03:00
Yair Morgenstern
21f9df63dd
Clicking the menu button when it is open closes the menu - #2706
2020-06-07 22:19:22 +03:00
Yair Morgenstern
bc458c72ff
Move units out of cities when liberating
2020-06-07 21:27:27 +03:00
Väinö Mäkelä
05ae6fc81f
Don't draw text on worker threads ( #2701 )
...
Drawing text requires OpenGL context if new characters need to be
rendered.
2020-06-07 19:14:27 +03:00
Yair Morgenstern
713ee08bf9
Buildings requiring a nearby resource can be constructed even when the tile belongs to another city
2020-06-03 19:26:39 +03:00
Yair Morgenstern
d511899ed8
Resolved #2613 - added a close button to the Civ-picking popup in the New Game screen
2020-06-03 19:09:48 +03:00
Yair Morgenstern
3e31be1801
Natural wonders spawned before rivers, so we don't retroactively get rivers on coast tiles
...
Other small improvements for catching and avoiding crashes
2020-06-03 18:44:03 +03:00
Yair Morgenstern
b90690a24b
Solved air interception defensive bonuses crashes
2020-06-01 21:57:20 +03:00
Yair Morgenstern
e4661db4e3
Upgraded Gradle plugin
2020-06-01 20:23:11 +03:00
Yair Morgenstern
d77415de8d
Barbarian automation's run away uses the same function as the worker's run away - solves a crash caused by bad logic in the barbarian automation
...
3.9.0-patch1
2020-06-01 01:54:26 +03:00
Yair Morgenstern
4b649825cd
Battle calculation takes into account the tile that the unit will attack from
2020-06-01 01:51:11 +03:00
Yair Morgenstern
9496c4523e
Fixed crashing bug where map generation would try to have rivers going off-map
2020-06-01 01:31:38 +03:00
Yair Morgenstern
22fd10498e
3.9.0
2020-05-31 23:02:07 +03:00
Yair Morgenstern
43f8fa89c0
Game now saves save files in external storage on Android when possible.
...
May the lord have mercy on our souls.
2020-05-31 19:48:36 +03:00
Yair Morgenstern
434ded6070
Simplified multiplayer vs local save storage
2020-05-31 19:20:16 +03:00
Yair Morgenstern
ba9329963f
River generation is go! =D
2020-05-31 19:14:16 +03:00
Yair Morgenstern
60aeebd3bb
Separated Landmass and Natural Wonder generation from the MapGenerator class - now it's much easier to understand what's going on where.
2020-05-31 17:21:15 +03:00
Yair Morgenstern
844cdcb821
Added a river coordinate system - it's just far enough from the tile oordinate system to be incredibly annoying
2020-05-31 17:05:35 +03:00
Yair Morgenstern
e81e048169
Added combat penalty when attacking across a river
2020-05-31 16:47:52 +03:00
Yair Morgenstern
4a69544c7d
Resolved #2672 - Difficulties are sorted by ascending difficulty in Civilopedia
2020-05-30 23:40:27 +03:00
Yair Morgenstern
84e4e58f23
Added movement cost for crossing rivers
2020-05-30 23:32:53 +03:00
Yair Morgenstern
58059fc59b
Great person uniques can be added to any modded unit
2020-05-30 23:11:49 +03:00
Yair Morgenstern
40325a38b4
Merge branch 'master' of https://github.com/yairm210/Unciv
2020-05-26 16:35:56 +03:00
Yair Morgenstern
8e9cd174dc
3.8.12-patch1
...
Added case where worker that needs to ru away has nowhere to move to
2020-05-26 16:35:01 +03:00
k.h.lai
a9d9b5a64f
Reformat "object:" to "object :" according to the official kotlin style guide ( #2666 )
2020-05-26 16:12:29 +03:00
k.h.lai
ef0c0b9407
Improve keyboard shortcut ( #2663 )
...
* Use keyDown instead of keyTyped to handle arrow keys
* Rename getIconAnKeyForUnitAction to getIconAndKeyForUnitAction
Remove unnecessary dependencies in UnitActionsTable.kt
* Use backButtonAndESCHandler to deselect unit and city
2020-05-25 21:17:02 +03:00
Yair Morgenstern
41aade6eb9
Advanced sliders work on New Map Screen
2020-05-24 21:49:36 +03:00
Daniel Bälz
fcffbbb9bd
Minor UI improvements construction menu ( #2657 )
...
* Fix padding for headers in construction menu
* Sync width of queue and available construction tables
* Left align "Add to queue" button to prevent jumping
* Remove duplicate separator and padding
* Improve design of CityInfoTable
* Fix padding for headers in construction menu
* Sync width of queue and available construction tables
* Left align "Add to queue" button to prevent jumping
* Remove duplicate separator and padding
* Improve design of CityInfoTable
2020-05-24 21:30:34 +03:00
Daniel Bälz
ee5ef800c7
Evaluate translations for mods only when the mod is active in a game. Fixes #2622 ( #2650 )
2020-05-24 21:29:16 +03:00
Daniel Bälz
24c88313e8
Add remove button for construction queue items ( #2654 )
2020-05-23 23:10:46 +03:00
Yair Morgenstern
2f43213616
Resolved #2647 - Automated workers run away from enemy military units
2020-05-22 11:08:39 +03:00
Alexander
8745f58dc2
Uniformed the size of buttons on LanguagePickerScreen and MultiplayerScreen ( #2628 )
2020-05-21 22:31:03 +03:00
Yair Morgenstern
90051ebe5c
Rivers no longer disappear on 'next turn'
2020-05-21 22:18:28 +03:00
Yair Morgenstern
9b9e172897
Gold deficit only affects science when the civ has negative gold
2020-05-21 22:16:12 +03:00
Jack Rainy
98a4c8bf00
Don't reveal submarine position by city markers ( #2643 )
2020-05-21 12:20:44 +03:00
Yair Morgenstern
4b405ecc61
Resolved #2642 - added difficulty settings to Civilopedia
...
No translations yet
2020-05-20 22:20:26 +03:00
Yair Morgenstern
d81507ef2d
Resolved #2549 - fixed New Game Screen options alignment and placing
2020-05-20 20:52:13 +03:00
Yair Morgenstern
9b93e4fb51
Unified capitalization in New Game screen - #2549
2020-05-20 20:46:59 +03:00
Yair Morgenstern
0262ee816b
Resources no longer spawn under unbuildable, unremovable terrain features
2020-05-19 21:44:10 +03:00
AcridBrimistic
39e5d0df0f
relationshipLevel() clean-up ( #2627 )
...
* Diplomacy Clean-up
* Better formatting
* Quickfix
* Fix
counterpoint
2020-05-19 21:28:32 +03:00
Yair Morgenstern
eb6a11cccb
Resolved #2638 - Auto-assign of population no longer "double books" tiles
2020-05-19 19:21:26 +03:00
lishaoxia1985
0678e77487
delete skin file about "*.fnt" and use nativefont instead. ( #2109 )
2020-05-19 19:06:03 +03:00
Daniel Bälz
47d7e8ef09
Gradle Kotlin DSL ( #2634 )
...
* Ease migration to Gradle Kotlin DSL by changing quotes, function calls and plugin definitions
* Migrate build scripts to Gradle Kotlin DSL
2020-05-19 00:14:01 +03:00
Yair Morgenstern
45f85d9c38
Fixed Manhattan Project being inversely affected by nuclear weapons disabling
2020-05-18 23:42:40 +03:00
Väinö Mäkelä
4b6bab523f
Rewrite the font system to render the characters incrementally ( #2635 )
2020-05-18 23:09:38 +03:00
Yair Morgenstern
7330daff48
All UI changes in threads are now run in a postRunnable - should hopefully get rid of IndexOutOfBoundsExceptions
2020-05-18 23:08:19 +03:00
Yair Morgenstern
3032ba9c73
River adjacency functions and gold bonus for tiles adjacent to rivers
2020-05-17 21:29:12 +03:00
Alexander Korolyov
8a43d5c5d6
Change default value for new simulateUntilWinOrLose parameter. ( #2632 )
...
By default it should be 0 - simulation turned off.
2020-05-17 18:48:58 +03:00
Alexander Korolyov
55fdb3a9e7
Exits simulation mode when player wins or losses. ( #2624 )
...
* Exits simulation mode (simulateUntilTurnForDebug) when player wins or losses.
* Update core/src/com/unciv/logic/GameInfo.kt
Co-authored-by: AcridBrimistic <acridbrimistic@protonmail.com>
* Update core/src/com/unciv/UncivGame.kt
Co-authored-by: AcridBrimistic <acridbrimistic@protonmail.com>
* Update core/src/com/unciv/logic/GameInfo.kt
Co-authored-by: AcridBrimistic <acridbrimistic@protonmail.com>
* New parameter for simulation until any of player wins or loses or maximum turns reached.
Added battle logging flag.
Co-authored-by: AcridBrimistic <acridbrimistic@protonmail.com>
2020-05-17 12:33:49 +03:00
Yair Morgenstern
2444b2e1d2
New river edges and flattened tiles by The Bucketeer!
...
Opened River changes in Tile Editor - only visual for now, but should help people see how their tiles would look with rivers surrounding them
2020-05-16 23:54:16 +03:00
Yair Morgenstern
7668a21ae8
Tiny fix to Years To Turn
2020-05-16 22:15:54 +03:00
AcridBrimistic
67f7e67f55
Years per turn improvement ( #2607 )
...
* Year issue fix
* Clean up and try
* real good update
* udf
2020-05-16 22:01:10 +03:00
Jack Rainy
8877c18f31
Civilian should not move when bought ( #2621 )
...
* Civilian cannot move when bought same as military unit
* Minor code restyling
2020-05-16 21:57:36 +03:00
Jack Rainy
4026c9b91d
Fix of the translation template for the start new game menu ( #2623 )
...
* Adding missing translations + corrections to existing
* Translation of the "Avoid" starting biases
2020-05-16 21:56:55 +03:00
Yair Morgenstern
14b99aa010
City-states no longer accumulate points towards Great Generals
2020-05-16 21:40:43 +03:00
Yair Morgenstern
8639fc6e1c
Can no longer see other human players' assigned tiles in Multiplayer
2020-05-15 14:07:58 +03:00
Yair Morgenstern
cc8f4c3ceb
Separated the city overview from the overview screen - it was getting too crowdded
2020-05-15 12:28:17 +03:00
Yair Morgenstern
2f3d3d96b7
Resolved #2618 - better inter-city navigatin int eh city screen
2020-05-15 10:39:51 +03:00
Yair Morgenstern
54dd7e5d62
Resolved #2611 - City button shrinks on zoom in, showing the 'hidden' unit icons behind it
2020-05-15 00:36:06 +03:00
Yair Morgenstern
de337a0ca2
Fixed crash in rare situation where a citadel takes over land of an unknown civ
2020-05-14 08:22:30 +03:00
Yair Morgenstern
b566aacef4
3.8.8
2020-05-12 21:47:33 +03:00
Yair Morgenstern
b393498c1a
Organized checkboxes in game parameters table
2020-05-12 21:46:31 +03:00
Yair Morgenstern
c84550fc2c
More NewGameScreen reorg
2020-05-12 21:38:54 +03:00
Yair Morgenstern
0190854b88
Redid layout for the New Game screen - see #2549
2020-05-12 20:38:44 +03:00
Yair Morgenstern
105a7d63b0
Separated MapOptions to its own class - this can help us with map generation in the map editor, AND help us make UI changes for the New Game screen faster
2020-05-12 19:20:48 +03:00
Yair Morgenstern
1ace4bcf3a
Normalized "Buy" and "Fortify" sounds, so they're not overly loud
2020-05-11 23:11:18 +03:00
Yair Morgenstern
1adb19787a
Removed the crutches for unit attack bugs - we want to figure them out!
2020-05-11 20:33:53 +03:00
Yair Morgenstern
3a2b8453d5
Solved ANR when loading game to display its metadata
2020-05-11 20:20:24 +03:00
Yair Morgenstern
c756014fec
Added helper class GameSetupInfo - this will help us when setting up multiplayer games for transferring data from/to the server
2020-05-10 22:28:35 +03:00
Yair Morgenstern
b64391d767
Population assigned to tiles of other cities do not auto-unassign
2020-05-10 20:32:34 +03:00
Yair Morgenstern
f605a0c00f
Settler automation takes into account which tiles already belong to other civs
2020-05-10 10:55:38 +03:00
Yair Morgenstern
b012fd0df8
Fixed "isWorked" not registering for tiles worked not by the owning city
2020-05-09 22:01:15 +03:00