mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 11:34:54 -04:00
4.4.14
This commit is contained in:
parent
03bb0b3b79
commit
29deacaca2
23
changelog.md
23
changelog.md
@ -1,23 +1,20 @@
|
|||||||
## 4.4.14
|
## 4.4.14
|
||||||
|
|
||||||
Offers we receive for more resources than we have are invalid
|
Fixed Guruship belief
|
||||||
|
|
||||||
Resolved - fixed Guruship belief
|
|
||||||
|
|
||||||
Was unable to upload previous version to Google Play, re-attempting
|
|
||||||
|
|
||||||
By vegeta1k95:
|
By vegeta1k95:
|
||||||
- Mod sizes are updated to proper values upon selection
|
- Mod sizes are updated to proper values upon selection
|
||||||
- Fix UI bugs
|
- Fix UI bugs
|
||||||
- Fix centering of unit HP bar
|
- Fix centering of unit HP bar
|
||||||
- Improvements to construction table
|
- Improvements to construction table
|
||||||
|
|
||||||
AbsoluteUnits - Berserker, Samurai, Longswordsman_v2 - By letstalkaboutdune
|
AbsoluteUnits - Berserker, Samurai, Longswordsman v2 - By letstalkaboutdune
|
||||||
|
|
||||||
By Gualdimar:
|
By Gualdimar:
|
||||||
- Fixed selecting an improvement switched to another unit even if the setting is disabled
|
- Selecting an improvement switches to another unit only if enabled
|
||||||
- Fixed missing unimproved resources in the overview table
|
- Fixed missing unimproved resources in the overview table
|
||||||
- Research agreement cost display
|
- Research agreement cost display
|
||||||
|
- Offers we receive for more resources than we have are invalid
|
||||||
|
|
||||||
## 4.4.13
|
## 4.4.13
|
||||||
|
|
||||||
|
@ -679,7 +679,7 @@ object UnitAutomation {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
fun runAway(unit: MapUnit) {
|
private fun runAway(unit: MapUnit) {
|
||||||
val reachableTiles = unit.movement.getDistanceToTiles()
|
val reachableTiles = unit.movement.getDistanceToTiles()
|
||||||
val enterableCity = reachableTiles.keys
|
val enterableCity = reachableTiles.keys
|
||||||
.firstOrNull { it.isCityCenter() && unit.movement.canMoveTo(it) }
|
.firstOrNull { it.isCityCenter() && unit.movement.canMoveTo(it) }
|
||||||
|
@ -64,7 +64,7 @@ class TradeEvaluation {
|
|||||||
.filter { it.type != TradeType.Treaty } // since treaties should only be evaluated once for 2 sides
|
.filter { it.type != TradeType.Treaty } // since treaties should only be evaluated once for 2 sides
|
||||||
.map { evaluateBuyCost(it, evaluator, tradePartner) }.sum()
|
.map { evaluateBuyCost(it, evaluator, tradePartner) }.sum()
|
||||||
|
|
||||||
var sumOfOurOffers = trade.ourOffers.map { evaluateSellCost(it, evaluator, tradePartner) }.sum()
|
var sumOfOurOffers = trade.ourOffers.sumOf { evaluateSellCost(it, evaluator, tradePartner) }
|
||||||
|
|
||||||
// If we're making a peace treaty, don't try to up the bargain for people you don't like.
|
// If we're making a peace treaty, don't try to up the bargain for people you don't like.
|
||||||
// Leads to spartan behaviour where you demand more, the more you hate the enemy...unhelpful
|
// Leads to spartan behaviour where you demand more, the more you hate the enemy...unhelpful
|
||||||
@ -270,7 +270,7 @@ class TradeEvaluation {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun distanceCityTradeModifier(civInfo: Civilization, capitalcity: City, city: City): Int{
|
private fun distanceCityTradeModifier(civInfo: Civilization, capitalcity: City, city: City): Int{
|
||||||
val distanceBetweenCities = capitalcity.getCenterTile().aerialDistanceTo(city.getCenterTile())
|
val distanceBetweenCities = capitalcity.getCenterTile().aerialDistanceTo(city.getCenterTile())
|
||||||
|
|
||||||
if (distanceBetweenCities < 500) return 0
|
if (distanceBetweenCities < 500) return 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user