- Added chicken to eating
- Increased max interactions again, seems to be fine now for even the fastest clickers. git-svn-id: http://mc-server.googlecode.com/svn/trunk@142 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
e3be6b1a47
commit
03f86ad3fc
@ -825,6 +825,7 @@ void cClientHandle::HandlePacket( cPacket* a_Packet )
|
||||
Item.m_ItemCount = 1;
|
||||
LOG("PacketData->m_ItemType: %i", (int)PacketData->m_ItemType);
|
||||
// Hacked in edible items go!~
|
||||
// TODO: Handle hunger
|
||||
bool bEat = false;
|
||||
bool isDoor = false;
|
||||
switch( Item.m_ItemID )
|
||||
@ -861,6 +862,14 @@ void cClientHandle::HandlePacket( cPacket* a_Packet )
|
||||
m_Player->Heal( 5 ); // 2.5 hearts
|
||||
bEat = true;
|
||||
break;
|
||||
case E_ITEM_RAW_CHICKEN:
|
||||
m_Player->Heal(3);
|
||||
bEat = true;
|
||||
break;
|
||||
case E_ITEM_COOKED_CHICKEN:
|
||||
m_Player->Heal( 8 );
|
||||
bEat = true;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
};
|
||||
|
@ -17,7 +17,7 @@ public:
|
||||
E_PRIORITY_NORMAL
|
||||
};
|
||||
|
||||
static const int MAXBLOCKCHANGEINTERACTIONS = 5;
|
||||
static const int MAXBLOCKCHANGEINTERACTIONS = 10; // 5 didn't help, 10 seems to have done the trick
|
||||
|
||||
cClientHandle(const cSocket & a_Socket);
|
||||
~cClientHandle();
|
||||
|
Loading…
Reference in New Issue
Block a user