File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
Grabacr07.KanColleViewer/ViewModels/Contents/Fleets
Grabacr07.KanColleWrapper/Models Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ public class FleetStateViewModel : ViewModel
23
23
24
24
public string MaxAirSuperiorityPotential => this . Source . MaxAirSuperiorityPotential . ToString ( "##0" ) ;
25
25
26
- public string ViewRange => this . Source . ViewRange . ToString ( "##0.##" ) ;
26
+ public string ViewRange => ( Math . Floor ( this . Source . ViewRange * 100 ) / 100 ) . ToString ( "##0.##" ) ;
27
27
28
28
public string Speed
29
29
{
Original file line number Diff line number Diff line change @@ -221,7 +221,7 @@ public override double Calc(Fleet[] fleets)
221
221
var itemScore = ships
222
222
. SelectMany ( x => x . EquippedItems )
223
223
. Select ( x => x . Item )
224
- . Sum ( x => ( x . Info . ViewRange + GetAdeptCoefficient ( x ) ) * GetTypeCoefficient ( x . Info . Type ) ) ;
224
+ . Sum ( x => ( x . Info . ViewRange + GetLevelCoefficient ( x ) ) * GetTypeCoefficient ( x . Info . Type ) ) ;
225
225
226
226
var shipScore = ships
227
227
. Select ( x => x . ViewRange - x . EquippedItems . Sum ( s => s . Item . Info . RawData . api_saku ) )
@@ -255,17 +255,17 @@ private Ship[] GetTargetShips(Fleet[] fleets)
255
255
return new Ship [ 0 ] ;
256
256
}
257
257
258
- private static double GetAdeptCoefficient ( SlotItem item )
258
+ private static double GetLevelCoefficient ( SlotItem item )
259
259
{
260
260
switch ( item . Info . Type )
261
261
{
262
262
case SlotItemType . 水上偵察機 :
263
- return Math . Sqrt ( item . Adept ) * 1.2 ;
263
+ return Math . Sqrt ( item . Level ) * 1.2 ;
264
264
265
265
case SlotItemType . 小型電探 :
266
266
case SlotItemType . 大型電探 :
267
267
case SlotItemType . 大型電探_II :
268
- return Math . Sqrt ( item . Adept ) * 1.25 ;
268
+ return Math . Sqrt ( item . Level ) * 1.25 ;
269
269
270
270
default :
271
271
return 0 ;
You can’t perform that action at this time.
0 commit comments