mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-20 08:18:37 +00:00
Fix duplicating of LootableTypes in CG
This commit is contained in:
@@ -79,7 +79,7 @@ namespace ConfigGenerator {
|
|||||||
public bool IsBotAccount { get; set; } = false;
|
public bool IsBotAccount { get; set; } = false;
|
||||||
|
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
public List<Steam.Item.EType> LootableTypes { get; set; } = new List<Steam.Item.EType> { Steam.Item.EType.BoosterPack, Steam.Item.EType.FoilTradingCard, Steam.Item.EType.TradingCard };
|
public List<Steam.Item.EType> LootableTypes { get; set; } = new List<Steam.Item.EType>();
|
||||||
|
|
||||||
[Category("\tAccess")]
|
[Category("\tAccess")]
|
||||||
[JsonProperty(Required = Required.DisallowNull)]
|
[JsonProperty(Required = Required.DisallowNull)]
|
||||||
@@ -145,6 +145,9 @@ namespace ConfigGenerator {
|
|||||||
throw new ArgumentNullException(nameof(filePath));
|
throw new ArgumentNullException(nameof(filePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LootableTypes.Add(Steam.Item.EType.BoosterPack);
|
||||||
|
LootableTypes.Add(Steam.Item.EType.FoilTradingCard);
|
||||||
|
LootableTypes.Add(Steam.Item.EType.TradingCard);
|
||||||
Save();
|
Save();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user