From b2f890599d2ff2eeeaaecc881828049993980bdf Mon Sep 17 00:00:00 2001 From: yairm210 Date: Tue, 28 Jan 2025 14:40:17 +0200 Subject: [PATCH] Spy randomness is different for different spies in same city --- core/src/com/unciv/models/Spy.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/Spy.kt b/core/src/com/unciv/models/Spy.kt index a5c005f0da..493809f8e7 100644 --- a/core/src/com/unciv/models/Spy.kt +++ b/core/src/com/unciv/models/Spy.kt @@ -419,5 +419,5 @@ class Spy private constructor() : IsPartOfGameInfoSerialization { /** Anti-save-scum: Deterministic random from city and turn * @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() }