Commit Graph

10983 Commits

Author SHA1 Message Date
yairm210
563925bbf5 perf: minor memory perf 2024-09-08 16:31:07 +03:00
yairm210
2647b24e09 perf: Save resource uniques when resources change, so we only need one lookup for all resources for uniques
*significant* impact, estimated at 6% of runtime (!)
2024-09-08 16:19:23 +03:00
yairm210
7c46b3533b 4.13.6 2024-09-08 01:22:45 +03:00
Yair Morgenstern
316d57bb26
Version rollout (#12191)
* Bump version and create initial changelog entry

* Update Indonesian.properties (#12186)

Corrected grammatical errors and translated the new code.

* Update Latin translation (#12185)

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Update translation

* Merge a branch

---------

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

* Update French.properties (#12184)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@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>
2024-09-08 01:17:37 +03:00
yairm210
333b1b194f perf: Don't update city stats at *end turn* when unassigning extra population (won't affect anything until next turn where we'll recalc anyway) 2024-09-08 01:11:29 +03:00
yairm210
d59816af0f chore: rename hasUnique(String) -> hasTagUnique(String)
Now that we *know* tag unique checks are *always* without conditional state, we can name them accordingly
2024-09-08 00:45:18 +03:00
yairm210
4d640a254c perf: Unique mapping overhaul - don't multiply when checking 'has unique', prep for EnumMap for typed uniques 2024-09-08 00:23:51 +03:00
yairm210
eff0a5bebb Moved AI unit upgrade into "use gold" function, so it is prioritized *over* purchasing new constructions 2024-09-07 22:48:04 +03:00
yairm210
9c0e9131f0 Resolved #12187 - units are not added to cities in resistance if non-resistant cities are available 2024-09-07 22:37:29 +03:00
yairm210
2a0ff58cc9 Updated Events json schema 2024-09-06 15:14:53 +03:00
Mayeul Cantan
e2d220180a
Improve desktop file for Linux desktop (#12183)
* Tweak keywords and categories
* Remove GenericName as this is not really a generic app
* Tune the comment to be more relevant to desktop users
* Add French translations
2024-09-05 23:43:49 +03:00
Yair Morgenstern
39156e4a5b
Update README.md 2024-09-05 22:29:22 +03:00
yairm210
c6fc6a2078 Docker build doesn't like linking version numbers of plugins 2024-09-05 22:00:34 +03:00
yairm210
c9f5b94993 Update gradle libraries 2024-09-05 21:50:18 +03:00
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