Skip to content

Commit

Permalink
Change default FarmingDelay from 5 to 15
Browse files Browse the repository at this point in the history
Now that we have event-based mechanism, we don't need to check that often, but still keep fuckups in mind
  • Loading branch information
JustArchi committed Jun 8, 2016
1 parent 80ed0e6 commit a5f7e79
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 10 deletions.
5 changes: 3 additions & 2 deletions ArchiSteamFarm/BotConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ limitations under the License.
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.IO;

namespace ArchiSteamFarm {
// ReSharper disable once ClassCannotBeInstantiated
// ReSharper disable once ClassNeverInstantiated.Global
[SuppressMessage("ReSharper", "ClassCannotBeInstantiated")]
[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
internal sealed class BotConfig {
[JsonProperty(Required = Required.DisallowNull)]
internal bool Enabled { get; private set; } = false;
Expand Down
5 changes: 3 additions & 2 deletions ArchiSteamFarm/GlobalConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ limitations under the License.
using System.Net.Sockets;

namespace ArchiSteamFarm {
[SuppressMessage("ReSharper", "ClassCannotBeInstantiated"), SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
[SuppressMessage("ReSharper", "ClassCannotBeInstantiated")]
[SuppressMessage("ReSharper", "ClassNeverInstantiated.Global")]
internal sealed class GlobalConfig {
[SuppressMessage("ReSharper", "UnusedMember.Global")]
internal enum EUpdateChannel : byte {
Expand All @@ -42,7 +43,7 @@ internal enum EUpdateChannel : byte {
internal const byte DefaultHttpTimeout = 60;

private const byte DefaultMaxFarmingTime = 10;
private const byte DefaultFarmingDelay = 5;
private const byte DefaultFarmingDelay = 15;
private const ushort DefaultWCFPort = 1242;
private const ProtocolType DefaultSteamProtocol = ProtocolType.Tcp;

Expand Down
2 changes: 1 addition & 1 deletion ArchiSteamFarm/config/ASF.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"SteamOwnerID": 0,
"MaxFarmingTime": 10,
"IdleFarmingPeriod": 3,
"FarmingDelay": 5,
"FarmingDelay": 15,
"LoginLimiterDelay": 7,
"InventoryLimiterDelay": 3,
"ForceHttp": false,
Expand Down
8 changes: 6 additions & 2 deletions ConfigGenerator/BotConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ limitations under the License.
using System.IO;

namespace ConfigGenerator {
[SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global"), SuppressMessage("ReSharper", "CollectionNeverQueried.Global"), SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "UnusedMember.Global")]
[SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global")]
[SuppressMessage("ReSharper", "CollectionNeverQueried.Global")]
[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
[SuppressMessage("ReSharper", "UnusedMember.Global")]
internal sealed class BotConfig : ASFConfig {
[JsonProperty(Required = Required.DisallowNull)]
public bool Enabled { get; set; } = false;
Expand All @@ -41,7 +44,8 @@ internal sealed class BotConfig : ASFConfig {
[JsonProperty]
public string SteamLogin { get; set; } = null;

[JsonProperty, PasswordPropertyText(true)]
[JsonProperty]
[PasswordPropertyText(true)]
public string SteamPassword { get; set; } = null;

[JsonProperty]
Expand Down
8 changes: 5 additions & 3 deletions ConfigGenerator/GlobalConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,19 @@ limitations under the License.
using System.Net.Sockets;

namespace ConfigGenerator {
[SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global"), SuppressMessage("ReSharper", "CollectionNeverQueried.Global"), SuppressMessage("ReSharper", "MemberCanBePrivate.Global"), SuppressMessage("ReSharper", "UnusedMember.Global")]
[SuppressMessage("ReSharper", "AutoPropertyCanBeMadeGetOnly.Global")]
[SuppressMessage("ReSharper", "CollectionNeverQueried.Global")]
[SuppressMessage("ReSharper", "MemberCanBePrivate.Global")]
[SuppressMessage("ReSharper", "UnusedMember.Global")]
internal sealed class GlobalConfig : ASFConfig {
[SuppressMessage("ReSharper", "UnusedMember.Global")]
internal enum EUpdateChannel : byte {
Unknown,
Stable,
Experimental
}

private const byte DefaultMaxFarmingTime = 10;
private const byte DefaultFarmingDelay = 5;
private const byte DefaultFarmingDelay = 15;
private const byte DefaultHttpTimeout = 60;
private const ushort DefaultWCFPort = 1242;
private const ProtocolType DefaultSteamProtocol = ProtocolType.Tcp;
Expand Down

0 comments on commit a5f7e79

Please sign in to comment.