@@ -47,7 +47,7 @@ public RecipeEntry(Recipe recipe, bool isProduction, Goods currentItem, bool atC
4747 entryStatus = EntryStatus . NotAccessibleWithCurrentMilestones ;
4848 else
4949 {
50- var waste = recipe . RecipeWaste ( ) ;
50+ var waste = recipe . RecipeWaste ( atCurrentMilestones ) ;
5151 if ( waste > 0.95f )
5252 entryStatus = EntryStatus . Wasteful ;
5353 else if ( waste > 0f )
@@ -158,7 +158,7 @@ private void DrawRecipeEntry(ImGui gui, RecipeEntry entry, bool production)
158158 var bgColor = SchemeColor . Background ;
159159 var isBuilding = gui . isBuilding ;
160160 var recipe = entry . recipe ;
161- var waste = recipe . RecipeWaste ( ) ;
161+ var waste = recipe . RecipeWaste ( atCurrentMilestones ) ;
162162 if ( isBuilding )
163163 {
164164 if ( entry . entryStatus == EntryStatus . NotAccessible )
@@ -231,7 +231,7 @@ private void DrawRecipeEntry(ImGui gui, RecipeEntry entry, bool production)
231231 bgColor = SchemeColor . Secondary ;
232232 else
233233 {
234- rect . Width *= ( 1f - entry . recipe . RecipeWaste ( ) ) ;
234+ rect . Width *= ( 1f - waste ) ;
235235 gui . DrawRectangle ( rect , SchemeColor . Secondary ) ;
236236 }
237237 gui . DrawRectangle ( gui . lastRect , bgColor ) ;
@@ -334,7 +334,7 @@ public override void Build(ImGui gui)
334334 gui . DrawRectangle ( gui . lastRect , SchemeColor . Primary ) ;
335335 gui . BuildText ( "This color is estimated recipe efficiency" ) ;
336336 gui . DrawRectangle ( gui . lastRect , SchemeColor . Secondary ) ;
337- if ( gui . BuildCheckBox ( "Current milestones only " , atCurrentMilestones , out atCurrentMilestones , allocator : RectAllocator . RightRow ) )
337+ if ( gui . BuildCheckBox ( "Current milestones info " , atCurrentMilestones , out atCurrentMilestones , allocator : RectAllocator . RightRow ) )
338338 {
339339 var item = current ;
340340 current = null ;
@@ -359,7 +359,7 @@ int IComparer<RecipeEntry>.Compare(RecipeEntry x, RecipeEntry y)
359359 return y . entryStatus - x . entryStatus ;
360360 if ( x . flow != y . flow )
361361 return y . flow . CompareTo ( x . flow ) ;
362- return x . recipe . RecipeWaste ( ) . CompareTo ( y . recipe . RecipeWaste ( ) ) ;
362+ return x . recipe . RecipeWaste ( atCurrentMilestones ) . CompareTo ( y . recipe . RecipeWaste ( atCurrentMilestones ) ) ;
363363 }
364364 }
365365}
0 commit comments