mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 15:46:37 +00:00
Eliminated the nested class design of recent EQEmu work; Some more inv2 convergence work
This commit is contained in:
+132
-132
@@ -21,7 +21,7 @@
|
||||
|
||||
|
||||
// client validation
|
||||
bool EQEmu::Limits::IsValidPCClientVersion(ClientVersion clientVersion)
|
||||
bool EQEmu::limits::IsValidPCClientVersion(ClientVersion clientVersion)
|
||||
{
|
||||
if (clientVersion > ClientVersion::Unknown && clientVersion <= LAST_PC_CLIENT)
|
||||
return true;
|
||||
@@ -29,7 +29,7 @@ bool EQEmu::Limits::IsValidPCClientVersion(ClientVersion clientVersion)
|
||||
return false;
|
||||
}
|
||||
|
||||
ClientVersion EQEmu::Limits::ValidatePCClientVersion(ClientVersion clientVersion)
|
||||
ClientVersion EQEmu::limits::ValidatePCClientVersion(ClientVersion clientVersion)
|
||||
{
|
||||
if (clientVersion > ClientVersion::Unknown && clientVersion <= LAST_PC_CLIENT)
|
||||
return clientVersion;
|
||||
@@ -38,7 +38,7 @@ ClientVersion EQEmu::Limits::ValidatePCClientVersion(ClientVersion clientVersion
|
||||
}
|
||||
|
||||
// npc validation
|
||||
bool EQEmu::Limits::IsValidNPCClientVersion(ClientVersion clientVersion)
|
||||
bool EQEmu::limits::IsValidNPCClientVersion(ClientVersion clientVersion)
|
||||
{
|
||||
if (clientVersion > LAST_PC_CLIENT && clientVersion <= LAST_NPC_CLIENT)
|
||||
return true;
|
||||
@@ -46,7 +46,7 @@ bool EQEmu::Limits::IsValidNPCClientVersion(ClientVersion clientVersion)
|
||||
return false;
|
||||
}
|
||||
|
||||
ClientVersion EQEmu::Limits::ValidateNPCClientVersion(ClientVersion clientVersion)
|
||||
ClientVersion EQEmu::limits::ValidateNPCClientVersion(ClientVersion clientVersion)
|
||||
{
|
||||
if (clientVersion > LAST_PC_CLIENT && clientVersion <= LAST_NPC_CLIENT)
|
||||
return clientVersion;
|
||||
@@ -55,7 +55,7 @@ ClientVersion EQEmu::Limits::ValidateNPCClientVersion(ClientVersion clientVersio
|
||||
}
|
||||
|
||||
// mob validation
|
||||
bool EQEmu::Limits::IsValidMobClientVersion(ClientVersion clientVersion)
|
||||
bool EQEmu::limits::IsValidMobClientVersion(ClientVersion clientVersion)
|
||||
{
|
||||
if (clientVersion > ClientVersion::Unknown && clientVersion <= LAST_NPC_CLIENT)
|
||||
return true;
|
||||
@@ -63,7 +63,7 @@ bool EQEmu::Limits::IsValidMobClientVersion(ClientVersion clientVersion)
|
||||
return false;
|
||||
}
|
||||
|
||||
ClientVersion EQEmu::Limits::ValidateMobClientVersion(ClientVersion clientVersion)
|
||||
ClientVersion EQEmu::limits::ValidateMobClientVersion(ClientVersion clientVersion)
|
||||
{
|
||||
if (clientVersion > ClientVersion::Unknown && clientVersion <= LAST_NPC_CLIENT)
|
||||
return clientVersion;
|
||||
@@ -72,7 +72,7 @@ ClientVersion EQEmu::Limits::ValidateMobClientVersion(ClientVersion clientVersio
|
||||
}
|
||||
|
||||
// database
|
||||
size_t EQEmu::Limits::CharacterCreationLimit(ClientVersion clientVersion)
|
||||
size_t EQEmu::limits::CharacterCreationLimit(ClientVersion clientVersion)
|
||||
{
|
||||
static const size_t local[CLIENT_VERSION_COUNT] = {
|
||||
/*Unknown*/ NOT_USED,
|
||||
@@ -94,7 +94,7 @@ size_t EQEmu::Limits::CharacterCreationLimit(ClientVersion clientVersion)
|
||||
}
|
||||
|
||||
// inventory
|
||||
uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersion)
|
||||
uint16 EQEmu::limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersion)
|
||||
{
|
||||
// not all maps will have an instantiated container..some are references for queue generators (i.e., bazaar, mail, etc...)
|
||||
// a zero '0' indicates a needed value..otherwise, change to '_NOTUSED' for a null value so indices requiring research can be identified
|
||||
@@ -105,36 +105,36 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
//
|
||||
// TYPE_POSSESSIONS_SIZE does not reflect all actual <client>_constants size due to bitmask-use compatibility
|
||||
//
|
||||
// when setting NPC-based values, try to adhere to an Constants::<property> or NOT_USED value to avoid unnecessary issues
|
||||
// when setting NPC-based values, try to adhere to an constants::<property> or NOT_USED value to avoid unnecessary issues
|
||||
|
||||
static const uint16 local[TypeCount][CLIENT_VERSION_COUNT] = {
|
||||
// server and database are sync'd to current TypePossessions's client as set in 'using namespace RoF::slots;' and
|
||||
// 'Constants::TYPE_POSSESSIONS_SIZE' - use/update EquipmentBitmask(), GeneralBitmask() and CursorBitmask()
|
||||
// for partial range validation checks and 'Constants::TYPE_POSSESSIONS_SIZE' for full range iterations
|
||||
// 'constants::TYPE_POSSESSIONS_SIZE' - use/update EquipmentBitmask(), GeneralBitmask() and CursorBitmask()
|
||||
// for partial range validation checks and 'constants::TYPE_POSSESSIONS_SIZE' for full range iterations
|
||||
{ // local[TypePossessions]
|
||||
/*Unknown*/ NOT_USED,
|
||||
/*62*/ Constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*Titanium*/ Constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*SoF*/ Constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*SoD*/ Constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*Underfoot*/ Constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*RoF*/ Constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*62*/ constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*Titanium*/ constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*SoF*/ constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*SoD*/ constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*Underfoot*/ constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*RoF*/ constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*RoF2*/ constants::TYPE_POSSESSIONS_SIZE,
|
||||
|
||||
/*NPC*/ Constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*Merc*/ Constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*Bot*/ Constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*Pet*/ Constants::TYPE_POSSESSIONS_SIZE
|
||||
/*NPC*/ constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*Merc*/ constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*Bot*/ constants::TYPE_POSSESSIONS_SIZE,
|
||||
/*Pet*/ constants::TYPE_POSSESSIONS_SIZE
|
||||
},
|
||||
{ // local[TypeBank]
|
||||
/*Unknown*/ NOT_USED,
|
||||
/*62*/ NOT_USED,
|
||||
/*Titanium*/ Titanium::consts::TYPE_BANK_SIZE,
|
||||
/*SoF*/ Constants::TYPE_BANK_SIZE,
|
||||
/*SoD*/ Constants::TYPE_BANK_SIZE,
|
||||
/*Underfoot*/ Constants::TYPE_BANK_SIZE,
|
||||
/*RoF*/ Constants::TYPE_BANK_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_BANK_SIZE,
|
||||
/*SoF*/ constants::TYPE_BANK_SIZE,
|
||||
/*SoD*/ constants::TYPE_BANK_SIZE,
|
||||
/*Underfoot*/ constants::TYPE_BANK_SIZE,
|
||||
/*RoF*/ constants::TYPE_BANK_SIZE,
|
||||
/*RoF2*/ constants::TYPE_BANK_SIZE,
|
||||
|
||||
/*NPC*/ NOT_USED,
|
||||
/*Merc*/ NOT_USED,
|
||||
@@ -143,13 +143,13 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
},
|
||||
{ // local[TypeSharedBank]
|
||||
/*Unknown*/ NOT_USED,
|
||||
/*62*/ Constants::TYPE_SHARED_BANK_SIZE,
|
||||
/*Titanium*/ Constants::TYPE_SHARED_BANK_SIZE,
|
||||
/*SoF*/ Constants::TYPE_SHARED_BANK_SIZE,
|
||||
/*SoD*/ Constants::TYPE_SHARED_BANK_SIZE,
|
||||
/*Underfoot*/ Constants::TYPE_SHARED_BANK_SIZE,
|
||||
/*RoF*/ Constants::TYPE_SHARED_BANK_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_SHARED_BANK_SIZE,
|
||||
/*62*/ constants::TYPE_SHARED_BANK_SIZE,
|
||||
/*Titanium*/ constants::TYPE_SHARED_BANK_SIZE,
|
||||
/*SoF*/ constants::TYPE_SHARED_BANK_SIZE,
|
||||
/*SoD*/ constants::TYPE_SHARED_BANK_SIZE,
|
||||
/*Underfoot*/ constants::TYPE_SHARED_BANK_SIZE,
|
||||
/*RoF*/ constants::TYPE_SHARED_BANK_SIZE,
|
||||
/*RoF2*/ constants::TYPE_SHARED_BANK_SIZE,
|
||||
|
||||
/*NPC*/ NOT_USED,
|
||||
/*Merc*/ NOT_USED,
|
||||
@@ -158,28 +158,28 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
},
|
||||
{ // local[TypeTrade]
|
||||
/*Unknown*/ NOT_USED,
|
||||
/*62*/ Constants::TYPE_TRADE_SIZE,
|
||||
/*Titanium*/ Constants::TYPE_TRADE_SIZE,
|
||||
/*SoF*/ Constants::TYPE_TRADE_SIZE,
|
||||
/*SoD*/ Constants::TYPE_TRADE_SIZE,
|
||||
/*Underfoot*/ Constants::TYPE_TRADE_SIZE,
|
||||
/*RoF*/ Constants::TYPE_TRADE_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_TRADE_SIZE,
|
||||
/*62*/ constants::TYPE_TRADE_SIZE,
|
||||
/*Titanium*/ constants::TYPE_TRADE_SIZE,
|
||||
/*SoF*/ constants::TYPE_TRADE_SIZE,
|
||||
/*SoD*/ constants::TYPE_TRADE_SIZE,
|
||||
/*Underfoot*/ constants::TYPE_TRADE_SIZE,
|
||||
/*RoF*/ constants::TYPE_TRADE_SIZE,
|
||||
/*RoF2*/ constants::TYPE_TRADE_SIZE,
|
||||
|
||||
/*NPC*/ 4,
|
||||
/*Merc*/ 4,
|
||||
/*Bot*/ Constants::TYPE_TRADE_SIZE, // client thinks this is another client
|
||||
/*Bot*/ constants::TYPE_TRADE_SIZE, // client thinks this is another client
|
||||
/*Pet*/ 4
|
||||
},
|
||||
{ // local[TypeWorld]
|
||||
/*Unknown*/ NOT_USED,
|
||||
/*62*/ Constants::TYPE_WORLD_SIZE,
|
||||
/*Titanium*/ Constants::TYPE_WORLD_SIZE,
|
||||
/*SoF*/ Constants::TYPE_WORLD_SIZE,
|
||||
/*SoD*/ Constants::TYPE_WORLD_SIZE,
|
||||
/*Underfoot*/ Constants::TYPE_WORLD_SIZE,
|
||||
/*RoF*/ Constants::TYPE_WORLD_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_WORLD_SIZE,
|
||||
/*62*/ constants::TYPE_WORLD_SIZE,
|
||||
/*Titanium*/ constants::TYPE_WORLD_SIZE,
|
||||
/*SoF*/ constants::TYPE_WORLD_SIZE,
|
||||
/*SoD*/ constants::TYPE_WORLD_SIZE,
|
||||
/*Underfoot*/ constants::TYPE_WORLD_SIZE,
|
||||
/*RoF*/ constants::TYPE_WORLD_SIZE,
|
||||
/*RoF2*/ constants::TYPE_WORLD_SIZE,
|
||||
|
||||
/*NPC*/ NOT_USED,
|
||||
/*Merc*/ NOT_USED,
|
||||
@@ -188,13 +188,13 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
},
|
||||
{ // local[TypeLimbo]
|
||||
/*Unknown*/ NOT_USED,
|
||||
/*62*/ Constants::TYPE_LIMBO_SIZE,
|
||||
/*Titanium*/ Constants::TYPE_LIMBO_SIZE,
|
||||
/*SoF*/ Constants::TYPE_LIMBO_SIZE,
|
||||
/*SoD*/ Constants::TYPE_LIMBO_SIZE,
|
||||
/*Underfoot*/ Constants::TYPE_LIMBO_SIZE,
|
||||
/*RoF*/ Constants::TYPE_LIMBO_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_LIMBO_SIZE,
|
||||
/*62*/ constants::TYPE_LIMBO_SIZE,
|
||||
/*Titanium*/ constants::TYPE_LIMBO_SIZE,
|
||||
/*SoF*/ constants::TYPE_LIMBO_SIZE,
|
||||
/*SoD*/ constants::TYPE_LIMBO_SIZE,
|
||||
/*Underfoot*/ constants::TYPE_LIMBO_SIZE,
|
||||
/*RoF*/ constants::TYPE_LIMBO_SIZE,
|
||||
/*RoF2*/ constants::TYPE_LIMBO_SIZE,
|
||||
|
||||
/*NPC*/ NOT_USED,
|
||||
/*Merc*/ NOT_USED,
|
||||
@@ -203,13 +203,13 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
},
|
||||
{ // local[TypeTribute]
|
||||
/*Unknown*/ NOT_USED,
|
||||
/*62*/ Constants::TYPE_TRIBUTE_SIZE,
|
||||
/*Titanium*/ Constants::TYPE_TRIBUTE_SIZE,
|
||||
/*SoF*/ Constants::TYPE_TRIBUTE_SIZE,
|
||||
/*SoD*/ Constants::TYPE_TRIBUTE_SIZE,
|
||||
/*Underfoot*/ Constants::TYPE_TRIBUTE_SIZE,
|
||||
/*RoF*/ Constants::TYPE_TRIBUTE_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_TRIBUTE_SIZE,
|
||||
/*62*/ constants::TYPE_TRIBUTE_SIZE,
|
||||
/*Titanium*/ constants::TYPE_TRIBUTE_SIZE,
|
||||
/*SoF*/ constants::TYPE_TRIBUTE_SIZE,
|
||||
/*SoD*/ constants::TYPE_TRIBUTE_SIZE,
|
||||
/*Underfoot*/ constants::TYPE_TRIBUTE_SIZE,
|
||||
/*RoF*/ constants::TYPE_TRIBUTE_SIZE,
|
||||
/*RoF2*/ constants::TYPE_TRIBUTE_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -223,8 +223,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ 0,
|
||||
/*SoD*/ 0,
|
||||
/*Underfoot*/ 0,
|
||||
/*RoF*/ Constants::TYPE_TROPHY_TRIBUTE_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_TROPHY_TRIBUTE_SIZE,
|
||||
/*RoF*/ constants::TYPE_TROPHY_TRIBUTE_SIZE,
|
||||
/*RoF2*/ constants::TYPE_TROPHY_TRIBUTE_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -238,8 +238,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ 0,
|
||||
/*SoD*/ 0,
|
||||
/*Underfoot*/ 0,
|
||||
/*RoF*/ Constants::TYPE_GUILD_TRIBUTE_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_GUILD_TRIBUTE_SIZE,
|
||||
/*RoF*/ constants::TYPE_GUILD_TRIBUTE_SIZE,
|
||||
/*RoF2*/ constants::TYPE_GUILD_TRIBUTE_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -253,8 +253,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ 0,
|
||||
/*SoD*/ 0,
|
||||
/*Underfoot*/ 0,
|
||||
/*RoF*/ Constants::TYPE_MERCHANT_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_MERCHANT_SIZE,
|
||||
/*RoF*/ constants::TYPE_MERCHANT_SIZE,
|
||||
/*RoF2*/ constants::TYPE_MERCHANT_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -268,8 +268,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ 0,
|
||||
/*SoD*/ 0,
|
||||
/*Underfoot*/ 0,
|
||||
/*RoF*/ Constants::TYPE_DELETED_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_DELETED_SIZE,
|
||||
/*RoF*/ constants::TYPE_DELETED_SIZE,
|
||||
/*RoF2*/ constants::TYPE_DELETED_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -293,15 +293,15 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
},
|
||||
{ // local[TypeBazaar]
|
||||
/*Unknown*/ NOT_USED,
|
||||
/*62*/ Constants::TYPE_BAZAAR_SIZE,
|
||||
/*Titanium*/ Constants::TYPE_BAZAAR_SIZE,
|
||||
/*SoF*/ Constants::TYPE_BAZAAR_SIZE,
|
||||
/*SoD*/ Constants::TYPE_BAZAAR_SIZE,
|
||||
/*Underfoot*/ Constants::TYPE_BAZAAR_SIZE,
|
||||
/*RoF*/ Constants::TYPE_BAZAAR_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_BAZAAR_SIZE,
|
||||
/*62*/ constants::TYPE_BAZAAR_SIZE,
|
||||
/*Titanium*/ constants::TYPE_BAZAAR_SIZE,
|
||||
/*SoF*/ constants::TYPE_BAZAAR_SIZE,
|
||||
/*SoD*/ constants::TYPE_BAZAAR_SIZE,
|
||||
/*Underfoot*/ constants::TYPE_BAZAAR_SIZE,
|
||||
/*RoF*/ constants::TYPE_BAZAAR_SIZE,
|
||||
/*RoF2*/ constants::TYPE_BAZAAR_SIZE,
|
||||
|
||||
/*NPC*/ 0, // this may need to be 'Constants::TYPE_BAZAAR_SIZE' if offline client traders respawn as an npc
|
||||
/*NPC*/ 0, // this may need to be 'constants::TYPE_BAZAAR_SIZE' if offline client traders respawn as an npc
|
||||
/*Merc*/ 0,
|
||||
/*Bot*/ 0,
|
||||
/*Pet*/ 0
|
||||
@@ -328,8 +328,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ 0,
|
||||
/*SoD*/ 0,
|
||||
/*Underfoot*/ 0,
|
||||
/*RoF*/ Constants::TYPE_REAL_ESTATE_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_REAL_ESTATE_SIZE,
|
||||
/*RoF*/ constants::TYPE_REAL_ESTATE_SIZE,
|
||||
/*RoF2*/ constants::TYPE_REAL_ESTATE_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -343,8 +343,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ 0,
|
||||
/*SoD*/ 0,
|
||||
/*Underfoot*/ 0,
|
||||
/*RoF*/ Constants::TYPE_VIEW_MOD_PC_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_VIEW_MOD_PC_SIZE,
|
||||
/*RoF*/ constants::TYPE_VIEW_MOD_PC_SIZE,
|
||||
/*RoF2*/ constants::TYPE_VIEW_MOD_PC_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -358,8 +358,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ 0,
|
||||
/*SoD*/ 0,
|
||||
/*Underfoot*/ 0,
|
||||
/*RoF*/ Constants::TYPE_VIEW_MOD_BANK_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_VIEW_MOD_BANK_SIZE,
|
||||
/*RoF*/ constants::TYPE_VIEW_MOD_BANK_SIZE,
|
||||
/*RoF2*/ constants::TYPE_VIEW_MOD_BANK_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -373,8 +373,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ 0,
|
||||
/*SoD*/ 0,
|
||||
/*Underfoot*/ 0,
|
||||
/*RoF*/ Constants::TYPE_VIEW_MOD_SHARED_BANK_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_VIEW_MOD_SHARED_BANK_SIZE,
|
||||
/*RoF*/ constants::TYPE_VIEW_MOD_SHARED_BANK_SIZE,
|
||||
/*RoF2*/ constants::TYPE_VIEW_MOD_SHARED_BANK_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -388,8 +388,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ 0,
|
||||
/*SoD*/ 0,
|
||||
/*Underfoot*/ 0,
|
||||
/*RoF*/ Constants::TYPE_VIEW_MOD_LIMBO_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_VIEW_MOD_LIMBO_SIZE,
|
||||
/*RoF*/ constants::TYPE_VIEW_MOD_LIMBO_SIZE,
|
||||
/*RoF2*/ constants::TYPE_VIEW_MOD_LIMBO_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -403,8 +403,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ 0,
|
||||
/*SoD*/ 0,
|
||||
/*Underfoot*/ 0,
|
||||
/*RoF*/ Constants::TYPE_ALT_STORAGE_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_ALT_STORAGE_SIZE,
|
||||
/*RoF*/ constants::TYPE_ALT_STORAGE_SIZE,
|
||||
/*RoF2*/ constants::TYPE_ALT_STORAGE_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -418,8 +418,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ 0,
|
||||
/*SoD*/ 0,
|
||||
/*Underfoot*/ 0,
|
||||
/*RoF*/ Constants::TYPE_ARCHIVED_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_ARCHIVED_SIZE,
|
||||
/*RoF*/ constants::TYPE_ARCHIVED_SIZE,
|
||||
/*RoF2*/ constants::TYPE_ARCHIVED_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -433,8 +433,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ 0,
|
||||
/*SoD*/ 0,
|
||||
/*Underfoot*/ 0,
|
||||
/*RoF*/ Constants::TYPE_MAIL_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_MAIL_SIZE,
|
||||
/*RoF*/ constants::TYPE_MAIL_SIZE,
|
||||
/*RoF2*/ constants::TYPE_MAIL_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -448,8 +448,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ 0,
|
||||
/*SoD*/ 0,
|
||||
/*Underfoot*/ 0,
|
||||
/*RoF*/ Constants::TYPE_GUILD_TROPHY_TRIBUTE_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_GUILD_TROPHY_TRIBUTE_SIZE,
|
||||
/*RoF*/ constants::TYPE_GUILD_TROPHY_TRIBUTE_SIZE,
|
||||
/*RoF2*/ constants::TYPE_GUILD_TROPHY_TRIBUTE_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -463,8 +463,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ NOT_USED,
|
||||
/*SoD*/ NOT_USED,
|
||||
/*Underfoot*/ NOT_USED,
|
||||
/*RoF*/ Constants::TYPE_KRONO_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_KRONO_SIZE,
|
||||
/*RoF*/ constants::TYPE_KRONO_SIZE,
|
||||
/*RoF2*/ constants::TYPE_KRONO_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -478,8 +478,8 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
/*SoF*/ 0,
|
||||
/*SoD*/ 0,
|
||||
/*Underfoot*/ 0,
|
||||
/*RoF*/ Constants::TYPE_OTHER_SIZE,
|
||||
/*RoF2*/ Constants::TYPE_OTHER_SIZE,
|
||||
/*RoF*/ constants::TYPE_OTHER_SIZE,
|
||||
/*RoF2*/ constants::TYPE_OTHER_SIZE,
|
||||
|
||||
/*NPC*/ 0,
|
||||
/*Merc*/ 0,
|
||||
@@ -494,7 +494,7 @@ uint16 EQEmu::Limits::InventoryMapSize(int16 indexMap, ClientVersion clientVersi
|
||||
return NOT_USED;
|
||||
}
|
||||
|
||||
uint64 EQEmu::Limits::PossessionsBitmask(ClientVersion clientVersion)
|
||||
uint64 EQEmu::limits::PossessionsBitmask(ClientVersion clientVersion)
|
||||
{
|
||||
// these are for the new inventory system (RoF)..not the current (Ti) one...
|
||||
// 0x0000000000200000 is SlotPowerSource (SoF+)
|
||||
@@ -521,7 +521,7 @@ uint64 EQEmu::Limits::PossessionsBitmask(ClientVersion clientVersion)
|
||||
//return local[static_cast<unsigned int>(ValidateMobClientVersion(clientVersion))];
|
||||
}
|
||||
|
||||
uint64 EQEmu::Limits::EquipmentBitmask(ClientVersion clientVersion)
|
||||
uint64 EQEmu::limits::EquipmentBitmask(ClientVersion clientVersion)
|
||||
{
|
||||
static const uint64 local[CLIENT_VERSION_COUNT] = {
|
||||
/*Unknown*/ NOT_USED,
|
||||
@@ -543,7 +543,7 @@ uint64 EQEmu::Limits::EquipmentBitmask(ClientVersion clientVersion)
|
||||
//return local[static_cast<unsigned int>(ValidateMobClientVersion(clientVersion))];
|
||||
}
|
||||
|
||||
uint64 EQEmu::Limits::GeneralBitmask(ClientVersion clientVersion)
|
||||
uint64 EQEmu::limits::GeneralBitmask(ClientVersion clientVersion)
|
||||
{
|
||||
static const uint64 local[CLIENT_VERSION_COUNT] = {
|
||||
/*Unknown*/ NOT_USED,
|
||||
@@ -565,7 +565,7 @@ uint64 EQEmu::Limits::GeneralBitmask(ClientVersion clientVersion)
|
||||
//return local[static_cast<unsigned int>(ValidateMobClientVersion(clientVersion))];
|
||||
}
|
||||
|
||||
uint64 EQEmu::Limits::CursorBitmask(ClientVersion clientVersion)
|
||||
uint64 EQEmu::limits::CursorBitmask(ClientVersion clientVersion)
|
||||
{
|
||||
static const uint64 local[CLIENT_VERSION_COUNT] = {
|
||||
/*Unknown*/ NOT_USED,
|
||||
@@ -587,7 +587,7 @@ uint64 EQEmu::Limits::CursorBitmask(ClientVersion clientVersion)
|
||||
//return local[static_cast<unsigned int>(ValidateMobClientVersion(clientVersion))];
|
||||
}
|
||||
|
||||
bool EQEmu::Limits::AllowsEmptyBagInBag(ClientVersion clientVersion)
|
||||
bool EQEmu::limits::AllowsEmptyBagInBag(ClientVersion clientVersion)
|
||||
{
|
||||
static const bool local[CLIENT_VERSION_COUNT] = {
|
||||
/*Unknown*/ false,
|
||||
@@ -609,7 +609,7 @@ bool EQEmu::Limits::AllowsEmptyBagInBag(ClientVersion clientVersion)
|
||||
//return local[static_cast<unsigned int>(ValidateMobClientVersion(clientVersion))];
|
||||
}
|
||||
|
||||
bool EQEmu::Limits::AllowsClickCastFromBag(ClientVersion clientVersion)
|
||||
bool EQEmu::limits::AllowsClickCastFromBag(ClientVersion clientVersion)
|
||||
{
|
||||
static const bool local[CLIENT_VERSION_COUNT] = {
|
||||
/*Unknown*/ false,
|
||||
@@ -631,49 +631,49 @@ bool EQEmu::Limits::AllowsClickCastFromBag(ClientVersion clientVersion)
|
||||
}
|
||||
|
||||
// items
|
||||
uint16 EQEmu::Limits::ItemCommonSize(ClientVersion clientVersion)
|
||||
uint16 EQEmu::limits::ItemCommonSize(ClientVersion clientVersion)
|
||||
{
|
||||
static const uint16 local[CLIENT_VERSION_COUNT] = {
|
||||
/*Unknown*/ NOT_USED,
|
||||
/*62*/ Constants::ITEM_COMMON_SIZE,
|
||||
/*Titanium*/ Constants::ITEM_COMMON_SIZE,
|
||||
/*SoF*/ Constants::ITEM_COMMON_SIZE,
|
||||
/*SoD*/ Constants::ITEM_COMMON_SIZE,
|
||||
/*Underfoot*/ Constants::ITEM_COMMON_SIZE,
|
||||
/*RoF*/ Constants::ITEM_COMMON_SIZE,
|
||||
/*RoF2*/ Constants::ITEM_COMMON_SIZE,
|
||||
/*62*/ constants::ITEM_COMMON_SIZE,
|
||||
/*Titanium*/ constants::ITEM_COMMON_SIZE,
|
||||
/*SoF*/ constants::ITEM_COMMON_SIZE,
|
||||
/*SoD*/ constants::ITEM_COMMON_SIZE,
|
||||
/*Underfoot*/ constants::ITEM_COMMON_SIZE,
|
||||
/*RoF*/ constants::ITEM_COMMON_SIZE,
|
||||
/*RoF2*/ constants::ITEM_COMMON_SIZE,
|
||||
|
||||
/*NPC*/ Constants::ITEM_COMMON_SIZE,
|
||||
/*Merc*/ Constants::ITEM_COMMON_SIZE,
|
||||
/*Bot*/ Constants::ITEM_COMMON_SIZE,
|
||||
/*Pet*/ Constants::ITEM_COMMON_SIZE
|
||||
/*NPC*/ constants::ITEM_COMMON_SIZE,
|
||||
/*Merc*/ constants::ITEM_COMMON_SIZE,
|
||||
/*Bot*/ constants::ITEM_COMMON_SIZE,
|
||||
/*Pet*/ constants::ITEM_COMMON_SIZE
|
||||
};
|
||||
|
||||
return local[static_cast<unsigned int>(ValidateMobClientVersion(clientVersion))];
|
||||
}
|
||||
|
||||
uint16 EQEmu::Limits::ItemContainerSize(ClientVersion clientVersion)
|
||||
uint16 EQEmu::limits::ItemContainerSize(ClientVersion clientVersion)
|
||||
{
|
||||
static const uint16 local[CLIENT_VERSION_COUNT] = {
|
||||
/*Unknown*/ NOT_USED,
|
||||
/*62*/ Constants::ITEM_CONTAINER_SIZE,
|
||||
/*Titanium*/ Constants::ITEM_CONTAINER_SIZE,
|
||||
/*SoF*/ Constants::ITEM_CONTAINER_SIZE,
|
||||
/*SoD*/ Constants::ITEM_CONTAINER_SIZE,
|
||||
/*Underfoot*/ Constants::ITEM_CONTAINER_SIZE,
|
||||
/*RoF*/ Constants::ITEM_CONTAINER_SIZE,
|
||||
/*RoF2*/ Constants::ITEM_CONTAINER_SIZE,
|
||||
/*62*/ constants::ITEM_CONTAINER_SIZE,
|
||||
/*Titanium*/ constants::ITEM_CONTAINER_SIZE,
|
||||
/*SoF*/ constants::ITEM_CONTAINER_SIZE,
|
||||
/*SoD*/ constants::ITEM_CONTAINER_SIZE,
|
||||
/*Underfoot*/ constants::ITEM_CONTAINER_SIZE,
|
||||
/*RoF*/ constants::ITEM_CONTAINER_SIZE,
|
||||
/*RoF2*/ constants::ITEM_CONTAINER_SIZE,
|
||||
|
||||
/*NPC*/ Constants::ITEM_CONTAINER_SIZE,
|
||||
/*Merc*/ Constants::ITEM_CONTAINER_SIZE,
|
||||
/*Bot*/ Constants::ITEM_CONTAINER_SIZE,
|
||||
/*Pet*/ Constants::ITEM_CONTAINER_SIZE
|
||||
/*NPC*/ constants::ITEM_CONTAINER_SIZE,
|
||||
/*Merc*/ constants::ITEM_CONTAINER_SIZE,
|
||||
/*Bot*/ constants::ITEM_CONTAINER_SIZE,
|
||||
/*Pet*/ constants::ITEM_CONTAINER_SIZE
|
||||
};
|
||||
|
||||
return local[static_cast<unsigned int>(ValidateMobClientVersion(clientVersion))];
|
||||
}
|
||||
|
||||
bool EQEmu::Limits::CoinHasWeight(ClientVersion clientVersion)
|
||||
bool EQEmu::limits::CoinHasWeight(ClientVersion clientVersion)
|
||||
{
|
||||
static const bool local[CLIENT_VERSION_COUNT] = {
|
||||
/*Unknown*/ true,
|
||||
|
||||
Reference in New Issue
Block a user