mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-20 12:48:56 +07:00
4.4.14
This commit is contained in:
23
changelog.md
23
changelog.md
@ -1,23 +1,20 @@
|
||||
## 4.4.14
|
||||
|
||||
Offers we receive for more resources than we have are invalid
|
||||
|
||||
Resolved - fixed Guruship belief
|
||||
|
||||
Was unable to upload previous version to Google Play, re-attempting
|
||||
Fixed Guruship belief
|
||||
|
||||
By vegeta1k95:
|
||||
- Mod sizes are updated to proper values upon selection
|
||||
- Fix UI bugs
|
||||
- Fix centering of unit HP bar
|
||||
- Improvements to construction table
|
||||
- Mod sizes are updated to proper values upon selection
|
||||
- Fix UI bugs
|
||||
- Fix centering of unit HP bar
|
||||
- Improvements to construction table
|
||||
|
||||
AbsoluteUnits - Berserker, Samurai, Longswordsman_v2 - By letstalkaboutdune
|
||||
AbsoluteUnits - Berserker, Samurai, Longswordsman v2 - By letstalkaboutdune
|
||||
|
||||
By Gualdimar:
|
||||
- Fixed selecting an improvement switched to another unit even if the setting is disabled
|
||||
- Fixed missing unimproved resources in the overview table
|
||||
- Research agreement cost display
|
||||
- Selecting an improvement switches to another unit only if enabled
|
||||
- Fixed missing unimproved resources in the overview table
|
||||
- Research agreement cost display
|
||||
- Offers we receive for more resources than we have are invalid
|
||||
|
||||
## 4.4.13
|
||||
|
||||
|
@ -679,7 +679,7 @@ object UnitAutomation {
|
||||
return false
|
||||
}
|
||||
|
||||
fun runAway(unit: MapUnit) {
|
||||
private fun runAway(unit: MapUnit) {
|
||||
val reachableTiles = unit.movement.getDistanceToTiles()
|
||||
val enterableCity = reachableTiles.keys
|
||||
.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
|
||||
.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.
|
||||
// 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())
|
||||
|
||||
if (distanceBetweenCities < 500) return 0
|
||||
|
Reference in New Issue
Block a user