11742 Commits

Author SHA1 Message Date
yairm210
0ee7577a19 Resolved #13290 - Capitals which were previously city-states no longer display icons in victory screen 2025-05-05 20:41:14 +03:00
yairm210
bef7dc2b3f docs: 'between' is inclusive everywhere 2025-05-04 21:36:52 +03:00
yairm210
64f04bc1f0 AI: City states disband great prophets (they can't found religions) 2025-05-04 17:25:49 +03:00
yairm210
aa9b654e5e Fix Android MP checker 2025-05-04 12:13:52 +03:00
yairm210
c851065332 Resolved #12896 - MP: Simplified resign/skip in multiplayer, show affected civ in popups, fixed 'resign on auth instead of skip' bug 2025-05-04 11:56:22 +03:00
yairm210
6cb83e0aaa MP: "Skip current player turn" shows what player will be skipped, and is guaranteed to skip ONLY that player 2025-05-04 11:33:27 +03:00
yairm210
17d7017e84 MP: Unify preview updating to ensure disk and memory previews are always the same 2025-05-04 11:26:22 +03:00
yairm210
a5bf8b9dc8 . 2025-05-04 11:17:56 +03:00
yairm210
802843862f chore: rename UncivFiles.saveGame(GameInfoPreview) -> saveGamePreview 2025-05-04 11:17:08 +03:00
yairm210
8e4f3d9c39 4.16.7-patch1 4.16.7-patch1 2025-05-02 11:57:21 +00:00
Yair Morgenstern
94ce27c956
Fix global unique validation (#13280) 2025-05-02 14:57:14 +03:00
yairm210
bf0bb59411 chore: removed dead exceptions 2025-05-02 11:59:54 +03:00
yairm210
6633db330e Validation catches 'global triggers attached to unit triggerables', which will have no effect 2025-05-02 11:59:24 +03:00
yairm210
bd8f4b70f7 Added documentation explaining the expression parsing 2025-05-02 11:53:12 +03:00
yairm210
d51c0537cd Resolved #13274 - Added examples for all countables 2025-05-01 23:58:31 +03:00
yairm210
ee9df6e9bf Better Expression documentation 2025-05-01 23:45:40 +03:00
yairm210
a689d70ce9 Cleaned up other countable doc things 2025-05-01 22:32:05 +03:00
yairm210
99d7b118ce Countable doc sublist take 2 2025-05-01 22:25:06 +03:00
yairm210
d96a970ca1 AI: Don't offer peace when we're just about to take a city 2025-05-01 22:23:35 +03:00
yairm210
d22127823c Better looking Countable documentation 2025-05-01 22:21:11 +03:00
yairm210
d5f67a6689 chore: Added Civilization.getAllyCiv():Civilization? 2025-05-01 22:14:28 +03:00
yairm210
a4f05414ca chore: rename Civilization.getAllyCiv -> getAllyCivName 2025-05-01 22:06:35 +03:00
yairm210
4c95445933 4.16.7 4.16.7 2025-05-01 22:01:44 +03:00
Yair Morgenstern
9234f48b99
Version rollout (#13273)
* Bump version and create initial changelog entry

* Update Italian.properties (#13268)

* Update French.properties (#13267)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
2025-05-01 21:58:57 +03:00
General_E
21992ef648
Update to auto promotion & fix 2 bugs (#13265)
* Settler settle best tile when not escort and dangerous Tiles instead of running away

Settler unit will now settle on best tile in dangerous Tiles without escort instead of running away.

* Update WorkerAutomation.kt

* Update SpecificUnitAutomation.kt

* Update WorkerAutomation.kt

* Update SpecificUnitAutomation.kt

* Now city states get mad when you steal their Lands

* new version

* change to getDiplomacyManagerOrMeet

* added text to template.properties and changed AlertPopup.kt

* Update template.properties

* with period at the end :b

* add flag now

* Made Option to declare war when a city state is bullied unavailable

* added option to change the Maximum Autosave turns stored

* remove print

* change letter

* should fix issue with building test

* update with changes

* Added UniqueType.FoundPuppetCity

with "Founds a new puppet city" in "uniques" of an unit in Units.json.
Making it so you can now settle a puppet city.

* Added save promotion

* Updated for PR

* Updated with requested changes

* Removed unnecessary check

* updated PR

* Update PromotionPickerScreen.kt to save promotion cells too

* change name and added !

* updated name of variable

* updated version from unitType to BaseUnit

* updated variable name

* Added unitType to reduce the xp cost of promotions for all units in a civ

This was a unique type that the Zulu have in civ 5

* updated name

* remove UniqueTarget.FollowerBelief

* Experience from to XP

* fix ?

* XP

* change it back to Experience because it didn't want to build on git :(

* back to XP then

* update auto promotion and fix negative XP on unit

* Fix build issues and remove the XPForPromotionModifier from xpForNextPromotion and  xpForNextNPromotions

* remove XPForPromotionModifier

* re added Statuses and remove duplicate comment

* remove some white space and 1 used import "com.unciv.ui.components.extensions.toPercent"

* remove unique from uniques.md

* fix 2 bugs for promotionPicker and unitPromotion

* Update PromotionPickerScreen.kt

* Update PromotionPickerScreen.kt
2025-05-01 21:57:01 +03:00
EmperorPinguin
6d665c81af
Update UnitAutomation.kt (#13271) 2025-05-01 21:56:40 +03:00
PLynx
c0d6897884
Add "Cannot embark" unit unique (#13272)
* Added CannotEmbark unit unique

* Auto-generate unique in docs
2025-05-01 21:56:12 +03:00
yairm210
0cb3ebed90 Added 'search mods' in new game screen 2025-05-01 21:53:26 +03:00
yairm210
16f9639822 Resolved #13270 - Fixed a bug in unique validation and in countable validation 2025-05-01 21:16:13 +03:00
yairm210
9396712785 Removed ICountable - all base functions are, and should be, contained in Countables. 2025-05-01 20:51:38 +03:00
SomeTroglodyte
e38e76b5c6
Expressions as Countable (#13218)
* Redefine ICountable.matches, getDeprecationAnnotation is not part of the "engine" character of that interface

* Add a way to mark not-yet-finished Countables

* Add an empty framework for @AutumnPizazz's Expression engine

* Make "which does not fit parameter type" constant for pattern match robustness

* New expression evaluator engine

* Fix countable tests: correct expected failures

* All syntax errors MUST indicate position.
Otherwise, modders can't actually debug.

* Better positions + documentation

* Get rid of functions that modders *should not* be using

* Fix tests given the new changes

* Add modder-visible expression parsing errors

* Revert Countables to current state

* Fix the rest of the damn owl - compilation, not tests

* Fix all tests as well

* Detect countables at parse; Don't crash

* Add error detection for all types of expression errors

* Better documentation

* Countables catches first matching, to avoid parsing known countables as Expressions

---------

Co-authored-by: yairm210 <yairm210@hotmail.com>
2025-05-01 20:26:21 +03:00
yairm210
d4b31642d8 Added search bar for mods in mod checker 2025-05-01 15:54:49 +03:00
yairm210
c7700c8ec4 Resolved #13269 - Allow automation for settlers with conditional settling uniques 2025-05-01 14:43:37 +03:00
yairm210
2a26dc31ee 4.16.6 4.16.6 2025-04-29 22:55:34 +03:00
yairm210
e61b85f44a Resolved #13263 - Demands/Requests from other civs do not stop other events (like city capture) from being registered 2025-04-29 22:47:50 +03:00
EmperorPinguin
d203ea528e
Prevent AI from placing units near citadels (#13264)
* Update BattleHelper.kt

* Update UnitAutomation.kt
2025-04-29 22:47:41 +03:00
Yair Morgenstern
6618d03bb7
Version rollout (#13260)
* Bump version and create initial changelog entry

* Update Japanese.properties (#13255)

* Update French.properties (#13252)

* Update Brazilian_Portuguese.properties (#13251)

* Update Italian.properties (#13249)

* Update Indonesian.properties (#13247)

* Update Catalan.properties and linux/unciv.desktop (#13256)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: cknight828 <128895471+cknight828@users.noreply.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: 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>
2025-04-29 22:47:33 +03:00
EmperorPinguin
5f6420da4b
Update CityPopulationManager.kt (#13257) 2025-04-28 10:36:35 +03:00
yairm210
5680fec832 Resolved #13258 - Can pay to improve resource in any CS city, not just capital; Water improvements can be built for city states 2025-04-28 10:35:56 +03:00
Ouaz
041ecaf779
Fix toggle improvements button color (#13259) 2025-04-28 10:26:19 +03:00
yairm210
846213b45b Modding: Added misspelling tests for uniqueTo for buildings, units and improvements 2025-04-26 22:59:00 +03:00
yairm210
90c8d30f51 Seed pillage randomness to avoid save-scumming 2025-04-25 16:39:39 +03:00
yairm210
6fe8676ca1 Better ANR avoiding when loading game 2025-04-25 15:41:32 +03:00
yairm210
0220adcb22 Resolved #13243 - Triggerable uniques on promotions will only activate once when added to unit on creation 2025-04-25 15:33:07 +03:00
yairm210
ab4a1646ae Resolved #13254 - Beliefs can be modified with AI decision modifiers; AI will no longer choose Religious Unity / Papal Primacy with no city states 2025-04-25 15:24:44 +03:00
yairm210
b1066064f3 Resolved #13250 - Finish city-state quest upon acquiring great person 2025-04-25 15:12:11 +03:00
yairm210
0f34f876ed 4.16.5 4.16.5 2025-04-23 23:23:25 +03:00
Yair Morgenstern
7ab617f35d
Version rollout (#13246)
* Bump version and create initial changelog entry

* Discussion on Greek.properties (#13240)

* Update Greek.properties

added a few things

* Update Greek.properties

I chose to translate unit table as "πλαίσιο μονάδας",
which means something more closely to "unit frame" 
but I think this will make it easier to understand for greek speakers
as the unit table is somewhat a rectanglular shape

* Update Greek.properties

Spaced out some translations, think it makes it easier to check whether each line is tranlated if the lines are not all bunched up

* Update Greek.properties

In the last two translations (in lines 154 and 156)
I didn't understand what [cityFilter] is for so there might be a mistake in the translation

* Update Ukrainian translation (#13239)

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

* Update Spanish.properties (#13236)

* Update Italian.properties (#13231)

* Update Indonesian.properties (#13229)

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update Indonesian.properties

* Update French.properties (#13227)

* Update French.properties

* Update French.properties

* Update French.properties

* Update French.properties

* Update Brazilian_Portuguese.properties (#13226)

---------

Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: ChrisZiogas <152174758+ChrisZiogas@users.noreply.github.com>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: Nahuel Geno <142752140+NahuelGeno@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>
Co-authored-by: Ouaz <Ouaz@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
2025-04-23 23:10:58 +03:00
yairm210
11fe608396 Added validation for global unit uniques - see #13196 2025-04-23 22:52:23 +03:00
yairm210
2205a87d8f Resolved #13222 - Added improvement image toggle next to minimap 2025-04-23 22:33:17 +03:00