mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-27 05:46:43 -04:00
Spy randomness is different for different spies in same city
This commit is contained in:
parent
e8d40de61a
commit
b2f890599d
@ -419,5 +419,5 @@ class Spy private constructor() : IsPartOfGameInfoSerialization {
|
|||||||
|
|
||||||
/** Anti-save-scum: Deterministic random from city and turn
|
/** Anti-save-scum: Deterministic random from city and turn
|
||||||
* @throws NullPointerException for spies in the hideout */
|
* @throws NullPointerException for spies in the hideout */
|
||||||
private fun randomSeed() = (getCity().run { location.x * location.y } + 123f * civInfo.gameInfo.turns).toInt()
|
private fun randomSeed() = (getCity().run { location.x * location.y } + 123f * civInfo.gameInfo.turns).toInt() + name.hashCode()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user