(ec5f3cd24) Added mission texts to EnglishVanilla, use "[reward]" tag in the texts instead of the actual number so we don't have to change the descriptions if we change the reward

This commit is contained in:
Joonas Rikkonen
2019-04-10 15:14:16 +03:00
parent bf953177b9
commit 8f821c817a

View File

@@ -91,6 +91,13 @@ namespace Barotrauma
Messages[m] = Messages[m].Replace("[location" + (n + 1) + "]", locations[n].Name);
}
}
if (description != null) description = description.Replace("[reward]", Reward.ToString("N0"));
if (successMessage != null) successMessage = successMessage.Replace("[reward]", Reward.ToString("N0"));
if (failureMessage != null) failureMessage = failureMessage.Replace("[reward]", Reward.ToString("N0"));
for (int m = 0; m < Messages.Count; m++)
{
Messages[m] = Messages[m].Replace("[reward]", Reward.ToString("N0"));
}
}
public static Mission LoadRandom(Location[] locations, string seed, bool requireCorrectLocationType, MissionType missionType, bool isSinglePlayer = false)
{