Skip to content

Commit

Permalink
fix(fairy ring): should click it again
Browse files Browse the repository at this point in the history
  • Loading branch information
Torwent committed Nov 26, 2024
1 parent 61862d6 commit d48e4db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions optional/handlers/combathandler.simba
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,7 @@ end;

procedure TRSCombatHandler.Setup(manage: Boolean; npc: TRSNPCV2; lootValue: Int32 = 5000; timer: Int64 = 4000; safeSpotTile: TPoint = [-1, -1]); overload;
begin
if Self.IsSetup then
Exit;
if Self.IsSetup then Exit;

Self.Setup(npc, timer, safeSpotTile);

Expand Down
9 changes: 3 additions & 6 deletions optional/interfaces/mainscreen/fairyring.simba
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ type
Dials: array [ERSFairyRingDial] of String;
TravelLog: TRSInterface;
Item: TRSItem;
{%codetools off}
FairyRings: TRSObjectV2;
{%codetools on}
end;

{%codetools off}

function TRSFairyRing.ScrollAreaFunction(): TBox;
begin
Result := Self.TravelLog.Bounds();
Expand All @@ -36,6 +34,7 @@ begin

Self.FairyRings := Objects.GetByCategory(522);
Self.FairyRings.Name := 'Fairy ring';
Self.FairyRings.UpText := ['Fairy', 'ring'];
Self.FairyRings.Size.X := 2.5;
Self.FairyRings.Size.Y := 2.5;
Self.FairyRings.Finder.Colors := [
Expand All @@ -54,7 +53,6 @@ begin
end;


{%codetools on}

(*
## FairyRing.Setup
Expand Down Expand Up @@ -334,8 +332,7 @@ begin
else
Result := RSObjects.FairyRing.WalkSelectOption(['onfigure']);

if not Result then
Exit;
if not Result then Exit;

Minimap.WaitMoving();
Result := WaitUntil(Self.IsOpen(), SRL.TruncatedGauss(50, 1500), 3000);
Expand Down

0 comments on commit d48e4db

Please sign in to comment.