Commit Graph

4564 Commits

Author SHA1 Message Date
alexban011
f52ad60b51 Fixed issue #6649 by checking for internet connection before starting the game if "online multiplayer" is selected
Many thanks to @SomeTroglodyte for most of the code and for explanations
2022-05-02 22:06:05 +03:00
alexban011
eb65791ea7 Fixed issue #6649 by checking for internet connection before starting the game if "online multiplayer" is selected
Many thanks to @SomeTroglodyte for most of the code and for explanations
2022-05-02 21:09:17 +03:00
alexban011
3a707b8f3c Fixed issue #6649 by checking for internet connection before starting the game if "online multiplayer" is selected
Many thanks to @SomeTroglodyte for most of the code and for explanations
2022-05-02 21:07:53 +03:00
alexban011
f293e77786 Fixed issue #6649 by checking for internet connection before starting the game if "online multiplayer" is selected
Many thanks to @SomeTroglodyte for most of the code and for explanations
2022-05-02 21:03:46 +03:00
alexban011
a880672cda Fixed issue #6649 by checking for internet connection before starting the game if "online multiplayer" is selected
Many thanks to @SomeTroglodyte for most of the code and for explanations
2022-05-02 21:00:43 +03:00
alexban011
92294a8f71 Fixed issue #6649 by checking for internet connection before starting the game if "online multiplayer" is selected
Many thanks to @SomeTroglodyte for most of the code and for explanations
2022-05-02 20:57:06 +03:00
alexban011
b05feadd65 Fixed issue #6649 by checking for internet connection before starting the game if "online multiplayer" is selected
Many thanks to @SomeTroglodyte for most of the code and for explanations
2022-05-02 19:58:01 +03:00
alexban011
bae7d7c07f Fixed issue #6649 by checking for internet connection before starting the game if "online multiplayer" is selected
Many thanks to @SomeTroglodyte for most of the code and for explanations
2022-05-02 16:18:08 +03:00
Jack Rainy
031cb4fc14
Enable scrolling for the oversized popups (#6668) 2022-05-02 13:56:34 +02:00
SomeTroglodyte
4d6058a9d4
Fix TileInfo.neighbors being incomplete in rare circumstances (#6644)
* Fix incomplete neighbors first seen as continents up to expectations

* Fix incomplete neighbors - more comments
2022-05-01 06:49:28 +03:00
Jack Rainy
ac2f31f553
Protect the cities from the fallout spawning (#6640) 2022-05-01 00:09:00 +03:00
SomeTroglodyte
9b5f70e868
Show number of global followers in Religion Overview (#6654) 2022-05-01 00:07:48 +03:00
Xander Lenstra
1ac2ecb9e8
Fixed improvements with unfulfilled 'Only Available' still buildable (#6646) 2022-04-30 23:58:52 +03:00
SomeTroglodyte
52586a2101
Map editor2.2 (#6641)
* Readability overloads for `getComplexRuleset`

* Enable loading maps containing missing ruleset objects with fix and message

* Fix bungled `noMapsAvailable` and follow minor criticism
2022-04-30 23:58:03 +03:00
Xander Lenstra
1a050bdaa6
Fixed a crash when a plane tried to enter a full city (#6652)
This would only occur if the plane was damaged and looking for a spot to 
heal, and had no tile to go to with >0 healing. It would then try to 
head towards the nearest city, regardless of whether it could enter 
that. As it's an air unit, 'head towards' means 'fly there directly this 
turn', which obviously caused crashes if the unit couldn't enter that 
tile.
2022-04-30 23:08:48 +03:00
Yair Morgenstern
8133f40f74 Don't allow trade routes through enemy cities - #6633 2022-04-29 09:47:51 +03:00
Yair Morgenstern
702f477e49
Added placeholder parameter location in a way that enables nested translations (#6632)
* Added placeholder parameter location in a way that enables nested translations - see #6474

* Simplified
2022-04-28 13:32:55 +02:00
Jack Rainy
487ad69d28
Correct swap of the full-loaded carriers (#6634)
* Correct swap of the full-loaded carriers

* Code comments
2022-04-28 13:31:46 +02:00
Xander Lenstra
2b9b68488d
Very likely fixed a new 4.0.9 crash. (#6627)
Not sure what exactly happened, but this should fix it. Also updated it 
to use the new victory milestones instead of the apollo project
2022-04-27 19:00:58 +03:00
Jack Rainy
6e88828240
Correct calculation of the production for the Settlers (#6590)
* Correct contribution to the Settler production

* Correct indicator of the food usage during Settler production

* More precise calculation of the food to production conversion

* Revert of starvation avoidance during Settler production

* Minor tweaks
2022-04-27 09:16:11 +03:00
SomeTroglodyte
8891883998
Resources UI (#6596)
* More info for Resources in Civilopedia

* Remove duplicates for Resource requirements in Civilopedia

* Resource overview link resource label to Civilopedia

* Resource overview stay if clicking can't notify (resources not existing on map)

* Resource overview display of resources produced by buildings
2022-04-27 09:15:49 +03:00
Xander Lenstra
933e769d8e
Changed milestone build globally text to make it more understandable (#6613)
* Changed milestone build globally text to make it more understandable

* Actually this is probably just as clear, gramatically more correct and
more imperative like the other milestones

* Fixed tests

* Reworded again
2022-04-27 09:15:33 +03:00
ultradian
d2f0e32229
Making SpecialistAllocationTable an ExpanderTab (#6614)
* Make SpecialistAllocationTable an ExpanderTab

* Make Specialist ExpanderTab translatable
2022-04-27 09:14:19 +03:00
SomeTroglodyte
996c58e1fb
Some improvements to Map Editor - step 1 (#6622) 2022-04-27 08:19:04 +03:00
letstalkaboutdune
26c87bcc36
Healing parity (#6612)
Adjusted healing values for parity with CV
2022-04-26 12:31:30 +03:00
Jack Rainy
27718bd605
Correct swapping of the carriers with payloads (#6594)
* Comments are added

* Correct swap of carriers with payloads
2022-04-26 09:06:32 +02:00
Xander Lenstra
be9ae1d8d8
Typed all belief automation uniques (#6601)
* Typed all belief automation uniques

* Might as well change this

* Fixed tests
2022-04-26 10:02:33 +03:00
Jack Rainy
7d15e3dc53
Display wonders built in other civs correctly (#6604) 2022-04-25 23:26:31 +02:00
SomeTroglodyte
23c23e5566
Unique docs writer makeover (#6516)
* Comments to 'link' implementation (matchFilter) to UniqueParameterType

* Comments to 'link' UniqueParameterType to implementation (matchFilter)

* Fix two mistakes in UniqueParameterType

* Make "and" filter logic for MapUnit and BaseUnit modular, fix mistake

* Make UnitMovementMemory immutable and without lateinit

* Keep UniqueType comment promise that instances can override parameter types

* Reorg UniqueDocsWriter so UniqueParameterType-specific text is moved to the enum

Also some minor improvements - e.g. abbreviations sorted & consistent punctuation, less memory allocations, a/b/c type params get an example,...

* New abilities for UniqueDocsWriter concerning UniqueTarget and inheritsFrom (initially deactivated)

* Actually implement the wish for distinction between absolute and relative amounts

* Change UniqueParameterType.UnitName.docExample to Xander's choice
2022-04-24 22:47:19 +03:00
Xander Lenstra
34105efdda
Moddable victories (#6161)
* Added a moddable (but not yet functional) file for victories

* Spaceship parts are units now

* Fixed tests

* Added milestone objects

* Made 'our status' table in VictoryScreen dependend on file

* Updated VictoryManager to use the new Milestone system

* Fixed bug where in vanilla too many spaceship parts could beb uild

* Whoops

* Updated global victory table to use the jsons

* Updated the new game screen to show the new victory types
Also started with the deprecation of VictorType

* Did some translation stuff, also finally fixed the tests

* Removed VictoryType and reworked AI to use Milestones instead

* Add some checks for the victory file; tested that custom victories work
Also moves some code to a better spot and fixes compilation errors

* Fixed some things I thought about while falling asleep
Most notably: built -> build; fixed spaceship part construction 
priority; removed more code for the old system

* Fixed translation issues on the victory screen
2022-04-24 22:45:38 +03:00
Xander Lenstra
0a5fc3cf33
Fixed the internal name & parameter of a unique (#6577) 2022-04-20 17:02:31 +03:00
Yair Morgenstern
34664e6071 Fixed bug with aircraft rejection reasons 2022-04-20 12:50:30 +03:00
Yair Morgenstern
18be173ab8 Mod land units with missile and nuke uniques no longer crash the game 2022-04-20 12:32:40 +03:00
Yair Morgenstern
c5c06a2456 improvementFilter accepts uniques as well 2022-04-20 09:37:00 +03:00
Yair Morgenstern
bd41630f84 terrainFilter accepts tile resource uniques 2022-04-20 09:31:33 +03:00
itanasi
f1cfe3e907
Add checks against 0 Strength combat (#6564)
* Add checks against 0 Strength combat

* Minimize to 1f to prevent divby0 issues

Co-authored-by: itanasi <spellman23@gmail.com>
2022-04-20 09:29:14 +03:00
Yair Morgenstern
1069b0933e
Added "Vegetation" unique so that vegetation spawn is not limited to just jungle and forest (#6569) 2022-04-19 15:25:33 +03:00
Yair Morgenstern
aa6bd364de Unified unit type filters and removed unwanted ones 2022-04-19 15:21:05 +03:00
Yair Morgenstern
9ae84a94e1 TerrainFilter parameters accept any unique that exists in terrains. Unrecognized texts now throw errors. - see #6430 2022-04-19 14:53:58 +03:00
Yair Morgenstern
de1a1ee48a Resolved DamageUnitsPlunder's warnings for City parameter and warnings for "Aircraft" - see #6430 2022-04-19 14:24:01 +03:00
Yair Morgenstern
bc16a69bd2 baseUnitFilter accepts all uniques that exist on units - see #6430 2022-04-19 14:17:19 +03:00
Yair Morgenstern
16ea8fe8f0 Re-added stat values to be a known part of buildingFilter - see #6430 2022-04-19 14:14:39 +03:00
SomeTroglodyte
9e3df8605e
Request for take-over: Rewritten Map Editor (#5694)
* New Map editor - attempts 1

* New Map editor - attempts 2

* New Map editor - attempts 3

* New Map editor - attempts 4

* New Map editor - attempts 5

* New Map editor - attempts 6

* New Map editor - attempts 7

* New Map editor - attempts 8

* New Map editor - attempts 9

* New Map editor - attempts 10

* New Map editor - merge

* Revert included Stat icons in favour of #f90b22a

* Adapt to renamed TileGroup methods

* Manual merge of some baseruleset code for the map loader only

* Kludge for disappeared `getBaseRuleset`

* Fix after-merge conflicts, run convertTerrains in stepwise map generation

* Fix merge error

* Adapt to latest merge

* Baseruleset control - unpolished draft + max zoom out

* MapEditorV2 - merge fixes, base ruleset and mod control, texture loader fix, pedia links, translation, load mod maps, continent visualization, minor improvements and fixes

* MapEditorV2 - removed old editor
2022-04-19 13:17:44 +03:00
Yair Morgenstern
5ad258ca47 Added very basic "flash red on attack" battle animations 2022-04-19 12:39:14 +03:00
Yair Morgenstern
dbaf4edb2f Resolved #6559 - Air units with no space in the city cannot be selected for construction 2022-04-18 12:26:35 +03:00
Yair Morgenstern
e296604b24 Resolved #6560 - unpillagable improvements removed entirely on nuke 2022-04-18 11:55:43 +03:00
Xander Lenstra
a92057eed5
Made 'go to on map' translatable & fixed crash (#6565) 2022-04-18 11:48:03 +03:00
Yair Morgenstern
3d93dafb13 AIs don't add double agreements to counteroffers 2022-04-18 11:46:48 +03:00
Xander Lenstra
e11a32bb41
Fixed two small bugs (#6558) 2022-04-17 18:06:39 +03:00
Yair Morgenstern
06569e6c5f Clearer "owned" resource 2022-04-17 14:18:16 +03:00