summaryrefslogtreecommitdiffstats
path: root/src/Items/ItemFishingRod.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-25 00:21:39 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-05-25 00:21:39 +0200
commitf55f5ec47f67dcc31e56bc364297aaf60d75b0c3 (patch)
tree62262220c9342b0eab368f553a836d736a39d972 /src/Items/ItemFishingRod.h
parentUpdate CompositeChat.h (diff)
parentUpdate README.md (diff)
downloadcuberite-f55f5ec47f67dcc31e56bc364297aaf60d75b0c3.tar
cuberite-f55f5ec47f67dcc31e56bc364297aaf60d75b0c3.tar.gz
cuberite-f55f5ec47f67dcc31e56bc364297aaf60d75b0c3.tar.bz2
cuberite-f55f5ec47f67dcc31e56bc364297aaf60d75b0c3.tar.lz
cuberite-f55f5ec47f67dcc31e56bc364297aaf60d75b0c3.tar.xz
cuberite-f55f5ec47f67dcc31e56bc364297aaf60d75b0c3.tar.zst
cuberite-f55f5ec47f67dcc31e56bc364297aaf60d75b0c3.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))