mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-22 02:42:16 -04:00
Fix readonly calls to getDifficulty() (#13659)
This commit is contained in:
parent
286aab0cf1
commit
3a671aa918
@ -240,7 +240,7 @@ class GameInfo : IsPartOfGameInfoSerialization, HasGameInfoSerializationVersion
|
||||
/** Get barbarian civ
|
||||
* @throws NoSuchElementException in no-barbarians games! */
|
||||
@Readonly fun getBarbarianCivilization() = getCivilization(Constants.barbarians)
|
||||
fun getDifficulty() = difficultyObject
|
||||
@Readonly fun getDifficulty() = difficultyObject
|
||||
/** Access a cached `GlobalUniques` that combines the [ruleset]'s [globalUniques][Ruleset.globalUniques]
|
||||
* with the Uniques of the chosen [speed] and [difficulty][getDifficulty] */
|
||||
@Readonly @Suppress("purity") // should be autorecognized
|
||||
|
Loading…
x
Reference in New Issue
Block a user