aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/avalanche/acci2.cpp21
1 files changed, 18 insertions, 3 deletions
diff --git a/engines/avalanche/acci2.cpp b/engines/avalanche/acci2.cpp
index 8a194ebd2d..cec1d4b88b 100644
--- a/engines/avalanche/acci2.cpp
+++ b/engines/avalanche/acci2.cpp
@@ -734,10 +734,25 @@ void Acci::examine() {
void Acci::inv() { /* the time-honoured command... */
- char fv;
byte q = 0;
-
- warning("STUB: Acci::inv()");
+ _vm->_scrolls->display(Common::String("You're carrying ") + _vm->_scrolls->kControlToBuffer);
+ {
+ for (byte fv = 0; fv < numobjs; fv++)
+ if (_vm->_gyro->dna.obj[fv]) {
+ q++;
+ if (q == _vm->_gyro->dna.carrying)
+ _vm->_scrolls->display(Common::String("and ") + _vm->_scrolls->kControlToBuffer);
+ _vm->_scrolls->display(_vm->_gyro->get_better(fv) + _vm->_scrolls->kControlToBuffer);
+ if (fv == _vm->_gyro->dna.wearing)
+ _vm->_scrolls->display(Common::String(", which you're wearing") + _vm->_scrolls->kControlToBuffer);
+ if (q < _vm->_gyro->dna.carrying)
+ _vm->_scrolls->display(Common::String(", ") + _vm->_scrolls->kControlToBuffer);
+ }
+ if (_vm->_gyro->dna.wearing == nowt)
+ _vm->_scrolls->display(Common::String("...") + _vm->_scrolls->kControlNewLine + _vm->_scrolls->kControlNewLine + "...and you're stark naked!");
+ else
+ _vm->_scrolls->display(".");
+ }
}
void Acci::swallow() { /* Eat something. */