Skip to content

Commit 9bf22df

Browse files
fix: Update farmrunnerupdate.simba
var name changes for better distinction from other projects
1 parent 1675e09 commit 9bf22df

1 file changed

Lines changed: 32 additions & 29 deletions

File tree

optional/handlers/farmrunnerupdate.simba

Lines changed: 32 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3432,6 +3432,7 @@ begin
34323432

34333433
Stats.Setup();
34343434
Stats.GetLevel(ERSSkill.AGILITY);
3435+
Stats.GetLevel(ERSSkill.HITPOINTS);
34353436

34363437
for i := 0 to High(Self.Patches) do begin
34373438
if Self.Patches[i].Data.Name.Contains('Civitas') then
@@ -3499,12 +3500,14 @@ begin
34993500
[275, 210, 360, 245],
35003501
[390, 210, 475, 245],
35013502
[390, 140, 475, 180],
3503+
[ 0, 0, 0, 0],
35023504
[ 0, 0, 0, 0]];
35033505

35043506
invyboxes := [[650, 385, 730, 410],
35053507
[555, 425, 625, 455],
35063508
[650, 430, 730, 455],
35073509
[650, 340, 730, 370],
3510+
[ 0, 0, 0, 0],
35083511
[ 0, 0, 0, 0]];
35093512

35103513
compostArray := ['Compost', 'Supercompost', 'Ultracompost', 'Bottomless compost bucket', '', ''];
@@ -3679,31 +3682,31 @@ begin
36793682
FarmRunner.CompostType := CompType.getText();
36803683
FarmConfig.composttypeint := CompType.getItemIndex();
36813684

3682-
ArdyTeleportType := Self.Form.GetChild('lcb_ardytp_combobox');
3685+
ArdyTeleportType := Self.Form.GetChild('lcb_ardytp_fr_combobox');
36833686
FarmRunner.ArdougneTP := ArdyTeleportType.getText();
36843687
FarmConfig.ardougnetpint := ArdyTeleportType.getItemIndex();
36853688

3686-
FallyTeleportType := Self.Form.GetChild('lcb_fallytp_combobox');
3689+
FallyTeleportType := Self.Form.GetChild('lcb_fallytp_fr_combobox');
36873690
FarmRunner.FaladorTP := FallyTeleportType.getText();
36883691
FarmConfig.faladortpint := FallyTeleportType.getItemIndex();
36893692

3690-
CathTeleportType := Self.Form.GetChild('lcb_cathtp_combobox');
3693+
CathTeleportType := Self.Form.GetChild('lcb_cathtp_fr_combobox');
36913694
FarmRunner.CatherbyTP := CathTeleportType.getText();
36923695
FarmConfig.catherbytpint := CathTeleportType.getItemIndex();
36933696

3694-
HosiTeleportType := Self.Form.GetChild('lcb_hostp_combobox');
3697+
HosiTeleportType := Self.Form.GetChild('lcb_hostp_fr_combobox');
36953698
FarmRunner.HosidiusTP := HosiTeleportType.getText();
36963699
FarmConfig.hosidiustpint := HosiTeleportType.getItemIndex();
36973700

3698-
CiviTeleportType := Self.Form.GetChild('lcb_civtp_combobox');
3701+
CiviTeleportType := Self.Form.GetChild('lcb_civtp_fr_combobox');
36993702
FarmRunner.CivitasTP := CiviTeleportType.getText();
37003703
FarmConfig.civitastpint := CiviTeleportType.getItemIndex();
37013704

3702-
FarmGuildTeleportType := Self.Form.GetChild('lcb_fguildtp_combobox');
3705+
FarmGuildTeleportType := Self.Form.GetChild('lcb_fguildtp_fr_combobox');
37033706
FarmRunner.FarmguildTP := FarmGuildTeleportType.getText();
37043707
FarmConfig.farmguildtpint := FarmGuildTeleportType.getItemIndex();
37053708

3706-
RPouchType := Self.Form.GetChild('lcb_rpouch_combobox');
3709+
RPouchType := Self.Form.GetChild('lcb_rpouch_fr_combobox');
37073710
FarmRunner.RPouchMethod := RPouchType.getText();
37083711
FarmConfig.runepouchint := RPouchType.getItemIndex();
37093712

@@ -3854,7 +3857,7 @@ var
38543857
cb_hap, cb_civhp, cb_civfp, cb_civap, cb_gap,
38553858
cb_gbp, cb_gcp, cb_kbp, cb_gsp,
38563859
cb_runinit, cb_clherbs, cb_barbdibber, cb_msecat: TLabeledCheckBox;
3857-
lcb_herbseed, lcb_flowerseed, lcb_allotmentseed, lcb_compost, lcb_ardytp, lcb_fallytp, lcb_cathtp, lcb_hostp, lcb_civtp, lcb_fguildtp, lcb_rpouch: TLabeledComboBox;
3860+
lcb_herbseed, lcb_flowerseed, lcb_allotmentseed, lcb_compost, lcb_ardytp_fr, lcb_fallytp_fr, lcb_cathtp_fr, lcb_hostp_fr, lcb_civtp_fr, lcb_fguildtp_fr, lcb_rpouch_fr: TLabeledComboBox;
38583861
box_runespouch: TLabeledEdit;
38593862
begin
38603863
Self.AddTab('Farm Run Settings');
@@ -4249,12 +4252,12 @@ begin
42494252
SetCaption('Clean herbs');
42504253
end;
42514254

4252-
with lcb_ardytp do
4255+
with lcb_ardytp_fr do
42534256
begin
42544257
Create(Result);
42554258
SetLeft(TControl.AdjustToDPI(562));
42564259
SetTop(TControl.AdjustToDPI(15));
4257-
SetName('lcb_ardytp');
4260+
SetName('lcb_ardytp_fr');
42584261
SetCaption('Ardougne teleport');
42594262
AddItemArray(['Not using Ardougne patch', 'Normal spellbook TELEPORT', 'Ardougne TABLET', 'Ardougne cape']);
42604263
SetItemIndex(0);
@@ -4263,12 +4266,12 @@ begin
42634266
ComboBox.SetFontColor(0);
42644267
end;
42654268

4266-
with lcb_fallytp do
4269+
with lcb_fallytp_fr do
42674270
begin
42684271
Create(Result);
42694272
SetLeft(TControl.AdjustToDPI(562));
42704273
SetTop(TControl.AdjustToDPI(55));
4271-
SetName('lcb_fallytp');
4274+
SetName('lcb_fallytp_fr');
42724275
SetCaption('Falador teleport');
42734276
AddItemArray(['Not using Falador patch', 'Normal spellbook TELEPORT', 'Falador TABLET', 'Explorer ring']);
42744277
SetItemIndex(0);
@@ -4277,12 +4280,12 @@ begin
42774280
ComboBox.SetFontColor(0);
42784281
end;
42794282

4280-
with lcb_cathtp do
4283+
with lcb_cathtp_fr do
42814284
begin
42824285
Create(Result);
42834286
SetLeft(TControl.AdjustToDPI(562));
42844287
SetTop(TControl.AdjustToDPI(95));
4285-
SetName('lcb_cathtp');
4288+
SetName('lcb_cathtp_fr');
42864289
SetCaption('Catherby teleport');
42874290
AddItemArray(['Not using Catherby patch', 'Normal spellbook TELEPORT', 'Lunar spellbook TELEPORT', 'Camelot TABLET', 'Catherby TABLET']);
42884291
SetItemIndex(0);
@@ -4291,12 +4294,12 @@ begin
42914294
ComboBox.SetFontColor(0);
42924295
end;
42934296

4294-
with lcb_hostp do
4297+
with lcb_hostp_fr do
42954298
begin
42964299
Create(Result);
42974300
SetLeft(TControl.AdjustToDPI(562));
42984301
SetTop(TControl.AdjustToDPI(135));
4299-
SetName('lcb_hostp');
4302+
SetName('lcb_hostp_fr');
43004303
SetCaption('Hosidius teleport');
43014304
AddItemArray(['Not using Hosidius Patch', 'Xerics Talisman (CHARGED)', 'Hosidius TABLET', 'House teleport TABLET', 'House teleport RUNES', 'Construction cape UNTRIMMED', 'Construction cape TRIMMED']);
43024305
SetItemIndex(0);
@@ -4305,12 +4308,12 @@ begin
43054308
ComboBox.SetFontColor(0);
43064309
end;
43074310

4308-
with lcb_civtp do
4311+
with lcb_civtp_fr do
43094312
begin
43104313
Create(Result);
43114314
SetLeft(TControl.AdjustToDPI(562));
43124315
SetTop(TControl.AdjustToDPI(175));
4313-
SetName('lcb_civtp');
4316+
SetName('lcb_civtp_fr');
43144317
SetCaption('Civitas teleport');
43154318
AddItemArray(['Not using Civitas Patch', 'Normal spellbook TELEPORT', 'Civitas TABLET', 'Hunter cape UNTRIMMED', 'Hunter cape TRIMMED', 'Basic quetzal whistle', 'Enhanced quetzal whistle', 'Perfected quetzal whistle']);
43164319
SetItemIndex(0);
@@ -4319,12 +4322,12 @@ begin
43194322
ComboBox.SetFontColor(0);
43204323
end;
43214324

4322-
with lcb_fguildtp do
4325+
with lcb_fguildtp_fr do
43234326
begin
43244327
Create(Result);
43254328
SetLeft(TControl.AdjustToDPI(562));
43264329
SetTop(TControl.AdjustToDPI(215));
4327-
SetName('lcb_fguildtp');
4330+
SetName('lcb_fguildtp_fr');
43284331
SetCaption('Farming guild teleport');
43294332
AddItemArray(['Not using Farm guild patch', 'Skills necklace', 'Farming cape UNTRIMMED', 'Farming cape TRIMMED']);
43304333
SetItemIndex(0);
@@ -4333,12 +4336,12 @@ begin
43334336
ComboBox.SetFontColor(0);
43344337
end;
43354338

4336-
with lcb_rpouch do
4339+
with lcb_rpouch_fr do
43374340
begin
43384341
Create(Result);
43394342
SetLeft(TControl.AdjustToDPI(385));
43404343
SetTop(TControl.AdjustToDPI(175));
4341-
SetName('lcb_rpouch');
4344+
SetName('lcb_rpouch_fr');
43424345
SetCaption('Rune pouch');
43434346
AddItemArray(['Not using/use runes', 'Rune pouch', 'Divine rune pouch']);
43444347
SetItemIndex(0);
@@ -4378,17 +4381,17 @@ begin
43784381

43794382
lcb_compost.SetItemIndex(FarmConfig.composttypeint);
43804383

4381-
lcb_rpouch.SetItemIndex(FarmConfig.runepouchint);
4384+
lcb_rpouch_fr.SetItemIndex(FarmConfig.runepouchint);
43824385

43834386
if length(FarmConfig.runepouchstring) > 0 then
43844387
box_runespouch.SetText(FarmConfig.runepouchstring);
43854388

4386-
lcb_ardytp.SetItemIndex(FarmConfig.ardougnetpint);
4387-
lcb_fallytp.SetItemIndex(FarmConfig.faladortpint);
4388-
lcb_cathtp.SetItemIndex(FarmConfig.catherbytpint);
4389-
lcb_hostp.SetItemIndex(FarmConfig.hosidiustpint);
4390-
lcb_civtp.SetItemIndex(FarmConfig.civitastpint);
4391-
lcb_fguildtp.SetItemIndex(FarmConfig.farmguildtpint);
4389+
lcb_ardytp_fr.SetItemIndex(FarmConfig.ardougnetpint);
4390+
lcb_fallytp_fr.SetItemIndex(FarmConfig.faladortpint);
4391+
lcb_cathtp_fr.SetItemIndex(FarmConfig.catherbytpint);
4392+
lcb_hostp_fr.SetItemIndex(FarmConfig.hosidiustpint);
4393+
lcb_civtp_fr.SetItemIndex(FarmConfig.civitastpint);
4394+
lcb_fguildtp_fr.SetItemIndex(FarmConfig.farmguildtpint);
43924395

43934396
if FarmConfig.wherbEnabled then
43944397
cb_whp.CheckBox.SetChecked(True);

0 commit comments

Comments
 (0)