diff options
| author | Michael <[email protected]> | 2017-03-07 14:56:48 -0500 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-03-07 14:56:57 -0500 |
| commit | 2a747334bd926d79537b9e8d4f38c79a815752e5 (patch) | |
| tree | 0691439372e8584890a429c78591a0e8d7681573 /ShiftOS_TheReturn/Shiftorium.cs | |
| parent | c64333d0f57c50a2519b5c631d44243ff41ca815 (diff) | |
| download | shiftos_thereturn-2a747334bd926d79537b9e8d4f38c79a815752e5.tar.gz shiftos_thereturn-2a747334bd926d79537b9e8d4f38c79a815752e5.tar.bz2 shiftos_thereturn-2a747334bd926d79537b9e8d4f38c79a815752e5.zip | |
WHOA HACKING
Diffstat (limited to 'ShiftOS_TheReturn/Shiftorium.cs')
| -rw-r--r-- | ShiftOS_TheReturn/Shiftorium.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ShiftOS_TheReturn/Shiftorium.cs b/ShiftOS_TheReturn/Shiftorium.cs index 198dcc7..0bdd9f4 100644 --- a/ShiftOS_TheReturn/Shiftorium.cs +++ b/ShiftOS_TheReturn/Shiftorium.cs @@ -210,9 +210,12 @@ namespace ShiftOS.Engine if (SaveSystem.CurrentSave.StoriesExperienced == null) SaveSystem.CurrentSave.StoriesExperienced = new List<string>(); - if (!SaveSystem.CurrentSave.StoriesExperienced.Contains(id)) - return SaveSystem.CurrentSave.Upgrades[id]; + bool upgInstalled = false; + if(SaveSystem.CurrentSave.Upgrades.ContainsKey(id)) + upgInstalled = SaveSystem.CurrentSave.Upgrades[id]; + if(upgInstalled == false) + return SaveSystem.CurrentSave.StoriesExperienced.Contains(id); return true; } catch |
