mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-25 23:17:28 +00:00
Don't enable HC on minigame worlds (#959)
* Fix max's ouchi * use smarter logic * fix whitespace * clone
This commit is contained in:
parent
14085d09bd
commit
6fd80e3117
@ -69,6 +69,10 @@ void EntityManager::Initialize() {
|
|||||||
m_HardcoreUscoreEnemiesMultiplier = hcUscoreMult.empty() ? 2 : std::stoi(hcUscoreMult);
|
m_HardcoreUscoreEnemiesMultiplier = hcUscoreMult.empty() ? 2 : std::stoi(hcUscoreMult);
|
||||||
auto hcDropInv = Game::config->GetValue("hardcore_dropinventory_on_death");
|
auto hcDropInv = Game::config->GetValue("hardcore_dropinventory_on_death");
|
||||||
m_HardcoreDropinventoryOnDeath = hcDropInv.empty() ? false : (hcDropInv == "1");
|
m_HardcoreDropinventoryOnDeath = hcDropInv.empty() ? false : (hcDropInv == "1");
|
||||||
|
|
||||||
|
// If cloneID is not zero, then hardcore mode is disabled
|
||||||
|
// aka minigames and props
|
||||||
|
if (dZoneManager::Instance()->GetZoneID().GetCloneID() != 0) m_HardcoreMode = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
EntityManager::~EntityManager() {
|
EntityManager::~EntityManager() {
|
||||||
|
Loading…
Reference in New Issue
Block a user