Skip to content

Commit

Permalink
Allow Equipment to take (X..Y) strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Garrett3Nelson authored Sep 18, 2024
1 parent 2460fa6 commit 01a9170
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions osr/interfaces/gametabs/equipment.simba
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,17 @@
{$I WaspLib/osr.simba}
{$ENDIF}

function TRSEquipment.FindItems(items: TRSItemArray; out slots: TIntegerArray): Boolean; override;
var
item: TRSItem;
tmp: TRSItemArray;
begin
if not Self.Open() then
Exit;

for item in items do
tmp += item.GetArray();

slots := Self.ItemInterface.IndicesOf(tmp);
Result := Length(slots) > 0;
end;

0 comments on commit 01a9170

Please sign in to comment.