Skip to content

Commit a5f7e79

Browse files
committed
Change default FarmingDelay from 5 to 15
Now that we have event-based mechanism, we don't need to check that often, but still keep fuckups in mind
1 parent 80ed0e6 commit a5f7e79

File tree

5 files changed

+18
-10
lines changed

5 files changed

+18
-10
lines changed

ArchiSteamFarm/BotConfig.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ limitations under the License.
2525
using Newtonsoft.Json;
2626
using System;
2727
using System.Collections.Generic;
28+
using System.Diagnostics.CodeAnalysis;
2829
using System.IO;
2930

3031
namespace ArchiSteamFarm {
31-
// ReSharper disable once ClassCannotBeInstantiated
32-
// ReSharper disable once ClassNeverInstantiated.Global
32+
[SuppressMessage("ReSharper", "ClassCannotBeInstantiated")]
33+
[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
3334
internal sealed class BotConfig {
3435
[JsonProperty(Required = Required.DisallowNull)]
3536
internal bool Enabled { get; private set; } = false;

ArchiSteamFarm/GlobalConfig.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ limitations under the License.
3030
using System.Net.Sockets;
3131

3232
namespace ArchiSteamFarm {
33-
[SuppressMessage("ReSharper", "ClassCannotBeInstantiated"), SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
33+
[SuppressMessage("ReSharper", "ClassCannotBeInstantiated")]
34+
[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
3435
internal sealed class GlobalConfig {
3536
[SuppressMessage("ReSharper", "UnusedMember.Global")]
3637
internal enum EUpdateChannel : byte {
@@ -42,7 +43,7 @@ internal enum EUpdateChannel : byte {
4243
internal const byte DefaultHttpTimeout = 60;
4344

4445
private const byte DefaultMaxFarmingTime = 10;
45-
private const byte DefaultFarmingDelay = 5;
46+
private const byte DefaultFarmingDelay = 15;
4647
private const ushort DefaultWCFPort = 1242;
4748
private const ProtocolType DefaultSteamProtocol = ProtocolType.Tcp;
4849

ArchiSteamFarm/config/ASF.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"SteamOwnerID": 0,
99
"MaxFarmingTime": 10,
1010
"IdleFarmingPeriod": 3,
11-
"FarmingDelay": 5,
11+
"FarmingDelay": 15,
1212
"LoginLimiterDelay": 7,
1313
"InventoryLimiterDelay": 3,
1414
"ForceHttp": false,

ConfigGenerator/BotConfig.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ limitations under the License.
3030
using System.IO;
3131

3232
namespace ConfigGenerator {
33-
[SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global"), SuppressMessage("ReSharper", "CollectionNeverQueried.Global"), SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "UnusedMember.Global")]
33+
[SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global")]
34+
[SuppressMessage("ReSharper", "CollectionNeverQueried.Global")]
35+
[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
36+
[SuppressMessage("ReSharper", "UnusedMember.Global")]
3437
internal sealed class BotConfig : ASFConfig {
3538
[JsonProperty(Required = Required.DisallowNull)]
3639
public bool Enabled { get; set; } = false;
@@ -41,7 +44,8 @@ internal sealed class BotConfig : ASFConfig {
4144
[JsonProperty]
4245
public string SteamLogin { get; set; } = null;
4346

44-
[JsonProperty, PasswordPropertyText(true)]
47+
[JsonProperty]
48+
[PasswordPropertyText(true)]
4549
public string SteamPassword { get; set; } = null;
4650

4751
[JsonProperty]

ConfigGenerator/GlobalConfig.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,19 @@ limitations under the License.
3030
using System.Net.Sockets;
3131

3232
namespace ConfigGenerator {
33-
[SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global"), SuppressMessage("ReSharper", "CollectionNeverQueried.Global"), SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "UnusedMember.Global")]
33+
[SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global")]
34+
[SuppressMessage("ReSharper", "CollectionNeverQueried.Global")]
35+
[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
36+
[SuppressMessage("ReSharper", "UnusedMember.Global")]
3437
internal sealed class GlobalConfig : ASFConfig {
35-
[SuppressMessage("ReSharper", "UnusedMember.Global")]
3638
internal enum EUpdateChannel : byte {
3739
Unknown,
3840
Stable,
3941
Experimental
4042
}
4143

4244
private const byte DefaultMaxFarmingTime = 10;
43-
private const byte DefaultFarmingDelay = 5;
45+
private const byte DefaultFarmingDelay = 15;
4446
private const byte DefaultHttpTimeout = 60;
4547
private const ushort DefaultWCFPort = 1242;
4648
private const ProtocolType DefaultSteamProtocol = ProtocolType.Tcp;

0 commit comments

Comments
 (0)