Fix level up health text
https://elysium-project.org/bugtracker/issue/3263 You know what's strange? The amount of health includes stamina but the mana amount does not include int
This commit is contained in:
parent
94cacb2510
commit
a7dd8955f7
@ -2375,7 +2375,8 @@ void Player::GiveLevel(uint32 level)
|
|||||||
// send levelup info to client
|
// send levelup info to client
|
||||||
WorldPacket data(SMSG_LEVELUP_INFO, (4 + 4 + MAX_POWERS * 4 + MAX_STATS * 4));
|
WorldPacket data(SMSG_LEVELUP_INFO, (4 + 4 + MAX_POWERS * 4 + MAX_STATS * 4));
|
||||||
data << uint32(level);
|
data << uint32(level);
|
||||||
data << uint32(int32(classInfo.basehealth) - int32(GetCreateHealth()));
|
data << uint32((int32(classInfo.basehealth) - int32(GetCreateHealth()))
|
||||||
|
+ ((int32(info.stats[STAT_STAMINA]) - GetCreateStat(STAT_STAMINA)) * 10));
|
||||||
// for(int i = 0; i < MAX_POWERS; ++i) // Powers loop (0-6)
|
// for(int i = 0; i < MAX_POWERS; ++i) // Powers loop (0-6)
|
||||||
data << uint32(int32(classInfo.basemana) - int32(GetCreateMana()));
|
data << uint32(int32(classInfo.basemana) - int32(GetCreateMana()));
|
||||||
data << uint32(0);
|
data << uint32(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user