mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 03:23:17 -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
|
/** Get barbarian civ
|
||||||
* @throws NoSuchElementException in no-barbarians games! */
|
* @throws NoSuchElementException in no-barbarians games! */
|
||||||
@Readonly fun getBarbarianCivilization() = getCivilization(Constants.barbarians)
|
@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]
|
/** Access a cached `GlobalUniques` that combines the [ruleset]'s [globalUniques][Ruleset.globalUniques]
|
||||||
* with the Uniques of the chosen [speed] and [difficulty][getDifficulty] */
|
* with the Uniques of the chosen [speed] and [difficulty][getDifficulty] */
|
||||||
@Readonly @Suppress("purity") // should be autorecognized
|
@Readonly @Suppress("purity") // should be autorecognized
|
||||||
|
Loading…
x
Reference in New Issue
Block a user