Skip to content

Commit

Permalink
Prepare configs for future cards farm algorithms
Browse files Browse the repository at this point in the history
  • Loading branch information
JustArchi committed Nov 21, 2015
1 parent 1703bbf commit 1ff4ed0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ArchiSteamFarm/Bot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ internal class Bot {
internal string SteamParentalPIN { get; private set; } = "0";
internal ulong SteamMasterID { get; private set; } = 0;
internal ulong SteamMasterClanID { get; private set; } = 0;
internal bool CardDropsRestricted { get; private set; } = false;
internal bool ShutdownOnFarmingFinished { get; private set; } = false;
internal HashSet<uint> Blacklist { get; private set; } = new HashSet<uint> { 303700, 335590, 368020 };
internal bool Statistics { get; private set; } = true;
Expand Down Expand Up @@ -176,6 +177,9 @@ internal class Bot {
case "SteamMasterClanID":
SteamMasterClanID = ulong.Parse(value);
break;
case "CardDropsRestricted":
CardDropsRestricted = bool.Parse(value);
break;
case "ShutdownOnFarmingFinished":
ShutdownOnFarmingFinished = bool.Parse(value);
break;
Expand Down
6 changes: 6 additions & 0 deletions ArchiSteamFarm/config/example.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
<!-- TIP: Most likely you don't want to change it -->
<SteamMasterClanID type="ulong" value="0"/>

<!-- This switch defines if the account has card drops restricted -->
<!-- Restricted card drops means that the account doesn't receive any steam cards until it plays the game for at least 2 hours -->
<!-- As there is no magical way to detect it by ASF, I made this option config-based switch -->
<!-- TIP: At the moment this option changes nothing, but in future it may affect cards farming algorithm -->
<CardDropsRestricted type="bool" value="false"/>

<!-- This switch defines if bot should disconnect once farming is finished -->
<!-- When no bots are active, ASF will shutdown as well -->
<!-- Some people may want to keep their bots 24/7, other disconnect them after job is done -->
Expand Down

0 comments on commit 1ff4ed0

Please sign in to comment.