Skip to content

Commit 348ecce

Browse files
author
Github Actions
committed
Merge 3.3.5 to 3.3.5-nemesis_anticheat
2 parents 963931f + 65e2474 commit 348ecce

File tree

5 files changed

+26
-3
lines changed

5 files changed

+26
-3
lines changed

src/common/Collision/Models/ModelInstance.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,7 @@ namespace VMAP
112112
if (info.hitModel->GetLiquidLevel(pModel, zDist))
113113
{
114114
// calculate world height (zDist in model coords):
115-
// assume WMO not tilted (wouldn't make much sense anyway)
116-
liqHeight = zDist * iScale + iPos.z;
115+
liqHeight = (Vector3(pModel.x, pModel.y, zDist) * iInvRot * iScale + iPos).z;
117116
return true;
118117
}
119118
return false;

src/server/game/Entities/Player/Player.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,9 @@ bool Player::Create(ObjectGuid::LowType guidlow, CharacterCreateInfo* createInfo
545545

546546
InitRunes();
547547

548-
SetMoney(sWorld->getIntConfig(CONFIG_START_PLAYER_MONEY));
548+
SetMoney(GetClass() != CLASS_DEATH_KNIGHT
549+
? sWorld->getIntConfig(CONFIG_START_PLAYER_MONEY)
550+
: sWorld->getIntConfig(CONFIG_START_DEATH_KNIGHT_PLAYER_MONEY));
549551
SetHonorPoints(sWorld->getIntConfig(CONFIG_START_HONOR_POINTS));
550552
SetArenaPoints(sWorld->getIntConfig(CONFIG_START_ARENA_POINTS));
551553

src/server/game/World/World.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,19 @@ void World::LoadConfigSettings(bool reload)
935935
m_int_configs[CONFIG_START_PLAYER_MONEY] = MAX_MONEY_AMOUNT;
936936
}
937937

938+
m_int_configs[CONFIG_START_DEATH_KNIGHT_PLAYER_MONEY] = sConfigMgr->GetIntDefault("StartDeathKnightPlayerMoney", 2000);
939+
if (int32(m_int_configs[CONFIG_START_DEATH_KNIGHT_PLAYER_MONEY]) < 0)
940+
{
941+
TC_LOG_ERROR("server.loading", "StartDeathKnightPlayerMoney ({}) must be in range 0..{}. Set to {}.", m_int_configs[CONFIG_START_DEATH_KNIGHT_PLAYER_MONEY], MAX_MONEY_AMOUNT, 2000);
942+
m_int_configs[CONFIG_START_DEATH_KNIGHT_PLAYER_MONEY] = 2000;
943+
}
944+
else if (m_int_configs[CONFIG_START_DEATH_KNIGHT_PLAYER_MONEY] > MAX_MONEY_AMOUNT)
945+
{
946+
TC_LOG_ERROR("server.loading", "StartDeathKnightPlayerMoney ({}) must be in range 0..{}. Set to {}.",
947+
m_int_configs[CONFIG_START_DEATH_KNIGHT_PLAYER_MONEY], MAX_MONEY_AMOUNT, MAX_MONEY_AMOUNT);
948+
m_int_configs[CONFIG_START_DEATH_KNIGHT_PLAYER_MONEY] = MAX_MONEY_AMOUNT;
949+
}
950+
938951
m_int_configs[CONFIG_MAX_HONOR_POINTS] = sConfigMgr->GetIntDefault("MaxHonorPoints", 75000);
939952
if (int32(m_int_configs[CONFIG_MAX_HONOR_POINTS]) < 0)
940953
{

src/server/game/World/World.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ enum WorldIntConfigs : uint32
258258
CONFIG_START_PLAYER_LEVEL,
259259
CONFIG_START_DEATH_KNIGHT_PLAYER_LEVEL,
260260
CONFIG_START_PLAYER_MONEY,
261+
CONFIG_START_DEATH_KNIGHT_PLAYER_MONEY,
261262
CONFIG_MAX_HONOR_POINTS,
262263
CONFIG_START_HONOR_POINTS,
263264
CONFIG_MAX_ARENA_POINTS,

src/server/worldserver/worldserver.conf.dist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,6 +845,14 @@ StartDeathKnightPlayerLevel = 55
845845

846846
StartPlayerMoney = 0
847847

848+
#
849+
# StartDeathKnightPlayerMoney
850+
# Description: Amount of money (in Copper) that a death knight character has after creation.
851+
# Default: 2000
852+
# 100 - (1 Silver)
853+
854+
StartDeathKnightPlayerMoney = 2000
855+
848856
#
849857
# MaxHonorPoints
850858
# Description: Maximum honor points a character can have.

0 commit comments

Comments
 (0)