Skip to content

Commit 6bb701c

Browse files
committed
Fix little code & UI inconsistencies
1 parent ff49552 commit 6bb701c

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

YuMi.NieRexper.UI/MainWindow.xaml

100644100755
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,10 @@
149149
</Button>
150150
</Border>
151151

152-
<!-- Custom -->
153-
<StackPanel>
154-
<Label Content="Custom Level:"
152+
<Label Content="Custom Level:"
155153
Padding="0,5"/>
156154

157-
<TextBox BorderThickness="0"
155+
<TextBox BorderThickness="0"
158156
BorderBrush="#362f2d"
159157
Text="{Binding CustomLevel}"
160158
Height="30"
@@ -165,12 +163,11 @@
165163
Background="#3F362F2D"
166164
Foreground="#362f2d"/>
167165

168-
<Border Margin="0,5">
169-
<Button Content="⬛ Set Custom Level"
166+
<Border Margin="0,5">
167+
<Button Content="⬛ Set Custom Level"
170168
Click="ApplyCustomLevel">
171-
</Button>
172-
</Border>
173-
</StackPanel>
169+
</Button>
170+
</Border>
174171

175172
<!-- Selected Slot -->
176173
<Grid Margin="0,15,0,0">

YuMi.NieRexper/Calculate/ExpCalculate.cs

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
public class ExpCalculate : ICalculate
77
{
88
/// <summary>
9-
/// Array of EXP that correspond to levels 1-99.
9+
/// Array of EXPs that correspond to levels 1-99.
1010
/// </summary>
1111
int[] expValues =
1212
{
@@ -29,7 +29,7 @@ public class ExpCalculate : ICalculate
2929
/// <returns>The EXP required for the provided level.</returns>
3030
public int Calculate(int value)
3131
{
32-
return expValues[value - 0x1];
32+
return expValues[value - 1];
3333
}
3434
}
3535
}

0 commit comments

Comments
 (0)