Skip to content

Commit

Permalink
Merge pull request #16 from Slivo-fr/develop
Browse files Browse the repository at this point in the history
Removes API, removes advanced increment settings
  • Loading branch information
Slivo-fr authored Jul 26, 2021
2 parents 808756f + b4fa510 commit c62bc5c
Show file tree
Hide file tree
Showing 19 changed files with 60 additions and 772 deletions.
2 changes: 1 addition & 1 deletion Elinor/AboutWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<Label Content="SUPPORT_NAME" Height="28" HorizontalAlignment="Left" Margin="69,167,0,0" x:Name="LblSupport"
MouseEnter="LblSupportMouseEnter" MouseDown="LblSupportMouseDown" VerticalAlignment="Top"
Foreground="Blue" Cursor="Hand" MouseLeave="LblSupportMouseLeave" Panel.ZIndex="1" />
<Label Content="Thanks to Cuhlen for EVE.Net" Height="28" HorizontalAlignment="Left" Margin="234,148,0,0"
<Label Content="Thanks to Cuhlen for EVE.Net" Height="28" HorizontalAlignment="Left" Margin="234,148,0,0"
x:Name="label5_Copy" VerticalAlignment="Top" FontStyle="Italic" />
</Grid>
</Window>
26 changes: 0 additions & 26 deletions Elinor/ApiImportSelectFactionWindow.xaml

This file was deleted.

85 changes: 0 additions & 85 deletions Elinor/ApiImportSelectFactionWindow.xaml.cs

This file was deleted.

28 changes: 0 additions & 28 deletions Elinor/ApiImportWindow.xaml

This file was deleted.

169 changes: 0 additions & 169 deletions Elinor/ApiImportWindow.xaml.cs

This file was deleted.

15 changes: 0 additions & 15 deletions Elinor/CharWrapper.cs

This file was deleted.

24 changes: 2 additions & 22 deletions Elinor/ClipboardTools.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,7 @@ internal static double GetSellPrice(double sell, Profile settings)
if (settings == null) return .0;

double result = sell;

if (settings.advancedStepSettings)
{
result -= (result*settings.sellPercentage > settings.sellThreshold)
? settings.sellThreshold
: settings.sellPercentage*result;
}
else
{
result -= Math.Max(Math.Pow(10, Math.Floor(Math.Log10(result / 1000))), 0.01);
}
result -= Math.Max(Math.Pow(10, Math.Floor(Math.Log10(result / 1000))), 0.01);

return result;
}
Expand All @@ -58,17 +48,7 @@ internal static double GetBuyPrice(double buy, Profile settings)
if (settings == null) return .0;

double result = buy;

if (settings.advancedStepSettings)
{
result += result*settings.buyPercentage > settings.buyThreshold
? settings.buyThreshold
: settings.buyPercentage*result;
}
else
{
result += Math.Max(Math.Pow(10, Math.Floor(Math.Log10(result / 1000))), 0.01);
}
result += Math.Max(Math.Pow(10, Math.Floor(Math.Log10(result / 1000))), 0.01);

return result;
}
Expand Down
Loading

0 comments on commit c62bc5c

Please sign in to comment.