From 831073f4b47a1b0737ceb8ab6733cd4e1f1dd5d2 Mon Sep 17 00:00:00 2001 From: Cvolton Date: Tue, 20 Feb 2024 20:44:06 +0100 Subject: [PATCH] add names for path chests --- src/layers/RewardHistory/RewardCell.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/layers/RewardHistory/RewardCell.cpp b/src/layers/RewardHistory/RewardCell.cpp index 30e0a63..9d5aaf4 100644 --- a/src/layers/RewardHistory/RewardCell.cpp +++ b/src/layers/RewardHistory/RewardCell.cpp @@ -15,6 +15,14 @@ std::string RewardCell::getDisplayName() { return fmt::format("{} Gauntlet", GauntletNode::nameForType((GauntletType) BetterInfo::stoi(key))); } + /** + * Path chests + */ + if(key[0] == 'p' && key[1] == 'r' && key[2] == '_') { + key = key.substr(3); + return fmt::format("{} Path", GJPathsLayer::nameForPath(BetterInfo::stoi(key))); + } + /** * Other chests */