1
0

Add more statistic tracking (#4837)

+ Added possible 1.8 stats
+ Added stat tracking for 1.8.2
+ Added stat tracking for 1.9
+ Added the breed cow achievement

Co-authored-by: 12xx12 <12xx12100@gmail.com>
This commit is contained in:
12xx12
2020-09-05 17:13:44 +02:00
committed by GitHub
parent 2d197e147e
commit c2f8ceb554
18 changed files with 88 additions and 6 deletions

View File

@@ -70,6 +70,8 @@ bool cJukeboxEntity::UsedBy(cPlayer * a_Player)
const cItem & HeldItem = a_Player->GetEquippedItem();
if (PlayRecord(HeldItem.m_ItemType) && !a_Player->IsGameModeCreative())
{
a_Player->GetStatManager().AddValue(Statistic::PlayRecord);
a_Player->GetInventory().RemoveOneEquippedItem();
return true;
}