MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / consoleSetLevelCreature

Method consoleSetLevelCreature

source/gamemap/GameMap.cpp:2759–2766  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2757}
2758
2759void GameMap::consoleSetLevelCreature(const std::string& creatureName, uint32_t level)
2760{
2761 Creature* creature = getCreature(creatureName);
2762 if(creature == nullptr)
2763 return;
2764
2765 creature->setLevel(level);
2766}
2767
2768void GameMap::consoleAskToggleFOW()
2769{

Callers 1

cSrvSetCreatureLevelFunction · 0.80

Calls 1

setLevelMethod · 0.45

Tested by

no test coverage detected