Commit graph

884 commits

Author SHA1 Message Date
Yair Morgenstern
07663bfc54 Added "Diplomatic Incidents" for diplomatic messages between civs (as of now, only declaration of war) 2019-02-10 16:34:46 +02:00
Yair Morgenstern
2834752826 Added "change city name" with a popup that appears when clicking on the city name in the ciity screen 2019-02-10 15:32:48 +02:00
Yair Morgenstern
4b7a447eae Civ city name generation now done by a global counter - enables city name changes later 2019-02-10 09:50:36 +02:00
Yair Morgenstern
cc0a999471 Added "exit map editor" button to map editor 2019-02-09 23:26:59 +02:00
Yair Morgenstern
ae7cbcb3c9 Embarked units now have era-based defensive strength (like in original civ) 2019-02-09 23:06:13 +02:00
Yair Morgenstern
d9fb3fdb2c Switched positions of "raze city" and "exit city" buttons - "exit" is a much more common use-case, and therefore should have the more easily-reachable spot 2019-02-09 22:40:52 +02:00
Yair Morgenstern
10e9a5e481 AI units much more cautious when attacking cities - only enter city bombard range if there's a good chance of capturing the city
#416
2019-02-09 21:31:16 +02:00
Yair Morgenstern
3feb231620 Added "deselect" button to unit & city display 2019-02-09 21:25:30 +02:00
Yair Morgenstern
d2a48fae38 Added "current edit" hex to bottom-right of map editor screen 2019-02-08 00:34:46 +02:00
Yair Morgenstern
d42416974c Saving and loading games is now done directly to\from files without becoming strings in the meantime - should help avoid some OutOfMemory exceptions when the games become really huge (the GameInfo as c# classes is much smaller thatn the serialized text for a number of reasons) 2019-02-07 23:06:13 +02:00
Yair Morgenstern
50931a86c1 Resolved #447 - cities now have roads and railroads only when corresponding tech has been researched 2019-02-07 22:56:13 +02:00
Yair Morgenstern
6856301504 Resolved #446 - Buildings are now created when production is completed by Great Engineers, so production of the current turn can be added to the next construction 2019-02-05 20:04:07 +02:00
Yair Morgenstern
a98ce0d7d9 Auto-load the first map, if any exist
Center the map editor on the map
2019-02-03 20:34:21 +02:00
Yair Morgenstern
d8d2b89e73 Enabled loading maps from the map editor 2019-02-03 19:42:31 +02:00
Yair Morgenstern
81d1a79e19 Can now choose a map name and load a map from those existing on the phone! 2019-02-02 23:26:56 +02:00
Yair Morgenstern
3a990434f3 Added initial map editor! Woohoo! 2019-02-02 22:43:02 +02:00
Yair Morgenstern
8e2c3287f6 CityScreen now also uses TileGroupMap 2019-01-29 23:52:51 +02:00
Yair Morgenstern
8038dd4c4f Separated "Group to hold visual map based on tilegroups" to a separate class, for reuse in CityScreen, the future map editor, and maybe also in the minimap 2019-01-29 21:48:23 +02:00
Duan Tao
49f0fe725a Free promotions don't affect future xp. 2019-01-29 18:24:28 +08:00
Duan Tao
c69f54408b Allow to add real free promotions to unit. 2019-01-29 14:46:24 +08:00
Yair Morgenstern
3044fb2978 Fixed crashing bug caused by using GameBasics.Technologies.keys directly, and editing it 2019-01-28 20:45:28 +02:00
Yair Morgenstern
5a78c612ab Fixed errors caused by AI civs not having any non-researched techs to choose from, when all techs are researched - now choose future tech again 2019-01-27 23:45:39 +02:00
Yair Morgenstern
653cb556cf Fixed errors caused by siege unit's movement points not being calculated correctly 2019-01-27 23:38:11 +02:00
Yair Morgenstern
5ab6c6c991
Merge pull request #439 from ninjatao/barbarians
Barbarians
2019-01-27 17:58:58 +02:00
Duan Tao
edc53171cc Barbarian generation improvement. 2019-01-27 21:34:40 +08:00
Duan Tao
c2f6637a91 Fix construction cost. 2019-01-27 16:22:57 +08:00
Yair Morgenstern
f80077a412 Resolved #435 - profit from disbanding units 2019-01-26 22:39:48 +02:00
Yair Morgenstern
665af17ae5 Fixed #438 - changing production before answering the "do you want to purchase construction" popup lead to buying the newly chosen production 2019-01-26 22:00:48 +02:00
Duan Tao
624f83d109 Remove unique units from barbarians. 2019-01-26 19:04:13 +08:00
Duan Tao
ddcf3dd83e Remove unit list for barbarians. 2019-01-26 18:58:12 +08:00
Duan Tao
c18cc2476f Generate different type of barbarians. 2019-01-26 18:48:29 +08:00
Yair Morgenstern
478a9e6996 Resolved #429 - display era names only once in tech picker screen 2019-01-23 20:52:26 +02:00
Yair Morgenstern
a4175438a3 Resolved #424 - added confirm box when declaring war 2019-01-23 20:16:34 +02:00
Yair Morgenstern
b60df3ce85 Resolved #428 - missing characters in German translation 2019-01-23 20:07:13 +02:00
Duan Tao
0f1221e033 Fix seige units finding targets bug. 2019-01-23 21:10:25 +08:00
Duan Tao
a141cb1f1c Rearrange code for pruchasing stuff. 2019-01-23 16:09:18 +08:00
Duan Tao
fa8c948c04 Allow ai to spend money for building & unit. 2019-01-23 16:09:08 +08:00
Duan Tao
53c0bbb0a3 AI exchange techs strategy change. 2019-01-23 16:08:52 +08:00
Duan Tao
d11cb4779b AIs trade techs. Also modified AI tech choose strategy. 2019-01-23 16:08:37 +08:00
Yair Morgenstern
1a6089ead1
Merge pull request #431 from ninjatao/fix_city_defeated_info
Fix city defeated info.
2019-01-23 09:56:12 +02:00
Duan Tao
a03482477d Fix city defeated info. 2019-01-23 15:27:37 +08:00
Duan Tao
7b83776bfa Fix building bonus replaced bug. 2019-01-23 11:26:05 +08:00
Yair Morgenstern
baed1e50cd Returned tile info table in the city screen, construction scroll now translated, added city screen translations to translations file - #417 2019-01-22 21:48:30 +02:00
Yair Morgenstern
2267d2945d
Merge pull request #427 from ninjatao/fix_cityscreen
Fix city screen info windows.
2019-01-22 13:19:52 +02:00
Duan Tao
2d69fa9804 Fix city screen info windows. 2019-01-22 19:09:46 +08:00
Yair Morgenstern
9ba73c4a6f No height difference between hills and hills with jungle/forest 2019-01-21 23:10:03 +02:00
Yair Morgenstern
d7067d2835 Resolved #409 - rewrite line-of-sight rules 2019-01-21 22:41:22 +02:00
Yair Morgenstern
d1de589e4f Resolved #422 - can no longer move through units of other civs we're at war with 2019-01-21 20:17:48 +02:00
Yair Morgenstern
811ed5a7a2 Better AI build order for #416 2019-01-20 23:05:08 +02:00
Yair Morgenstern
effec4856c Resolved #424 and upgraded gradle 2019-01-20 22:44:09 +02:00