Skip to content

Commit eba9681

Browse files
fix: Update farmrunnerupdate.simba
Compost array?
1 parent 259944f commit eba9681

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

optional/handlers/farmrunnerupdate.simba

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,6 @@ type
227227
leprechaunPt : TPoint;
228228
lepboxes : TBoxArray;
229229
invyboxes : TBoxArray;
230-
compostArray : TStringArray;
231-
compostItem : TRSItem;
232230
end;
233231

234232
TIniFConfig = record
@@ -2063,6 +2061,8 @@ end;
20632061

20642062
procedure TFarmRun.CompostPatch();
20652063
var
2064+
compostArray : TStringArray := ['Compost', 'Supercompost', 'Ultracompost', 'Bottomless compost bucket', ''];
2065+
compostItem : TRSItem := compostArray[Self.CompostMethod];
20662066
slot, attempts : Int32;
20672067
T : TCountdown;
20682068
begin
@@ -2172,6 +2172,8 @@ end;
21722172
procedure TFarmRun.Plant();
21732173
var
21742174
slot, attempts, seedCount : Int32;
2175+
compostArray : TStringArray := ['Compost', 'Supercompost', 'Ultracompost', 'Bottomless compost bucket', ''];
2176+
compostItem : TRSItem := compostArray[Self.CompostMethod];
21752177
begin
21762178
if not RSClient.IsLoggedIn then
21772179
Exit;
@@ -3510,9 +3512,6 @@ begin
35103512
[650, 340, 730, 370],
35113513
[ 0, 0, 0, 0]];
35123514

3513-
compostArray := ['Compost', 'Supercompost', 'Ultracompost', 'Bottomless compost bucket', ''];
3514-
compostItem := compostArray[Self.CompostMethod];
3515-
35163515
Self.InactivityTimer.Init(6*ONE_MINUTE);
35173516

35183517
if Self.StartWithRun then
@@ -3533,6 +3532,8 @@ var
35333532
state : EPatchState;
35343533
failedCount : Int32;
35353534
AntibanMinZ, AntibanMaxZ: Int32;
3535+
compostArray : TStringArray := ['Compost', 'Supercompost', 'Ultracompost', 'Bottomless compost bucket', ''];
3536+
compostItem : TRSItem := compostArray[Self.CompostMethod];
35363537
begin
35373538
if not RSClient.IsLoggedIn then
35383539
Login.LoginPlayer;

0 commit comments

Comments
 (0)