@@ -47,14 +47,21 @@ public OuiJournalCollabProgressInOverworld(OuiJournal journal)
4747 . AddColumn ( new EmptyCell ( 64f ) )
4848 . AddColumn ( new IconCell ( "strawberry" , 150f ) )
4949 . AddColumn ( new IconCell ( "skullblue" , 100f ) )
50- . AddColumn ( new IconCell ( "CollabUtils2MinDeaths/SpringCollab2020/1-Beginner" , 100f ) )
50+ . AddColumn ( new IconCell ( "CollabUtils2MinDeaths/SpringCollab2020/1-Beginner" , 100f ) ) ;
51+
52+ if ( OuiJournalCollabProgressDashCountMod . IsDashCountEnabled ( ) ) {
53+ table . AddColumn ( new IconCell ( "max480/DashCountMod/dashes" , 80f ) ) ;
54+ }
55+
56+ table
5157 . AddColumn ( new IconCell ( "time" , 220f ) )
5258 . AddColumn ( new IconCell ( "CollabUtils2/speed_berry_pbs_heading" , 220f ) )
5359 . AddColumn ( new EmptyCell ( 30f ) ) ;
5460
5561 int totalStrawberries = 0 ;
5662 int totalDeaths = 0 ;
5763 int sumOfBestDeaths = 0 ;
64+ int sumOfBestDashes = 0 ;
5865 long totalTime = 0 ;
5966 long sumOfBestTimes = 0 ;
6067
@@ -75,6 +82,7 @@ public OuiJournalCollabProgressInOverworld(OuiJournal journal)
7582 int lobbyTotalStrawberries = areaData . Mode [ 0 ] . TotalStrawberries ;
7683 int lobbyDeaths = item . Modes [ 0 ] . Deaths ;
7784 int lobbySumOfBestDeaths = 0 ;
85+ int lobbySumOfBestDashes = 0 ;
7886 long lobbyTotalTime = item . TotalTimePlayed ;
7987 long lobbySumOfBestTimes = 0 ;
8088 bool lobbyLevelsDone = true ;
@@ -117,6 +125,8 @@ public OuiJournalCollabProgressInOverworld(OuiJournal journal)
117125 lobbySumOfBestDeaths += lobbyMap . Modes [ 0 ] . BestDeaths ;
118126 }
119127
128+ lobbySumOfBestDashes += lobbyMap . Modes [ 0 ] . BestDashes ;
129+
120130 if ( ! lobbyMap . Modes [ 0 ] . HeartGem ) {
121131 lobbyLevelsDone = false ;
122132 }
@@ -164,9 +174,24 @@ public OuiJournalCollabProgressInOverworld(OuiJournal journal)
164174 } else {
165175 row . Add ( new IconCell ( "dot" ) ) ;
166176 }
177+
178+ if ( OuiJournalCollabProgressDashCountMod . IsDashCountEnabled ( ) ) {
179+ if ( lobbyMapLevelSet == null ) {
180+ row . Add ( new TextCell ( Dialog . Deaths ( item . Modes [ 0 ] . BestDashes ) , TextJustify , 0.5f , TextColor ) ) ;
181+ sumOfBestDashes += item . Modes [ 0 ] . BestDashes ;
182+ } else if ( lobbyAllMapsCompletedInSingleRun ) {
183+ row . Add ( new TextCell ( Dialog . Deaths ( lobbySumOfBestDashes ) , TextJustify , 0.5f , TextColor ) ) ;
184+ } else {
185+ row . Add ( new IconCell ( "dot" ) ) ;
186+ }
187+ }
167188 } else {
168189 row . Add ( new IconCell ( "dot" ) ) ;
169190 allLevelsDone = false ;
191+
192+ if ( OuiJournalCollabProgressDashCountMod . IsDashCountEnabled ( ) ) {
193+ row . Add ( new IconCell ( "dot" ) ) ;
194+ }
170195 }
171196
172197 if ( lobbyTotalTime > 0 ) {
@@ -194,6 +219,7 @@ public OuiJournalCollabProgressInOverworld(OuiJournal journal)
194219 totalStrawberries += lobbyStrawberries ;
195220 totalDeaths += lobbyDeaths ;
196221 sumOfBestDeaths += lobbySumOfBestDeaths ;
222+ sumOfBestDashes += lobbySumOfBestDashes ;
197223 totalTime += lobbyTotalTime ;
198224 allMapsCompletedInSingleRun &= lobbyAllMapsCompletedInSingleRun ;
199225
@@ -209,7 +235,13 @@ public OuiJournalCollabProgressInOverworld(OuiJournal journal)
209235 . Add ( null )
210236 . Add ( new TextCell ( totalStrawberries . ToString ( ) , TextJustify , 0.6f , TextColor ) )
211237 . Add ( new TextCell ( Dialog . Deaths ( totalDeaths ) , TextJustify , 0.6f , TextColor ) )
212- . Add ( new TextCell ( allLevelsDone && allMapsCompletedInSingleRun ? Dialog . Deaths ( sumOfBestDeaths ) : "-" , TextJustify , 0.6f , TextColor ) )
238+ . Add ( new TextCell ( allLevelsDone && allMapsCompletedInSingleRun ? Dialog . Deaths ( sumOfBestDeaths ) : "-" , TextJustify , 0.6f , TextColor ) ) ;
239+
240+ if ( OuiJournalCollabProgressDashCountMod . IsDashCountEnabled ( ) ) {
241+ totalsRow . Add ( new TextCell ( allLevelsDone && allMapsCompletedInSingleRun ? Dialog . Deaths ( sumOfBestDashes ) : "-" , TextJustify , 0.6f , TextColor ) ) ;
242+ }
243+
244+ totalsRow
213245 . Add ( new TextCell ( Dialog . Time ( totalTime ) , TextJustify , 0.6f , TextColor ) )
214246 . Add ( new TextCell ( allSpeedBerriesDone ? Dialog . Time ( sumOfBestTimes ) : "-" , TextJustify , 0.6f , TextColor ) ) . Add ( null ) ;
215247
0 commit comments