aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/Stats.cpp
diff options
context:
space:
mode:
authorvoid_17 <61356189+void2012@users.noreply.github.com>2026-03-06 02:11:18 +0700
committerGitHub <noreply@github.com>2026-03-06 02:11:18 +0700
commit55231bb8d3e1a4e2752ac3d444c4287eb0ca4e8b (patch)
tree953c537a5c66e328e9f4ab29626cf738112d53c0 /Minecraft.World/Stats.cpp
parent7d6658fe5b3095f35093701b5ab669ffc291e875 (diff)
Remove AUTO_VAR macro and _toString function (#592)
Diffstat (limited to 'Minecraft.World/Stats.cpp')
-rw-r--r--Minecraft.World/Stats.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Minecraft.World/Stats.cpp b/Minecraft.World/Stats.cpp
index 89da587b..c8a615ff 100644
--- a/Minecraft.World/Stats.cpp
+++ b/Minecraft.World/Stats.cpp
@@ -216,7 +216,7 @@ void Stats::buildBlockStats()
bool Stats::itemStatsLoaded = false;
-void Stats::buildItemStats()
+void Stats::buildItemStats()
{
itemStatsLoaded = true;
buildCraftableStats();
@@ -239,7 +239,7 @@ void Stats::buildCraftableStats()
craftableStatsLoaded = true;
//Collected stats
-
+
itemsCollected = StatArray(32000);
ItemStat* newStat = new ItemStat(ITEMS_COLLECTED_OFFSET + 0, L"collectItem.egg", Item::egg->id);
@@ -248,12 +248,12 @@ void Stats::buildCraftableStats()
newStat->postConstruct();
// 4J Stu - The following stats were added as it was too easy to cheat the leaderboards by dropping and picking up these items
- // They are now changed to mining the block which involves a tiny bit more effort
+ // They are now changed to mining the block which involves a tiny bit more effort
newStat = new ItemStat(BLOCKS_MINED_OFFSET + 18, L"mineBlock.wheat", Tile::wheat_Id);
blocksMinedStats->push_back(newStat);
blocksMined[Tile::wheat_Id] = newStat;
newStat->postConstruct();
-
+
newStat = new ItemStat(BLOCKS_MINED_OFFSET + 19, L"mineBlock.mushroom1", Tile::mushroom_brown_Id);
blocksMinedStats->push_back(newStat);
blocksMined[Tile::mushroom_brown_Id] = newStat;
@@ -522,7 +522,7 @@ void Stats::buildAdditionalStats()
rainbowCollection = StatArray(16);
for (unsigned int i = 0; i < 16; i++)
{
- generalStat = new GeneralStat(offset++, L"rainbowCollection." + _toString<unsigned int>(i));
+ generalStat = new GeneralStat(offset++, L"rainbowCollection." + std::to_wstring(i));
generalStats->push_back(generalStat);
rainbowCollection[i] = generalStat;
generalStat->postConstruct();
@@ -531,7 +531,7 @@ void Stats::buildAdditionalStats()
biomesVisisted = StatArray(23);
for (unsigned int i = 0; i < 23; i++)
{
- generalStat = new GeneralStat(offset++, L"biomesVisited." + _toString<unsigned int>(i));
+ generalStat = new GeneralStat(offset++, L"biomesVisited." + std::to_wstring(i));
generalStats->push_back(generalStat);
biomesVisisted[i] = generalStat;
generalStat->postConstruct();
@@ -548,10 +548,10 @@ void Stats::buildAdditionalStats()
itemStat->postConstruct();
}
#endif
-
+
}
-Stat *Stats::get(int key)
+Stat *Stats::get(int key)
{
return statsById->at(key);
}