Skip to content

Commit

Permalink
Why is contiuation indent the defualt in Idea anyways?
Browse files Browse the repository at this point in the history
  • Loading branch information
SeventhM authored Oct 21, 2024
1 parent dce69c7 commit 8dbbe77
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/src/com/unciv/models/ruleset/IConstruction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ interface INonPerpetualConstruction : IConstruction, INamed, IHasUniques {
if (hasUnique(UniqueType.CannotBePurchased, stateForConditionals)) return PurchaseReason.Unpurchasable
// Can be purchased with [Stat] [cityFilter]
if (getMatchingUniques(UniqueType.CanBePurchasedWithStat, StateForConditionals.IgnoreConditionals)
.any {
it.params[0] == stat.name &&
.any {
it.params[0] == stat.name &&
(city == null || (it.conditionalsApply(stateForConditionals) && city.matchesFilter(it.params[1])))
}
}
) return PurchaseReason.UniqueAllowed
// Can be purchased for [amount] [Stat] [cityFilter]
if (getMatchingUniques(UniqueType.CanBePurchasedForAmountStat, StateForConditionals.IgnoreConditionals)
.any {
it.params[1] == stat.name &&
.any {
it.params[1] == stat.name &&
(city == null || (it.conditionalsApply(stateForConditionals) && city.matchesFilter(it.params[2])))
}
}
) return PurchaseReason.UniqueAllowed
if (stat == Stat.Gold && !hasUnique(UniqueType.Unbuildable, stateForConditionals)) return PurchaseReason.Allowed
return PurchaseReason.NotAllowed
Expand Down

0 comments on commit 8dbbe77

Please sign in to comment.