MCPcopy Create free account
hub / github.com/TurningWheel/Barony / allowedCompendiumProgress

Function allowedCompendiumProgress

src/mod_tools.cpp:17688–17702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17686}
17687
17688bool allowedCompendiumProgress()
17689{
17690 if ( gameModeManager.currentMode == GameModeManager_t::GAME_MODE_CUSTOM_RUN && gameModeManager.currentSession.challengeRun.isActive()
17691 && gameModeManager.currentSession.challengeRun.lid.find("challenge") != std::string::npos )
17692 {
17693 return false; // challenge event run
17694 }
17695 if ( Mods::disableSteamAchievements || (svFlags & SV_FLAG_CHEATS) )
17696 {
17697#ifndef DEBUG_ACHIEVEMENTS
17698 return false;
17699#endif
17700 }
17701 return true;
17702}
17703
17704static ConsoleVariable<bool> cvar_compendiumDebugSave("/compendium_debug_save", false);
17705

Callers 4

eventUpdateMethod · 0.85
eventUpdateMonsterMethod · 0.85
eventUpdateWorldMethod · 0.85
eventUpdateCodexMethod · 0.85

Calls 1

isActiveMethod · 0.45

Tested by

no test coverage detected