DebugCmdLoadMap: Show Map Ids
This commit is contained in:
parent
b83528161f
commit
a40bd8d3b9
1 changed files with 10 additions and 0 deletions
|
|
@ -158,6 +158,16 @@ std::string DebugCmdWarpToLevel(const std::string_view parameter)
|
|||
|
||||
std::string DebugCmdLoadMap(const std::string_view parameter)
|
||||
{
|
||||
if (parameter.empty()) {
|
||||
std::string ret = "What mapid do you want to visit?";
|
||||
for (auto &quest : Quests) {
|
||||
if (quest._qslvl <= 0)
|
||||
continue;
|
||||
ret.append(fmt::format(" {} ({})", quest._qslvl, QuestLevelNames[quest._qslvl]));
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
auto &myPlayer = Players[MyPlayerId];
|
||||
auto level = atoi(parameter.data());
|
||||
if (level < 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue