Commit Graph

6390 Commits

Author SHA1 Message Date
2bd65f9f42 chore: Extracted all 'next turn' logic from DiplomacyManager to DiplomacyTurnManager 2023-10-08 11:48:33 +03:00
b2a29f1be2 4.8.12 2023-10-07 22:33:00 +03:00
e7aef72e93 Version rollout (#10264)
* Bump version and create initial changelog entry

* Update Dutch.properties (#10260)

* Update Dutch.properties

* Update Dutch.properties

* Update Dutch.properties

* Update Dutch.properties

* Update German translation (#10256)

* Update Spanish.properties (#10251)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: EmperorPinguin <99119424+EmperorPinguin@users.noreply.github.com>
Co-authored-by: mape6 <mape6@posteo.de>
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
2023-10-07 22:18:29 +03:00
d714b00dd7 Separate unit automation from other actions (#10248)
* Separate unit automation from other actions

* Change field name
2023-10-07 22:02:22 +03:00
a81d5f0837 AI now uses free tech points (#10245)
* AI now uses free tech points

* Refactored chooseTechToResearch

* Reverted combining lists to use a +
2023-10-07 22:00:49 +03:00
49e2979427 Align ruleset icons in text to font metrics (#10233)
* Try to respect actual font layout, so fontSizeMultiplier works for ruleset icons too

* Replace font-based nation symbol in top bar with statically sized actor

* Reuse getReadonlyPixmap in extractPixmapFromTextureRegion

* Tweak topbar selected civ vertical align to be more pleasing to the human eye

* FasterUIDevelopment missing implementation of FontMetricsCommon

* Address hardcoded pixel coordinates comment

* Readability and comment cleanup

* More readability changes
2023-10-07 22:00:30 +03:00
459b00ee22 Pure package reorg: Widgets (#10261)
* Move AutoScrollPane

* Move BorderedTable

* Move ColorMarkupLabel

* Move ExpanderTab

* Move KeyCapturingButton

* Move LanguageTable

* Move SortableGrid

* Move TabbedPager

* Move TranslatedSelectBox

* Move UncivSlider

* Move UnitGroup

* Move WrappableLabel

* Move ZoomableScrollPane
2023-10-07 19:25:06 +03:00
8e7a467496 chore: Separated 'declare war' logic from DiplomacyManager 2023-10-05 10:55:17 +03:00
7185fea243 chore: Split MapGenerationRandomness from MapGenerator 2023-10-05 10:38:47 +03:00
15c8f808c4 Version rollout (#10247)
* Bump version and create initial changelog entry

* Update Russian.properties (#10243)

* Update French.properties (#10241)

* Update Polish.properties (#10231)

* Update Brazilian_Portuguese.properties (#10227)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Anoant <143289571+Anoant@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
2023-10-05 10:29:59 +03:00
5541407a3a Fade in and out for City Ambiance Sounds (#10230)
* Extend MusicController to allow one extra 'overlay' track

* Reduce CityAmbiencePlayer to a proxy for MusicController's 'overlay'

* Treat all the LongLine complaints
2023-10-05 10:25:06 +03:00
a4e3617037 Fix Tutorial loader for mods on Android (#10229) 2023-10-05 10:24:54 +03:00
ed97c5b0ea Notifications remove backward compatibility (#10228)
* Remove backwards compatibility code from Notification serializer

* Notification constructor simplified

* One measly typo
2023-10-05 10:24:27 +03:00
8c6e046fc8 Defensive pact button shows on both sides when a DoF is about to end (#10237) 2023-10-05 10:24:19 +03:00
8e355568e0 Defensive pact functionality is now canceled with otherCiv before calling in defensive pact allies (#10238) 2023-10-05 10:24:09 +03:00
b97339381a Fix ai buy tiles (#10239)
* Fix TriedToBuyNonContiguousTileException crash from NextTurnAutomation maybeBuyCityTiles

* Descriptive exceptions messages from buyTile
2023-10-05 10:23:53 +03:00
815df1bcc4 Some religion stuff (#10242)
* Enable HiddenWithoutReligion to work directly on a Tutorial

* Remove religious units from Vanilla

* Fix limited uses of Missionary and Prophet
2023-10-05 10:23:25 +03:00
674b12a919 Resolved #10240 - Great Prophets spawn again 2023-10-05 10:22:53 +03:00
f812c828e5 chore: Split 'head towards enemy city' into subfunctions
Quite complex for a seemingly simple task, that's why it gets its own object
2023-10-04 23:22:16 +03:00
7503493d7d chore: Split civilian unit automation into separate file
Also limited missile automation to air units only, doesn't make sense for land-based self-destructing units to follow missile automation
2023-10-04 22:56:14 +03:00
f4b7822728 chore: Split SpecificUnitAutomation into air units and religious units, with the remainder being mostly great person automation but also a few 'others' so I'm not renaming it 2023-10-04 22:39:25 +03:00
f46b3fc62b chore: clarified double movement in movement cost 2023-10-04 22:06:17 +03:00
0d50b928ea chore: Separated movement cost from unit movement file 2023-10-04 22:00:37 +03:00
5b3c3f3aaf chore: move UnitMovement to subfolder, for splitting 2023-10-04 21:53:14 +03:00
4e8b454284 fix broken links from capture reorg 2023-10-04 21:39:58 +03:00
510fd7927a chore: Separated capturing logic out from Battle 2023-10-04 21:00:09 +03:00
bcd5c361df Civilian units can get promotions upon being built
Promotions with no icon get default star icon
2023-10-04 00:53:39 +03:00
9e089bd91d chore: Simplified interception notifications 2023-10-03 13:15:00 +03:00
f503737e15 Version rollout (#10225)
* Bump version and create initial changelog entry

* Update Simplified_Chinese (#10214)

* Update Polish.properties (#10212)

* Update Polish.properties

* Update Polish.properties

* Update Polish.properties

* Update Russian.properties (#10211)

Add required translations and one missing; also some corrections

* Update Italian.properties (#10210)

* Update Brazilian_Portuguese.properties (#10203)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: chr_56 <30681738+chr56@users.noreply.github.com>
Co-authored-by: Lesiakower <125187776+Lesiakower@users.noreply.github.com>
Co-authored-by: Nicolas Flamme <nclsf87@gmail.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
2023-10-03 13:04:53 +03:00
205743e11f chore: Separated Nuke function into subfunctions 2023-10-03 13:04:20 +03:00
ec1451c9e9 chore: Separated Air Interception logic into separate object 2023-10-03 12:40:42 +03:00
cc6ab7f7d5 chore: Separated Nuke logic into separate object 2023-10-03 12:32:39 +03:00
348910dcf7 🐛 fix golden age points computation to consider negative happiness (#10224) 2023-10-03 12:11:21 +03:00
b16cbc1b0c City-States don't trigger defensive pacts (#10221) 2023-10-03 12:11:13 +03:00
ccddf1e018 City overview Fix Hotfix (#10220)
* Hotfix kludge to make City Overview behave when not taking up all screen width

* Guard against unsupported SortableGrid config
2023-10-03 12:11:03 +03:00
937f21188c Fix activating unit art in civilopedia crashes (#10215)
* Fix activating unit art in civilopedia crashes

* Remove testing code
2023-10-03 12:10:53 +03:00
98533b91f9 Reimplement and fix #10142 (#10213)
* Test Free Buildings

* Flip the order of logging free buildings to avoid loops with stat buildings

* unprivate constructionComplete for the notification and add validating the queue to addBuilding

* reimplement #10142

* Switch free buildings in cityFilter to also use constructionComplete for consistency
2023-10-03 12:10:43 +03:00
3eff497bd8 chore: More luxury assignment into the new object 2023-10-03 11:53:50 +03:00
2582d913d3 chore: Separated luxury resource placement logic into a separate object 2023-10-03 11:42:07 +03:00
a2a5cb7c2c chore: Separated minor civ placement into a separate object 2023-10-03 11:22:17 +03:00
e1a33f2116 chore: Separated start normalization into a separate object 2023-10-02 12:26:35 +03:00
f52e7d37f4 chore: Split normalizeStart into subfunctions for easier parsing 2023-10-02 12:06:16 +03:00
f90d8ba267 chore: Separated MapRegionResources with more functions related to placing resources in tiles 2023-10-02 11:38:57 +03:00
4d81a62b8f chore: Started splitting resource functions into separate class from MapRegions 2023-10-02 11:27:00 +03:00
1e085eb60a chore: Split MapRegions into class files, first step of refactor 2023-10-02 11:10:48 +03:00
9386e4a7ce 4.8.9-patch2 2023-10-01 16:04:04 +03:00
43ff2ac1f5 Fixed unique validation refactor breaks 2023-10-01 15:29:04 +03:00
c4aeb4d32a chore: Split conditional unique validation to separate function 2023-10-01 15:09:54 +03:00
6d56fafbbe chore: Split RulesetValidator into subfunctions for easier parsing, and separate class for unique validations 2023-10-01 14:46:45 +03:00
c15e72c25a Resolved #10194
Problem was that updating the select box was inconsistent
Simplified by
- Separating 'do we have maps' and 'do we have recent maps' logic from the loading of all maps
- Map loading done in one continuous thread not one-per-map
- Only the map-loading thread triggers selectbox load
2023-10-01 14:31:50 +03:00