Commit Graph

7521 Commits

Author SHA1 Message Date
yairm210
3536218fc8 Don't allow constructing stockpiled-resource-requiring constructions when lacking the resources 2024-08-29 10:32:31 +03:00
yairm210
3c42d44ec4 Consume stockpiled resources when purchasing constructions that require them 2024-08-29 10:22:21 +03:00
yairm210
272b0fcb75 Don't show "ok" ruleset validations when starting a new game 2024-08-28 07:57:57 +03:00
Yair Morgenstern
ac72f3bd85
Version rollout (#12162)
* Bump version and create initial changelog entry

* Update Latin translation (#12160)

* Merge & correction & update

* Fix translation

* Update translation

* Update translation

* Update translation

* Update translation

* Fix translation

* Fix translation

---------

Co-authored-by: sls1005 <sls1005@github.com>

* Update French.properties (#12158)

* Update Brazilian_Portuguese.properties (#12157)

* Update Indonesian.properties (#12156)

Corrected mistranslated words and translated the new codes.

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: sls1005 <sls1005@github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-08-27 09:34:45 +03:00
yairm210
7ce519c5d4 Resolved #12159 - Cities can be conquered in the middle of automation, so we need to "finalize" the sequence before iterating 2024-08-26 13:59:56 +03:00
yairm210
a566bb6bc0 memperf: remove instead of adding, so in cases where there's no suffix we don't allocate any memory for no reason 2024-08-25 12:02:01 +03:00
yairm210
036a2e6e9c Natural wonders uniques generalized to work for terrain feature as well 2024-08-25 09:44:31 +03:00
yairm210
ebc5c8c315 Added deserialization of unit-context events, so in the future we can add the serialization and have unit-context events :D 2024-08-25 02:28:47 +03:00
yairm210
0b48d30451 docs: Better event documentation for presentation 2024-08-25 02:04:00 +03:00
yairm210
99f9d337ae Resolved #12155 - dev console displays enum options correctly on exception 2024-08-24 23:50:08 +03:00
yairm210
4f2834cddd chore: deprecated old uniques 2024-08-24 22:49:29 +03:00
Yair Morgenstern
041d756dd0
Version rollout (#12154)
* Bump version and create initial changelog entry

* Update Italian.properties (#12148)

* Update Brazilian_Portuguese.properties (#12145)

* Update Latin translation (#12144)

* Fix and update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Fix translation

* Update translation

* Fix translation

* Fix translation

* Update translation

* Fix translation

* Update translation

* Update translation

* Fix and update the translation

* Update translation

* Fix translation

* Fix translation

* Update translation

* Update translation

* Fix translation

* Update translation

* Update translation

* Update translation

* Update translation

* Use ë to disinguish words. See <https://la.m.wikisource.org/wiki/Vulgata_Clementina/Liber_Job>

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Fix translation

* Fix translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Fix translation

---------

Co-authored-by: sls1005 <sls1005@github.com>

* Update Bulgarian.properties (#12143)

Finished the translations for Japan and India

* Update French.properties (#12142)

* Update Indonesian.properties (#12140)

Corrected mistranslation/grammatical errors and translated the new codes.

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: sls1005 <sls1005@github.com>
Co-authored-by: Instrumentarium <143902440+Instrumentarium@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-08-24 22:31:02 +03:00
yairm210
859b55da02 Revert "Removed "continuous rendering" setting, should always be false since Actions 'override' this and all our animations use Actions"
This reverts commit d1afbb4a62.
2024-08-24 22:21:35 +03:00
yairm210
d1afbb4a62 Removed "continuous rendering" setting, should always be false since Actions 'override' this and all our animations use Actions
Part of #11986
2024-08-24 22:07:50 +03:00
EmperorPinguin
1009669126
AI worker improvements (#12153)
* AI behaviour changes

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update ConstructionAutomation.kt

* Update Automation.kt

* Reverting some changes

* Changes

* revert changes

* revert changes

* revert changes

* revert changes

* Update CityLocationTileRanker.kt

* Citizen assignment for stat conversion

* Update CityLocationTileRanker.kt

* Reduce AI settling

* Avoid AI building units when in negative Supply

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update ConstructionAutomation.kt

* Update build.gradle.kts

* Update gradle-wrapper.properties

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update ConstructionAutomation.kt

* Update CityLocationTileRanker.kt

* AI changes for humans

* Fix puppet focus

* Update Automation.kt

* Puppet focus

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Stats.kt

* Update CityTurnManager.kt

* Remove specialist science modifier

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update CivilianUnitAutomation.kt

* Update ReligionAutomation.kt

* Worker prioritization

Workers are valuable in expand cities.

* Update ConstructionAutomation.kt

Food always important, it's rarely good to skip e.g. granary if we're on 6 pop.

* Update ConstructionAutomation.kt

Should achieve about the same with less lines of code.

* Update Automation.kt

* Update ConstructionAutomation.kt

* Update Policies.json

* Update Policies.json

* Update Policies.json

* Update ConstructionAutomation.kt

* Update Policies.json

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Rename Crop Yield to Growth

* Update worker usage
2024-08-24 22:04:24 +03:00
yairm210
e8565b0b6f Resolved #12150 - City overview updates when entering a city via it, changing info, and exiting 2024-08-24 21:52:50 +03:00
yairm210
5d7b7c6bcb Fixed "don't settle cities" demand button triggering "stop spreading religion" demand as well 2024-08-24 21:10:27 +03:00
yairm210
4a9739a643 Modding: "Costs [amount] [stockpiledResource]" construction accepts conditionals 2024-08-23 16:22:49 +03:00
yairm210
6265e160e6 Skipping turns for a game now correctly updates the MP screen 2024-08-22 15:15:31 +03:00
yairm210
eadc7b24a2 Added "[unitTriggerTarget] is destroyed" unit triggerable 2024-08-22 10:31:05 +03:00
yairm210
072c3786c4 Added "upon damaging a [mapUnitFilter] unit" which can trigger a unique on the *enemy* unit! 2024-08-22 10:28:48 +03:00
yairm210
f6efdd105f All unit trigger uniques start with a targetting parameter 2024-08-22 01:21:38 +03:00
Yair Morgenstern
4d84128d48
Version rollout (#12139)
* Bump version and create initial changelog entry

* Added the 1st part of lacking polish translation (#12138)

* Added the 1st part of lacking polish translation

* Update Polish.properties

* Update Polish.properties

* Update Polish.properties

* Update Ukrainian translations (#12137)

Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>

* Update Bulgarian.properties (#12136)

Finished the translations for England, France, Russia, Rome, Arabia and America.

* Update Russian.properties  (#12135)

* Update Russian.properties

Added translation for:
- Air Combat and Interception
- Spies

* Update Russian.properties

added translation for new lines in civilopedia

* Update Russian.properties

added translation:
- Trade Routes
- Roads and RailRoads

* Update Russian.properties

added translation for civilopedia sections:
- Science
- Food
- Prodcution
- Gold
- Natural Wonders
- Idle Units

* Update Bulgarian.properties (#12133)

Finished the translations for Babylon, Greece, China and Egypt

* Update Italian.properties (#12132)

* Update Latin translation (#12131)

* Fix and update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Fix translation

* Update translation

* Fix translation

* Fix translation

* Update translation

* Fix translation

* Update translation

* Update translation

* Fix and update the translation

* Update translation

* Fix translation

* Fix translation

* Update translation

* Update translation

* Fix translation

* Update translation

* Update translation

* Update translation

* Update translation

* Use ë to disinguish words. See <https://la.m.wikisource.org/wiki/Vulgata_Clementina/Liber_Job>

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Fix translation

* Fix translation

---------

Co-authored-by: sls1005 <sls1005@github.com>

* Update French.properties (#12130)

* Update Brazilian_Portuguese.properties (#12129)

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update Indonesian.properties (#12126)

* Update Indonesian.properties

Translated the new codes and corrected a few mistranslated words.

* Update Indonesian.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: Instrumentarium <143902440+Instrumentarium@users.noreply.github.com>
Co-authored-by: Denis Sharpe <59770002+DeStup@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: sls1005 <sls1005@github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-08-21 23:20:02 +03:00
yairm210
93cb098edf Added "unit loses status" trigger unique 2024-08-21 23:16:41 +03:00
yairm210
db5b0057bd Create unitTriggerTarget which will determine 'this unit' / 'target unit' targets for all unit triggers 2024-08-21 22:58:49 +03:00
yairm210
43b0c9bbad Temporary unit statuses! Can be applied with "This Unit gains the [promotion] status for [positiveAmount] turn(s)" trigger unique
Example: "This Unit gains the [Morale] status for [1] turn(s) <for [1] movement> <for units without [Morale]>"
2024-08-21 09:32:07 +03:00
yairm210
d8afdd0f42 When selecting a unit, show only arrows relevant to selected unit 2024-08-20 11:26:47 +03:00
yairm210
19943baa44 Better AI conquering of cities 2024-08-20 11:11:52 +03:00
yairm210
4d39c80c93 Allowed specifying custom colors for unit promotions 2024-08-19 16:24:45 +03:00
yairm210
6944d8d5f5 chore: shortened Portrait functions 2024-08-19 15:58:50 +03:00
yairm210
4ff392e63e chore: shortened imagegetter functions 2024-08-19 15:42:44 +03:00
yairm210
ebde6e6ec7 "ok" warnings now colored in 'accept mod errors' popup 2024-08-18 11:30:27 +03:00
yairm210
b41b36d43f Discourage spreading religion to civs we've promised to not do so 2024-08-18 10:28:46 +03:00
yairm210
b0159502b6 4.13.0-patch1 2024-08-18 06:03:03 +00:00
Yair Morgenstern
854812358e
Fixed uniqueTo check in nation unique units display (#12128) 2024-08-18 09:02:55 +03:00
yairm210
b20564a946 4.13.0 2024-08-17 22:00:26 +03:00
Yair Morgenstern
363fff1832
Version rollout (#12125)
* Bump version and create initial changelog entry

* Update Catalan.properties (#12124)

* Update Japanese translation (#12123)

* update

* update

* update

* Update Brazilian_Portuguese.properties (#12121)

added some missing translations for pt-br

* Update Italian.properties (#12119)

* Update Ukrainian translations (#12117)

Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>

* Update Latin translation (#12116)

* Fix and update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Fix translation

* Update translation

* Fix translation

* Fix translation

* Update translation

* Fix translation

---------

Co-authored-by: sls1005 <sls1005@github.com>

* Update French.properties (#12115)

* Update Indonesian.properties (#12114)

Translated the new words and corrected a few grammatical mistakes.

* Update German translation (#12113)

* Fixed test

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
Co-authored-by: yuracla <89312848+yuracla@users.noreply.github.com>
Co-authored-by: murilozinkkkj <78273099+murilozinkkkj@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: sls1005 <sls1005@github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
2024-08-17 21:54:46 +03:00
EmperorPinguin
1a6d2279f5
AI changes (#12109)
* AI behaviour changes

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update ConstructionAutomation.kt

* Update Automation.kt

* Reverting some changes

* Changes

* revert changes

* revert changes

* revert changes

* revert changes

* Update CityLocationTileRanker.kt

* Citizen assignment for stat conversion

* Update CityLocationTileRanker.kt

* Reduce AI settling

* Avoid AI building units when in negative Supply

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update ConstructionAutomation.kt

* Update build.gradle.kts

* Update gradle-wrapper.properties

* Update CityLocationTileRanker.kt

* Update CityLocationTileRanker.kt

* Update ConstructionAutomation.kt

* Update CityLocationTileRanker.kt

* AI changes for humans

* Fix puppet focus

* Update Automation.kt

* Puppet focus

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Automation.kt

* Update Stats.kt

* Update CityTurnManager.kt

* Remove specialist science modifier

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update CivilianUnitAutomation.kt

* Update ReligionAutomation.kt

* Worker prioritization

Workers are valuable in expand cities.

* Update ConstructionAutomation.kt

Food always important, it's rarely good to skip e.g. granary if we're on 6 pop.

* Update ConstructionAutomation.kt

Should achieve about the same with less lines of code.

* Update Automation.kt

* Update ConstructionAutomation.kt

* Update Policies.json

* Update Policies.json

* Update Policies.json

* Update ConstructionAutomation.kt

* Update Policies.json

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Update ReligionAutomation.kt

* Rename Crop Yield to Growth
2024-08-17 21:40:20 +03:00
yairm210
ff1596f0ce Revert "perf: Compute 'missing from minimum' stats only when necessary"
This reverts commit 84af8fa3e0.
2024-08-17 21:18:04 +03:00
yairm210
84af8fa3e0 perf: Compute 'missing from minimum' stats only when necessary 2024-08-16 16:01:45 +03:00
yairm210
8206101f34 Fixed Civilopedia not showing non-unique buildings and units on techs 2024-08-15 12:58:20 +03:00
yairm210
c20944469d UI: Show terrain icons in text 2024-08-15 12:47:56 +03:00
yairm210
3687a277a3 UI: Fade in newly-explored tiles 2024-08-15 10:34:56 +03:00
yairm210
b587bfa591 Improvement uniqueTo can apply to civ *filters* 2024-08-14 21:50:39 +03:00
yairm210
8ddc8a3e8b Unit uniqueTo can apply to civ *filters* 2024-08-14 20:40:17 +03:00
yairm210
238e30b86c Building uniqueTo can apply to civ *filters* 2024-08-14 20:27:54 +03:00
yairm210
ea2234b9a2 Added "don't spread religion to us" demand 2024-08-14 12:04:17 +03:00
Yair Morgenstern
abe41b721f
Version rollout (#12112)
* Bump version and create initial changelog entry

* Add and correct some Russian translations (#12111)

* Update Latin translation (#12096)

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

---------

Co-authored-by: sls1005 <sls1005@github.com>

* Update French.properties (#12091)

* Update Spanish.properties (#12090)

* Update Spanish.properties

* Update Spanish.properties

* Update Simplified_Chinese.properties (#12089)

* Update Indonesian.properties (#12088)

Translated new words and corrected grammatical errors.

* Update German translation (#12087)

* Update Italian.properties (#12086)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Nicolas Flamme <nclsf87@gmail.com>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: sls1005 <sls1005@github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
Co-authored-by: 焕晨HChen <123531821+HChenX@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
2024-08-14 10:48:56 +03:00
yairm210
9c96171188 Multiplayer 'skip turn' uses new limited automation 2024-08-14 09:53:37 +03:00
yairm210
fb99f579a3 Resolves #12110 - Strategic balance applies only to major civs, as per Civ V 2024-08-14 09:52:05 +03:00