Skip to content

Commit

Permalink
Fix option set rate
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioru committed Oct 1, 2024
1 parent e45d787 commit e928465
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ public async Task<IItemOptions> Calculate(ItemSlotEquip input)
var option2 = input.Option2;
var option3 = input.Option3;

if (option2 > 0 || random.NextDouble() < context.Option2IncRate)
if (option2 > 0 || random.NextDouble() < context.Option2SetRate)
option2 = (short)random.GetItems(options
.Where(o => o.Grade == option2Grade)
.ToArray(), 1).First().ID;
if (option3 > 0 || random.NextDouble() < context.Option3IncRate)
if (option3 > 0 || random.NextDouble() < context.Option3SetRate)
option3 = (short)random.GetItems(options
.Where(o => o.Grade == option3Grade)
.ToArray(), 1).First().ID;
Expand Down

0 comments on commit e928465

Please sign in to comment.