aboutsummaryrefslogtreecommitdiff
path: root/engines/wage/script.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wage/script.cpp')
-rw-r--r--engines/wage/script.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/wage/script.cpp b/engines/wage/script.cpp
index 48e01c029f..0b38f37579 100644
--- a/engines/wage/script.cpp
+++ b/engines/wage/script.cpp
@@ -1034,7 +1034,13 @@ void Script::handleStatusCommand() {
}
void Script::handleRestCommand() {
- warning("STUB: handleRestCommand");
+ if (_callbacks->getMonster() != NULL) {
+ appendText("This is no time to rest!");
+ _callbacks->_commandWasQuick = true;
+ } else {
+ _callbacks->regen();
+ _world->_player->printPlayerCondition();
+ }
}
void Script::handleAcceptCommand() {