File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -142,17 +142,18 @@ func (e *Exporter) EnhanceBasesWithPobCrafts(bases []*Base) []*Base {
142142 }
143143
144144 cooking_rate := recipe .CookingRate .Get ()
145+ infocard_addition .WriteLineStr (string (fmt .Sprintf ("Cooking: %d volume in minute" , cooking_rate )))
146+
145147 var sb_time strings.Builder
146- sb_time .WriteString (string (fmt .Sprintf ("Cooking: %d volume in minute" , cooking_rate )))
147- sb_time .WriteString (" [" )
148+ sb_time .WriteString (fmt .Sprintf ("Total recipe time: %.0f minutes" , craft .CookMinutes ))
148149 if math .Floor (craft .CookMinutes / 60 ) > 0 {
150+ sb_time .WriteString (" [" )
149151 sb_time .WriteString (fmt .Sprintf ("%2.0fh - " , math .Floor (craft .CookMinutes / 60 )))
152+ sb_time .WriteString (fmt .Sprintf ("%2.0fm" , craft .CookMinutes - 60 * math .Floor (craft .CookMinutes / 60 )))
153+ sb_time .WriteString ("]" )
150154 }
151- sb_time .WriteString (fmt .Sprintf ("%2.0fm" , craft .CookMinutes - 60 * math .Floor (craft .CookMinutes / 60 )))
152- sb_time .WriteString ("]" )
153155 infocard_addition .WriteLineStr (sb_time .String ())
154156
155- infocard_addition .WriteLineStr (string (fmt .Sprintf ("Total recipe time: %.0f minutes" , craft .CookMinutes )))
156157 infocard_addition .WriteLineStr (string (fmt .Sprintf ("Total recipe volume: %.0f" , craft .TotalVolume )))
157158
158159 if level , ok := recipe .RequiredLevel .GetValue (); ok {
You can’t perform that action at this time.
0 commit comments