Skip to content

Commit 41a3665

Browse files
committed
fix(MSInterface): IsOpen false positives
1 parent cdc160d commit 41a3665

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

osrs/interfaces/interfacearea.simba

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ Returns True/False if any interface is found open.
5757
function TRSInterfaceArea.IsOpen(interfaceType: ERSInterfaceType = ERSInterfaceType.ANY): Boolean;
5858
begin
5959
case interfaceType of
60-
ERSInterfaceType.CLASSIC: Result := Target.HasColor(3358536, 2, 10000, Self.Bounds);
61-
ERSInterfaceType.PAPER: Result := False;//TODO: SRL.CountColor(CTS2(8693433, 5, 0.10, 1.17), Self.Bounds) > 35000;
60+
ERSInterfaceType.CLASSIC: Result := Target.HasColor([$323E47, 0.75, EColorSpace.HSV, [0.778, 1.112, 1.112]], 10000, Self.Bounds);
61+
ERSInterfaceType.PAPER: Result := Target.HasColor([$88AABD, 0.4, EColorSpace.HSV, [1.366, 1.437, 0.199]], 10000, Self.Bounds);
6262
ERSInterfaceType.ANY: Result := Self.IsOpen(ERSInterfaceType.CLASSIC) or Self.IsOpen(ERSInterfaceType.PAPER);
6363
end;
6464
end;

0 commit comments

Comments
 (0)