Commit Graph

3899 Commits

Author SHA1 Message Date
c00ce49c86 AI rationing of strategic resources; Hydro Plant re-enabled (#5401)
* AI evaluation of resources

* optimizations

* sell or disband when needed for space victory

* use for all constructions

* use in trade evaluations

* .requiresResource()
2021-10-06 17:11:02 +03:00
e4ff3d43d6 prevent city states from taunting you (#5409) 2021-10-06 17:09:20 +03:00
7752e1834d Added a label displaying religion is off when it is off (#5412) 2021-10-06 17:06:49 +03:00
fc01fde163 Nations now have a favoured religion they try choose when available (#5406) 2021-10-05 20:38:58 +03:00
86f80e7540 Fixed Byzantine not applying (#5405) 2021-10-05 20:38:25 +03:00
e879bb2a14 Added an advanced system for choosing beliefs (#5400) 2021-10-05 15:33:27 +03:00
4c6f1ecfb8 Solve continentSizes serialization by removing it (#5403) 2021-10-05 15:30:32 +03:00
726a1942db Sharpen unit tests for UniqueTypes (and mod checker too) (#5398)
* Sharpen unit tests for UniqueTypes (and mod checker too)

* Sharpen unit tests for UniqueTypes - fix newly found problems
2021-10-05 09:08:41 +03:00
82e72ddcfa Added in [tileFilter] tiles conditional to combat uniques (#5393)
* Some code cleaning

* Added `in [tileFilter] tiles` conditional

* Limited Visibility -> [-1] Sight

* Fix tests and rename conditional

* Actually made the conditional functional

* Renamed conditional once again
2021-10-04 22:30:09 +03:00
2884cbb469 UniqueType-i-fying UniqueTriggerActivation (#5397)
* UniqueType-i-fying UniqueTriggerActivation

* UniqueType-i-fying UniqueTriggerActivation - fix missing param types

* UniqueType-i-fying UniqueTriggerActivation - alternate and all params
2021-10-04 21:47:03 +03:00
088e35ff13 Ethiopia - Nation (#5387)
* Ethiopia - Nation

* Ethiopia - Unit and Stele

* Ethiopia - Graphics

* Ethiopia - color
2021-10-04 20:56:34 +03:00
ec036dc3dd Fixed a crash when killing a barbarian invading an unmet city-state (#5396) 2021-10-04 17:18:06 +03:00
e1b4c53573 Added two more conditionals and updated movement, sight & combat to use these (#5389) 2021-10-04 08:32:10 +03:00
07822de375 Simplified combat uniques further (#5361)
* Simplified combat uniques further

* Reviews & translations

* UniqueType > placeHolderText

* I can't math
2021-10-04 00:29:46 +03:00
edfc66aa2f Sort City States, replace+deprecate Dublin and Edinburgh (#5386) 2021-10-03 19:03:54 +03:00
462888fd46 New map for map editor shares settings storage (#5385) 2021-10-03 14:32:24 +03:00
db30db42da Typed City-state related uniques 2021-10-03 12:46:27 +03:00
97da979a04 Fixed bugs with fallout (#5379)
* Fixed bugs with fallout

* Reordered uniques

* Reviews

* Added missing unique targets
2021-10-03 12:04:15 +03:00
71405b93aa The Celtic People Reboot (#5367)
* 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>
2021-10-03 12:02:58 +03:00
a0f6596ee8 MusicController tweaks and hooks for mood - War and Peace (#5364)
* MusicController tweaks and hooks for mood - War and Peace

* MusicController tweaks and hooks for mood - patch1

* MusicController tweaks and hooks for mood - const object

* MusicController tweaks and hooks for mood - patch2

Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
2021-10-03 11:56:27 +03:00
c3242f37f2 Add looping minimap viewport if worldwrap enabled (#5349)
The viewport now also appears on the other side of the minimap when
viewing the border of the world with worldwrap enabled.
2021-10-03 11:50:50 +03:00
88bcf5d514 Fixed bug where 'mandate of heaven' policy wouldn't work (#5380) 2021-10-03 11:50:03 +03:00
238cbb782a Added icons to resource trades & war declarations (#5376) 2021-10-03 11:46:27 +03:00
091622612c Added default values for supply to fix almost all mods being broken (#5373) 2021-10-03 11:46:04 +03:00
057f9b3f7b Reduce Mod checker messages for a set of deprecated UniqueTypes (#5370) 2021-10-03 11:45:50 +03:00
9016385f30 Barbarian spawning and camp placements (#5354)
* barbarian camp placement, spawn countdowns

* separate file

* raging barbarians

* faster spawn when attacked

* Barbarian AI

* works on old saves

* template.properties

* fix percent

* no improvements unique

* fix test fail

* reviews

* reviews pt 2
2021-10-03 11:45:02 +03:00
344c96319b Fix Fountain of Youth (#5355)
* fix fountain of youth

* fix test fail

* reviews

* reviews
2021-10-01 15:51:30 +03:00
03f374b058 Currently playing music track displayed under Options-Sound (#5357) 2021-09-30 06:35:20 +03:00
6cfc0a82d8 Deprecation message options only (#5352)
* Do not show RulesetErrorSeverity.WarningOptionsOnly on new game screen

* Do not show RulesetErrorSeverity.WarningOptionsOnly on new game screen - fresh atlas
2021-09-29 21:25:44 +03:00
fb30a76e85 Civilopedia category icons and keyboard navigation (#5341)
* Civilopedia category icons and keyboard navigation

* Civilopedia category icons - white alternative
2021-09-29 17:39:02 +03:00
4c87d98aaa Fix Mod unpack folder move (#5346)
* Fix Mod unpack folder move

* Fix Mod unpack folder move - comment
2021-09-29 12:34:58 +03:00
bb5825a325 First step into unifying strength bonuses using conditionals (#5345) 2021-09-29 08:35:37 +03:00
8ee36d43d7 Allow Deciv Redux start with >0 City States (#5348) 2021-09-29 06:19:49 +03:00
070c41592f Fix era of Wonders without tech in Wonder overview (#5347) 2021-09-29 06:19:28 +03:00
d3868dae62 Rework game start again (continents) (#5335)
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
2021-09-28 23:48:06 +03:00
8e3d2a1b87 Fix Polynesian vision when embarked (#5325)
* fix polynesia unique

* fix polynesia unique

* Update MapUnit.kt
2021-09-28 22:44:54 +03:00
861a42e881 Moved the check for conditionals applying to getMatchingUniques functions; rewrote civInfo.getMatchingUniques (#5342)
* Moved the check for conditionals applying to `getMatchingUniques` functions. Rewrote `civInfo.getMatchingUniques`.

* Clarified comment
2021-09-28 22:42:18 +03:00
0aea74d3a9 Fix right side of player nation picker no longer entirely clickable (#5338) 2021-09-27 17:29:47 +03:00
a487c2c373 Fix new game Mod nation icons on first open (#5334) 2021-09-27 17:28:26 +03:00
e0e701058d Proper great general points (#5329) 2021-09-27 13:38:42 +03:00
2e72fd52c8 Double movement unique parameterized (#5319)
* Double movement unique parameterized

* Double movement unique - all filters
2021-09-27 12:35:38 +03:00
96511e16ef Merge remote-tracking branch 'origin/master' 2021-09-26 17:17:04 +03:00
bb8c9d3175 More unique typing 2021-09-26 17:16:50 +03:00
d07eed31b8 Added the Byzantine empire (#5299)
* Added Byzantine Empire as a nation

* Added unique units

* Implemented unique ability

* Refactored out the beliefContainer

* Implemented reviews

* Credits

* Enumified the uniques & added missing translatable strings
2021-09-26 16:58:24 +03:00
e1b2814b5d Mini-UI to see Religion info on foreign cities (#5321) 2021-09-26 11:04:33 +03:00
3a858a7051 Oversight - "base hurry cost" in pedia should be multiple of 10 (#5320) 2021-09-26 10:54:38 +03:00
8d33dacc3c Softcode Fountain of Youth (#5308)
* Softcode Rejuvenation

* Softcode Rejuvenation - comments
2021-09-25 22:15:03 +03:00
a4c38174b6 Extra embarrassing fix - Textures missing on Android (#5313) 2021-09-25 22:08:37 +03:00
8d631254aa Unified many implementations of common interfaces into abstract classes (#5312)
* Unified many implementations of common interfaces into abstract classes

* RulesetObject interface
2021-09-24 17:48:06 +03:00
ed47f16c6e Added modder warning for deprecated fields 2021-09-24 16:35:22 +03:00