Commit graph

507 commits

Author SHA1 Message Date
Yair Morgenstern
98932473eb If we run outof places to place barbarians at the start of the game, of if we randomly select the same tile twice, the gam wil not crash 2018-06-10 17:30:49 +03:00
Yair Morgenstern
b31e7ccc3d Fixed a rare bug where unit would try to "walk" to a conquered city even though it was already in it 2018-06-09 22:59:23 +03:00
Yair Morgenstern
088583bd9d Civilian units are now captured by melee units rather than killed! 2018-06-08 18:07:00 +03:00
Yair Morgenstern
10c5c5f0ef Added back Civilopedia button (it had mysteriously vanished) 2018-06-08 18:06:29 +03:00
Yair Morgenstern
b255b8cf15 You will always generate at least 1 science per turn, so that you don't get strange numbers on the Tech button 2018-06-08 17:52:01 +03:00
Yair Morgenstern
0edbaac53d Changed "Archery" units to "Ranged" because it will also include machine gun in the future 2018-06-08 17:44:49 +03:00
Yair Morgenstern
4b7ec5303a Reorganized the class tree 2018-06-08 15:43:40 +03:00
Yair Morgenstern
95bdcf8dcb Notification scroll height is now limited 2018-06-08 15:28:02 +03:00
Yair Morgenstern
d8652ed510 Fixed bug where completing the Liberty social policy tree left you stuck in a Great Person picker screen 2018-06-08 13:29:31 +03:00
Yair Morgenstern
c3e0d6ac2c You can no longer have negative science per turn, even if you have a huge gold deficit (what does "negative science" even mean?) 2018-06-08 13:19:42 +03:00
Yair Morgenstern
83c235690a Added minimap!
Notifications now take up less of the increasingly valuabe screenspace
2018-06-08 13:18:45 +03:00
Yair Morgenstern
7002b8d55e Fixed save/load game Clipboard problems 2018-06-06 14:47:37 +03:00
Yair Morgenstern
d81768047f Added base for translations - we should now be able to add fan translations for different languages! 2018-06-05 21:58:02 +03:00
Yair Morgenstern
e0f97e584d Added options to save game to clipboard and load game from clipboard - this will allow sharing and modification of games for those who want it 2018-06-05 21:55:48 +03:00
Yair Morgenstern
c088c02b1e Added Roboto font and finally figured out how to make TrueType fonts look good! 2018-06-05 21:53:51 +03:00
Yair Morgenstern
c7e14a0242 Disabled NextTurn button from being clicked twice, and moved rendering to the main thread 2018-06-04 17:14:10 +03:00
Yair Morgenstern
335b7dc1e3 Removed all opening of screens from within game logic, put in the WorldScreen login instead, so that the rendering screen remains the same (OpenGL context problems) 2018-06-04 12:29:02 +03:00
Yair Morgenstern
6d059fb6ed When attacking a tile that has both a military and civilian unit, and defeating the militaryunit, the civilian unit is now destroyed 2018-06-04 10:15:41 +03:00
Yair Morgenstern
0fb3c2256e OKAY FOUND THE BUG!
So, now military units can't enter tiles which have an enemy civilian unit in them.
Honestly I would not have guessed that this was the problem.
2018-06-03 13:56:03 +03:00
Yair Morgenstern
431c5449f3 Added display options, to show/hide worked tiles and resources/tile improvements 2018-05-31 19:46:11 +03:00
Yair Morgenstern
145c908af2 "Raze City" button now placed correctly when there are multiple cities 2018-05-31 18:02:07 +03:00
Yair Morgenstern
f6ca98b1d7 Massive change - Unit in TileInfo now spit to CivilianUnit and MilitaryUnit! 2018-05-31 17:23:46 +03:00
Yair Morgenstern
c50a919e2a Added Happiness display to city screen (both total and detailed) 2018-05-30 13:21:50 +03:00
Yair Morgenstern
0959cc3b69 Added ability to raze cities 2018-05-30 12:40:17 +03:00
Yair Morgenstern
0dab2d6dca Clicking on the unit description label now zooms to map to the unit 2018-05-30 09:04:45 +03:00
Yair Morgenstern
aa0ddd4128 Added colors to notifications, depending on the context (attack, culture growth, tech, city growth, etc.) 2018-05-29 23:43:54 +03:00
Yair Morgenstern
e1bd1c271e Load screen displays civ, turns and save time; Save screen now displays random noun-adjective combination as default save name 2018-05-29 22:37:31 +03:00
Yair Morgenstern
1be235d380 New game screen 2018-05-29 22:03:28 +03:00
Yair Morgenstern
3b80cd8450 Creating a city removes the tile improvement that was there (D'oh) 2018-05-29 22:03:08 +03:00
Yair Morgenstern
7ca7be5d70 AI cities ressign population when there are better tiles that the population can work on 2018-05-29 22:02:28 +03:00
Yair Morgenstern
ba320552e2 Added Englandd and France civs 2018-05-29 22:01:48 +03:00
Yair Morgenstern
39b9a65596 Added New Game screen 2018-05-29 22:01:22 +03:00
Yair Morgenstern
9316510a07 GameSaver and HexMath are now in "logic" and are not static classes 2018-05-29 13:05:16 +03:00
Yair Morgenstern
36f9ba6f8c Moved autosave to a concurrent thread so you won't have to wait for it to finish saving to continue your game
UpdateTiles is now cleaner - doesn't update viewed tiles twice, only once
2018-05-29 12:26:43 +03:00
Yair Morgenstern
14a1bc5626 Fixed crash caused by trebuchet listing "cannon" as upgrade, but the cannon doesn't exist yet 0_0 2018-05-28 22:03:56 +03:00
Yair Morgenstern
75627928b3 Slightly modified tech tree, added raw info for cannon and musketman, but the tech tree needs to be changed in order for musketman to be viable 2018-05-27 18:34:13 +03:00
Yair Morgenstern
cd5a3b4741 National wonders can now be built for each civ separately 2018-05-25 18:50:57 +03:00
Yair Morgenstern
9389e936fc When the currently selected unit dissapears, the executing action also disappears 2018-05-25 18:38:57 +03:00
Yair Morgenstern
4d520c8466 Added "unit upgrade" action for old units 2018-05-25 18:27:54 +03:00
Yair Morgenstern
c984704af1 The "Construct improvement" action is now disabled when the unit has no movement or there are no improvements to pick 2018-05-25 13:04:31 +03:00
Yair Morgenstern
1a2d3d4421 Fixed bug where unit would try to randomwalk but there wasn't anywhere to go 2018-05-25 12:08:06 +03:00
Yair Morgenstern
389c489faf Added icons to improvement picker screen 2018-05-25 12:01:06 +03:00
Yair Morgenstern
53ff1290e8 Culture no longer displays 214... turns to next policy when no cities are built 2018-05-25 11:52:07 +03:00
Yair Morgenstern
7503c67f18 Added SetFontColor function to Label, because thed default way is a bit annoying 2018-05-25 11:34:55 +03:00
Yair Morgenstern
c40ebb3942 Added GetImprovementIcon funciton to ImageGetter 2018-05-25 11:24:59 +03:00
Yair Morgenstern
2570c4fd3d Added "GetUnitIcon" function, added icons in GreatPersonPickerScreen 2018-05-24 22:55:11 +03:00
Yair Morgenstern
2f6139e38d Current construction always appears in picker screen and is colored green for indication 2018-05-24 22:35:57 +03:00
Yair Morgenstern
7ee62b7d1c Moved star,circle,shield icons to OtherIcons folder 2018-05-24 22:31:06 +03:00
Yair Morgenstern
ea77ceca0f Merge branch 'master' of https://github.com/yairm210/UnCiv 2018-05-24 22:30:12 +03:00
Yair Morgenstern
2f48586f3e Center icon no longer grayed out in city screen 2018-05-24 22:29:34 +03:00