mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2025-12-21 16:58:37 +00:00
Misc
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<Copyright>Copyright © ArchiSteamFarm 2015-2019</Copyright>
|
||||
<DefaultItemExcludes>$(DefaultItemExcludes);debug/**;out/**</DefaultItemExcludes>
|
||||
<ErrorReport>none</ErrorReport>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<LangVersion>8.0</LangVersion>
|
||||
<NoWarn />
|
||||
<OutputType>Library</OutputType>
|
||||
<PackageIconUrl>https://github.com/JustArchiNET/ArchiSteamFarm/raw/master/resources/ASF.ico</PackageIconUrl>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<DefaultItemExcludes>$(DefaultItemExcludes);debug/**;out/**</DefaultItemExcludes>
|
||||
<Description>ASF is an application that allows you to farm steam cards using multiple steam accounts simultaneously.</Description>
|
||||
<ErrorReport>none</ErrorReport>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<LangVersion>8.0</LangVersion>
|
||||
<NoWarn />
|
||||
<OutputType>Library</OutputType>
|
||||
<PackageIconUrl>https://github.com/JustArchiNET/ArchiSteamFarm/raw/master/resources/ASF.ico</PackageIconUrl>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<ErrorReport>none</ErrorReport>
|
||||
<FileVersion>4.1.0.2</FileVersion>
|
||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<LangVersion>8.0</LangVersion>
|
||||
<NoWarn>1591</NoWarn>
|
||||
<OpenApiGenerateDocuments>false</OpenApiGenerateDocuments>
|
||||
<OutputType>Exe</OutputType>
|
||||
|
||||
@@ -448,8 +448,7 @@ namespace ArchiSteamFarm {
|
||||
return true;
|
||||
}
|
||||
|
||||
return permission switch
|
||||
{
|
||||
return permission switch {
|
||||
BotConfig.EPermission.FamilySharing when SteamFamilySharingIDs.Contains(steamID) => true,
|
||||
_ => BotConfig.SteamUserPermissions.TryGetValue(steamID, out BotConfig.EPermission realPermission) && (realPermission >= permission),
|
||||
};
|
||||
@@ -1866,15 +1865,14 @@ namespace ArchiSteamFarm {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (paymentMethod) {
|
||||
case EPaymentMethod.ActivationCode:
|
||||
case EPaymentMethod.Complimentary: // This is also a flag
|
||||
case EPaymentMethod.GuestPass:
|
||||
case EPaymentMethod.HardwarePromo:
|
||||
return false;
|
||||
default:
|
||||
return !paymentMethod.HasFlag(EPaymentMethod.Complimentary);
|
||||
}
|
||||
// Complimentary is also a flag
|
||||
return paymentMethod switch {
|
||||
EPaymentMethod.ActivationCode => false,
|
||||
EPaymentMethod.Complimentary => false,
|
||||
EPaymentMethod.GuestPass => false,
|
||||
EPaymentMethod.HardwarePromo => false,
|
||||
_ => !paymentMethod.HasFlag(EPaymentMethod.Complimentary)
|
||||
};
|
||||
}
|
||||
|
||||
private async Task JoinMasterChatGroupID() {
|
||||
|
||||
Reference in New Issue
Block a user