mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 15:01:09 -04:00
Buildings that are missing resources are still displayed in city constructions
This commit is contained in:
parent
7d360e5fa1
commit
1a558a70d2
@ -233,6 +233,7 @@ class Building : NamedStats(), IConstruction{
|
|||||||
val rejectionReason = getRejectionReason(cityConstructions)
|
val rejectionReason = getRejectionReason(cityConstructions)
|
||||||
return rejectionReason==""
|
return rejectionReason==""
|
||||||
|| rejectionReason.startsWith("Requires")
|
|| rejectionReason.startsWith("Requires")
|
||||||
|
|| rejectionReason.startsWith("Consumes")
|
||||||
|| rejectionReason == "Wonder is being built elsewhere"
|
|| rejectionReason == "Wonder is being built elsewhere"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -86,9 +86,7 @@ class BaseUnit : INamed, IConstruction {
|
|||||||
return unit
|
return unit
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun canBePurchased(): Boolean {
|
override fun canBePurchased() = true
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun getProductionCost(civInfo: CivilizationInfo): Int {
|
override fun getProductionCost(civInfo: CivilizationInfo): Int {
|
||||||
var productionCost = cost.toFloat()
|
var productionCost = cost.toFloat()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user