diff options
author | mtilden@gmail.com <mtilden@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-29 16:31:48 +0100 |
---|---|---|
committer | mtilden@gmail.com <mtilden@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2011-12-29 16:31:48 +0100 |
commit | d7adbba59d2372234a616b87f8b3b5a03888ddbc (patch) | |
tree | ee465a22205a21de84b57b931a15942382acc9a0 /source/cPawn.cpp | |
parent | M$ BS... (diff) | |
download | cuberite-d7adbba59d2372234a616b87f8b3b5a03888ddbc.tar cuberite-d7adbba59d2372234a616b87f8b3b5a03888ddbc.tar.gz cuberite-d7adbba59d2372234a616b87f8b3b5a03888ddbc.tar.bz2 cuberite-d7adbba59d2372234a616b87f8b3b5a03888ddbc.tar.lz cuberite-d7adbba59d2372234a616b87f8b3b5a03888ddbc.tar.xz cuberite-d7adbba59d2372234a616b87f8b3b5a03888ddbc.tar.zst cuberite-d7adbba59d2372234a616b87f8b3b5a03888ddbc.zip |
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;
+}
|