Commit Graph

10869 Commits

Author SHA1 Message Date
yairm210
16bca8d562 4.13.5 2024-09-05 21:32:07 +03:00
Yair Morgenstern
ea2bd03ab0
Bump version and create initial changelog entry (#12182)
Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
2024-09-05 21:24:50 +03:00
yairm210
2a31c13bc6 Fix test - correct target type for event choice 2024-09-05 21:24:32 +03:00
yairm210
cb432bbb67 Added deprecations to deprecated choice fields 2024-09-05 21:17:08 +03:00
yairm210
08646a6aeb Resolves #11698, resolves #12103 - Apply 'AI choice weight' to event decisions, accepting conditionals 2024-09-05 21:08:57 +03:00
yairm210
84efb797a3 Make event choices ruleset objects, with standard "uniques" field 2024-09-05 21:00:30 +03:00
yairm210
4146a16e31 Added "AI choice weight" for techs policies and promotions, events pending since there's work to do - #11698 2024-09-05 14:38:46 +03:00
yairm210
18c53f77d3 Moved screen orientation setting from advanced tab to display tab 2024-09-04 18:19:38 +03:00
yairm210
396bf60e25 Resolved #12180 - only trigger population reassignment on new buildings when it really changes something 2024-09-02 18:13:33 +03:00
yairm210
2ed5fb9d05 On second thoughts let's not have a field and function named the same 2024-09-02 18:00:52 +03:00
yairm210
652a9645ab Better naming for "reassign population". Not safe-renamed because even if the data is lost for one turn on existing games it's no biggie. 2024-09-02 17:57:00 +03:00
yairm210
9c6c0018c2 Actually *use* the new parameter 2024-09-02 17:53:15 +03:00
yairm210
83baecd8a5 Better stat-related check for buildings - #12180 2024-09-02 17:52:06 +03:00
yairm210
938cd9008a 4.13.4 2024-09-01 19:12:57 +03:00
Yair Morgenstern
45e33d7148
Version rollout (#12178)
* Bump version and create initial changelog entry

* Update Latin translation (#12173)

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Fix translation

* Fix translation

* Fix translation

* Merge a branch

* Merge a branch

* Merge a branch

---------

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

* Update Simplified_Chinese.properties (#12172)

* Update Vietnamese.properties (#12171)

Fix some mistake in this language, and improved some translate

* Update Brazilian_Portuguese.properties (#12166)

1 single change that was getting in my nerves

* Update Spanish.properties (#12165)

* Update Italian.properties (#12164)

* Update German translation (#12163)

* Update Simplified_Chinese.properties (#12170)

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

---------

Co-authored-by: AutumnPizazz <114050365+AutumnPizazz@users.noreply.github.com>

---------

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: AutumnPizazz <114050365+AutumnPizazz@users.noreply.github.com>
Co-authored-by: Cong Thang Nguyen <125419960+ThangNguyen2143@users.noreply.github.com>
Co-authored-by: murilozinkkkj <78273099+murilozinkkkj@users.noreply.github.com>
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: CrispyXYZ <64761703+CrispyXYZ@users.noreply.github.com>
2024-09-01 16:19:10 +03:00
yairm210
e984b8fe88 Resolved #12169 - set "auto assign city production" to false for new players
Determined by Discord poll (63 to 59)
2024-09-01 16:14:27 +03:00
EmperorPinguin
35e5179edd
tryRetreat bugfix (#12175)
* 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

* Update UnitAutomation.kt
2024-08-30 00:03:20 +03:00
yairm210
caccab359d Resolved #11576 - removed last remaining 'golden age' (keyboard binding) 2024-08-29 11:17:29 +03:00
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
2f36248484 Better console documentation for objects with spaces 2024-08-28 08:01:05 +03:00
yairm210
272b0fcb75 Don't show "ok" ruleset validations when starting a new game 2024-08-28 07:57:57 +03:00
yairm210
5db502277f 4.13.3 2024-08-27 09:39:55 +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
9129e11687 Fixed test 2024-08-25 01:25:30 +03:00
yairm210
99f9d337ae Resolved #12155 - dev console displays enum options correctly on exception 2024-08-24 23:50:08 +03:00
yairm210
5e08eadcf1 Dammit changelog 2024-08-24 23:34:11 +03:00
yairm210
4f2834cddd chore: deprecated old uniques 2024-08-24 22:49:29 +03:00
yairm210
8f5679d5db 4.13.2 2024-08-24 22:41:32 +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
9d13303db6 test: Added test to ensure stockpiled resources are consumed when starting work on "Costs [amount] [stockpiledResource]" construction 2024-08-23 10:41:33 +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
yairm210
3798dadad4 4.13.1 2024-08-21 23:25:36 +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