mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 23:39:40 +07:00
GPT calculation fixed 2
This commit is contained in:
@ -82,7 +82,7 @@ class TradeEvaluation {
|
|||||||
when (offer.type) {
|
when (offer.type) {
|
||||||
TradeType.Gold -> return offer.amount
|
TradeType.Gold -> return offer.amount
|
||||||
// GPT loses 1% of value for each 'future' turn, meaning: gold now is more valuable than gold in the future
|
// GPT loses 1% of value for each 'future' turn, meaning: gold now is more valuable than gold in the future
|
||||||
TradeType.Gold_Per_Turn -> return (1..offer.duration).sumOf { (offer.amount * 0.99f.pow(it)).toInt() }
|
TradeType.Gold_Per_Turn -> return (1..offer.duration).sumOf { (offer.amount * 0.99.pow(it)) }.toInt()
|
||||||
TradeType.Treaty -> {
|
TradeType.Treaty -> {
|
||||||
return when (offer.name) {
|
return when (offer.name) {
|
||||||
// Since it will be evaluated twice, once when they evaluate our offer and once when they evaluate theirs
|
// Since it will be evaluated twice, once when they evaluate our offer and once when they evaluate theirs
|
||||||
|
Reference in New Issue
Block a user