Skip to content

Commit

Permalink
Force the strawberry to be golden in chapter panel when all the straw…
Browse files Browse the repository at this point in the history
…berries in the map are goldens
  • Loading branch information
maddie480 committed Oct 18, 2021
1 parent 967f211 commit 22312c5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions UI/InGameOverworldHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,9 @@ private static void OnChapterPanelUpdateStats(On.Celeste.OuiChapterPanel.orig_Up


if (isPanelShowingLobby(self) || Engine.Scene == overworldWrapper?.Scene) {
// turn strawberry counter into golden if there is no berry in the map
if (AreaData.Get(self.Area).Mode[0].TotalStrawberries == 0) {
// turn strawberry counter into golden if there only are golden berries in the map
MapData mapData = AreaData.Get(self.Area).Mode[0].MapData;
if (mapData.GetDetectedStrawberriesIncludingUntracked() == mapData.Goldenberries.Count) {
StrawberriesCounter strawberriesCounter = new DynData<OuiChapterPanel>(self).Get<StrawberriesCounter>("strawberries");
strawberriesCounter.Golden = true;
strawberriesCounter.ShowOutOf = false;
Expand Down
2 changes: 1 addition & 1 deletion everest.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- Name: CollabUtils2
Version: 1.5.9
Version: 1.5.10
DLL: bin/Debug/net452/CollabUtils2.dll
Dependencies:
- Name: Everest
Expand Down

0 comments on commit 22312c5

Please sign in to comment.