Entering an edited running game switches its mod set
New game / Load of the running game re-enter it in place only while it still matches its collection; after the player edited the collection the mod set is switched, so added mechanics (the editors) appear. Test suite collection_edit.
This commit is contained in:
1 parent
8331e3e978
commit
2f15bba00b
5 files changed
+299
-2
No files matched your search
+6
-1
@@ -92,8 +92,13 @@ namespace Cthangover.BaseMenu
|
||||
ReloadRequired = false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The game is loaded and still matches its collection — only then can it
|
||||
/// be entered without a mod-set switch (an edited collection must apply).
|
||||
/// </summary>
|
||||
private static bool IsRunning(string gameId)
|
||||
=> ActiveGame.IsActive && string.Equals(ActiveGame.Id, gameId, StringComparison.OrdinalIgnoreCase);
|
||||
=> ActiveGame.IsActive && string.Equals(ActiveGame.Id, gameId, StringComparison.OrdinalIgnoreCase)
|
||||
&& !GameCatalog.IsActiveOutdated();
|
||||
|
||||
/// <summary>Lists what a composition change does to the save, in player terms.</summary>
|
||||
public static string DescribeDiff(SaveCompositionDiff diff)
|
||||
|
||||
Reference in new issue
Block a user