yairm210
0b3f8d11d3
Tile height set by lazy.
...
This is good enough to give a 10% performance boost for regular players when there are a lot of units.
If mods add elevation somehow WITHIN a turn, this will be lost, but will recalc next turn correctly.
2021-10-08 15:54:24 +03:00
yairm210
c70d315fae
Resolved #5435 - optimized units seeing invisible tiles.
...
@SomeTroglodyte @xlenstra - the problem was with MapUnit.matchesFilter calling hasUnique, which called civInfo.getUniques, which is patently ridiculous.
I checked ALL usages of getUniques, and only found ONE unique which conceivably could be applied both globally and individually, and separated the check there.
Current analysis shows that updating viewable tiles still takes much longer than I'd like it to, but not, like, 70% of "next turn" runtime.
Next target - tileInfo.getHeight, which clocks in at around 10% (!!!) of next turn!
Apparently the annual "we added too many new features and need to optimize" time has come again...
2021-10-08 15:40:19 +03:00
yairm210
36250dfc70
Resolved #5425 - unit maintenance discount corrected
2021-10-08 14:22:26 +03:00
yairm210
39114ff8f4
Added unique types for air unit transportation
2021-10-08 13:19:41 +03:00
Xander Lenstra
10a00eed3a
Fixed crash when AI is picking religions ( #5421 )
2021-10-07 21:24:17 +03:00
SomeTroglodyte
d25adacec7
Minimum city distance across continents ( #5404 )
2021-10-06 22:51:52 +03:00
SimonCeder
22ebe2b9af
Fix Educated Elite ( #5416 )
...
* fix educated elite
* unique-ify prophet uniques
2021-10-06 22:49:02 +03:00
yairm210
44fd987160
Fixed conditionals display when locating mod errors, which ws broken due to translation reordering all conditional-like text
2021-10-06 20:47:06 +03:00
yairm210
5e8e23fb43
Fixed broken translations
2021-10-06 19:06:53 +03:00
yairm210
6ec61128c4
More unique typing
2021-10-06 17:44:20 +03:00
SimonCeder
b41d234db6
Barbarians capture civilians and take gold from cities ( #5410 )
...
* ransom cities
* capture civilians
* fix bug
2021-10-06 17:12:13 +03:00
SimonCeder
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
SimonCeder
e4ff3d43d6
prevent city states from taunting you ( #5409 )
2021-10-06 17:09:20 +03:00
Xander Lenstra
7752e1834d
Added a label displaying religion is off when it is off ( #5412 )
2021-10-06 17:06:49 +03:00
Xander Lenstra
fc01fde163
Nations now have a favoured religion they try choose when available ( #5406 )
2021-10-05 20:38:58 +03:00
Xander Lenstra
86f80e7540
Fixed Byzantine not applying ( #5405 )
2021-10-05 20:38:25 +03:00
Xander Lenstra
e879bb2a14
Added an advanced system for choosing beliefs ( #5400 )
2021-10-05 15:33:27 +03:00
SomeTroglodyte
4c6f1ecfb8
Solve continentSizes serialization by removing it ( #5403 )
2021-10-05 15:30:32 +03:00
SomeTroglodyte
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
Xander Lenstra
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
SomeTroglodyte
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
SomeTroglodyte
088e35ff13
Ethiopia - Nation ( #5387 )
...
* Ethiopia - Nation
* Ethiopia - Unit and Stele
* Ethiopia - Graphics
* Ethiopia - color
2021-10-04 20:56:34 +03:00
Xander Lenstra
ec036dc3dd
Fixed a crash when killing a barbarian invading an unmet city-state ( #5396 )
2021-10-04 17:18:06 +03:00
Xander Lenstra
e1b4c53573
Added two more conditionals and updated movement, sight & combat to use these ( #5389 )
2021-10-04 08:32:10 +03:00
Xander Lenstra
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
SomeTroglodyte
edfc66aa2f
Sort City States, replace+deprecate Dublin and Edinburgh ( #5386 )
2021-10-03 19:03:54 +03:00
SomeTroglodyte
462888fd46
New map for map editor shares settings storage ( #5385 )
2021-10-03 14:32:24 +03:00
yairm210
db30db42da
Typed City-state related uniques
2021-10-03 12:46:27 +03:00
Xander Lenstra
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
SomeTroglodyte
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
SomeTroglodyte
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
Aron de Jong
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
Xander Lenstra
88bcf5d514
Fixed bug where 'mandate of heaven' policy wouldn't work ( #5380 )
2021-10-03 11:50:03 +03:00
Xander Lenstra
238cbb782a
Added icons to resource trades & war declarations ( #5376 )
2021-10-03 11:46:27 +03:00
Xander Lenstra
091622612c
Added default values for supply to fix almost all mods being broken ( #5373 )
2021-10-03 11:46:04 +03:00
SomeTroglodyte
057f9b3f7b
Reduce Mod checker messages for a set of deprecated UniqueTypes ( #5370 )
2021-10-03 11:45:50 +03:00
SimonCeder
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
SimonCeder
344c96319b
Fix Fountain of Youth ( #5355 )
...
* fix fountain of youth
* fix test fail
* reviews
* reviews
2021-10-01 15:51:30 +03:00
SomeTroglodyte
03f374b058
Currently playing music track displayed under Options-Sound ( #5357 )
2021-09-30 06:35:20 +03:00
SomeTroglodyte
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
SomeTroglodyte
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
SomeTroglodyte
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
Xander Lenstra
bb5825a325
First step into unifying strength bonuses using conditionals ( #5345 )
2021-09-29 08:35:37 +03:00
SomeTroglodyte
8ee36d43d7
Allow Deciv Redux start with >0 City States ( #5348 )
2021-09-29 06:19:49 +03:00
SomeTroglodyte
070c41592f
Fix era of Wonders without tech in Wonder overview ( #5347 )
2021-09-29 06:19:28 +03:00
SomeTroglodyte
d3868dae62
Rework game start again (continents) ( #5335 )
...
Co-authored-by: Yair Morgenstern <yairm210@hotmail.com>
2021-09-28 23:48:06 +03:00
SimonCeder
8e3d2a1b87
Fix Polynesian vision when embarked ( #5325 )
...
* fix polynesia unique
* fix polynesia unique
* Update MapUnit.kt
2021-09-28 22:44:54 +03:00
Xander Lenstra
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
SomeTroglodyte
0aea74d3a9
Fix right side of player nation picker no longer entirely clickable ( #5338 )
2021-09-27 17:29:47 +03:00
SomeTroglodyte
a487c2c373
Fix new game Mod nation icons on first open ( #5334 )
2021-09-27 17:28:26 +03:00