fix: Simplifies expansion checks (#994)

This commit is contained in:
Kamron Batman 2022-04-12 20:52:53 -07:00 committed by GitHub
parent f91ebe8183
commit de0bf03f46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 26 deletions

View file

@ -335,9 +335,9 @@
"ClientFlags": "Malas",
"FeatureFlags": {
"None": false,
"T2A": true,
"UOR": true,
"UOTD": true,
"T2A": false,
"UOR": false,
"UOTD": false,
"LBR": true,
"AOS": true,
"SixthCharacterSlot": false,
@ -401,9 +401,9 @@
"ClientFlags": "Tokuno",
"FeatureFlags": {
"None": false,
"T2A": true,
"UOR": true,
"UOTD": true,
"T2A": false,
"UOR": false,
"UOTD": false,
"LBR": true,
"AOS": true,
"SixthCharacterSlot": false,
@ -467,9 +467,9 @@
"ClientFlags": null,
"FeatureFlags": {
"None": false,
"T2A": true,
"UOR": true,
"UOTD": true,
"T2A": false,
"UOR": false,
"UOTD": false,
"LBR": true,
"AOS": true,
"SixthCharacterSlot": false,
@ -533,9 +533,9 @@
"ClientFlags": "TerMur",
"FeatureFlags": {
"None": false,
"T2A": true,
"UOR": true,
"UOTD": true,
"T2A": false,
"UOR": false,
"UOTD": false,
"LBR": true,
"AOS": true,
"SixthCharacterSlot": false,
@ -599,9 +599,9 @@
"ClientFlags": null,
"FeatureFlags": {
"None": false,
"T2A": true,
"UOR": true,
"UOTD": true,
"T2A": false,
"UOR": false,
"UOTD": false,
"LBR": true,
"AOS": true,
"SixthCharacterSlot": false,
@ -665,9 +665,9 @@
"ClientFlags": null,
"FeatureFlags": {
"None": false,
"T2A": true,
"UOR": true,
"UOTD": true,
"T2A": false,
"UOR": false,
"UOTD": false,
"LBR": true,
"AOS": true,
"SixthCharacterSlot": false,
@ -731,9 +731,9 @@
"ClientFlags": null,
"FeatureFlags": {
"None": false,
"T2A": true,
"UOR": true,
"UOTD": true,
"T2A": false,
"UOR": false,
"UOTD": false,
"LBR": true,
"AOS": true,
"SixthCharacterSlot": false,

View file

@ -57,7 +57,7 @@ namespace Server
{
None = 0x00000000,
T2A = 0x00000001,
UOR = 0x00000002,
UOR = 0x00000002, // In later clients, the T2A/UOR flags are negative feature flags to disable body replacement of Pre-AOS graphics.
UOTD = 0x00000004,
LBR = 0x00000008,
AOS = 0x00000010,
@ -65,9 +65,9 @@ namespace Server
SE = 0x00000040,
ML = 0x00000080,
EigthAge = 0x00000100,
NinthAge = 0x00000200, /* Crystal/Shadow Custom House Tiles */
NinthAge = 0x00000200, // Crystal/Shadow Custom House Tiles
TenthAge = 0x00000400,
IncreasedStorage = 0x00000800, /* Increased Housing/Bank Storage */
IncreasedStorage = 0x00000800, // Increased Housing/Bank Storage
SeventhCharacterSlot = 0x00001000,
RoleplayFaces = 0x00002000,
TrialAccount = 0x00004000,
@ -86,7 +86,8 @@ namespace Server
ExpansionUOR = ExpansionT2A | UOR,
ExpansionUOTD = ExpansionUOR | UOTD,
ExpansionLBR = ExpansionUOTD | LBR,
ExpansionAOS = ExpansionLBR | AOS | LiveAccount,
// In later clients, the AOS+ expansions include the Publish 16 LBR flag, but not the previous expansions.
ExpansionAOS = LBR | AOS | LiveAccount,
ExpansionSE = ExpansionAOS | SE,
ExpansionML = ExpansionSE | ML | NinthAge,
ExpansionSA = ExpansionML | SA | Gothic | Rustic,

View file

@ -149,7 +149,6 @@ public static class OutgoingAccountPackets
if (ns.Account.Limit >= 6)
{
flags |= FeatureFlags.LiveAccount;
flags &= ~FeatureFlags.UOTD;
if (ns.Account.Limit > 6)
{