Commit Graph

76 Commits

Author SHA1 Message Date
2e5d1bf591 Resolved #8435 - rivers remain visible after founding city 2023-01-22 19:33:27 +02:00
39e88d3a1a Added "upon discovering a Natural Wonder" trigger - @letstalkaboutdune 2023-01-22 19:05:17 +02:00
4beaaadfc8 Added conditionals for above and below resource amounts 2023-01-21 23:36:53 +02:00
be161d8839 Better docs for Trigger Conditions 2023-01-16 23:13:08 +02:00
509d179d19 War -> war with major civ 2023-01-16 23:11:17 +02:00
a045114dc6 Added trigger conditional for entering era 2023-01-16 22:28:42 +02:00
f89c2330aa Conditional triggers now work with timed uniques 2023-01-16 22:03:17 +02:00
358f01079c Added 'upon adopting policy' trigger 2023-01-16 21:20:14 +02:00
2593c35e30 Added 'upon declaring war' trigger 2023-01-16 21:13:40 +02:00
cbd7f7ac5c Added trigger conditions framework! 2023-01-16 21:05:59 +02:00
879a5b230f Resolved #8387 - Fixed Reliquary belief
Got rid of multiple uniques with the same text
2023-01-16 13:05:11 +02:00
b5281e20c9 4.4.0 2023-01-14 21:27:11 +02:00
d20f8a53f8 Validate unique parameters for mods 2023-01-01 15:55:41 +02:00
0c58488e42 4.3.12 2022-12-24 20:02:11 +02:00
0d19bf9cef Better icons for 'next turn' button
@vegeta1k95 sorry about this, but the way this works without resizing is simply not up to the standards of the current UI :/
2022-12-16 11:15:36 +02:00
c9ed9d5d74 modding: Double Happiness from Natural Wonders -> [stats] from every known Natural Wonder 2022-12-02 11:50:11 +02:00
1eb1976c4e Made yields smaller so heavy yields looks better on tiles 2022-11-28 21:45:56 +02:00
1b8c98eed3 Resolved #8050 - "Occurs at temperature between [amount] and [amount] and humidity between [amount] and [amount]" now applicable to resources 2022-11-27 20:02:05 +02:00
99b6a2254d Changes to moddable UI (#8055)
* 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
2022-11-27 19:14:56 +02:00
545b4afc5a Generalized "Stats per policies" unique 2022-11-26 21:39:26 +02:00
c98a36c10f Added before/after X turns conditionals - see #3242 2022-11-07 22:56:58 +02:00
3e05b875bd Added before/after Pantheon conditionals - see #3242 2022-11-07 22:39:55 +02:00
f0ad7581bc Resolved crash when mods make 2 techs require each other 2022-10-13 22:55:12 +03:00
f3b4db9d64 Hopefully resolved ANRs from WorldScreen updates 2022-10-13 21:18:34 +03:00
2ef0284235 4.2.12 2022-10-05 23:13:32 +03:00
6ba98c82ac 4.2.11 2022-09-25 16:44:34 +03:00
d5134f84cd 4.2.9 2022-09-15 16:21:23 +03:00
121bda2833 4.2.5 2022-08-22 21:09:04 +03:00
b1727f9360 Fix spies being gained in non espionage games (#7661)
* Handfull of comment questions, small refactorings

* Code changes

* Reworded a unique, removed a file

* Added spy names for all nations, minor consistency change

* Removed debug output

* Added an empty constructor so gdx can reconstruct it

* No spies gained when espionage is disabled

* Added missing function
2022-08-14 18:37:39 +03:00
202e0bcf47 Basic version of EspionageManger, added a unique to gain spies (#7641)
* Handfull of comment questions, small refactorings

* Code changes

* Reworded a unique, removed a file

* Added spy names for all nations, minor consistency change

* Removed debug output

* Added an empty constructor so gdx can reconstruct it
2022-08-13 22:45:16 +03:00
9898789772 4.2.4 2022-08-12 14:36:01 +03:00
44fdf53b05 Added a hidden option for enabling espionage (#7615) 2022-08-06 22:05:44 +03:00
c738da892c 4.2.0 2022-07-28 09:12:57 +03:00
0e00ec22c6 workers will replace city ruins 2022-07-22 20:53:01 +02:00
986346a127 Added a unique limiting what units can be intercepted (#7488)
* Added a unique limiting what units can be intercepted

* Cleaned up implementation and added stateForConditionals
2022-07-21 09:16:33 +03:00
d9389b3c4e 4.1.19 2022-07-15 12:04:41 +03:00
fe2d3243fc 4.1.16 2022-07-05 22:12:27 +03:00
8d742eef38 4.1.12 2022-06-19 21:55:28 +03:00
35c68b47d5 Regenerate atlas & update uniques.md 2022-06-18 23:39:08 +02:00
d795c56d58 4.1.8 2022-06-08 10:30:04 +03:00
8fbcad47a4 4.1.6 2022-06-01 22:54:14 +03:00
09195d6b62 More UniqueType unit tests and correct some broken uniques in JSON files (#6965)
* Add ruin reward unique check plus fix broken unique
2022-05-29 16:08:15 +02:00
3754108391 Added more unit tests for uniques; added missing unique implementations (#6886)
* Added more unit tests for uniques; added missing implementations

* This of course shouldn't go here as there is another function for it

* Stylistic changes

* This generates better unique examples

* Reviews

* Reordered for efficiency

* Reverted improvement percentage bonuses applying to tiles
2022-05-22 13:12:10 +03:00
f464ac2544 4.1.1 2022-05-18 23:03:29 +03:00
4986505363 Great General typed uniques and improved moddability (#6818)
* Great General UniqueTyped and improved moddability - draft

* Great General UniqueTyped and improved moddability - reviews

* Great General UniqueTyped and improved moddability - no reason not to cache another

* Integration with JackRainy's solution

* Integration with JackRainy's solution - part 2

* Revert of maxGreatGeneralBonusRadius logic

* Minor refactoring

* Code review: minor refactoring

* Keep the warning for the modders about the obsolete unique

* Code review: Better wording for the unique

Co-authored-by: SomeTroglodyte <63000004+SomeTroglodyte@users.noreply.github.com>
2022-05-18 00:02:53 +03:00
7079619fe2 Great improvements can again be constructed on forest (#6823)
* Great improvements can again be constructed on forest
This PR fixes a bug where great improvements couldn't be build on 
forests/marshes/jungles/etc. It does so by creating a unique which 
specifically allows for removing features, and checking for that.
Additionally, we only remove these features when we have the tech to 
remove them. For example, you can no longer plonk an Academy down over a 
forest without having researched mining.

* Missed the file for vanilla

* Reviews

* Fixed logic
2022-05-17 20:04:49 +03:00
e94d109166 4.0.16 2022-05-13 13:00:20 +03:00
ab82328211 Missing typed uniques for the units - part 2 (#6749)
* Replacements for existing UniqueTypes

* More typed uniques are added

* Migration to the typed uniques

* Minor optimization

* More general approach on UniqueType usage

* Better wording for the UniqueType
2022-05-13 12:34:10 +03:00
e348a20d2e Extracted policies, religions, nations and promotions to separate png files in order to fit HexaRealm tileset into the main file - see #6756 2022-05-11 16:57:39 +03:00
8fcfbf752b Improved clarity and moddability of building improvements (#6712)
* Renamed tile.hasUnique, deprecated `Indestructable`, unique for citadels
Also refactored the consumption of (great) people out of UnitActions.

* Reworked when improvements can be build somewhere for more clarity

* Made resources improvable by multiple improvements; Offshore Platform

* Fix compatability

* WIP

* Fixed the tests, but better

* I suppose I might as well update this now that we're a version later
2022-05-11 00:35:21 +02:00