Skip to content

Commit 2e97337

Browse files
committed
Various navigations
1 parent ab79f0d commit 2e97337

File tree

6 files changed

+5
-23
lines changed

6 files changed

+5
-23
lines changed

TbsCore/Models/Settings/GeneralSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ public void Init()
2626
DonateAbove = 95;
2727
DonateExcessOf = 65;
2828
DiscordWebhook = false;
29-
DelayClickingMin = 2500;
30-
DelayClickingMax = 3800;
29+
DelayClickingMin = 1000;
30+
DelayClickingMax = 2000;
3131
}
3232

3333
public bool AutoActivateProductionBoost { get; set; }

TbsCore/Tasks/LowLevel/ClaimBeginnerTask2021.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public override async Task<TaskRes> Execute(Account acc)
2020
.Any(x => x.HasClass("newQuestSpeechBubble")) ?? false)
2121
{
2222
// Claim account-wide rewards
23-
await acc.Wb.Navigate($"{acc.AccInfo.ServerUrl}/tasks?t=2");
23+
await DriverHelper.ClickByClassName(acc, "tabItem", 1);
2424
await ClaimRewards(acc);
2525
}
2626

TbsCore/Tasks/LowLevel/HeroSetPoints.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public override async Task<TaskRes> Execute(Account acc)
4949
}
5050

5151
acc.Wb.ExecuteScript("document.getElementById('saveHeroAttributes').click();");
52+
//await Driver
5253
return TaskRes.Executed;
5354
}
5455
}

TbsCore/Tasks/LowLevel/NYSUpdateTribesOfVillas.cs

Lines changed: 0 additions & 18 deletions
This file was deleted.

TbsCore/Tasks/LowLevel/UpdateDorf2.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ public override async Task<TaskRes> Execute(Account acc)
1212

1313
if (!acc.Wb.CurrentUrl.Contains("/dorf2.php")) // Don't re-navigate
1414
{
15-
//await acc.Wb.Navigate($"{acc.AccInfo.ServerUrl}/dorf2.php");
1615
await NavigationHelper.ToDorf2(acc);
1716
}
1817

TbsCore/Tasks/SecondLevel/AttackOasis.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public override async Task<TaskRes> Execute(Account acc)
4444
if (!enoughTroops) return Retry();
4545
}
4646

47-
await acc.Wb.Navigate($"{acc.AccInfo.ServerUrl}/karte.php");
47+
await NavigationHelper.ToMap(acc);
4848

4949
// Get map tiles around the current village
5050
var mapTiles = MapHelper.GetMapTiles(acc, Vill.Coordinates);

0 commit comments

Comments
 (0)