Skip to content

Commit

Permalink
fix: Merge pull request #31 from SimKaiLong/master
Browse files Browse the repository at this point in the history
Remove redundant count check during Deposit function
  • Loading branch information
Torwent authored May 15, 2024
2 parents 3294f25 + 06977e7 commit e2255cd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions wasp_pickpocketer.simba
Original file line number Diff line number Diff line change
Expand Up @@ -603,10 +603,7 @@ begin
ItemCount := Inventory.CountItem(Self.ValuableItem);
Result := Bank.DepositRandomItems(Self.StackableArray);
if ItemCount > 0 then
begin
if Inventory.CountItem(ValuableItem) > 0 then
TotalProfit += (ItemCount * ValuableItemValue);
end;
TotalProfit += (ItemCount * ValuableItemValue);
end;

function TThiever.WithdrawAny(items: TRSItemArray; quantity: Int32): Boolean;
Expand Down

0 comments on commit e2255cd

Please sign in to comment.