Skip to content

Commit

Permalink
Fixed shifting of excellent option number in chat command.
Browse files Browse the repository at this point in the history
The numbers start at 1, so the first option should not cause a shift.
  • Loading branch information
sven-n committed Aug 16, 2024
1 parent b5bf381 commit 89824c6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ private static void AddExcellentOptions(TemporaryItem item, ItemChatCommandArgs
var excellentOptions = item.Definition.PossibleItemOptions
.SelectMany(o => o.PossibleOptions)
.Where(o => o.OptionType == ItemOptionTypes.Excellent)
.Where(o => ((1 << o.Number) & arguments.ExcellentNumber) > default(byte))
.Where(o => ((1 << (o.Number - 1)) & arguments.ExcellentNumber) > default(byte))
.ToList();

ushort appliedOptions = default;
Expand Down

0 comments on commit 89824c6

Please sign in to comment.