Merge remote-tracking branch 'origin/master'

This commit is contained in:
yairm210 2021-12-06 19:20:28 +02:00
commit 4bc8c83555
8 changed files with 50 additions and 35 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -1,6 +1,6 @@
Tech.png
size: 1024, 1024
size: 2048, 1024
format: RGBA8888
filter: MipMapLinearLinear, MipMapLinearLinear
repeat: none
@ -377,196 +377,203 @@ TechIcons/Nuclear Fission
index: -1
TechIcons/Nuclear Fusion
rotate: false
xy: 220, 4
xy: 976, 868
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Optics
rotate: false
xy: 328, 112
xy: 220, 4
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Particle Physics
rotate: false
xy: 436, 220
xy: 328, 112
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Pharmaceuticals
rotate: false
xy: 544, 328
xy: 436, 220
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Philosophy
rotate: false
xy: 652, 436
xy: 544, 328
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Physics
rotate: false
xy: 760, 544
xy: 652, 436
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Plastics
rotate: false
xy: 868, 652
xy: 760, 544
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Pottery
rotate: false
xy: 328, 4
xy: 868, 652
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Printing Press
rotate: false
xy: 436, 112
xy: 976, 760
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Radar
rotate: false
xy: 544, 220
xy: 1084, 868
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Radio
rotate: false
xy: 652, 328
xy: 328, 4
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Railroads
rotate: false
xy: 760, 436
xy: 436, 112
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Refrigeration
rotate: false
xy: 868, 544
xy: 544, 220
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Replaceable Parts
rotate: false
xy: 436, 4
xy: 652, 328
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Rifling
rotate: false
xy: 544, 112
xy: 760, 436
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Robotics
rotate: false
xy: 652, 220
xy: 868, 544
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Rocketry
rotate: false
xy: 760, 328
xy: 976, 652
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Sailing
rotate: false
xy: 868, 436
xy: 1084, 760
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Satellites
rotate: false
xy: 544, 4
xy: 1192, 868
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Scientific Theory
rotate: false
xy: 652, 112
xy: 436, 4
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Stealth
rotate: false
xy: 760, 220
xy: 544, 112
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Steam Power
rotate: false
xy: 868, 328
xy: 652, 220
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Steel
rotate: false
xy: 652, 4
xy: 760, 328
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Telecommunications
rotate: false
xy: 760, 112
xy: 868, 436
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Telegraph
rotate: false
xy: 976, 544
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/The Wheel
rotate: false
xy: 868, 220
xy: 1084, 652
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Theology
rotate: false
xy: 760, 4
xy: 1192, 760
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Trapping
rotate: false
xy: 868, 112
xy: 1300, 868
size: 100, 100
orig: 100, 100
offset: 0, 0
index: -1
TechIcons/Writing
rotate: false
xy: 868, 4
xy: 544, 4
size: 100, 100
orig: 100, 100
offset: 0, 0

Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 KiB

After

Width:  |  Height:  |  Size: 198 KiB

View File

@ -274,14 +274,17 @@ class CityInfoConquestFunctions(val city: CityInfo){
// Remove their free buildings from this city and remove free buildings provided by the city from their cities
removeBuildingsOnMoveToCiv(oldCiv)
// Add our free buildings to this city and add free buildings provided by the city to other cities
civInfo.civConstructions.tryAddFreeBuildings()
// Place palace for newCiv if this is the only city they have
// This needs to happen _before_ free buildings are added, as somtimes these should
// only be placed in the capital, and then there needs to be a capital.
if (newCivInfo.cities.count() == 1) {
cityConstructions.addBuilding(capitalCityIndicator)
}
// Add our free buildings to this city and add free buildings provided by the city to other cities
civInfo.civConstructions.tryAddFreeBuildings()
isBeingRazed = false
// Transfer unique buildings

View File

@ -337,9 +337,13 @@ class MapUnit {
return 1
}
visibilityRange += getMatchingUniques(UniqueType.Sight, checkCivInfoUniques = true)
visibilityRange += getMatchingUniques(UniqueType.Sight, conditionalState, checkCivInfoUniques = true)
.sumOf { it.params[0].toInt() }
visibilityRange += getTile().getAllTerrains()
.flatMap { it.getMatchingUniques(UniqueType.Sight, conditionalState) }
.sumOf { it.params[0].toInt() }
if (visibilityRange < 1) visibilityRange = 1
return visibilityRange

View File

@ -94,7 +94,7 @@ enum class UniqueType(val text:String, vararg targets: UniqueTarget, val flags:
@Deprecated("As of 3.17.1", ReplaceWith("[amount]% [stat] [in all cities] <while the empire is happy>"), DeprecationLevel.WARNING)
StatPercentBonusCitiesDeprecatedWhileEmpireHappy("[amount]% [stat] while the empire is happy", UniqueTarget.Global),
StatPercentFromReligionFollowers("[amount]% [stat] from every follower, up to [amount]%", UniqueTarget.FollowerBelief, UniqueTarget.Global),
StatPercentFromReligionFollowers("[amount]% [stat] from every follower, up to [amount]%", UniqueTarget.FollowerBelief),
//endregion Stat providing uniques
@ -227,7 +227,7 @@ enum class UniqueType(val text:String, vararg targets: UniqueTarget, val flags:
Movement("[amount] Movement", UniqueTarget.Unit, UniqueTarget.Global),
Sight("[amount] Sight", UniqueTarget.Unit, UniqueTarget.Global),
Sight("[amount] Sight", UniqueTarget.Unit, UniqueTarget.Global, UniqueTarget.Terrain),
SpreadReligionStrength("[amount]% Spread Religion Strength", UniqueTarget.Unit, UniqueTarget.Global),
MayFoundReligion("May found a religion", UniqueTarget.Unit),
MayEnhanceReligion("May enhance a religion", UniqueTarget.Unit),

View File

@ -173,7 +173,7 @@ class DiplomacyOverviewTable (
val statusLine = ImageGetter.getLine(civGroup.x + civGroup.width / 2, civGroup.y + civGroup.height / 2,
otherCivGroup.x + otherCivGroup.width / 2, otherCivGroup.y + otherCivGroup.height / 2, 2f)
statusLine.color = if (diplomacy.diplomaticStatus == DiplomaticStatus.Peace) Color.GREEN else Color.RED
statusLine.color = if (diplomacy.diplomaticStatus == DiplomaticStatus.War) Color.RED else Color.GREEN
civLines[civ.civName]!!.add(statusLine)

View File

@ -503,6 +503,7 @@ Unless otherwise specified, all the following are from [the Noun Project](https:
* [Flight](https://thenounproject.com/term/flight/1014306/) By Genius Icons
* [Train](https://thenounproject.com/term/train/651644/) By Federico Panzano for Railroad
* [Fridge](https://thenounproject.com/search/?q=refridgerator&i=1188873) By b farias for Refrigeration
* [telegraph](https://thenounproject.com/icon/telegraph-22058/) by Luke Anthony Firth for Telegraph*
### Atomic
* [Pill](https://thenounproject.com/term/pill/780458/) By Alex Arseneau for Pharmaceuticals