Skip to content

Commit

Permalink
fix(loothandler): last commit accidentally made noted drops never be …
Browse files Browse the repository at this point in the history
…looted. Oops!
  • Loading branch information
Torwent committed Jan 14, 2024
1 parent 19df37a commit 14d9637
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions osr/handlers/loothandler.simba
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,11 @@ type
function TRSLootHandler.IsGoodDrop(drop: TRSMonsterDrop): Boolean;
var
value: Int32;
name: String;
begin
if Self.PriorityArray.Contains(drop.Item) then
Exit(True);

if drop.Noted then
name := 'Noted ' + drop.Item
else
name := drop.Item;

value := ItemData.GetAverage(name);
value := ItemData.GetAverage(drop.Item);

Result := value >= Self.ValueThreshold;
if Result then
Expand Down

0 comments on commit 14d9637

Please sign in to comment.