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 Tech.png
size: 1024, 1024 size: 2048, 1024
format: RGBA8888 format: RGBA8888
filter: MipMapLinearLinear, MipMapLinearLinear filter: MipMapLinearLinear, MipMapLinearLinear
repeat: none repeat: none
@ -377,196 +377,203 @@ TechIcons/Nuclear Fission
index: -1 index: -1
TechIcons/Nuclear Fusion TechIcons/Nuclear Fusion
rotate: false rotate: false
xy: 220, 4 xy: 976, 868
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Optics TechIcons/Optics
rotate: false rotate: false
xy: 328, 112 xy: 220, 4
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Particle Physics TechIcons/Particle Physics
rotate: false rotate: false
xy: 436, 220 xy: 328, 112
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Pharmaceuticals TechIcons/Pharmaceuticals
rotate: false rotate: false
xy: 544, 328 xy: 436, 220
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Philosophy TechIcons/Philosophy
rotate: false rotate: false
xy: 652, 436 xy: 544, 328
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Physics TechIcons/Physics
rotate: false rotate: false
xy: 760, 544 xy: 652, 436
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Plastics TechIcons/Plastics
rotate: false rotate: false
xy: 868, 652 xy: 760, 544
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Pottery TechIcons/Pottery
rotate: false rotate: false
xy: 328, 4 xy: 868, 652
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Printing Press TechIcons/Printing Press
rotate: false rotate: false
xy: 436, 112 xy: 976, 760
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Radar TechIcons/Radar
rotate: false rotate: false
xy: 544, 220 xy: 1084, 868
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Radio TechIcons/Radio
rotate: false rotate: false
xy: 652, 328 xy: 328, 4
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Railroads TechIcons/Railroads
rotate: false rotate: false
xy: 760, 436 xy: 436, 112
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Refrigeration TechIcons/Refrigeration
rotate: false rotate: false
xy: 868, 544 xy: 544, 220
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Replaceable Parts TechIcons/Replaceable Parts
rotate: false rotate: false
xy: 436, 4 xy: 652, 328
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Rifling TechIcons/Rifling
rotate: false rotate: false
xy: 544, 112 xy: 760, 436
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Robotics TechIcons/Robotics
rotate: false rotate: false
xy: 652, 220 xy: 868, 544
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Rocketry TechIcons/Rocketry
rotate: false rotate: false
xy: 760, 328 xy: 976, 652
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Sailing TechIcons/Sailing
rotate: false rotate: false
xy: 868, 436 xy: 1084, 760
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Satellites TechIcons/Satellites
rotate: false rotate: false
xy: 544, 4 xy: 1192, 868
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Scientific Theory TechIcons/Scientific Theory
rotate: false rotate: false
xy: 652, 112 xy: 436, 4
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Stealth TechIcons/Stealth
rotate: false rotate: false
xy: 760, 220 xy: 544, 112
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Steam Power TechIcons/Steam Power
rotate: false rotate: false
xy: 868, 328 xy: 652, 220
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Steel TechIcons/Steel
rotate: false rotate: false
xy: 652, 4 xy: 760, 328
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Telecommunications TechIcons/Telecommunications
rotate: false 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 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/The Wheel TechIcons/The Wheel
rotate: false rotate: false
xy: 868, 220 xy: 1084, 652
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Theology TechIcons/Theology
rotate: false rotate: false
xy: 760, 4 xy: 1192, 760
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Trapping TechIcons/Trapping
rotate: false rotate: false
xy: 868, 112 xy: 1300, 868
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 offset: 0, 0
index: -1 index: -1
TechIcons/Writing TechIcons/Writing
rotate: false rotate: false
xy: 868, 4 xy: 544, 4
size: 100, 100 size: 100, 100
orig: 100, 100 orig: 100, 100
offset: 0, 0 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 // Remove their free buildings from this city and remove free buildings provided by the city from their cities
removeBuildingsOnMoveToCiv(oldCiv) 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 // 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) { if (newCivInfo.cities.count() == 1) {
cityConstructions.addBuilding(capitalCityIndicator) 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 isBeingRazed = false
// Transfer unique buildings // Transfer unique buildings

View File

@ -337,7 +337,11 @@ class MapUnit {
return 1 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() } .sumOf { it.params[0].toInt() }
if (visibilityRange < 1) visibilityRange = 1 if (visibilityRange < 1) visibilityRange = 1

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) @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), 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 //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), 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), SpreadReligionStrength("[amount]% Spread Religion Strength", UniqueTarget.Unit, UniqueTarget.Global),
MayFoundReligion("May found a religion", UniqueTarget.Unit), MayFoundReligion("May found a religion", UniqueTarget.Unit),
MayEnhanceReligion("May enhance 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, 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) 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) 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 * [Flight](https://thenounproject.com/term/flight/1014306/) By Genius Icons
* [Train](https://thenounproject.com/term/train/651644/) By Federico Panzano for Railroad * [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 * [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 ### Atomic
* [Pill](https://thenounproject.com/term/pill/780458/) By Alex Arseneau for Pharmaceuticals * [Pill](https://thenounproject.com/term/pill/780458/) By Alex Arseneau for Pharmaceuticals