Remove Gift and Coupon from Steam EType

It doesn't make any sense when we're always asking for community items, no need for extra confusion, and code is also shorter.
This IS another breaking change for past configs, so if you're using pre-release you should adapt your configs. But if you're using pre-release, I guess you know that such things happen.
This commit is contained in:
JustArchi
2016-12-26 23:53:51 +01:00
parent 19d15f09ff
commit 63cfa1341b
5 changed files with 3 additions and 11 deletions

View File

@@ -1002,10 +1002,6 @@ namespace ArchiSteamFarm {
switch (name) { switch (name) {
case "Booster Pack": case "Booster Pack":
return Steam.Item.EType.BoosterPack; return Steam.Item.EType.BoosterPack;
case "Coupon":
return Steam.Item.EType.Coupon;
case "Gift":
return Steam.Item.EType.Gift;
case "Steam Gems": case "Steam Gems":
return Steam.Item.EType.SteamGems; return Steam.Item.EType.SteamGems;
default: default:

View File

@@ -46,7 +46,7 @@ namespace ArchiSteamFarm {
[JsonProperty] [JsonProperty]
internal TimeSpan TimeRemaining => new TimeSpan( internal TimeSpan TimeRemaining => new TimeSpan(
Bot.BotConfig.CardDropsRestricted ? (int) Math.Ceiling(GamesToFarm.Count / (float) ArchiHandler.MaxGamesPlayedConcurrently * HoursToBump) : 0, Bot.BotConfig.CardDropsRestricted ? (int) (Math.Ceiling(GamesToFarm.Count / (float) ArchiHandler.MaxGamesPlayedConcurrently * HoursToBump) - GamesToFarm.Min(game => game.HoursPlayed)) : 0,
30 * GamesToFarm.Sum(game => game.CardsRemaining), 30 * GamesToFarm.Sum(game => game.CardsRemaining),
0 0
); );

View File

@@ -360,9 +360,7 @@ namespace ArchiSteamFarm.JSON {
internal enum EType : byte { internal enum EType : byte {
Unknown, Unknown,
BoosterPack, BoosterPack,
Coupon,
Emoticon, Emoticon,
Gift,
FoilTradingCard, FoilTradingCard,
ProfileBackground, ProfileBackground,
TradingCard, TradingCard,

View File

@@ -13,8 +13,8 @@
"IsBotAccount": false, "IsBotAccount": false,
"LootableTypes": [ "LootableTypes": [
1, 1,
5, 3,
7 5
], ],
"PasswordFormat": 0, "PasswordFormat": 0,
"Paused": false, "Paused": false,

View File

@@ -31,9 +31,7 @@ namespace ConfigGenerator.JSON {
internal enum EType : byte { internal enum EType : byte {
Unknown, Unknown,
BoosterPack, BoosterPack,
Coupon,
Emoticon, Emoticon,
Gift,
FoilTradingCard, FoilTradingCard,
ProfileBackground, ProfileBackground,
TradingCard, TradingCard,