feataure add hp command

This commit is contained in:
tqcq 2023-12-06 10:06:35 +08:00
parent b21175ac14
commit 019cac44c6

View File

@ -297,6 +297,12 @@ void gameLoop() {
}
}
if (commandBuffer.compare(0, endOfVerb, "hp") == 0) {
wrapOut("Current HP: " + std::to_string(currentState->getHP()));
wrapEndPara();
commandOk = true;
}
// check get <keyword>, drop <keyword>, eat <keyword>
if (!commandOk) {
std::vector<std::string> words = split(commandBuffer);