mirror of
https://github.com/cuberite/cuberite.git
synced 2025-01-09 04:19:26 +08:00
cPlayer: move some constants out of header
This commit is contained in:
parent
a999c5d845
commit
951e6c76a7
@ -31,8 +31,9 @@
|
||||
|
||||
#include "../CraftingRecipes.h"
|
||||
|
||||
// 6000 ticks or 5 minutes
|
||||
#define PLAYER_INVENTORY_SAVE_INTERVAL 6000
|
||||
|
||||
|
||||
|
||||
|
||||
namespace
|
||||
{
|
||||
@ -62,6 +63,13 @@ const int cPlayer::MAX_FOOD_LEVEL = 20;
|
||||
// Number of ticks it takes to eat an item.
|
||||
#define EATING_TICKS 30_tick
|
||||
|
||||
// 6000 ticks or 5 minutes
|
||||
#define PLAYER_INVENTORY_SAVE_INTERVAL 6000
|
||||
|
||||
#define XP_TO_LEVEL15 255
|
||||
#define XP_PER_LEVEL_TO15 17
|
||||
#define XP_TO_LEVEL30 825
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -612,14 +612,6 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
/** Xp Level stuff */
|
||||
enum
|
||||
{
|
||||
XP_TO_LEVEL15 = 255,
|
||||
XP_PER_LEVEL_TO15 = 17,
|
||||
XP_TO_LEVEL30 = 825
|
||||
} ;
|
||||
|
||||
typedef std::vector<std::vector<AString> > AStringVectorVector;
|
||||
|
||||
/** The current body stance the player has adopted. */
|
||||
|
Loading…
Reference in New Issue
Block a user