* City buttons support right-click / long-press to enter CityScreen directly
* City r-click: Rename helper and UI tips
* City capitalization follows getCurrentTutorialTask precedent
* City capitalization change applied to existing translation keys
* Revert "City capitalization change applied to existing translation keys"
This reverts commit c3638a0daf.
* Revert "City capitalization follows getCurrentTutorialTask precedent"
This reverts commit b618f4cae3.
* City capitalization in new text follows getCurrentTutorialTask precedent
* Added escort button
* Added basic escort movement
* Improved escort movement
* Swapping breaks escorting
* Added stop escorting button
* Added link icon to unit
* getDistanceToTiles() now automatically includes escorting
* Multi-turn movement with different units works somewhat
* Escorting units persist to escort across saves
* Escorting units are only idle if their partner unit is idle as well
* Fixed multi-turn escort movement where one unit has more movement points left over
* Added basic tests
* Added a test for formation idle units
* Added some basic movement tests
* Added some canMoveTo tests
* getDistanceToTiles only caches when includeEscort is true
* added getDistanceToTiles test
* An entire commit to remove one line of white space just for you! And yes, there are no semi-colons;
* Added translations
* Added more stopEscorting() calls when the unit is removed
* Added extra comments and refactoring
* Refactored removeAllTilesNotInSet to use a mutableIterator
* Refactored code based on review
* Refactored removing tiles in PathsToTilesWithinTurn that aren't in another PathsToTilesWithinTurn
* Right-click external links to copy url
* Add hint about right-clicking links to UI Tips tutorial
* Add wiki link to about and centralize repo/wiki external link bases
* Mayan Long-Count unlock: Match translation template and existing translations to actual notification
* A TFW run adds another empty line at the end...
* Conditional for building in amount of cities
* fix order of operations
* Deprecate old require in amount cities uniques
* import
* Fix referring to the unique instead of the conditional
* Fix yield message
* I have no clue how this isn't imported, but I'mma assume this translates fine anyways
* Rename text for unique
* revert unique text
* Whoops
* Remove unnecessary puppet check
* Move additional description to it own function
* Split missing city text into its own function
* Move ToDo comment
* flip to be easier to read
* Move onlyAvailable rejections to its own function to be easier to work with
* Add in the word "of"
* Minor linting and fix folder-package mismatch
* Actually make AnimatedMenuPopup stay inside the stage in all directions (was done for bottom left only before)
* Proper keyboard bindings for AutoPlay and -menu
* Testing translations
* AutoPlay as widely used term
* Added getSpiesInCity method in EspionageManager
* Expanded stealing technology code
* Spies can now die and revive
* Added basic rigging elections
* Spies rigging elections can now be caught
* Added spy rank
* Players can now move spies to city-states
* Spies at a higher rank steal tech quicker
* EspionageAutomation now sends spies to city-states and to do counter intelligence
* Fixed some EspionageAutomation logic
* Fixed EspionageAutomation error
* Spy.location is now stored as a vector2
* Accounted for the only able to be one spy of a civ in each city
* Spies level up when successfully stealing tech.
* Increased tech steal rate by spy rank
* Increased influence gained by rigging elections
* Added a spy level cap
* Spies no longer get stuck on counter-intelligence action
* Spy automation no longer tries to rig elections in city states that it is at war with
* canMoveTo now checks if the city tile is visible
* Added espionage translations
* Changed automateSpySteal/Rig/Counter intelligence return types
* Simplifies automateSpies in EspionageAutomation
* Added blank lines before titles
* Improved spy being found and killed message phrasing
* Add modified nation descriptions
Original descriptions reworded and a bit shortened.
* Fix Greece description
* Add modified nation descriptions (vanilla)
* Improvements to Nation descriptions
Fixes and improvements by Yairm
* Improvements to Nations descriptions (vanilla)
Fixes and improvements by Yairm
* Improve startIntroPart2 for all nations
Also add fixes/improvements by Yairm.
* Improve startIntroPart2 for all nations (vanilla)
Also add fixes/improvements by Yairm.
* Experimental pathfinding - still not good enough for main branch
* Fixed strange pathfinding and impassible tiles
* Fixed weirdest bug in the history of weird bugs - remove() on an object did not remove the object
* Avoid damaging and enemy tiles for new pathfinding
* Add option for activating experimental movement
* Allow almost any mod zip download source
* Linting
* Add basic "Release page section" link capability, more linting
* Refactor: Move Github to logic
* Refactor: Split Github into files
* Refactor: centralizing all API knowledge
* Try bumping detekt version to fix false complaint
* Attempt to trick detekt to not complain about `it`
* Better overload-ambiguity-solving + detekt-compatible SAM use
* Add unique to allow for generalized great generals
* Don't add compatibility for rulesets with conditional generals
* Add to rulesets
* add in pre Kotlin 9 parenthesis
* whoops missed a parenthesis
* I guess pre Kotlin 9 parenthesis was unnecessary, whoops
* Add back old variables to clone function
* Move the list of all potential generals to Ruleset
* Move list of unit construction rejections to IConstruction
* flip !any{} to none{}
* Fix imports
* Typo
* Add Gold Growth and Production Growth Focus
New Manual Focus doesn't reallocate population
* Use Stat Names (and symbols) for focus
* Missing reassign code
* Clean up table for efficiency
* Table v2
* minor translation changes
* COMPATIBILITY
* v3 table
* Minor fixups
* Add Gold Growth and Production Growth Focus
New Manual Focus doesn't reallocate population
* Use Stat Names (and symbols) for focus
* Missing reassign code
* Clean up table for efficiency
* Table v2
* minor translation changes
* COMPATIBILITY
* v3 table
* Minor fixups
* Update to master code
Remove duplicating Food yield multiply
* Revert Compatibility Version
---------
Co-authored-by: itanasi <44038014+itanasi@users.noreply.github.com>
initialize() calls useImmersiveMode() internally, which would override the system ui visibility we manually set, leading to setting effectively being ignored on startup
Also, we can use LibGDX's builting function, which is more future-proof :)
* Bump version and create initial changelog entry
* Update Spanish.properties (#10780)
* Even more translations of Malay.properties (#10778)
I plan to finish the UI section this week. Honestly, going through and skimming a bit I've seen things I've never seen in game.
* Update Brazilian_Portuguese.properties (#10775)
* Some German translations (#10772)
* Update French.properties (#10768)
* Update Italian.properties (#10767)
---------
Co-authored-by: yairm210 <yairm210@users.noreply.github.com>
Co-authored-by: Caballero Arepa <78449553+Caballero-Arepa@users.noreply.github.com>
Co-authored-by: Mikhail <151419244+MetaFBMI@users.noreply.github.com>
Co-authored-by: Vitor Gabriel <59321138+Ranbut@users.noreply.github.com>
Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@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>
* Added a new AutoPlay until end button
* Added the new AutoPlay until victory setting to translation
* Reverted some comment fixes to hopefully not have a merge conflict
* Mod compatibility - update declarations
* Mod compatibility - logic and UI changes
* Mod compatibility - flag some invalid use patterns
* RulesetValidator - lint until Studio shuts up
* Fix isBaseRuleset test in ModRequires validation
---------
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
* Add Gold Growth and Production Growth Focus
New Manual Focus doesn't reallocate population
* Use Stat Names (and symbols) for focus
* Missing reassign code
* Clean up table for efficiency
* Table v2
* minor translation changes
* COMPATIBILITY
* v3 table
* Minor fixups
* Refactor Battle damage shadowed Label into reusable WidgetGroup
* Make Politics Overview "Grid header" fixed and some linting
* Add a Legend popup explaining line colors in the Politics Overview Diagram: Click inside
* Missing translation template
* Final decision on background didn't make it in properly
* Remove unused png - those are now in the Construction atlas
* Smaller background image
* Color and shadow choices
* Redo atlas to include both 10505 and this
* Add another confirmation when buying a religious unit in a city that doesn't follow a religion founded by the city's civ.
* There's other stuff that can be purchased with Faith. Better to use UniqueType.Religious unit I guess.
* Add string to template.properties
* One more space to make unit tests happy
* Better template.properties
* Reinsert trailing space
* Introduce Constants entry for "Cancel"
* Redo ConfirmBuyPopup
* Dev console command to tweak religion pressures
* Translation templates and one test
---------
Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com>
* Change per-City GPP points math and separate breakdown (producer w/ source doc) from aggregates (consumer ignoring source)
* Change CityScreen GPP list to not do aggregation itself, but show a breakdown on click
* Change "birth" city for GPP to a ***weighted*** random - no Great Mufties from cities not generating any Mufty points!
* Nicer signature for getGreatPersonPointsBreakdown
* Minor warnings linting and template for Sweden's bonus in the breakdown Popup
* Added a frigate cannon fire volley sound with crashing
* Changed the frigate and ship of the line to use shipCannonVolley.mp3
* Added proper credits
* Renamed "Volly" to "Volley"
* Start on road connect feature.
* Rough UI and tile highlighting
- Highlight visible tiles for selected unit red
-- Maybe change this to all explored tiles
- Move action firing inside WorldMapHolder
- Set begin and end tiles
* Serialize Vector2 instead of Tile
* Add road icon
* Much better UI handling
- Tile highlights go away after choosing a tile
- Added restrictions to allowed tile destination choices.
- Explored
- Land
- Passable
- Added two-tap button
* Refactor part of `onTileClicked` for readability
* Band-aid fix null pointer error
* Add RoadConnection icon
* Tentatively working connect road feature
* AStar search implementation
* AStar connect road automation
* Fix worker getting stuck in city tiles
* Heuristic should be between tiles
* Add heuristic to road connect, remove maxSize limit
* Fix predicates
* Cancel automation when worker is force moved off path
* Change valid/highlighted tiles to be friendly or neutral
* Put log back the way it was
* Fix behavior when kicked off path
* Worker no longer wastes movement points
* Workers will progress multiple tiles at a time towards the next build destination.
* Respect civs with certain tiles as roads
* Refractor ForceAutomateRoadConnection -> AutomateRoadConnection
* Connect road UI button only shows for units with UniqueType.BuildImprovements
* Connect road UI button only show when road tech is unlocked
* Add wagon sound
* Fix destination icon, add KeyboardBinding to 'c'
* UI highlight connect road path tiles orange
* Downsample wagon.mp3
* Apply migration patch, idiomatic sequence processing
* Add notifications on success and failure
* Extract movement cost function to be reusable
* Refactor road pathfinding into MapPathing.kt
* Make pathing calls more general for future extendability
* Add UI road connection tile path preview
* Keep road path highlighting when routing to a city tile
* Adjust road pathing cost function
* Path includes pillaged roads
* Repair pillaged roads along path
* Valid road path tiles now include all passable tiles (open borders)
* Add an "UI tips" civilopedia article
* Improve UI Tips article
Credits to @SomeTroglodyte and Yairm
* More improvements to UI Tips article
Credits to SomeTroglodyte