Skip to content

Commit 0cbc0c7

Browse files
fix: Update farmrunnerupdate.simba
Underwater height map
1 parent 3041221 commit 0cbc0c7

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

optional/handlers/farmrunnerupdate.simba

Lines changed: 12 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
@@ -1970,10 +1968,16 @@ begin
19701968
end;
19711969

19721970
procedure TFarmRun.WithdrawCompost;
1971+
var
1972+
compostArray : TStringArray := ['Compost', 'Supercompost', 'Ultracompost', 'Bottomless compost bucket', '', ''];
1973+
compostItem : TRSItem := compostArray[Self.CompostMethod];
19731974
begin
19741975
if not RSClient.IsLoggedIn then
19751976
Exit;
19761977

1978+
if Inventory.ContainsItem(compostItem) then
1979+
Exit;
1980+
19771981
if not Self.CurrentPatch.FindLeprechaun(leprechaunPt) then
19781982
Exit;
19791983

@@ -2065,6 +2069,8 @@ procedure TFarmRun.CompostPatch();
20652069
var
20662070
slot, attempts : Int32;
20672071
T : TCountdown;
2072+
compostArray : TStringArray := ['Compost', 'Supercompost', 'Ultracompost', 'Bottomless compost bucket', '', ''];
2073+
compostItem : TRSItem := compostArray[Self.CompostMethod];
20682074
begin
20692075
if not RSClient.IsLoggedIn then
20702076
Exit;
@@ -2172,6 +2178,8 @@ end;
21722178
procedure TFarmRun.Plant();
21732179
var
21742180
slot, attempts, seedCount : Int32;
2181+
compostArray : TStringArray := ['Compost', 'Supercompost', 'Ultracompost', 'Bottomless compost bucket', '', ''];
2182+
compostItem : TRSItem := compostArray[Self.CompostMethod];
21752183
begin
21762184
if not RSClient.IsLoggedIn then
21772185
Exit;
@@ -3510,9 +3518,6 @@ begin
35103518
[650, 340, 730, 370],
35113519
[ 0, 0, 0, 0]];
35123520

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

35183523
if Self.StartWithRun then
@@ -3533,6 +3538,8 @@ var
35333538
state : EPatchState;
35343539
failedCount : Int32;
35353540
AntibanMinZ, AntibanMaxZ: Int32;
3541+
compostArray : TStringArray := ['Compost', 'Supercompost', 'Ultracompost', 'Bottomless compost bucket', '', ''];
3542+
compostItem : TRSItem := compostArray[Self.CompostMethod];
35363543
begin
35373544
if not RSClient.IsLoggedIn then
35383545
Login.LoginPlayer;

0 commit comments

Comments
 (0)