summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemFishingRod.h
diff options
context:
space:
mode:
authorxdot <xdotftw@gmail.com>2014-05-21 10:14:44 +0200
committerxdot <xdotftw@gmail.com>2014-05-21 10:14:44 +0200
commit671c73c6396a1d5ec00bdf6578745b05a1c6ac83 (patch)
tree42aa3b9000120d4a8dcb9cb6625063adf49d4b61 /src/Items/ItemFishingRod.h
parentFixed MCADefrag compilation. (diff)
parentFixed cWither::KilledBy (diff)
downloadcuberite-671c73c6396a1d5ec00bdf6578745b05a1c6ac83.tar
cuberite-671c73c6396a1d5ec00bdf6578745b05a1c6ac83.tar.gz
cuberite-671c73c6396a1d5ec00bdf6578745b05a1c6ac83.tar.bz2
cuberite-671c73c6396a1d5ec00bdf6578745b05a1c6ac83.tar.lz
cuberite-671c73c6396a1d5ec00bdf6578745b05a1c6ac83.tar.xz
cuberite-671c73c6396a1d5ec00bdf6578745b05a1c6ac83.tar.zst
cuberite-671c73c6396a1d5ec00bdf6578745b05a1c6ac83.zip
Diffstat (limited to 'src/Items/ItemFishingRod.h')
-rw-r--r--src/Items/ItemFishingRod.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Items/ItemFishingRod.h b/src/Items/ItemFishingRod.h
index 0431b88b7..32c151db5 100644
--- a/src/Items/ItemFishingRod.h
+++ b/src/Items/ItemFishingRod.h
@@ -142,6 +142,8 @@ public:
break;
}
}
+
+ a_Player->GetStatManager().AddValue(statTreasureFished, 1);
}
else if (ItemCategory <= 14) // Junk 10%
{
@@ -190,6 +192,8 @@ public:
{
Drops.Add(cItem(E_BLOCK_TRIPWIRE_HOOK));
}
+
+ a_Player->GetStatManager().AddValue(statJunkFished, 1);
}
else // Fish
{
@@ -210,6 +214,8 @@ public:
{
Drops.Add(cItem(E_ITEM_RAW_FISH, 1, E_META_RAW_FISH_FISH));
}
+
+ a_Player->GetStatManager().AddValue(statFishCaught, 1);
}
if (cRoot::Get()->GetPluginManager()->CallHookPlayerFishing(*a_Player, Drops))