aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Globals
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-08-13 00:31:39 +0200
committerShauren <shauren.trinity@gmail.com>2025-08-13 00:31:39 +0200
commit5cf0c6c8bb2c4e58a2d66ba5f304af34d18a4782 (patch)
tree0616f3e83f511aae0e10916f0c22161017e09c24 /src/server/game/Globals
parent82f19c898815e3bc5bb6288b0191ee897594f9b5 (diff)
Core: Updated to 11.2.0
Diffstat (limited to 'src/server/game/Globals')
-rw-r--r--src/server/game/Globals/AreaTriggerDataStore.cpp6
-rw-r--r--src/server/game/Globals/ObjectMgr.cpp40
-rw-r--r--src/server/game/Globals/ObjectMgr.h2
3 files changed, 16 insertions, 32 deletions
diff --git a/src/server/game/Globals/AreaTriggerDataStore.cpp b/src/server/game/Globals/AreaTriggerDataStore.cpp
index 9b67fef4467..a9ed6d056f9 100644
--- a/src/server/game/Globals/AreaTriggerDataStore.cpp
+++ b/src/server/game/Globals/AreaTriggerDataStore.cpp
@@ -272,8 +272,8 @@ void AreaTriggerDataStore::LoadAreaTriggerTemplates()
TC_LOG_INFO("server.loading", ">> Loaded 0 AreaTrigger create properties. DB table `areatrigger_create_properties` is empty.");
}
- // 0 1 2 3 4 5 6 7 8
- if (QueryResult circularMovementInfos = WorldDatabase.Query("SELECT AreaTriggerCreatePropertiesId, IsCustom, StartDelay, CircleRadius, BlendFromRadius, InitialAngle, ZOffset, CounterClockwise, CanLoop FROM `areatrigger_create_properties_orbit`"))
+ // 0 1 2 3 4 5 6 7 8
+ if (QueryResult circularMovementInfos = WorldDatabase.Query("SELECT AreaTriggerCreatePropertiesId, IsCustom, ExtraTimeForBlending, CircleRadius, BlendFromRadius, InitialAngle, ZOffset, CounterClockwise, CanLoop FROM `areatrigger_create_properties_orbit`"))
{
do
{
@@ -289,7 +289,7 @@ void AreaTriggerDataStore::LoadAreaTriggerTemplates()
createProperties->OrbitInfo.emplace();
- createProperties->OrbitInfo->StartDelay = circularMovementInfoFields[2].GetUInt32();
+ createProperties->OrbitInfo->ExtraTimeForBlending = circularMovementInfoFields[2].GetInt32();
#define VALIDATE_AND_SET_FLOAT(Float, Value) \
createProperties->OrbitInfo->Float = Value; \
diff --git a/src/server/game/Globals/ObjectMgr.cpp b/src/server/game/Globals/ObjectMgr.cpp
index 6d24e727a39..f75382bc474 100644
--- a/src/server/game/Globals/ObjectMgr.cpp
+++ b/src/server/game/Globals/ObjectMgr.cpp
@@ -226,7 +226,6 @@ ObjectMgr::ObjectMgr():
_hiPetNumber(1),
_creatureSpawnId(1),
_gameObjectSpawnId(1),
- _voidItemId(1),
DBCLocaleIndex(LOCALE_enUS)
{
}
@@ -923,11 +922,11 @@ void ObjectMgr::LoadCreatureTemplateDifficulty()
// 0 1 2 3 4 5
QueryResult result = WorldDatabase.Query("SELECT Entry, DifficultyID, LevelScalingDeltaMin, LevelScalingDeltaMax, ContentTuningID, HealthScalingExpansion, "
- // 6 7 8 9 10 11 12
- "HealthModifier, ManaModifier, ArmorModifier, DamageModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, "
- // 13 14 15 16 17
+ // 6 7 8 9 10 11 12 13
+ "HealthModifier, ManaModifier, ArmorModifier, DamageModifier, CreatureDifficultyID, TypeFlags, TypeFlags2, TypeFlags3, "
+ // 14 15 16 17 18
"LootID, PickPocketLootID, SkinLootID, GoldMin, GoldMax,"
- // 18 19 20 21 22 23 24 25
+ // 19 20 21 22 23 24 25 26
"StaticFlags1, StaticFlags2, StaticFlags3, StaticFlags4, StaticFlags5, StaticFlags6, StaticFlags7, StaticFlags8 "
"FROM creature_template_difficulty ORDER BY Entry");
@@ -964,14 +963,15 @@ void ObjectMgr::LoadCreatureTemplateDifficulty()
creatureDifficulty.CreatureDifficultyID = fields[10].GetInt32();
creatureDifficulty.TypeFlags = fields[11].GetUInt32();
creatureDifficulty.TypeFlags2 = fields[12].GetUInt32();
- creatureDifficulty.LootID = fields[13].GetUInt32();
- creatureDifficulty.PickPocketLootID = fields[14].GetUInt32();
- creatureDifficulty.SkinLootID = fields[15].GetUInt32();
- creatureDifficulty.GoldMin = fields[16].GetUInt32();
- creatureDifficulty.GoldMax = fields[17].GetUInt32();
- creatureDifficulty.StaticFlags = CreatureStaticFlagsHolder(CreatureStaticFlags(fields[18].GetUInt32()), CreatureStaticFlags2(fields[19].GetUInt32()),
- CreatureStaticFlags3(fields[20].GetUInt32()), CreatureStaticFlags4(fields[21].GetUInt32()), CreatureStaticFlags5(fields[22].GetUInt32()),
- CreatureStaticFlags6(fields[23].GetUInt32()), CreatureStaticFlags7(fields[24].GetUInt32()), CreatureStaticFlags8(fields[25].GetUInt32()));
+ creatureDifficulty.TypeFlags3 = fields[13].GetUInt32();
+ creatureDifficulty.LootID = fields[14].GetUInt32();
+ creatureDifficulty.PickPocketLootID = fields[15].GetUInt32();
+ creatureDifficulty.SkinLootID = fields[16].GetUInt32();
+ creatureDifficulty.GoldMin = fields[17].GetUInt32();
+ creatureDifficulty.GoldMax = fields[18].GetUInt32();
+ creatureDifficulty.StaticFlags = CreatureStaticFlagsHolder(CreatureStaticFlags(fields[19].GetUInt32()), CreatureStaticFlags2(fields[20].GetUInt32()),
+ CreatureStaticFlags3(fields[21].GetUInt32()), CreatureStaticFlags4(fields[22].GetUInt32()), CreatureStaticFlags5(fields[23].GetUInt32()),
+ CreatureStaticFlags6(fields[24].GetUInt32()), CreatureStaticFlags7(fields[25].GetUInt32()), CreatureStaticFlags8(fields[26].GetUInt32()));
// TODO: Check if this still applies
creatureDifficulty.DamageModifier *= Creature::GetDamageMod(itr->second.Classification);
@@ -7448,10 +7448,6 @@ void ObjectMgr::SetHighestGuids()
if (result)
sGroupMgr->SetGroupDbStoreSize((*result)[0].GetUInt32()+1);
- result = CharacterDatabase.Query("SELECT MAX(itemId) from character_void_storage");
- if (result)
- _voidItemId = (*result)[0].GetUInt64()+1;
-
result = WorldDatabase.Query("SELECT MAX(guid) FROM creature");
if (result)
_creatureSpawnId = (*result)[0].GetUInt64() + 1;
@@ -7506,16 +7502,6 @@ uint32 ObjectMgr::GeneratePetNumber()
return _hiPetNumber++;
}
-uint64 ObjectMgr::GenerateVoidStorageItemId()
-{
- if (_voidItemId >= uint64(0xFFFFFFFFFFFFFFFELL))
- {
- TC_LOG_ERROR("misc", "_voidItemId overflow!! Can't continue, shutting down server. ");
- World::StopNow(ERROR_EXIT_CODE);
- }
- return _voidItemId++;
-}
-
uint64 ObjectMgr::GenerateCreatureSpawnId()
{
if (_creatureSpawnId >= uint64(0xFFFFFFFFFFFFFFFELL))
diff --git a/src/server/game/Globals/ObjectMgr.h b/src/server/game/Globals/ObjectMgr.h
index a5684df7b94..b8c4cc292ff 100644
--- a/src/server/game/Globals/ObjectMgr.h
+++ b/src/server/game/Globals/ObjectMgr.h
@@ -1366,7 +1366,6 @@ class TC_GAME_API ObjectMgr
uint64 GenerateEquipmentSetGuid();
uint64 GenerateMailID();
uint32 GeneratePetNumber();
- uint64 GenerateVoidStorageItemId();
ObjectGuid::LowType GenerateCreatureSpawnId();
ObjectGuid::LowType GenerateGameObjectSpawnId();
@@ -1701,7 +1700,6 @@ class TC_GAME_API ObjectMgr
std::atomic<uint32> _hiPetNumber;
ObjectGuid::LowType _creatureSpawnId;
ObjectGuid::LowType _gameObjectSpawnId;
- uint64 _voidItemId;
// first free low guid for selected guid type
ObjectGuidGenerator& GetGuidSequenceGenerator(HighGuid high);