Simple health regeneration system
Prepared for food git-svn-id: http://mc-server.googlecode.com/svn/trunk@679 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
@@ -38,7 +38,6 @@ cPawn::cPawn()
|
||||
, m_BurnPeriod(0.f)
|
||||
{
|
||||
SetMaxHealth(20);
|
||||
SetMaxFoodLevel(125);
|
||||
}
|
||||
|
||||
|
||||
@@ -235,18 +234,3 @@ void cPawn::SetMaxHealth(short a_MaxHealth)
|
||||
m_Health = a_MaxHealth;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void cPawn::SetMaxFoodLevel(short a_MaxFoodLevel)
|
||||
{
|
||||
m_MaxFoodLevel = a_MaxFoodLevel;
|
||||
|
||||
//Reset food level
|
||||
m_FoodLevel = a_MaxFoodLevel;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user