diff options
Diffstat (limited to 'source/cPawn.cpp')
-rw-r--r-- | source/cPawn.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/cPawn.cpp b/source/cPawn.cpp index e696ffc18..8b1c951bb 100644 --- a/source/cPawn.cpp +++ b/source/cPawn.cpp @@ -28,6 +28,7 @@ cPawn::cPawn() , m_FireDamageInterval(0.f)
{
SetMaxHealth(20);
+ SetMaxFoodLevel(125);
}
cPawn::~cPawn()
@@ -175,4 +176,10 @@ 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;
+}
|