Skip to content

Commit 6cdc0d4

Browse files
committed
Use old gmhs area stats instead of specific flag to determine if old gmhs was beaten
1 parent 416e071 commit 6cdc0d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SpringCollab2020Module.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ private void renderOldGMHSCompletionStamp(ILContext il) {
159159
cursor.Emit(OpCodes.Ldarg_0);
160160
cursor.EmitDelegate<Action<OuiChapterPanel>>(self => {
161161
// draw it only if the player beat old grandmaster heart side, and we're actually looking at it.
162-
if (self.Area.GetSID() == "SpringCollab2020/5-Grandmaster/ZZ-HeartSide" && SaveData.BeatOldGrandmasterHeartSide) {
162+
if (self.Area.GetSID() == "SpringCollab2020/5-Grandmaster/ZZ-NewHeartSide"
163+
&& (global::Celeste.SaveData.Instance.GetAreaStatsFor(AreaData.Get("SpringCollab2020/5-Grandmaster/ZZ-HeartSide").ToKey())?.Modes[0].Completed ?? false)) {
164+
163165
MTN.FileSelect["heart"].Draw(self.Position + new Vector2(-580f, 130f));
164166
}
165167
});

SpringCollab2020SaveData.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@
44
namespace Celeste.Mod.SpringCollab2020 {
55
public class SpringCollab2020SaveData : EverestModuleSaveData {
66
public HashSet<string> ModifiedThemeMaps = new HashSet<string>() { };
7-
8-
public bool BeatOldGrandmasterHeartSide { get; set; } = false;
97
}
108
}

0 commit comments

Comments
 (0)