diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/cClientHandle.cpp | 9 | ||||
-rw-r--r-- | source/cClientHandle.h | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/source/cClientHandle.cpp b/source/cClientHandle.cpp index 2d3bbd87e..39b566ba9 100644 --- a/source/cClientHandle.cpp +++ b/source/cClientHandle.cpp @@ -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;
};
diff --git a/source/cClientHandle.h b/source/cClientHandle.h index abb0c14c6..6f3e3ddc0 100644 --- a/source/cClientHandle.h +++ b/source/cClientHandle.h @@ -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();
|