* Only pillage neutral roads when at war.
Track road ownership based on who built the road or who last owned the tile
* Remove excessively safe checks
* Fix potential null exception
* Rework, use string
* yairm suggestions
* readability
* Update Building-Locally.md
Add missing step to restart.
* Add new generated maps: Three Continents and Three Continents Fair
* Only use fair version of Three Continents. Make 3rd continent a little larger to be closer in size to the other two.
* Rename generated map "Continents" to "Two Continents" and make it randomly choose latitude or longitude land division.
* Choose latitude or longitude land division based on map width and height if they are not equal.
* Units can now be given optional Portraits to be displayed everywhere (except world map) instead of unit Flags.
* Add section to wiki for adding Unit Portraits
* Generify portrait functions
* Small nitpicks fixed
* Reverted one change
* Fix docs
* Fix docs
Co-authored-by: tunerzinc@gmail.com <vfylfhby>
Normally this is auto-fixed but a `/` at the end of the URL does not work. Because in API you do requests like `GET /file/:filename` and if you also put a `/` at the end of the server URL, it becomes something like this `https://example.com//files/filename`. Since the auto-fix happens only when typing a new URL from `Options` > `Multiplayer`, the default value doesn't get auto-fixed and shows errors.
I tested on a new installation and as expected it shows the `Couldn't upload game` error.
This pr fixes this.
* Replaced all occurrences of deprecated NinePatch
function calls
This makes a lot of UI elements already moddable but documentation is still missing
* Added "How to create a UI skin for Unciv" to wiki
* Added image
* Fixed two typos and updated directory image
Old image was missing a folder
* Added clear color to skin config
to support picker screen backgrounds
* Removed deprecated functions in ImageGetter
* Fixed lowercase ui element names
they should always be UpperCamelCase to be consistent
* Added UiElementDocsWriter
to modify the docs for UI elements automatically
* Added default shape to UiElementsDocsWriter.kt
* Revert unintended merge errors
* Rerun file auto generation
* Reapply Changes
* Logic clean up
* Adding getImprovementToPillage() and getRepairableImprovement()
* Cleaning up Unit Actions
* getImprovementToPillage() needs to check for Unpillagable
* Remove redundant logic since canBuildImprovement() returns true if currently repairing
* More redundant logic
* Prevent City Center from being Pillage status
addRepairAction will not show a Repair Action
Adding the improvement to be repaired/pillaged in button text
Utilizing getImprovementToPillage() more
* Some import cleanup
Add Irremovable to blockers
More consolidation of code
* More translation files
* When improvements/roads are built/removed, pillaged flag set to False
* Better and more consistent logic
* Fix dumb logic bug
Counting of social policies was only correct for completed branches: 6
Incompleted branches with only 1 SP were hidden,
and those with N>1 SP displayed N-1.