Skip to content

Commit df08765

Browse files
committed
feat(grandexchange): add UNAVAILABLE slot type to EGESlotType enum
1 parent e6e8336 commit df08765

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

osrs/interfaces/mainscreen/grandexchange/grandexchange.simba

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ EGESlotType = enum(EMPTY, SELL, BUY);
3333
```
3434
Enum to represent the type of Grand Exchange offer slot.
3535
*)
36-
EGESlotType = enum(EMPTY, SELL, BUY);
36+
EGESlotType = enum(EMPTY, SELL, BUY, UNAVAILABLE);
3737

3838
(*
3939
## TRSGrandExchangeSlot
@@ -164,7 +164,11 @@ begin
164164
//no need for ocr, color count is lighter and should work fine.
165165
count := Target.CountColor(RSFonts.ORANGE, 0, Self.Header);
166166
case count of
167-
154: Result := EGESlotType.EMPTY;
167+
154:
168+
if Target.HasColor($6082AB, 0, 1, Self.BuyButton) then
169+
Result := EGESlotType.UNAVAILABLE
170+
else
171+
Result := EGESlotType.EMPTY;
168172
90: Result := EGESlotType.SELL;
169173
101: Result := EGESlotType.BUY;
170174
end;

0 commit comments

Comments
 (0)