@@ -66,6 +66,8 @@ private static bool shouldDisplaySpeedBerryColumn() {
6666 public OuiJournalCollabProgressInOverworld ( OuiJournal journal )
6767 : base ( journal ) {
6868
69+ bool displaySpeedBerryColumn = shouldDisplaySpeedBerryColumn ( ) ;
70+
6971 PageTexture = "page" ;
7072 table = new Table ( )
7173 . AddColumn ( new TextCell ( Dialog . Clean ( "journal_progress" ) , new Vector2 ( 0f , 0.5f ) , 1f , Color . Black * 0.7f , 420f ) )
@@ -124,7 +126,7 @@ public OuiJournalCollabProgressInOverworld(OuiJournal journal)
124126 lobbyTotalTime += lobbyMap . TotalTimePlayed ;
125127 lobbyAllMapsCompletedInSingleRun &= lobbyMap . Modes [ 0 ] . SingleRunCompleted ;
126128
127- if ( shouldDisplaySpeedBerryColumn ( ) ) {
129+ if ( displaySpeedBerryColumn ) {
128130 if ( CollabMapDataProcessor . SpeedBerries . TryGetValue ( lobbyMap . GetSID ( ) , out CollabMapDataProcessor . SpeedBerryInfo mapSpeedBerryInfo )
129131 && CollabModule . Instance . SaveData . SpeedBerryPBs . TryGetValue ( lobbyMap . GetSID ( ) , out long mapSpeedBerryPB ) ) {
130132
@@ -231,7 +233,7 @@ public OuiJournalCollabProgressInOverworld(OuiJournal journal)
231233 if ( lobbyMapLevelSet == null ) {
232234 row . Add ( new TextCell ( "-" , TextJustify , 0.5f , TextColor ) ) . Add ( null ) ;
233235 } else if ( lobbySpeedBerryLevel < 4 ) {
234- if ( shouldDisplaySpeedBerryColumn ( ) ) {
236+ if ( displaySpeedBerryColumn ) {
235237 row . Add ( new TextCell ( Dialog . Time ( lobbySumOfBestTimes ) , TextJustify , 0.5f , getRankColor ( lobbySpeedBerryLevel ) ) ) ;
236238 row . Add ( new IconCell ( getRankIcon ( lobbySpeedBerryLevel ) ) ) ;
237239 sumOfBestTimes += lobbySumOfBestTimes ;
0 commit comments