feat: hardcore limit % coins dropped on death (#1898)

* feat: hardcore limit % coins dropped on death

Update EntityManager.cpp

* fix log msg
This commit is contained in:
David Markowitz
2025-10-04 17:25:23 -07:00
committed by GitHub
parent 69b1a694a6
commit 06958cb9cd
4 changed files with 21 additions and 4 deletions

View File

@@ -87,6 +87,8 @@ void EntityManager::ReloadConfig() {
auto hcXpReduction = Game::config->GetValue("hardcore_uscore_reduction");
m_HardcoreUscoreReduction = hcXpReduction.empty() ? 1.0f : GeneralUtils::TryParse<float>(hcXpReduction).value_or(1.0f);
m_HardcoreMode = GetHardcoreDisabledWorlds().contains(Game::zoneManager->GetZoneID().GetMapID()) ? false : m_HardcoreMode;
auto hcCoinKeep = Game::config->GetValue("hardcore_coin_keep");
m_HardcoreCoinKeep = hcCoinKeep.empty() ? false : GeneralUtils::TryParse<float>(hcCoinKeep).value_or(0.0f);
}
void EntityManager::Initialize() {