mirror of
https://github.com/mangosfour/server.git
synced 2025-12-25 22:37:04 +00:00
Replace hardcoded client(100) and server side (255) level limtation values by defines.
(cherry picked from commit 389a1784e288f11587067d3a6d4b70cce9214cb9) Conflicts: src/game/Player.cpp src/game/World.cpp src/shared/Database/DBCStructure.h
This commit is contained in:
parent
5113af643e
commit
35f54d365d
7 changed files with 37 additions and 27 deletions
|
|
@ -19,6 +19,14 @@
|
|||
#ifndef DBCENUMS_H
|
||||
#define DBCENUMS_H
|
||||
|
||||
// client supported max level for player/pets/etc. Avoid overflow or client stability affected.
|
||||
// also see GT_MAX_LEVEL define
|
||||
#define MAX_LEVEL 100
|
||||
|
||||
// Server side limitation. Base at used code requirements.
|
||||
// also see MAX_LEVEL and GT_MAX_LEVEL define
|
||||
#define STRONG_MAX_LEVEL 255
|
||||
|
||||
enum AreaTeams
|
||||
{
|
||||
AREATEAM_NONE = 0,
|
||||
|
|
|
|||
|
|
@ -267,6 +267,7 @@ struct GemPropertiesEntry
|
|||
uint32 color;
|
||||
};
|
||||
|
||||
// All Gt* DBC store data for 100 levels, some by 100 per class/race
|
||||
#define GT_MAX_LEVEL 100
|
||||
|
||||
struct GtCombatRatingsEntry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue