summaryrefslogtreecommitdiffstats
path: root/src/Items
diff options
context:
space:
mode:
authorandrew <xdotftw@gmail.com>2014-05-20 14:52:59 +0200
committerandrew <xdotftw@gmail.com>2014-05-20 14:52:59 +0200
commit07baf9bdd3b04e3aec6e77f367eb38c0547f54ca (patch)
tree3d4c9f2202d7d9fae351e462701ddfa819d49489 /src/Items
parentThere's no "round" function in MSVC2008. (diff)
downloadcuberite-07baf9bdd3b04e3aec6e77f367eb38c0547f54ca.tar
cuberite-07baf9bdd3b04e3aec6e77f367eb38c0547f54ca.tar.gz
cuberite-07baf9bdd3b04e3aec6e77f367eb38c0547f54ca.tar.bz2
cuberite-07baf9bdd3b04e3aec6e77f367eb38c0547f54ca.tar.lz
cuberite-07baf9bdd3b04e3aec6e77f367eb38c0547f54ca.tar.xz
cuberite-07baf9bdd3b04e3aec6e77f367eb38c0547f54ca.tar.zst
cuberite-07baf9bdd3b04e3aec6e77f367eb38c0547f54ca.zip
Diffstat (limited to 'src/Items')
-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))