mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
AVALANCHE: Rename special() to openBox() in Acci, implement it.
This commit is contained in:
@@ -671,8 +671,23 @@ bool Acci::holding() {
|
||||
|
||||
|
||||
|
||||
void Acci::special(bool before) {
|
||||
warning("STUB: Acci::special()");
|
||||
void Acci::openBox(bool before) {
|
||||
if ((_vm->_gyro->dna.room == r__yours) && (thing == 54)) {
|
||||
_vm->_celer->show_one(4);
|
||||
|
||||
_vm->_celer->pics_link();
|
||||
_vm->_trip->trippancy_link();
|
||||
_vm->_graphics->refreshScreen();
|
||||
|
||||
_vm->_system->delayMillis(55);
|
||||
|
||||
if (!before) {
|
||||
_vm->_celer->show_one(5);
|
||||
_vm->_celer->pics_link();
|
||||
_vm->_trip->trippancy_link();
|
||||
_vm->_graphics->refreshScreen();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Acci::examine() {
|
||||
@@ -683,9 +698,9 @@ void Acci::examine() {
|
||||
if ((1 <= thing) && (thing <= 49)) // Standard object
|
||||
examobj();
|
||||
else if ((50 <= thing) && (thing <= 100)) { // Also thing
|
||||
special(true);
|
||||
_vm->_scrolls->display(*_vm->_gyro->also[thing - 51][0]);
|
||||
special(false);
|
||||
openBox(true);
|
||||
_vm->_scrolls->display(*_vm->_gyro->also[thing - 50][1]);
|
||||
openBox(false);
|
||||
}
|
||||
}
|
||||
} else if (person != pardon)
|
||||
@@ -754,8 +769,6 @@ void Acci::lookaround() {
|
||||
}
|
||||
|
||||
void Acci::opendoor() { /* so whaddya THINK this does?! */
|
||||
byte fv;
|
||||
|
||||
switch (_vm->_gyro->dna.room) { /* Special cases. */
|
||||
case r__yours:
|
||||
if (_vm->_trip->infield(1)) {
|
||||
@@ -777,7 +790,7 @@ void Acci::opendoor() { /* so whaddya THINK this does?! */
|
||||
if ((!_vm->_gyro->dna.user_moves_avvy) && (_vm->_gyro->dna.room != r__lusties))
|
||||
return; /* No doors can open if you can't move Avvy. */
|
||||
|
||||
for (fv = 8; fv < 15; fv++)
|
||||
for (byte fv = 8; fv < 15; fv++)
|
||||
if (_vm->_trip->infield(fv)) {
|
||||
fv -= 8;
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@ private:
|
||||
|
||||
bool holding();
|
||||
|
||||
void special(bool before);
|
||||
void openBox(bool before);
|
||||
void examine();
|
||||
|
||||
void inv();
|
||||
|
||||
@@ -490,7 +490,7 @@ Common::String Gyro::get_better(byte which) {
|
||||
get_better_result = better[which];
|
||||
break;
|
||||
default:
|
||||
if ((which < numobjs) && (which > '\0'))
|
||||
if ((which < numobjs) && (which > 0))
|
||||
get_better_result = better[which];
|
||||
else
|
||||
get_better_result = "";
|
||||
|
||||
@@ -109,7 +109,7 @@ struct dnatype { /* here goes... */ /* Ux, uy, & ww now all belong to Trip5 */
|
||||
bool friar_will_tie_you_up; /* If you're going to get tied up. */
|
||||
bool tied_up; /* You ARE tied up! */
|
||||
|
||||
char box_contents; /* 0 = money (sixpence), 254 = empty, any
|
||||
byte box_contents; /* 0 = money (sixpence), 254 = empty, any
|
||||
other number implies the contents of the box. */
|
||||
|
||||
bool talked_to_crapulus; /* Pretty self-explanatory. */
|
||||
|
||||
Reference in New Issue
Block a user