Commit Graph

7781 Commits

Author SHA1 Message Date
c5bf9b387b Added validations for 'replaces' being set when 'uniqueTo' is not 2024-09-18 18:46:24 +03:00
9fe9ac3c4e chore: renamed MoveImmediatelyOnceBought -> CanMoveImmediatelyOnceBought 2024-09-18 14:27:12 +03:00
b722a62454 Resolved #12230 - MP game with invalid preview cannot be joined 2024-09-18 14:11:45 +03:00
51bbe4f961 4.13.9-patch1 2024-09-17 17:31:45 +00:00
97e6f285e8 Solved crash due to race condition (#12225) 2024-09-17 20:31:37 +03:00
bbd7f68a88 Resolved #12220 - Changing rulesets in new game screen no longer leads to fake error warnings 2024-09-17 20:17:10 +03:00
9f3f5a3a09 chore: CheckModLinks -> GetErrorList 2024-09-17 20:05:13 +03:00
4b71c1583c Version rollout (#12223)
* Bump version and create initial changelog entry

* Update Latin translation (#12222)

* Merge a branch

* Update translation

* Update translation

* Update translation

* Update translation

* Fix translation

* Update translation

* Update translation

---------

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

* Update Italian.properties (#12221)

* Update French.properties (#12218)

---------

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: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
2024-09-17 18:30:58 +03:00
eb180523d6 More memory perf improvements 2024-09-17 17:54:45 +03:00
98c49ecea3 SIGNIFICANTLY decreased memory usage by only initializing overlay images when required 2024-09-17 17:37:23 +03:00
7fd1a10a46 Tile.terrainUniqueMap doesn't need to have an initial value set - this is a bogus value that just takes init time and memory (and a lot of memory at that)
Still needs to be set for display purposes though
2024-09-16 08:57:02 +03:00
c487a64ba8 Reapply "perf: minor speedup in distance to tiles"
This reverts commit 14115cdea7.
2024-09-16 04:29:55 +03:00
0e612ac574 Solve self-introduced bug in unit movement. Thank G-d (literaly) for ConsoleLauncher, may his name (G-d's) be blessed 2024-09-16 04:29:25 +03:00
c3d579b278 perf: Decrease getUniques(uniqueType) by adding a EnumMap to store uniques by type, with basically zero lookup time 2024-09-16 04:21:29 +03:00
14115cdea7 Revert "perf: minor speedup in distance to tiles"
This reverts commit f78fbfd22d.
2024-09-16 04:13:33 +03:00
f78fbfd22d perf: minor speedup in distance to tiles 2024-09-16 04:10:31 +03:00
b3e00a7944 Resolved #12213 - escorted unit cannot move if its escort cannot move 2024-09-16 04:07:39 +03:00
16c4e2fed8 4.13.8-patch1 2024-09-15 18:48:54 +00:00
d277b0055e Fix broken start new game (#12215)
* Revert "perf: Decrease getUniques(uniqueType) by adding a EnumMap to store uniques by type, with basically zero lookup time "

This reverts commit 0533347371.

* Fix new game screen crashing if you have no scenarios
2024-09-15 21:48:46 +03:00
f5bf655d12 perf: Decrease great general bonus calculation time 2024-09-15 20:09:48 +03:00
0533347371 perf: Decrease getUniques(uniqueType) by adding a EnumMap to store uniques by type, with basically zero lookup time 2024-09-15 19:47:43 +03:00
8946676bc0 Version rollout (#12212)
* Bump version and create initial changelog entry

* Update Galician.properties (#12209)

update new lines

* Update French.properties (#12208)

* Update Latin translation (#12206)

* Merge a branch

* Update translation

* Update translation

* Fix translation

* Fix translation

* Fix translation

* Merge a branch

---------

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

* Update Italian.properties (#12205)

* Update Indonesian.properties (#12203)

Corrected grammatical errors and translated the new code.

* Update Catalan.properties (#12202)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: ninjum <138787523+ninjum@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: sls1005 <sls1005@github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
2024-09-15 18:00:24 +03:00
d6d55c0142 Resolved #12188 - WLTK + continuous rendering no longer cause city tiles to be dimmed 2024-09-15 18:00:09 +03:00
f096bc0ba5 Allowed starting *multiplayer* Scenarios through the new game screen! :DD 2024-09-15 17:31:08 +03:00
b9327b7619 Allowed starting Scenarios through the new game screen! :D 2024-09-15 17:29:13 +03:00
f2141d3393 Fixed Scenario mods being undownloadable and needing to restart game to access Scenario picker 2024-09-15 15:52:36 +03:00
1c5375f6a2 square-bracket-containing promotions are addable via visible name in dev console 2024-09-15 15:19:10 +03:00
b71b9db197 Images are restored to ruleset correctly when resuming open game screen 2024-09-15 12:22:12 +03:00
29e6b4a720 4.13.7-patch1 2024-09-15 08:37:30 +00:00
d75dd50c52 Version rollout (#12201)
* Bump version and create initial changelog entry

* Update Bulgarian.properties (#12200)

* Update Traditional Chinese translation (#12199)

* Update translation

* Fix translation

* Fix translation

---------

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

* Update Bulgarian.properties (#12196)

A bit of work on Germany.

* Update Latin.properties (#12194)

* Update Latin.properties

* Update Latin.properties

* Update Polish.properties (#12193)

* Update Polish.properties

* Update Polish.properties

* Update Polish.properties

* Update Polish.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Instrumentarium <143902440+Instrumentarium@users.noreply.github.com>
Co-authored-by: sls1005 <90055573+sls1005@users.noreply.github.com>
Co-authored-by: sls1005 <sls1005@github.com>
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com>
2024-09-12 21:14:46 +03:00
cd537a1f9a AI is displeased when you become the new ally of a city-state it was the ally of 2024-09-12 21:09:14 +03:00
6a52382956 Resolve #12197 - kick/skip turn in mutliplayer only active if the game contains the current player ID 2024-09-09 21:45:13 +03:00
558b6c03e3 extremely minor perfs 2024-09-08 17:26:22 +03:00
8d8134f6b5 perf: 'all techs are researched' now cached per civ 2024-09-08 17:00:29 +03:00
457ee1aff7 perf: Map modifiers by type for fast lookup 2024-09-08 16:54:08 +03:00
563925bbf5 perf: minor memory perf 2024-09-08 16:31:07 +03:00
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
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
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
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
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
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
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
16bca8d562 4.13.5 2024-09-05 21:32:07 +03:00
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
2a31c13bc6 Fix test - correct target type for event choice 2024-09-05 21:24:32 +03:00
cb432bbb67 Added deprecations to deprecated choice fields 2024-09-05 21:17:08 +03:00
08646a6aeb Resolves #11698, resolves #12103 - Apply 'AI choice weight' to event decisions, accepting conditionals 2024-09-05 21:08:57 +03:00
84efb797a3 Make event choices ruleset objects, with standard "uniques" field 2024-09-05 21:00:30 +03:00
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