Commit Graph

7120 Commits

Author SHA1 Message Date
199a684409 Support for Zulu language (#11644) 2024-05-27 12:30:21 +03:00
f1c0288a43 4.11.14-patch1 2024-05-23 03:59:24 +00:00
479bc3ec85 Fixed preferred victory type ruleset validation - should NOT be invariant! (#11640) 2024-05-23 06:59:15 +03:00
6637ee73a4 Fixed "don't allow era select" if the game has no techs 2024-05-22 23:01:33 +03:00
a2fe888b98 Version rollout (#11628)
* Bump version and create initial changelog entry

* Revive of Belarusian language (#11627)

* Update Catalan.properties (#11619)

* Add translations to Ukrainian (#11617)

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

* Update French.properties (#11612)

* Update Spanish.properties (#11611)

* Update Brazilian_Portuguese.properties (#11610)

* Update Simplified_Chinese.properties (#11607)

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Indonesian.properties (#11605)

* Update Indonesian.properties

Translated the new words and corrected some mistranslation.

* Update Indonesian.properties

* Update Indonesian.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: GameBoyNoob <94763659+GameBoyNoob@users.noreply.github.com>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.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: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: AutumnPizazz <114050365+AutumnPizazz@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-05-21 20:12:13 +03:00
a976bda25d Personality Behaviors Template (#11165)
* Added behaviours

* Added the behaviours to the docs

* Fixed spelling

* Fixed references to PersonalityValue.Military

* Commented out Personality Behaviours docs and added a message

* Changed the names of some of the new personality behaviours
2024-05-21 20:11:41 +03:00
680035f2b5 Allow rulesets to forgo capital city indicators entirely! (#11622)
getCapital() already allows null values so all in all a pretty minor change

What this means is from a practical perspective is that

- getCapital() returns first city
- isCapital() returns false for all (for conditionals, UI indicators, etc)

This was a result of going through all the getCapital() references and adding 'false' to them until I saw the folly of my ways
2024-05-21 20:09:03 +03:00
65b519cb1f Mod checker reports some problems with texture atlases or their source images (#11620)
* ImagePacker reports exception cause

* Mod checker reports some problems with texture atlases
2024-05-21 19:55:10 +03:00
94aac8554f Fixed gold ruin not displaying notification (#11614) 2024-05-21 19:52:44 +03:00
783c0aa7c2 AI worker build roads improvement (#11615)
* Reworked how city connection is calculated

* Fixed neighboringCities being saved

* Improved the A* road finding to work!

* Fixed railroad upgrading incorrectly

* Workers will now try to swap with lazy units blocking them

* Improved support for military worker units

* Worker checks if they can swap with the unit before trying to swap
2024-05-21 19:52:31 +03:00
ca1a2816c8 Make stateBasedRandom depend on turn (#11603) 2024-05-21 19:38:39 +03:00
99d937ee1f Sepcific Exception for starting a game with a starting era not defined in the ruleset (not sure how they managed this) 2024-05-21 18:55:07 +03:00
1f97b069e5 Copy stacktrace to clipboard when failing to load mods - #11613 2024-05-19 23:51:23 +03:00
d1b918abc3 Added ruleset validation for preferred victory type 2024-05-19 16:15:28 +03:00
99801c797d Version rollout (#11602)
* Bump version and create initial changelog entry

* Update French.properties (#11599)

* Update Indonesian.properties (#11598)

* Update Indonesian.properties

Translated all the new words and corrected the mistranslated words.

* Update Indonesian.properties

* Update Indonesian.properties

* Update Brazilian_Portuguese.properties (#11595)

* Update Italian.properties (#11594)

* Update Ukrainian translations (#11593)

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

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@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>
2024-05-16 08:21:16 +03:00
55201f9e16 This has been annoying me for AGES (#11604) 2024-05-16 08:21:03 +03:00
bdab784534 Console: tile setowner, civ removepolicy (#11581)
* Refactor knowledge about console parameter to autocomplete options

* Console civ removepolicy

* Console tile setowner
2024-05-16 07:05:41 +03:00
5238ff23e1 Fix crash when a starting unit has a random conditional (#11596)
* Harden StateForConditionals.hashCode against uninitialized lateinit

* Fix potential crash in new game screen (leftover debug assert)
2024-05-16 07:03:59 +03:00
428edfb12a Spies can be moved on map (#11587)
* Added right click city selection to spy move button

* Fixed random indenting again

* Fixed city buttons moving back up

* Added esc binding to close move spy action

* Added spy selected panel

* Fixed not clicking on a city crash

* Fixed spy selection and deselection

* Made viable cities more visible

* Fixed accidental change

* Spy icons can now be right clicked to enter the map moving view

* Added an X button to close out of the moving spy screen easier.

* Removed extra white space
2024-05-16 07:03:35 +03:00
c7a7bf1474 City state coup (#11586)
* Added coup success calculation

* Added a coup button

* Added a coup button functionality

* Improved coup chance calculation

* Added coup effects

* Fixed random value being too high

* Fixed percent chance roll

* Hid enemy spy factor from the chance text

* Added coup notifications

* Added translations

* Updated a notification

* Style changes

* Put some text onto multiple lines

* Fixed "failed staged" notification

* Added missing translation

* Finished fixing merge conflicts

* Added AI to city-state coups

* Coup notifications are now sent to the spectators as well

* Changed spy rank modifier to be additive
2024-05-16 07:02:37 +03:00
d4cfd4e563 AI doesn't settle very unfavorable locations (#11305)
* AI doesn't settle locations with less than 50 value

* Settlers try and found cities at a distance of 7 more

* Reduced the value of being on the coast

* RankTile quits early if the tile is already owned
2024-05-16 07:02:20 +03:00
1fed88acf6 Espionage icons (#11600)
* Icons for Espionage Buildings

* Update WorldScreen top left buttons
2024-05-16 07:01:47 +03:00
903cabed27 Version rollout (#11592)
* Bump version and create initial changelog entry

* Update Ukrainian translations (#11589)

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

* Update French.properties (#11585)

* Update Brazilian_Portuguese.properties (#11582)

* Update Indonesian.properties (#11580)

Added new translation and corrected the mistranslation.

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.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-05-14 11:18:51 +03:00
8227c2f339 More espionage UI improvements (#11584)
* Renamed "conducting counter-intelligence" to "counter-intelligence"

* Created translations for spy actions

* Clicking on the spy icon selects the spy to be moved

* Fixed spaces in template.properties

* Removed extra translations
2024-05-14 11:01:10 +03:00
04423be44f Fix "Move a unit" tutorial isn't completed by moving via right-click (#11591) 2024-05-14 11:00:51 +03:00
9ddc2337ac Architecture overhaul: openCivilopedia and "hey, who knows which Ruleset we're running"? (#11590) 2024-05-14 11:00:40 +03:00
cd9db42672 Added the culture-refunding remove policy unique (#11538) 2024-05-14 11:00:16 +03:00
eb79a777a2 City state election rigging (#11577)
* Added city-state Elections

* Added Elections notifications

* Removed temporary rigging elections in Spy.kt

* Modified votes from influence a little

* Fixed rigging election turns

* Fixed elections

* Randomised city-state election days

* Refactored geCapital

* Refactored election random to use randomWeighted

* Fixed getSkillModifier being private

* Updated translations and fixed a notification for election rigging
2024-05-14 10:58:07 +03:00
5b002acfee Fix "Translating" wiki link (#11545)
* Fix external wiki link for Translation

* Mini lint - use brighten where functionally equivalent

* Mini lint - condition indent made it unreadable - loop only once
2024-05-14 10:57:36 +03:00
3f4a4aa93b Version rollout (#11579)
* Bump version and create initial changelog entry

* Update Turkish.properties (#11573)

* Update Turkish.properties

* Update Turkish.properties

* Update Turkish.properties

* Update Turkish.properties

* Update Brazilian_Portuguese.properties (#11566)

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update Brazilian_Portuguese.properties

* Update French.properties (#11565)

* Update Italian.properties (#11564)

* Update Indonesian.properties (#11563)

* Update Indonesian.properties

Added and fixed the translation.

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: komandotayfa <53448093+komandotayfa@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-05-11 21:44:44 +03:00
19be96335d Removed dead "Start golden age" unit action - #11576 2024-05-11 21:44:30 +03:00
8af45f774b Resolved #11544 - Remove 'color civ areas on max zoomout' due to conflict with aircraft 2024-05-11 21:38:25 +03:00
2136c5f555 Console: civ addpolicy (#11572) 2024-05-11 21:36:26 +03:00
a485510faf Resource Overview: Info on unavailable strategic and unimproved by allies (#11571)
* Resource Overview: Info on unavailable strategic and unimproved by allies

* Update tutorial
2024-05-11 21:36:17 +03:00
628bd71830 Spy UI improvements (#11570)
* Minor linting

* More linting

* Consistent naming city/location, cache city on Spy (tile visibility perf)

* Empower SpyAction enum (minor perf)

* NotificationAction for Espionage, shorthand on the Spy instance

* Fix National Intelligence Agency giving one extra Spy level

* Fix "Move Spies" NextTurnButton prompt appearing every turn when spies are in Surveillance

* Fix failed tech theft rewarding tech anyway (and open spy kill chance when theft ordered but nothing to steal)

* Finally refactor SmallButtonStyle as standalone component

* Fix unable to assign spies for counter-intelligence

* Shorten establish-network phase for domestic spy placement

* Refactor and prettify MoveToCityButton, reuse as pointer who is to move (and some tiny changes)

* Decorate Spy icons by rank and show those in the hideout too

* Make city name labels in Espionage screen clickable

* Umm... duplicate targets behave same as single targets

* Spy mechanics - no establish network before counter-intelligence, commenting

* Oops, those lines do not belong in this branch anyway
2024-05-11 21:36:07 +03:00
7bbe218bf0 Fix potential crash in console autocomplete (#11568) 2024-05-11 21:35:57 +03:00
0f4b52aaea Nuclear weapon uniques accept conditionals 2024-05-09 08:52:20 +03:00
d41a18ecd4 More movement uniques that have problems with conditionals 2024-05-05 20:39:48 +03:00
fbb9c4a7ad Version rollout (#11561)
* Bump version and create initial changelog entry

* new update Translate vietnamese (#11558)

* Update Vietnamese.properties

ok

* Update Vietnamese.properties

1

* Update Vietnamese.properties

2

* new Update Vietnamese.properties

* Updates to Portuguese.prop file (#11556)

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Add translations to Ukrainian (#11549)

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

* Update Filipino.properties (#11548)

* Update Indonesian.properties (#11547)

Fixed the mistranslation.

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: vvinam <vvinam@gmail.com>
Co-authored-by: nexphilim <75545134+nexphilim@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: Edizen P. Buguina <111935236+zen-pb@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-05-04 21:17:20 +03:00
4aa75896e1 Add missing espionage uniques (#11559)
* Added "New spies start with [1] level(s)" unique

* Added England extra spy unique

* Fixed SpyStartingLevel target

* Added addspy notification
2024-05-04 21:04:17 +03:00
da4657fa44 Next turn button shows move spies notification icon (#11557) 2024-05-04 21:04:08 +03:00
59084399a6 Overhaul "hidden" architecture, closing some gaps (#11546)
* Linting

* Overhaul "hidden" architecture

* Fix unit tests
2024-05-04 21:03:58 +03:00
8c54f41ab5 Added diplomatic repercussions for spying on a civ (#11553) 2024-05-04 21:03:44 +03:00
50b1b5144e Spy rank UI and fixes (#11551)
* Added spy rank to the spy table

* Dead spies aren't allowed to move

* Fixed AI spy automation

* Fixed AI rank not being cloned

* Removed rank fix (new fix is in MissingEspionageUniques)
2024-05-04 21:03:34 +03:00
a13f71e654 Added victoryType conditionals (#11542) 2024-05-04 21:03:22 +03:00
69b5e0c905 Fixed city-state alliance join war notification (#11541) 2024-05-04 21:03:12 +03:00
e7c945f910 Version rollout (#11539)
* Bump version and create initial changelog entry

* Update Czech.properties (#11537)

* Updated Romanian.properties (#11531)

* Update Portuguese.properties  (#11526)

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Portuguese.properties

* Update Simplified_Chinese.properties (#11524)

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Simplified_Chinese.properties

* Update Filipino.properties (#11523)

* Update Filipino.properties

* Update Filipino.properties

Fix an error.

* Update Filipino.properties

Fixed another minor error.

* Update Filipino.properties

Sorry for these errors. I should have slept instead of translating.

* Update Spanish.properties (#11517)

* Update Spanish.properties

* Fix civName

* The other one

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: jahodovykolac <79529669+jahodovykolac@users.noreply.github.com>
Co-authored-by: ghd987654321 <141758961+ghd987654321@users.noreply.github.com>
Co-authored-by: nexphilim <75545134+nexphilim@users.noreply.github.com>
Co-authored-by: AutumnPizazz <114050365+AutumnPizazz@users.noreply.github.com>
Co-authored-by: Edizen P. Buguina <111935236+zen-pb@users.noreply.github.com>
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
2024-04-30 00:47:43 +03:00
b0b6962259 Fixed old references to autoPlaySettings.fullAutoPlayAI without checking if we are currently AutoPlaying (#11533) 2024-04-30 00:36:34 +03:00
d8b08667d2 More info for MP load exceptions 2024-04-28 16:20:48 +03:00
95b176f4e5 Adjacent unit filter takes civilians into account 2024-04-28 15:02:22 +03:00