yairm210
5ae048dba6
require -> import, var -> const in all js files
2024-06-22 23:32:26 +03:00
Oskar Niesen
f65709ab09
Add personality uses ( #11807 )
...
* Reduced max motivationToAttack from relative combat strength
* Refactored MotivationToAttackAutomation to use a float instead of an int
* Added personality values to MotivationToAttackAutomation
* Fixed minor build errors
* Added DiplomacyAutomation personality modifiers
* Improved ConstructionAutomation personality values
* Added some more personality implementations
* Tweaked trainSettler
* Fixed civilizations asking for help against city-states
* Adjusted DiplomacyAutomation to account for war mongering
* Fixed typo
2024-06-22 22:23:38 +03:00
Yair Morgenstern
2087c36c6d
Cache 'majority religion' and uniques, recalc when updating followers ( #11804 )
...
Next step is caching follower uniques on the religion itself
2024-06-22 22:20:32 +03:00
SomeTroglodyte
de04c00dd0
Improvement picker fixes ( #11801 )
...
* 🎵 A little linting 🎶
* Prevent queueing unresearched removals by adding their problem reports on top
* More linting and bugfixes
* Hide "too advanced" Improvements in the PickerScreen
* ImprovementPickerScreen fully Civilopedia-linked
* Fix dumb mistake
* Slightly improve PickerPane descriptionLabel layout
* Slightly improve ImprovementPickerScreen top padding
2024-06-22 22:20:16 +03:00
SomeTroglodyte
05020a7d7e
Refactor: UncivTextField ( #11705 )
...
* Refactor UncivTextField to be a normal Widget
* Remove UncivTextField `create` factory
2024-06-22 22:14:54 +03:00
yairm210
149e90bfed
Tech, policy, unit and terrain uniques provide multiplied uniques with "for every [countable]" / "for every [amount] [countable]" modifiers
2024-06-21 19:21:29 +03:00
yairm210
d12c6c10e7
Fix tests
2024-06-21 19:02:01 +03:00
yairm210
1bf494a6f7
perf
2024-06-21 17:30:56 +03:00
yairm210
ff775056de
perf: Improvement filter cache, other small things
2024-06-21 16:54:05 +03:00
yairm210
66ed79298f
perf: Cache civFilter results
2024-06-21 16:29:57 +03:00
yairm210
d9d704da60
perf: Performance improvements for worker automation by caching uniques
2024-06-21 16:23:46 +03:00
Yair Morgenstern
c6620f7470
Re-enable ConsoleLauncher to run simulations
2024-06-21 15:47:20 +03:00
Yair Morgenstern
f10bc07260
Resolved #11803 - units teleport out of open borders on war declaration
2024-06-21 12:25:10 +03:00
Yair Morgenstern
3558917dfc
Inquisitors go out of city centers when spaceship parts need to be added in
2024-06-21 12:10:05 +03:00
Yair Morgenstern
c1d8402a48
Moved key + priority calculations into KeyShortcut data class
2024-06-21 12:10:05 +03:00
yairm210
c691510eca
Upgrade actions checkout from v3 to v4 to avoid 'node 16 actions deprecated' warnings
2024-06-19 17:53:58 +03:00
yairm210
e61c6c2a90
4.12.1
2024-06-19 17:44:09 +03:00
Yair Morgenstern
6ac3393e9b
Version rollout ( #11791 )
...
* Bump version and create initial changelog entry
* Update Italian.properties (#11782 )
* Update Italian.properties (#11781 )
Some minor improvement
* Update Hungarian.properties (#11776 )
* Update Hungarian.properties
* Update Hungarian.properties
* Update Hungarian.properties
* Update Hungarian.properties
* Update Spanish.properties (#11773 )
* Update Indonesian.properties (#11766 )
Translated the new word.
* Fix Sipahi translation for RU — should be 'Сипахи', not 'Сипаи' (#11764 )
* Update Catalan.properties (#11759 )
Co-authored-by: yairm210 <yairm210@hotmail.com>
---------
Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: andrestu <82871275+andrestu@users.noreply.github.com>
Co-authored-by: balazsszalab <balazsszalab@freemail.hu>
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
Co-authored-by: Stas Fomin <stas-fomin@yandex.ru>
Co-authored-by: Joan Josep <juanjo.ng.83@gmail.com>
2024-06-19 17:38:53 +03:00
Yair Morgenstern
4e5ec53d64
Resolves #11772 - Allow hidden conditionals ( #11778 )
...
* Allow hidden conditionals
* SomeTrog fixes
* We sure display uniques to users A LOT
2024-06-19 17:28:53 +03:00
Oskar Niesen
dff8133a7a
Defeated civilizations don't use spies ( #11785 )
...
* Fixed a crash when rigging a city-state election the turn before meeting them
* Civilizations move their spies back to the hideout when defeated
* Players can't move spies when defeated
* Removed some weird indents
2024-06-19 17:23:42 +03:00
yairm210
f52245865c
perf(minor): Don't check stat purchases for non-purchacable stats
2024-06-19 17:15:12 +03:00
Oskar Niesen
27020fb796
Spies deselect when moved on map ( #11767 )
2024-06-19 17:14:04 +03:00
SomeTroglodyte
9f4d0ace49
Add "release patch" section to the wiki ( #11744 )
2024-06-19 17:13:55 +03:00
Oskar Niesen
2d2b730399
Civs can no longer declare war right after peace with a city-state ( #11762 )
...
* Signing peace with a civ and a city state adds a peace treaty with the city-state
* Added a comment
2024-06-19 17:13:36 +03:00
Oskar Niesen
fec30364a9
Moved automation settings to AutoPlayTab and renamed it to AutomationTab ( #11765 )
...
* Moved automation settings to AutoPlayTab
* Renamed the AutoPlayTab to AutomationTab
* Added a translation
2024-06-19 17:13:25 +03:00
SpacedOutChicken
dc9bf45009
- Turn Privateer's unique ability into a promotion ( #11761 )
...
- Add promotion to Privateer and Sea Beggar
2024-06-19 17:13:15 +03:00
SomeTroglodyte
2f6c48a0cf
Fix Civilopedia content clipped at the top ( #11788 )
2024-06-19 17:13:02 +03:00
SomeTroglodyte
33f73f5aae
Thwart the nathty dithband thpammer ( #11790 )
2024-06-19 17:12:47 +03:00
SomeTroglodyte
9431e3cbc4
Fix coastal rivers near Rock of Gibraltar ( #11789 )
2024-06-19 17:12:07 +03:00
yairm210
0d91cf9983
perf: Resolved #11775
2024-06-19 17:05:10 +03:00
yairm210
94acb75967
Resolved #11787 - "join war" offers are only valid if you can actually declare war on them
2024-06-19 16:46:39 +03:00
Yair Morgenstern
109955c523
Simplified DispatcherVetoer, explained dispatcher
2024-06-19 00:37:07 +03:00
Yair Morgenstern
3b74e3311e
Fix misaligned change
2024-06-18 00:40:35 +03:00
Yair Morgenstern
6f868952bb
minor corrections
2024-06-17 23:45:55 +03:00
Yair Morgenstern
79be14e291
Resolved #11082 - Added "Will not be replaced by automated units" unique
2024-06-17 23:12:50 +03:00
Oskar Niesen
bbea08364b
TechDebt: Made getDiplomacyManger() nullable ( #11771 )
...
* Made getDiplomacyManager nullable and added getDiplomacyMangerOrMeet
* Fixed AI Automation having problems when playing as a oneCityChallenger civ
2024-06-16 23:40:45 +03:00
SomeTroglodyte
c5d3bfca9d
Add wiki section on how to begin a new language ( #11756 )
2024-06-16 22:12:17 +03:00
tuvus
498c22396a
4.12.0-patch1
2024-06-16 15:01:33 +00:00
Oskar Niesen
4759287465
Fixed a city-state coup crash ( #11769 )
...
* Fixed the coup crash
* Fixed another potential crash on a failed coup
2024-06-16 18:01:25 +03:00
yairm210
61c5302d31
Don't notify for "0 stat" plunders
2024-06-16 14:27:44 +03:00
Yair Morgenstern
0a357e3598
Resolved #11758
2024-06-15 23:14:51 +03:00
Yair Morgenstern
9dfd82e002
4.12.0
2024-06-15 22:47:04 +03:00
Yair Morgenstern
ac54209d6b
Resolve #11752 - fix crash in spy automation
2024-06-15 22:35:18 +03:00
Yair Morgenstern
5967f56f6d
typo: rigg -> rig
...
Resolves #11748
2024-06-15 22:31:40 +03:00
Yair Morgenstern
0794b800fc
Version rollout ( #11757 )
...
* Bump version and create initial changelog entry
* Update Hungarian.properties (#11753 )
* Provide translations to Ukrainian (#11750 )
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
* Update Catalan.properties (#11749 )
* Update French.properties (#11738 )
* Update Brazilian_Portuguese.properties (#11737 )
* Update Italian.properties (#11736 )
* Update Indonesian.properties (#11733 )
* Update Indonesian.properties
Translated the new words.
* Update Indonesian.properties
---------
Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: balazsszalab <balazsszalab@freemail.hu>
Co-authored-by: Kostiantyn Ko <test9@mormat.name>
Co-authored-by: Kostiantyn Ko <mormat.iam@gmail.com>
Co-authored-by: Joan Josep <juanjo.ng.83@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: Giuseppe D'Addio <41149920+Smashfanful@users.noreply.github.com>
Co-authored-by: X2003 <158255876+Xenia2003@users.noreply.github.com>
2024-06-15 22:30:55 +03:00
Oskar Niesen
2b8c965d6b
Personality implementation ( #11729 )
...
* Add Personalities.json
* Personality tags
* Askia, Attila, Augustus Personalities
* Bismark & Boudica
* Added parsed personalities
* Linked Personalities to their nation
* Tweaked some personalities
* Added the declareWar Personality
* Fixed some misnaming
---------
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
2024-06-15 22:02:51 +03:00
Yair Morgenstern
255e6c7fc9
Adds unique IDs to units ( #11745 )
...
* Adds unique IDs to units
* Add IDs to units in existing games
* civ.getUnitById function
* Fix 'no units' case
2024-06-15 22:00:41 +03:00
Md. Touhidur Rahman
3b40820bf2
Update buildAndDeploy.yml ( #11751 )
...
We'll see if this works, worst case we can revert it
2024-06-15 21:59:54 +03:00
Oskar Niesen
4d1484923c
Renamed getDistanceToTilesWithinTurn to getDistanceToTilesAtLocation ( #11754 )
2024-06-15 21:59:01 +03:00
SomeTroglodyte
bb1057e515
Fix map editor can't place improvements ( #11743 )
...
* Fix map editor can't place improvements
* Prefer the 'has...' approach after all
2024-06-15 21:58:04 +03:00