10551 Commits

Author SHA1 Message Date
yairm210
5739afe173 Resolved #11643 - Mamalahoe Kawanai -> Kanawai Mamalahoe 2024-05-27 14:09:06 +03:00
yairm210
265b2d6292 4.11.15 4.11.15 2024-05-27 14:02:33 +03:00
yairm210
0c95fdc4e7 4.11.15 2024-05-27 12:44:53 +03:00
Yair Morgenstern
64ef738fd7
Version rollout (#11652)
* Bump version and create initial changelog entry

* Create Zulu.properties (#11634)

zulu language translation for unciv, very early, will continue transcribing.

* Updates + Fixes to Belarusian, Russian, Italian (#11633)

* Updates + Fixes to Belarusian

Even more content

* Russian Update

* Revert "Russian Update"

This reverts commit 0b44358510bb8829c8ae496b7c29b1146959243f.

* Italian + Russian + BelarusianUpdate

Update for Belarusian

* Update Indonesian.properties (#11632)

Corrected the mistranslation.

* Add a few translations to Ukrainian (#11629)

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

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: graycloud0 <151023736+graycloud0@users.noreply.github.com>
Co-authored-by: GameBoyNoob <94763659+GameBoyNoob@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
2024-05-27 12:41:12 +03:00
SomeTroglodyte
e1ec448f81
Cleaner Json custom serialization and unit tests (#11624)
* Barbarian encampments are no longer a HashMap since #9374 so that old compat code is unreachable

* Rename SerializationTests to GameSerializationTests and add a barb camp to the game

* Add SerializationTests (roundtrip tests for classes with custom serialization)

* Convert setSerializer to implement Json.Serializable where possible
2024-05-27 12:37:49 +03:00
Oskar Niesen
286005188f
Clicking the spy button no longer allows the spy to be moved when it isn't their turn (#11609) 2024-05-27 12:32:44 +03:00
Yair Morgenstern
11cee77fb9
"for every [countable]" unique modifier (#11641)
* "for every [countable]" unique modifier

* detekt fix

* Test city-unique edge cases
2024-05-27 12:32:12 +03:00
Oskar Niesen
ba56374ee2
Added the Espionage civilopedia entry (#11597)
* Added the Espionage civilopedia entry

* Spelling and grammar fixes

* Update Espionage cyclopedia entry to use newer format
2024-05-27 12:31:56 +03:00
Oskar Niesen
dd8072c3d3
Construction automation rework (#11601)
* Changed building construction priority to consider more possibilities

* Fixed addBuildingChoices taking into account non-buildable buildings

* Reduced first worker priority

* Fixed negative value buildings and changed the values of some buildings

* Aggressive personality wants to build experience buildings more

* Removed the unnecessary parameter in each of the apply.* methods
2024-05-27 12:31:42 +03:00
Oskar Niesen
3d222ecd81
Espionage button cancels moving spy (#11631)
* Pressing the espionage button while moving a spy on the map now deselects the spy

* Minor UnitTable whitespace removeal
2024-05-27 12:31:15 +03:00
Oskar Niesen
0412d4f143
Revert Espionage button icon (#11630)
* Reverted spy button to show the spy white icon

* Changed the docs credits

* Espionage button now uses a separate path

* Reverted changing Icons.png

* Changed Espionage.png to the new sprite
2024-05-27 12:31:04 +03:00
SomeTroglodyte
c5df845611
Fix bug in ModConstants handling (#11645)
* Fix a few unhelpful mod checker warnings

* Fix a problems with ModConstants and unit tests for them

* Minor linting
2024-05-27 12:30:51 +03:00
SomeTroglodyte
b78f887124
Some minor behind-the-scenes UI architecture changes (#11639)
* Some UI architecture changes

* Some UI architecture changes - merge Kdoc update from another PR

* Remove experimental status of the key bindings UI

* Minor update to keyboard tutorials

* Minor readability linting: A few color names instead of hex codes

* Fix links from Options not working when called from MainMenuScreen
2024-05-27 12:30:34 +03:00
SomeTroglodyte
199a684409
Support for Zulu language (#11644) 2024-05-27 12:30:21 +03:00
yairm210
f1c0288a43 4.11.14-patch1 4.11.14-patch1 2024-05-23 03:59:24 +00:00
Yair Morgenstern
479bc3ec85
Fixed preferred victory type ruleset validation - should NOT be invariant! (#11640) 2024-05-23 06:59:15 +03:00
Yair Morgenstern
4bbeece29e Added links to base ruleset template in docs 2024-05-22 23:33:04 +03:00
Yair Morgenstern
6637ee73a4 Fixed "don't allow era select" if the game has no techs 2024-05-22 23:01:33 +03:00
Yair Morgenstern
860989571a 4.11.14 4.11.14 2024-05-21 20:22:21 +03:00
Yair Morgenstern
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
Oskar Niesen
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
Yair Morgenstern
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
SomeTroglodyte
ec253a5886
ImagePacker detects changed settings file, improve documentation. (#11625) 2024-05-21 19:55:22 +03:00
SomeTroglodyte
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
Oskar Niesen
94aac8554f
Fixed gold ruin not displaying notification (#11614) 2024-05-21 19:52:44 +03:00
Oskar Niesen
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
SomeTroglodyte
ca1a2816c8
Make stateBasedRandom depend on turn (#11603) 2024-05-21 19:38:39 +03:00
Yair Morgenstern
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
yairm210
36621e7d69 Default city for hexarealm does NOT have a question mark 2024-05-19 23:55:43 +03:00
yairm210
1f97b069e5 Copy stacktrace to clipboard when failing to load mods - #11613 2024-05-19 23:51:23 +03:00
yairm210
d1b918abc3 Added ruleset validation for preferred victory type 2024-05-19 16:15:28 +03:00
Yair Morgenstern
8fa230631b
Update README.md 2024-05-19 15:57:12 +03:00
yairm210
4d728914f4 4.11.13 4.11.13 2024-05-16 08:32:15 +03:00
Yair Morgenstern
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
SomeTroglodyte
55201f9e16
This has been annoying me for AGES (#11604) 2024-05-16 08:21:03 +03:00
yairm210
0aa70668cc Barbarian water units no longer pillage 2024-05-16 07:06:21 +03:00
SomeTroglodyte
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
SomeTroglodyte
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
Oskar Niesen
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
Oskar Niesen
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
Oskar Niesen
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
SomeTroglodyte
1fed88acf6
Espionage icons (#11600)
* Icons for Espionage Buildings

* Update WorldScreen top left buttons
2024-05-16 07:01:47 +03:00
Yair Morgenstern
66634dba0e 4.11.12 4.11.12 2024-05-14 11:23:52 +03:00
Yair Morgenstern
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
Oskar Niesen
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
SomeTroglodyte
04423be44f
Fix "Move a unit" tutorial isn't completed by moving via right-click (#11591) 2024-05-14 11:00:51 +03:00
SomeTroglodyte
9ddc2337ac
Architecture overhaul: openCivilopedia and "hey, who knows which Ruleset we're running"? (#11590) 2024-05-14 11:00:40 +03:00
PLynx
cd9db42672
Added the culture-refunding remove policy unique (#11538) 2024-05-14 11:00:16 +03:00
Skekdog
50274a42ad
Corrected Coast yields to give 1 Food and 1 Gold (#11583)
* Coast also yields 1 Gold

* Coast also yields 1 Gold and 1 Food in Vanilla
2024-05-14 10:59:18 +03:00
Oskar Niesen
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