mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-06 18:00:44 +00:00
AVALANCHE: Implement Acci::inv().
This commit is contained in:
parent
e36d90f8b8
commit
934170b353
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user