(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:
@@ -91,6 +91,13 @@ namespace Barotrauma
|
|||||||
Messages[m] = Messages[m].Replace("[location" + (n + 1) + "]", locations[n].Name);
|
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)
|
public static Mission LoadRandom(Location[] locations, string seed, bool requireCorrectLocationType, MissionType missionType, bool isSinglePlayer = false)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user