* Move UncivServer to own module (and jar)
* UncivServer isalive logged
* Separate UncivServer - some wiki hints
* Separate UncivServer - how to build UncivServer.jar
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
* Update Hosting-a-Multiplayer-server.md
Added a section for explaining that Android does not like unencrypted traffic to a self-hosted server and that you need to setup a reverse proxy to do that.
* Added hint for MultiplayerFiles folder
* Comments to 'link' implementation (matchFilter) to UniqueParameterType
* Comments to 'link' UniqueParameterType to implementation (matchFilter)
* Fix two mistakes in UniqueParameterType
* Make "and" filter logic for MapUnit and BaseUnit modular, fix mistake
* Make UnitMovementMemory immutable and without lateinit
* Keep UniqueType comment promise that instances can override parameter types
* Reorg UniqueDocsWriter so UniqueParameterType-specific text is moved to the enum
Also some minor improvements - e.g. abbreviations sorted & consistent punctuation, less memory allocations, a/b/c type params get an example,...
* New abilities for UniqueDocsWriter concerning UniqueTarget and inheritsFrom (initially deactivated)
* Actually implement the wish for distinction between absolute and relative amounts
* Change UniqueParameterType.UnitName.docExample to Xander's choice
Add modding translation instruction to translation.md inpired by #6483.
Mostly is copied from @SomeTroglodyte 's comment and add some of my own translation expeirence.
There might be some grammatical mistakes in this doc.
* Fixed the links in the docs
* Fixed broken tables
Tables without a line break above are not treated as valid tables
* Removed redundant table of contents and formatted some bulleted lists
* The image in Regions.md is now properly displayed
* Standardized list indentation, line spacing, table header rows, and JSON code blocks
* Standardized headers
* Fixed remaining broken links, edited pseudo-footnotes
* Fixed G&K policy eras
Patronage should be Medieval and Freedom should be Industrial in G&K
* Added 'priorities' object to policy branch entries
* Fixed Vanilla policy eras
Also set testing priorities in advance
* Partial code formatting
* Reworked how the AI chooses a policy to newly adopt
* Removed debugging codes
* Update Civilization-related-JSON-files.md
Added Branch priorities
* Assigned actual priorities to each branch
Also fixed a debugging value in Ruleset.kt (-1 -> 0)
* Allow TranslationFileWriter to follow several superclass levels (fixes PolicyBranch names)
* Bring German and template up to par as baseline
* Framework to feed TranslationFileWriter from UniqueParameterType, also fixes Fountain of Youth
* TranslationFileWriter legacy guessing now _much_ simpler
* Fix "chance to be destroyed by nukes" case
* Fix tests (allTranslationsHaveCorrectPlaceholders goes cross-language)
* Generalized trade route percent bonuses
* Unified two uniques using populationFilter; deprecated a deprecated uniq
* Made some renamings to improve clarity & fixed tests
* Fixed tests again
* Fixed typo
* Background implementation for Unciv server with ktor.
Server ip in settings, able to copy your own ip and copy ip from clipboard for easy sharing, created stub for the client-server data transfer. No actual data storage or server implementation.
* Unciv server round 2 - implementing crud for files and it works!
metadata seems to only be in use for mutex, which is currently unused
That's all for today
* When starting a new multiplayer game the files are correctly saved in the server, and the server can return the files, but the function in the game to retrieve the game info is non-blocking so it doesn't work. Still, progress!
* Changed the Gdx http to basic Java http, as used for Dropbox, and now everything works!!!!
* Documentation for running and using the server
* Better texts, translations, etc
* Trog is right this should be a PUT not POST
* Unique units abilities that should be inherited by upgrades
* Unique units abilities that should be inherited by upgrades - xlt
* Unique units abilities that should be inherited by upgrades - wiki
* WLTK decoration png's and atlas
* UncivTooltip anchor to stage so tips won't get clipped by some ScrollPane
* Empire Overview Cities add WLTK column
* Make WLTK line on CityScreen stats box link to Civilopedia
* Make Civilopedia return to previous screen for _both_ ESC/Back and the Close Button
* Revive Civilopedia links in WorldScreen.TileInfoTable
* Festive decoration for WLTK day on CityScreen
* Autoupdates to uniques will multiple solutions now replace to the correct one
Problem - some deprecated uniques can lead to multiple possibilities of replacements, depending on the parameter type
This lead to replacements in the jsons that were either unparseable entirely or were causing errors, both of which needed to be corrected by hand
We now separate such deprecations into their constituent potential replacement uniques, and try and take only the unique that doesn't cause any errors
Works like a charmander :)
* Conditional name change
* Resolved#6179 - when changing units production due to deprecation, notification no longer counts the same city multiple times if it appears multiple times in its queue
Instead of expanding the existing 'requires building' unique to units and adding limiters, it's both easier and more generalizable to add conditionals for cities with and without certain buildings to replace the uniques entirely
* Add Amphibious penalty to Land attacking into Water and vice versa
* Replace Landing with Amphibious in all translation files
* Fix trailing whitespace
* Revert translation files
* Change working of Amphibious
Set penalty to Landing and Boarding
* Type-ify Unique and add Depreciated
Add Promotion to Melee Naval
Add exception that Landing penalty is NOT against cities
* Fix Vanilla
* Rename to Landing Party
Icon doesn't work
* Properly regenerated game.atlas/game.png
Co-authored-by: itanasi <spellman23@gmail.com>
* Unified "X is only available under Y conditions" into a single unique
There were a few problems with existing uniques - they weren't really composable, the offered things they didn't keep, etc
For example, "Incompatible with [policy/tech/promotion]", UniqueTarget.Policy, UniqueTarget.Tech, UniqueTarget.Promotion. In fact, promotions only checked promotion incompatibility, promotions - promotion incompat, etc
Additionally, with a few more changes, this could cover several other uniques - "Hidden until [amount] social policy branches have been completed", "Requires at least [amount] population", perhaps others
I have to say I think conditionals are the best thing ever and they make amazing composability possible :)
* Autoupdate correctly recognizes parameters
Updated ruleset jsons
* Deprecation texts should be allowed to forward to other deprecated uniques so we only need to change the leaves when introducing new uniques, not go through the whole tree
* Arbitrary conditionals can become timed conditionals!
triggerCivwideUniques is activated in 3 situations:
- Tech complete
- Policy adopted
- Building complete
So for each of the unique containers for these I added a catch saying 'if this unique is a temporary unique then don't save it yourself
This has been lying around in todos for a while and generalizes one of the nasty hardcoded messes that I hate about Civ V. Why would you introduce ONE timed effect in the whole game?! You can use them all the time like Humankind or never use them like Civ IV, but why have just one whyyy
One more thing in this PR, that needed to be solved by the by, is allowing parameters to have a '2' on the end so we can autoreplace multiple parameters of the same type.
Using a regex is slightly more inefficient, but since this is A. only used once per UniqueType.kt, and B. allows us to have as many 'amount's as we want which is important if we have a lot of conditionals, I feel this is justified.
* Fixed comments from PR
* Techs with these kinds of conditional bonuses exist in Civ IV and VI
* Phrasing can now include long-term benefits :)
* Capitalization
* Triggered uniques now subject to conditionals
* Removed extraneous parameter
* Conditional placement
* Updated uniques.md to better phrasing
* Typified Obsolete unique, made luxury resources obsoletable
Things that were luxuries in the past become uninteresting as time goes on
* Unified obsolescence handling for buildings, improvements and resources
* Obsolete icons have their x's in the right place
* All images &c are done - we have the skeleton of the mod in place!
* Revert "All images &c are done - we have the skeleton of the mod in place!"
This reverts commit 61553c17
* Find all replaceable uniques, generate replacement text, check for compatibility, and replace!
All of the work up until now has lead up to this point - since we already know what's out and what to replace it with, we can do 90%+ of the work ourselves and spare the sanity of our modders
For an example run:
- Download your favorite mod
- Check its deprecated uniques in the options menu
- Run the autoupdater from the same menu
- See how they disappear
- Bask in the glory
* A few unreplaced uniques raised problems in some of the replacement texts
* Old unusable deprecated uniques are suddenly important again, because they can help autoupdate mods!
I'm wondering if to remove outdated mods entirely from the uniques.md, since they're going to keep accumulating
* Padding for the 'autoupdate' button
* Only display autoupdate button if there are unique to update
Also, fixed some of the revived deprecated unique's replacement text thanks to fancy new tests :)
Tech uniques autoupdate!
* Toast now pops correctly, added translation entries
* Added unique to convert terrain to other terrain if adjacent to something
Terrain converting to other terrain when adjacent to rivers was using hardcoded stuff, so I un-hardcoded it
I thought I could use this to replace the 'coast' hardcoding, and if it wasn't for the maxCoastExtension then I could.
Modders CAN therefore add their own coast (Lava tiles and Ash tiles I dunno) but it will only be for directly close terrains.
This enables Deciv Redux to spawn huge maps.
* Also for Vanilla, which apparently had a different number of tabs than G&K for no apparent reason.
* Apparently terrain name wasn't a uniquetype yet
(cherry picked from commit 593fc257b5)
* Since we have the old unique typed, and the new replacement unique typed, we can show modders EXACTLY the new unique they'll need to have!
The final step of this process is having a 'replace old uniques' button which will automagically replace old uniques in a mod with the new versions. This will of course require some manual intervention since it's possible we added some parameters that didn't exist in the old one, but should work well for 95%+ of uniques.
* Also allow "[-amount]" replacements
Better replacements - "[+amount]" etc - where relevant
* Fixed misadded + in unique
* Gradle build tools upgrade
Apparently the magic is rewriting a specific line in the Android build file and downloading Android SDK 30.0.3
* Added wiki change, isn't that nice :)
* Added a json file for unhappiness effects
* Change existing code to handle these effects
* Made a weird and unexpendable way to add unhappiness effects to the civilopedia
* Add the default unhappinesseffects to mods without the json
* Added revolts when at very low happiness
* Renamed a few often-used functions
* Added a file for uniques that are always active
* Fixed tests
* Nullifies [Food] -> Nullifies Growth
* Typed some uniques, etc.
* Missed a few square braces
* Missed a parameter
* Missed another parameter
* Made a conditional, spelling, added check to `isStatRelated`
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
* Initial Home page
Updated Home (markdown)
Updated Getting Started (markdown)
Created Project structure overview (markdown)
Initial Home page
Updated Project structure overview (markdown)
Updated Project structure overview (markdown)
Created Making a new Civilization (markdown)
Updated Getting Started (markdown)
Updated Home (markdown)
Updated Project structure overview (markdown)
Created From code to deployment (markdown)
Updated Project structure overview (markdown)
Updated Major classes (markdown)
Updated Project structure and major classes (markdown)
Updated Getting Started (markdown)
Updated Project structure and major classes (markdown)
Updated From code to deployment (markdown)
Created Translating (markdown)
Updated Translating (markdown)
Updated Translating (markdown)
Updated Translating (markdown)
Updated Translating (markdown)
Created Coding standards (markdown)
Updated Home (markdown)
Added "why do we clone on NextTurn" explanation
Created Mods (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Translating (markdown)
New translation files location
Updated Mods (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Translating (markdown)
Added mod file location on chromebook
Created Scenarios (markdown)
Updated Scenarios (markdown)
Updated Scenarios (markdown)
Updated Scenarios (markdown)
Updated Scenarios (markdown)
Updated Scenarios (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Scenarios (markdown)
Updated Mods (markdown)
Added itch.io release
Updated Mods (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Project structure and major classes (markdown)
Updated Mods (markdown)
Created Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Added link to Uniques
Updated Uniques (markdown)
Added 'triggers victory' unique
Updated Making a new Civilization (markdown)
Created Building locally without Android Studio (markdown)
Updated Translating (markdown)
Updated Uniques (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Uniques (markdown)
Added improvement uniques
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Mods (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
I thought a tutorial on how to create a custom tileset in the first place could not hurt
Moved the sentence to the "Creating a custom tileset" page
Updated Making a new Civilization (markdown)
Updated Mods Making a new Civilization (markdown)
Updated Mods Making a new Civilization (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Destroyed Scenarios (markdown)
Updated Uniques (markdown)
Changed Travis documentation to Github actions documentation
Updated Translating (markdown)
Updated Translating (markdown)
Updated From code to deployment (markdown)
Removed "working on templated rule variants" because we currently don't
Updated Uniques (markdown)
Updated uniques based on everything done during the policy update
Misplaced a unique
Updated Making a new Civilization (markdown)
Updated Making a new Civilization (markdown)
Updated Translating (markdown)
Updated Uniques (markdown)
Removed [pending] messages for PR's that were no longer pending
Added uniques from telecommuncations/advanced balistics
Added all the uniques from my PR's (telecommunicatoins -- shrines); added uniques I deprecated at some point
Updated Uniques (markdown)
Added missing deprecated unique
Added uniques changed in #4292
Updated Uniques (markdown)
Added uniques from #4311 and #4301
Added uniques from #4331
Added Discord webhook message
Created page with basic information
Typo
Made information not incorrect
Added units.json
Manual new lines was a terrible idea
Updated JSON files for mods (markdown)
Added link to JSON files for mods explanation
Added eras.json
capitalization
Added a header
Improved example
Added Buildings.json
hmmm
Doesn't work, sad
Added information on Specialists.json
Updated JSON files for mods (markdown)
Added uniques from #4372
Updated Uniques (markdown)
Updated uniques after #4393
Updated uniques after #4423
Add new and deprecated uniques of #4487, #4459
add wonder images
Fixed mod directory
Updated Uniques (markdown)
Updated uniques after #4530, #4505, #4419
Reworked the passages on tileFilter, terrainFilter and improvementFilter from code inspection
Added a more indept guide on how to install UnCiv on macOS
Updated Uniques (markdown)
Created Credits.md (markdown)
Destroyed Credits.md (markdown)
Added installing from source method
Improve Sound chapter, added Civilopedia text chapter
Added after #4619
Added unitTypes.json
Added beliefs.json
Updated Translating (markdown)
Added eras:unitBaseBuyCost
Added after #4568
Added ruins.json
Added after #4771
Added rudimentary Difficulties.json doc
Added ruin-specfic uniques explanation
Added TOC and Nations
Detailed Techs chapter
Fix 1 line - tech uniques
Added Quests.json
Added ModOptions
Added ModOptions
Added UnitPromotions, structured TOC
Added Policies
Added crosslinks
Fixed broken links
Added TileResources
Added more crosslinks
Small fix resource tile graphix aren't toggle-able
Added TileImprovements
Added Terrains
Updated JSON files for mods (markdown)
Updated Getting Started (markdown)
Updated Getting Started (markdown)
Updated Getting Started (markdown)
Updated JSON files for mods (markdown)
Updated Translating (markdown)
Created Civilization-related JSON files (markdown)
Created Map-related JSON files (markdown)
Double title
Double title
Created Unit-related JSON files (markdown)
Moved sounds
Updated Unit related JSON files (markdown)
Moved Stats
Created Miscellaneous JSON files (markdown)
Removed content that has been moved to separate pages, update TOC
Created _Sidebar (markdown)
Updated Uniques (markdown)
test
Fixed broken links. Apparently the way 'preview' links to pages differs from how it links when you view them on a saved page for some reason
Updated Uniques (markdown)
Fix relative `..` link suddenly leaving the wiki
Updated Miscellaneous JSON files (markdown)
Fix relative links
Fix era links to Units.json
Updated Uniques (markdown)
Updated From code to deployment (markdown)
Added uniques & cityFilters up to #4995
Mass deprecation as per 422607
Fixed broken link to redirect to Unit Uniques in Wiki
Fixed broken link to redirect to Unit Uniques in Wiki table
Updated Uniques (markdown)
Updated Getting Started (markdown)
Updated Uniques (markdown)
Added uniques & filters up to #5094
Removed a deprecated unique
Moved some uniques to better sections, removed an outdated unique
fixed a typo
Updated Uniques (markdown)
eras.json is now required
Removed outdated religion section
Added missing terrain uniques
Added resource uniques
Fixed resource unique link
Added missing unique for tile improvements
Fixed broken link
"Disappearing" translations explained
Updated Home (markdown)
Some atlas info, leader portraits
Created Force rating calculation (markdown)
"Not yet" for Image atlas distribution in mods
Updated uniques after #5259
Added information on conditionals
Updated growth unique
Added conditional support up to #5270
Typo
Escape html tags
Add conditionals to table of contents
Updated _Sidebar (markdown)
Created Audiovisual Mods (markdown)
Audiovisual Mods, move Graphics-only info
Updated Audiovisual Mods (markdown)
Audiovisual Mods - Draft done.
Documented translation method
Updated Translations, mods, and modding freedom in Open Source (markdown)
Fix Typos and Links
New Terrain uniques / 2 sections
Atlas control via multiple Images.x folders is now live
Link to atlas paragraph
startBias clarification
Missing bracket
Added uniques & conditionals up to #5345 (my PR's only)
Updated Force rating calculation (markdown)
Updated Getting Started (markdown => asciidoc)
Undid renaming
Updated Getting Started (asciidoc => markdown)
Added fix for Gradle sync fail
Updated Project structure and major classes (markdown)
Bump Java version from JDK 8 to JDK 11 due to gradle upgrade
Updated uniques & conditionals up to #5618 from my PR's
Created Regions (markdown)
Updated Uniques (markdown)
Updated Uniques (markdown)
Mention docs/uniques.md, emphasized Stat capitalization
* Base wiki state.
* Move wiki files into `/docs/wiki`.
Migrate inter-Markdown links.
Fix pre-existing broken links and anchors.
Standardize repository links for AS linting.
Add wiki footer.
Updated Uniques (markdown)
Updated Mods Making a new Civilization (markdown)
Updated Making a new Civilization (markdown)
Add GH Action for updating wiki.
Play it safer, and don't `push -f`. (Should be the same either way though.)
* Base wiki migration state.
* Author: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> 2022-01-02 11:04:38
Committer: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> 2022-01-02 11:04:38
Parent: 8fe9385ee644a74b1c3ae3c6d1fa8200cc952a3f (Mention docs/uniques.md, emphasized Stat capitalization)
Child: 7463af24381cc6b94b949b4419841d303af6bb93 (Expanded documentation on constructionFilters)
Branches: master, remotes/origin/master
Follows:
Precedes:
Added construction filter in the header
* Author: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> 2022-01-02 11:06:59
Committer: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> 2022-01-02 11:06:59
Parent: 49654ec91dcf565685fd6e4ca966456484c578bd (Added construction filter in the header)
Child: d48da00f4fa03f61891ec7396a5d0ba9109f44df (Added actual steps I take when releasing a version)
Branches: master, remotes/origin/master
Follows:
Precedes:
Expanded documentation on constructionFilters
* Author: Yair Morgenstern <yairm210@> 2022-01-02 18:15:10
Committer: Yair Morgenstern <yairm210@> 2022-01-02 18:15:10
Parent: 7463af24381cc6b94b949b4419841d303af6bb93 (Expanded documentation on constructionFilters)
Child: e7873b135204510742017be455c8b73862bb1d75 (Updated From code to deployment (markdown))
Branches: master, remotes/origin/master
Follows:
Precedes:
Added actual steps I take when releasing a version
* Author: Yair Morgenstern <yairm210@> 2022-01-02 19:54:18
Committer: Yair Morgenstern <yairm210@> 2022-01-02 19:54:18
Parent: d48da00f4fa03f61891ec7396a5d0ba9109f44df (Added actual steps I take when releasing a version)
Child: 84a6eb3a44ed2504f157d55e90cfe2363bb70659 (Added buildingFilter and reworded a bit of generated documentation)
Branches: master, remotes/origin/master
Follows:
Precedes:
Updated From code to deployment (markdown)
* Author: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> 2022-01-07 11:48:11
Committer: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> 2022-01-07 11:48:11
Parent: e7873b135204510742017be455c8b73862bb1d75 (Updated From code to deployment (markdown))
Child: 2a4a0add3728a676012ce51bc3f825c8a5c04c84 (Slightly improved wording)
Branches: master, remotes/origin/master
Follows:
Precedes:
Added buildingFilter and reworded a bit of generated documentation
* Author: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> 2022-01-07 11:51:18
Committer: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> 2022-01-07 11:51:18
Parent: 84a6eb3a44ed2504f157d55e90cfe2363bb70659 (Added buildingFilter and reworded a bit of generated documentation)
Child: d4b91ed84a0989ea5205a77390543d268f7a8b22 (Removed a deprecated field)
Branches: master, remotes/origin/master
Follows:
Precedes:
Slightly improved wording
* Author: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> 2022-01-17 16:59:32
Committer: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> 2022-01-17 16:59:32
Parent: 2a4a0add3728a676012ce51bc3f825c8a5c04c84 (Slightly improved wording)
Child: 3cd48433f279bcceaaab4f63c2c48606781c059f (Updated belief type valed values)
Branches: master, remotes/origin/master
Follows:
Precedes:
Removed a deprecated field
* Author: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> 2022-01-17 17:00:14
Committer: Xander Lenstra <71121390+xlenstra@users.noreply.github.com> 2022-01-17 17:00:14
Parent: d4b91ed84a0989ea5205a77390543d268f7a8b22 (Removed a deprecated field)
Child: 2f076df75fc5d112146902c88f240a3ebdac8849 (Updated Getting Started (markdown))
Branches: master, remotes/origin/master
Follows:
Precedes:
Updated belief type valed values
* Author: Yair Morgenstern <yairm210@> 2022-01-22 19:40:43
Committer: Yair Morgenstern <yairm210> 2022-01-22 19:40:43
Parent: 3cd48433f279bcceaaab4f63c2c48606781c059f (Updated belief type valed values)
Child: 5d60469df68e0416ffa815e1366aef191583c451 (Updated Getting Started (markdown))
Branches: master, remotes/origin/master
Follows:
Precedes:
Updated Getting Started (markdown)
* Author: Yair Morgenstern <yairm210@> 2022-01-22 19:46:03
Committer: Yair Morgenstern <yairm210@> 2022-01-22 19:46:03
Parent: 2f076df75fc5d112146902c88f240a3ebdac8849 (Updated Getting Started (markdown))
Child: 73475b37b28934478dc05830d3aeb61cf8ee6b69 (Updated Getting Started (markdown))
Branches: master, remotes/origin/master
Follows:
Precedes:
Updated Getting Started (markdown)
* Normalize some links.
* Author: Yair Morgenstern <yairm210@> 2022-01-22 19:54:23
Committer: Yair Morgenstern <yairm210@> 2022-01-22 19:54:23
Parent: 5d60469df68e0416ffa815e1366aef191583c451 (Updated Getting Started (markdown))
Branches: master, remotes/origin/master
Follows:
Precedes:
Updated Getting Started (markdown)
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
* Typified some building uniques
I noticed that the code allows "[stats] from every [buildingFilter]" but the UniqueType was limited to "[stats] from every [buildingName]", so now that that's available we don't actually need the "[stats] from every Wonder" unique :)
* buildings-only unique moved to buildings section
* Print stacktraces in more cases when crashing, useful for debugging
* Conditionalized no oceans before astronomy unique
* Cannot be built on tile before tech conditionalized
* Added "Cannot build unitFilter units" unique
* Fixed tests failing
* Merge branch master into some-uniques
* Fixed typo
* Apparently I made the same mistake twice
* Globalized unique
* Fixed a bug where bonusses applying 'in friendly tiles' would not apply
* Reworded something so it actually makes sense
* Fixed capitalization error leading to autocracy complete bonus no longer working
* Fixed save serialization errors and finally correctly implemented the time limit for autocracy bonus
* Made value const and static
* Show arrows on map for unit actions.
* Don't wrap arrows unless world wrap is actually enabled.
* Fix transported air units always being treated like teleports.
* Simple reviews.
* Separate movement arrow visibility checks from WorldScreen.
* Assets for map arrows overlay.
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
* Changed 'in [tileFilter] tiles' to also apply outside of combat
* Changed unique docs writer to also sort applicables, so these are also not regenerated constantly
* Add support to UniqueType.MaxNumberBuilding (including rejectionReasons)
Add Recycling Center entry to JSON
Need Graphical Icon
* Fix typo
Add TODO
* adding Recycling Center icon
* Credit update for icon
Rephrase Rejection text
Updated .atlas and .png
Add code to block showing Recycling Center
* Fix using placeholderText
Set shouldShow to True so iot still appears while under construction but not completed
* Rejection Text now working
Remove debug prints
* Remove odd extra lines
* extra lines
* Remove excessive if statement in shouldBeDisplayed
Reword text. Unique can apply to Buildings and Units
Refactor Signature since not just Buildings
* Adding code to remove building in transferred city
Co-authored-by: temurakami <spellman23@gmail.com>
* The Maya - data and calendar
* The Maya - completed
* The Maya - notifications
* The Maya - favoredReligion
* The Maya - comments in GreatPersonManager
* The Maya - clickable notifications
* The Maya - templates
* The Maya - atlas
* The Maya - patch1
* The Celtic People Reboot
* Redid the Shamrock sword of the Pictish Warrior
* The Celtic People Reboot - one comment
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
* Add Carthage
* Implement uniques
* performance improvement, better elephant
* AI avoids taking too much damage from mountains
* more performance
* better AI
* can't settle cities on mountains
* AI improvement
* AI improvement
* revisions, damagePerTurn in Terrains.json
* terrain damage stored as unique in json, damage also works for terrain features
* don't change game.png
* Mod manager portrait mode
* Mod manager portrait and auto scroll
- MM switches to stacked expanders in portrait.
- Use AutoScrollPanes.
- Disable the enter/leave listener of AutoScrollPane in Pickers which disable the default ScrollPane to roll their own - helps all such pickers.
- No expander open/close persistence on purpose.
- PickerScreen a bit cleaned 'cuz I needed to understand something.
- Marked mods from the kill-list that are already installed.
- Button sync now OK when counterpart missing (deselects other column).
* Mod Manager sorts and filters - WIP 1
* Mod Manager sorts and filters - WIP 2
* Mod Manager sorts and filters - WIP 2a
* Mod Manager sorts and filters - WIP 3
* Mod Manager sorts and filters - atlas
* Mod Manager sorts and filters - tip
* Implemented renaming of religions
* Made AskForText display error on invalid input, implemented recommended changes
* Almost forgot the translatable strings in the new popup
* Added Grand Temple and Great Mosque of Djenne buildings
* Added uniques for Grand Temple
* Added uniques for Mosque of Djenne, refactored ability uses system to count down isntead of up
* Json definition for nation, images
* Jsons, Hussar and Coffee House
* Diplomatic Marriage Button
* Implement Marriage
* AI Marriage
* template.properties
* Popups etc
* Strings
* reviews
* reviews pt 2
* Improve horse and construction sound
* Update Credits.md
* Convert to mp3
* Delete construction.ogg
* Improve horse sound
By https://freesound.org/people/Kubuzz/sounds/347036/
* Update Credits.md
* Bring back to old "construction" sound
* Update Credits.md
* Implemented religious pressure: cities now can have more than one religion in them and religions spread between nearby cities over time.
* Implemented proposed changes
* Implemented requested changes & minor changes I forgot to include last time
* All pantheons not founded by you are now removed when you gain a new city (found this somewhere in the source code of the original, don't know if it's documented anywhere online)
* Added missionairy units, which can spread religion and bought with faith
* Forgot an include, minor additions
* Forgot credit for the missionary image
* Large refactor, enabling buying with almost all stats, split IConstruction into IConstruction & INonPerpetualConstruction
* Does this fix the tests
* Fixed accidentally removing all trailing spaces in template.properties
* Thanks to someTroglodyte for paying more attention than I do :)
* Implemented requested changes
* Fixed large amount of question marks
* Missing space, of course
* Fixed function name change
* Fixed merge problems
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
* Added globalization tech
* Added united nations and backbone for diplomatic victory
* You can now vote with the united nations every 20 * gameSpeed turns, and the results will be displayed the turn after
* You can now win with diplomacy
* AI will now vote in the united nations
* Added the amount of turns till the next diplomatic vote in the diplomacy overview
* Added translatable strings
* Implemented most of the requested changes (rest coming soon)
* Implemented further requested changes
* wonder splash screens
* wonder splash screens atlas
* reset to master
* Add Sweden
* add translations
* translations
* implement first part of UP
* add icons to atlas
* implement second part of swedens up
* implement first hakkapeliitta unique
* implement second hakkapeliitta unique
* gifted GPs are removed
* update sweden symbol
* translations
* review Hakkapeliitta unique
* removed unneccesary parameters
* hakka UP review
* Hakka UP part 2
* yairm's reviews
* translations for fixes
* removed [great person generation] parameter as it's hardcoded anyway
* Moved check for stacking unit bonus outside great general logic
* Fixed crashes on loading save games with religion
* Added missing credit
* Religious cities now show religion icons in the city button
* Add icons for religions
* You can now found beliefs, with snazzy icons!
* Fixed bug which made prophets impossible to generate
* Added missing translatable strings
* Fixed translation tests properly
* Implemented requested changes
* Implemented part of the requested changes
* Removed SplitPane in favor of Table
* Removed unused code
* Capped the amount of foundable religions to the amount of religions
* Add a very simple display for the religion in a city
* Added missing credits for shrine
* Added Great Prophet unit
* Great prophets can now be generated using faith
* Great Prophets can now construct holy sites
* Great Prophets can now spread their religion to friendly cities
* Holy site can only be constructed if the great prophet hasn't spread religion yet
* Added missing translation string
* Fixed more translation problems
* Implemented requested changes
* Added the nation of the Netherlands
* Added Sea Beggar, Dutch unique unit
* Added polder improvement, Dutch unique improvement
* Added national ability
* Fixed carriers in mods no longer working
* Fixed scouting prerequisites
* Fixed surivialism not having icon or prerequisites
* Fix logistics in mods not working
* Added image for supply promotion
* Added privateer unit
* Privateers can now capture other naval units
* Updated Coastal Raider promotion to include the gold gained from damaging cities
* Added missing translatable notification
* Implemented requested changes
* Implemented requested changes _but better_
* Forgot to update a variable name
* Added the nation of The Huns
* Added unique units of The Huns
* Removed MountedRanged unitType
* Implemented requested changes
* Fixed some typo's, split up a very long function for redability
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
* Changed some interception-related uniques
- "Can not be intercepted" -> "Cannot be intercepted"
This really irked me, and the new version is also how it is written
in the wiki.
- "Reduces damage taken from interception by 50%" ->
"Damage taken from interception reduced by [50]%"
* Added "Cannot be carried by [unitFilter] units" unique
* Added an icon for Stealth
* Added Stealth technology and the Stealth Bomber
* Possibly fixed incorrect rounding for interception damage bonus
* Various code style changes
* Made Stealth Bomber interceptable, but with 100% damage reduction
* Implemented Nuclear Submarine and Missile Cruiser units
* Information Era -> Atomic Era; Future Era -> Information Era, conform G&K
* Fixed deprecated uniques still working
* Implemented requested changes
* Added the addPopulation() and setPopulation() functions to add population to cities and automatically reassign them
* Added the Telecommunications tech
* Added the CN tower
* Implemented Bomb Shelter
* Added icons for new buildings
* Implemented requsted changes
* Improved nukes
* Fixed build error (probably)
* Implemented reocmmended changes, fixed some other stuff, the usual
* Implemented requested changes
* Fixed Tech connections
* Fixed nuclear missiles and guided missiles being interceptable
* Missiles are no longer air units. This is, as they cannot be stationed on carriers and cannot be intercepted.
* Reordered units
Consistently ordered units based on, in decreasing priority:
- Tech tree column
- Height in tech tree column
* Added Nuclear Fusion technology and GDR
* Created Patronage policy branch -- draft
* Patronage branch is now functional
* Added images for the policies
* Temporarily bandaged backwards compatability, added incompatabilities
* Implemented recommended changes
* Fixed acquirement of 'patronage complete' not being saved
* Reverted change I was unhappy with
* Implemented requested changes
* Fixed build errors
* Implemented recommended changes
* City States can now give any great person, including unique ones, conform Ravignirs tests
* Added the Utopia Project for the culture victory; AI will now build it
* Forgot to credit the icon
* Fixed a few minor issues
* Improved code quality; added translatable notifications
* Fixed mistakes; improved quality
* Changed a label
* Revert a small change which is no longer necessary
* Reverted the revert of a small change which is no longer necessary
* Made requsted changes
* Updated some unit obsoletions
* Added a missing unit upgrade
* Added some missing commas in units.json
* Replaced Military Base icon with a simpler one
The original had a bit too much detail for the size at which it is
shown.
* Enabled Arsenal and added a new Armory icon
The old icon for Armory was much more appropriate for Arsenal, so I
added a new icon for Armory instead.
* Enabled Military Base and added an icon for it
* Enabled Petra and added an icon for it
* Enabled Composite Bowman and added an icon for it
* Enabled Mobile SAM and added an icon for it
* Enabled Jet Fighter
* Made Machine Gun upgrade to Mechanized Infantry
* Removed "Will be added in G&K" comments
Since we are now targeting G&K, these comments are no longer required.
* Fixed Aluminum/Aluminium inconsistencies
* Added an icon for unit swapping
* Implemented unit swapping
In the original Civ V, unit swapping is a supported mechanic.
If you try to move a unit to a tile with another of your units, and both
units have enough movement points left to reach the other's tile, they
will swap places. They will consume only the movement points needed to
reach the other's tile in this way.
This change implements unit swapping for Unciv.
To prevent all kinds of problems from arising with automatic unit
movement, unit swapping can only be done explicitly. This also means
that it can only be done if the unit-swap movement is possible in a
single turn. It is however not limited to adjacent units.
Because Unciv supports mobile devices, there is in general no separation
between a unit-selection click and a movement click. Clicking on another
unit while a unit is selected simply selects that other unit. Because we
do not want to make it more difficult to select other units in this way,
unit swapping is implemented as a separate "movement mode": to toggle
this mode on or off, the new unit action "Swap units" must be used.
Newly selected units still always start in the normal movement mode.
In the unit-swap movement mode, the possible swap tiles are highlighted
instead of the possible movement and attack tiles. Clicking on a
highlighted tile will display a swap button, similar to the movement
button, or instantly perform the swap if single-click-movement is
enabled. This new behavior overrides the selection of the unit on the
target tile: if the user wants to select the unit instead, they have to
exit the unit-swapping mode first.
The swapping code is robust, it can even handle swaps that involve a
paradrop!
An option to always swap-move when an eligible tile is clicked instead
of requiring the unit-swapping mode, similar to the existing
single-click-movement option, could perhaps be added in later.
* Added some comments to existing movement functions
* Fixed a silly mistake
Fixed a silly mistake which caused the unit-swapping eligibility
detection to sometimes remove units from the world.
* Removed some unneeded code
* Fixed movement buttons not showing with world wrap
Fixed a bug where the "move here" and "swap with" buttons would only
show on the leftmost copy of the world when world wrap was enabled.
* Made the swap action only display if usable
Made the unit swapping button only display if there is at least one
possible swap movement.
* Added the paratrooper unit
* Reverted accidental reordering of action table
* Fixed Github build errors
* Hopefully actually fixed the build errors
* Added a Dutch translation, finally fixing the error
* Paratroopers can no longer actually paradrop on a tile they shouldn't be able to paradrop onto
* Removed double update action
* Technology and construction bars no longer extend past their maximum
* Fixed compile errors
* actually fixed the issue
* Added the marine unit
* Moved amphibious promotion effect to unique
* Added icons for Amphibious promotion and Marine unit
* aaah
* fixed translation of "Owned: [amountOwned] = " line
* Tweaked culture from killing
Aztecs get melee strength of the unit killed in culture and honor opener does the same thing.
They stack. So you get culture equal to 200% of the dead unit's strength (not ranged strength).
* removed hurryCostModifier from units that should not have it
Default value of HurryCostModifier is 0
List of units with non-default HurryCostModifier:
Settler (20)
SS parts (-1) (cannot be hurried)
Frigate (20)
Ship of the Line (20)
Caravel (30)
Turtle Ship (30)
Catapult (20)
Ballista (20)
Horseman (20)
Companion Cavalry (20)
Swordsman (20)
Mohawk Warrior (20)
Legion (20)
Berserker (20)
* added missing definitions from vanilla (commented out)
added missing obsolete tech tags, etc
* tweaked hurryCostModifier, added missing vanilla buildings (commented out)
* added promotions and parametrized uniques
Morale (+[15]% Combat Strength)
Great Generals I ([Great General] is earned [50]% faster)
Great Generals II ([Great General] is earned [100]% faster)
Quick Study ([50]% Bonus XP gain)
Unretired Mass Media icon
Added Heroic Epic, National Epic and National Treasury national wonders
Heroic Epic has unique "All newly-trained [non-air] units in this city receive the [Morale] promotion" - "non-air" is valid param now
[Raising The Flag on Iwo Jima silhouette, Marine Corps War Memorial Raising the Flag on Iwo Jima Battle of Iwo Jima Washington, D.C., memorial free png](https://www.pngfuel.com/free-png/opgid) for Heroic Epic and Morale promotion
[Arc de Triomphe](https://thenounproject.com/search/?q=Arc%20de%20Triomphe&i=2936011) by iconfield for National Epic
[Bank](https://thenounproject.com/term/bank/213472/) by By P Thanga Vignesh for National Treasury
reused general icon for Great Generals and Quick Study promotions
* implemented "Cost increases by [30] per owned city of cities" unique
All vanilla national wonders that require something in all cities have it
* added uniques
"Nuclear weapon" - Game option "nuclearWeaponsEnabled" enables units with this unique
"Requires [building]" - Apollo Program, Manhattan Project etc
"Requires adopted [policy]" - in expansions Statue of Zeus will require "Honor", Prora - "Autocracy", Landsknecht - "Mercenary Army".
* merged "Requires adopted [policy]" with "Requires [Wonder]"
* Separated unique.params[0] to val filter
* Changed National Epic image
* Added icons
* [temple](https://thenounproject.com/search/?q=temple&i=28256) By Fabio Meroni for Temple of Artemis
* [Canoe](https://thenounproject.com/term/canoe/402285/) By Viktor Fedyuk (Tim P) for Floating Gardens
* [Garden](https://thenounproject.com/search/?q=garden&i=1478380) By Bharat
Aztecs by Séan https://discord.com/channels/586194543280390151/633733497277775884/727255962754351104
Jaguar by Red11
Reused slinger icon for Slinger Withdraw
* Added buildings and uniques for them
garden - bonus building of the Medieval Era. City "Must border a source of fresh water"
Temple of Artemis - World wonder of the Ancient era
Floating Gardens - Aztec unique building, replaces Water Mill
"[+1 Science] Per [2] Population in this city" - for Library and Public School
"+[]% great person generation in this city" - for garden
"Must border a source of fresh water" - "fresh water" provided by river or tiles with "Fresh water" unique. Added "Fresh water" unique to Lakes and Oasis
"+[10]% growth in all cities" - now has parameter - for Tradition Complete policy and Temple of Artemis
"+[10]% growth in capital" - now has parameter
"+[15]% Production when constructing [ranged units]" - "ranged units" now valid param
"[stats] once [tech] is discovered" - Petra and Mughal Fort have it
"[+1 Production] from [River] tiles in this city"] - now can use "River" - for Hydro plant
* Added Jaguar - Aztec unique unit
New unique - "+[]% combat bonus in [param]" unique - Norwegian Ski Infantry, Jaguars and Mohawks have it. param can be terrainFeature or baseTerrain, in case of baseTerrain it implies there are no features like vegetation her
Implemented "Culture for the empire from each enemy unit killed"
tweaked honor policy - it should bring half as much culture, and same as Sacrificial Captives
Fixed penalty for terrain if unit do not have "No defensive terrain bonus" unique
* Added Aztecs
* Update template.properties
* update template.properties
* update template.properties
* update template.properties
* Snow, Atoll & Ice
* Fix White Hexagon + Small NW refactor
* More Land in Continents #1886
* Atoll can spawn only on Coast
* Added new constants and turned Constant into an object
* Latitude and Longitude utility methods
* New MapGenerator steps
* New MapParameters & MapGenerator cleanup
* Added New Map option to MapEditor menu
* New parameters default values and limits
* archipelagos map type
* Translations & Atlas
* removing unneeded octave displacement
* Fix Archipelago
* Perlin noise parameters & no-elvis in TileMap
* Rebuilt Atlas
Co-authored-by: Eddh <remi.dufour@protonmail.com>
* Implemented aircraft carrier "Flight Deck" and "Armor Plating" promotions
* Template for the translation strings
* New icons are added
Co-authored-by: ltrcao <ltrcao@users.noreply.github.com>
* Nuke your enemy!
* Fantasy tiles. Worker automaticly clears fallout.
* Some AI improvement for choosing wonder and military unit.
* Add nuclear weapon option.
Apparently some chipsets, like NVIDIA Tegra 3 graphics chipset (used in Asus TF700T tablet), don't support non-power-of-two texture sizes - kudos @yuroller!
* Allow to liberate city to its founder.
* Workaround : Avoid exception on conquering city with infantry unit.
* Liberate button actually works.
* Fix trade resources check.
* Postpone the 2nd part of postBattleActions until choice is made.
* Add puppet option.
* Puppet city cannot be controlled directly.
* Add annex and puppet happiness/culture/science bonus.
* Add courthouse. Icon is missing.
* Icon for courthouse.
* Update png.