diff options
Diffstat (limited to 'source/Mobs/Pig.cpp')
-rw-r--r-- | source/Mobs/Pig.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Mobs/Pig.cpp b/source/Mobs/Pig.cpp index a71476e00..9df2c2571 100644 --- a/source/Mobs/Pig.cpp +++ b/source/Mobs/Pig.cpp @@ -8,7 +8,7 @@ cPig::cPig(void) : - super("Pig", 90, "mob.pig.say", "mob.pig.death") + super("Pig", 90, "mob.pig.say", "mob.pig.death", 0.9, 0.9) { } @@ -16,9 +16,9 @@ cPig::cPig(void) : -void cPig::GetDrops(cItems & a_Drops, cPawn * a_Killer) +void cPig::GetDrops(cItems & a_Drops, cEntity * a_Killer) { - AddRandomDropItem(a_Drops, 1, 3, (GetMetaData() == BURNING) ? E_ITEM_COOKED_PORKCHOP : E_ITEM_RAW_PORKCHOP); + AddRandomDropItem(a_Drops, 1, 3, IsOnFire() ? E_ITEM_COOKED_PORKCHOP : E_ITEM_RAW_PORKCHOP); } |