Commit graph

607 commits

Author SHA1 Message Date
Yair Morgenstern
bd4e358bd8 Added ALL Building icons!!!
We will no longer get errors when adopting a policy that puts things near our capital if we don't have a capital (why would you do this? I dunno but people have!)
2018-08-29 12:36:58 +03:00
Yair Morgenstern
9e5208dd8c Fixed a bug where the unit needs the civInfo in order to calculate the moveTo even before it's put on the map. 2018-08-29 12:25:35 +03:00
Yair Morgenstern
40db822a79 Finished off promotions, adding Formation I, Formation II, Blitz, Logistics, Mobility, and Volley promotions 2018-08-28 12:12:14 +03:00
Yair Morgenstern
6e2eaa20a8 Added health bar to injured units! 2018-08-28 11:11:35 +03:00
Yair Morgenstern
b983de9599 Stat icon organization 2018-08-28 10:52:48 +03:00
Yair Morgenstern
5d4c8a618d Replaced all resource and improvement icons!
AI disables city raze on capture/buying cities
2018-08-28 10:35:56 +03:00
Yair Morgenstern
5d3c7a3a5e Replaced city connection icon, luxury resources now have a smiley next to them and strategic resources have a production symbol 2018-08-27 17:17:14 +03:00
Yair Morgenstern
0d630abc14 Added alternative resource icons 2018-08-27 15:37:15 +03:00
Yair Morgenstern
4932c627aa Changed icons to the new and non-suable version! 2018-08-27 14:35:49 +03:00
Yair Morgenstern
e078590933 Fixed concurrency problems when updating city stats 2018-08-27 13:38:54 +03:00
Yair Morgenstern
c5e4a75505 Fixed bug that occured when city was being razed and managed to reach -1 population somehow 2018-08-27 12:41:16 +03:00
Yair Morgenstern
94e9098ac0 Solved a conccurrency problem in getHappiness 2018-08-27 12:32:07 +03:00
Yair Morgenstern
28f5ef5e4f Barbarians now destroy cities instead of capturing them
Destroyed cities reliquish their tiles like they're supposed to
2018-08-27 12:16:25 +03:00
Yair Morgenstern
0d42585ce9 Merge branch 'master' of https://github.com/yairm210/UnCiv 2018-08-26 09:27:32 +03:00
Yair Morgenstern
94eb7198e9 Expanded city name of all civs to 30 since it's obvious there are some people who reach those numbers. 2018-08-26 09:27:08 +03:00
Yair Morgenstern
3db82c2400 Some ridiculous people have passed the 15-city mark. Crazy. 2018-08-26 07:57:08 +03:00
Yair Morgenstern
c828b57577 TileMapHolder doesn't update using clone because it causes problems when updating the tiles 2018-08-25 23:49:12 +03:00
Yair Morgenstern
86464ccdb0 Many UI updates are now done on the clone, so we won't get concurrency exceptions 2018-08-25 23:15:40 +03:00
Yair Morgenstern
ce00fd43e0 Fixed bug where even if the unit couldn't be placed within 3 tiles it was still added to the civ's unit list 2018-08-25 23:14:20 +03:00
Yair Morgenstern
9fbb997e63 Added burial tomb unique building for Egypt 2018-08-24 15:15:52 +03:00
Yair Morgenstern
d48d7aa9fe You now choose civilizations from a list which also tells you what's unique to that civ 2018-08-24 12:28:27 +03:00
Yair Morgenstern
8978d13cdc Added paper maker as first unique building! 2018-08-23 13:16:41 +03:00
Yair Morgenstern
4fd9ac0f38 Added musketeer unique unit for France 2018-08-23 08:43:14 +03:00
yairm210
d63f3736e0
Added Musketeer icon credits 2018-08-22 20:42:46 +03:00
Yair Morgenstern
6b5c1e62da City-to-tile ownership is more efficient
Fixed bug where when starting a new game your initial units would get an extra turn until you reloaded the game
2018-08-22 13:30:37 +03:00
Yair Morgenstern
5e1bccdc47 Organized clone functions
Found one last place where the unit was destroyed manually and not using the destroy() function =\
2018-08-20 22:36:01 +03:00
Yair Morgenstern
040866609e Added effects of Militarism, Total War and Facism 2018-08-20 21:58:01 +03:00
Yair Morgenstern
034f6b0860 Finding map tiles now works with a matrix instead of a map - works MUCH faster! 2018-08-20 09:19:37 +03:00
Yair Morgenstern
f820b75fff Json is apparently not thread safe, so we now create a new instance for each stringify 2018-08-20 09:17:40 +03:00
Yair Morgenstern
4c5e6a8a39 TileMap that was saved in memory changed to TileList, to give more freedom with how we save tiles - TileMap now generated on runtime 2018-08-18 21:48:40 +03:00
Yair Morgenstern
06091d640d civ units are now cached and not calculated every time 2018-08-17 14:45:48 +03:00
Yair Morgenstern
1957c4ca80 Code reorganization - separated variables, pure functions and state-changing functions in all main logic classes 2018-08-17 13:36:23 +03:00
Yair Morgenstern
749ff90fe0 Policy screen translated 2018-08-17 11:44:20 +03:00
Yair Morgenstern
abef1a64e5 Merge branch 'master' of https://github.com/yairm210/UnCiv 2018-08-17 11:38:42 +03:00
Yair Morgenstern
8b90571a77 Fixed some concurrency problems 2018-08-17 11:38:19 +03:00
yairm210
3d93565582
Merge pull request #229 from Roumaan/master
New policies text lines Russian translation
2018-08-17 00:15:38 +03:00
Roumaan
c1098c19d1 Policies Russian translation complete 2018-08-16 23:50:00 +03:00
Yair Morgenstern
fe67fda906 Performance improvement - Moved all autosaving to save a *clone* of the current game in another thread, thus allowing the user to continue his game without having to wait for the game to save 2018-08-16 23:33:56 +03:00
Yair Morgenstern
b4fece29e0 Slight performance improvements for AI 2018-08-16 09:13:34 +03:00
Yair Morgenstern
1affaa38c2 Clicking the Back button when on diplomacy screen returns you to the world screen 2018-08-16 08:53:34 +03:00
Yair Morgenstern
b1e17a67c6 Added Range, Sentry, Siege and Indirect Fire promotions
Units now get experience when capturing a city
2018-08-16 08:52:29 +03:00
Roumaan
9aedb6f964 Merge remote-tracking branch 'refs/remotes/yairm210/master' 2018-08-15 00:06:13 +03:00
Roumaan
4e89c037f9 Merge remote-tracking branch 'refs/remotes/yairm210/master' 2018-08-14 23:58:47 +03:00
Yair Morgenstern
26b3366d93 Added all policy translation lines 2018-08-14 19:24:47 +03:00
Yair Morgenstern
f9632b4151 Back button now acts like the "close" button, returning you to the upper-level screen (usually the world screen) 2018-08-14 19:09:58 +03:00
Yair Morgenstern
27b4c2c2ab AI units now fortify when healing and prefer tiles with defensive bonuses while healing 2018-08-13 09:25:29 +03:00
Yair Morgenstern
fee0b718ec Shrunk game size by 15% by including the images only when packed 2018-08-13 08:56:15 +03:00
Yair Morgenstern
bb25616b69 Fixed bug when playing with translations and constructing science, gold or nothing in a city 2018-08-12 20:45:17 +03:00
Yair Morgenstern
4c0372a8b5 When cities expand, units that aren't allowed to enter there are pushed to the closest moveable tile 2018-08-12 08:56:10 +03:00
Yair Morgenstern
4a35d2f3db Merge branch 'master' of https://github.com/yairm210/UnCiv 2018-08-10 18:31:39 +03:00